re PR tree-optimization/89007 ([SVE] Implement generic vector average expansion)
[official-gcc.git] / gcc / ChangeLog
blobcee65513d00c75cb2276bb2e1a3030754ea3ee9b
1 2019-12-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3         PR tree-optimization/89007
4         * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
5         target support available, generate code to distribute rshift over plus
6         and add a carry.
8 2019-12-09  Martin Liska  <mliska@suse.cz>
10         PR ipa/92737
11         * cgraph.c (symbol_table_test::symbol_table_test): Fix
12         coding style.
13         * cgraph.h (symtab_node::symtab_node): New constructor.
14         (cgraph_node::cgraph_node): Likewise.
15         (varpool_node::varpool_node): Likewise.
16         (symbol_table::allocate_cgraph_symbol): Use newly
17         created constructor.
18         (symbol_table::allocate_cgraph_symbol): Remove.
19         * cgraphunit.c (symtab_terminator): Likewise.
20         * varpool.c (varpool_node::create_empty): Use newly
21         created constructor.
23 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
25         PR target/92686
26         * config/i386/sse.md
27         (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
28         *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
29         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
30         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
31         * config/i386/i386.c (ix86_print_operand): New operand substitution.
32         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
33         New function.
34         (ix86_expand_sse_cmp): Relax condition for integer mask from
35         512-bit vector to all 128/256/512-bit vector. Delete code gen
36         for avx512f compare patterns since we have generic pattern now.
37         (ix86_expand_sse_movcc): Adjust condition and codegen for
38         maskcmp.
39         (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
40         when corresponding vector compare is available.
42 2019-12-08  Sandra Loosemore  <sandra@codesourcery.com>
44         Revert:
46         2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
48         * config/nios2/linux.h (LINK_EH_SPEC): Define.
50 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
52         * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
53         * cgraph.h (cgrpah_node): Likewise.
54         (tp_first_run_node_cmp): Deeclare.
55         * cgraphunit.c (node_cmp): Rename to ...
56         (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
57         clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
58         (expand_all_functions): Collect tp_first_run and normal functions to
59         two vectors so the other functions remain sorted. Do not check for
60         flag_profile_reorder_functions it is function local flag.
61         * profile.c (compute_value_histograms): Update tp_first_run printing.
63 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
65         * opts.c (common_handle_option): Do not clear ipa_reference for
66         -fprofile-use.
68 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
70         * ipa-split.c (split_function): Preserve 0 tp_first_run.
72 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
74         * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
75         sanity check.
77 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
79         PR tree-optimization/92860
80         * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
81         Optimization flag.
83 2019-12-07  Marek Polacek  <polacek@redhat.com>
85         PR c++/91678 - wrong error with decltype and location wrapper.
86         * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
88 2019-12-07  Eric Botcazou  <ebotcazou@adacore.com>
90         PR middle-end/90840
91         * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
92         sure to pass a valid inner mode in calls to simplify_gen_subreg.
94 2019-12-07  Tobias Burnus  <tobias@codesourcery.com>
95             David Malcolm  <dmalcolm@redhat.com>
96             Jakub Jelinek  <jakub@redhat.com>
98         PR c/87488
99         * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
100         instead of ST sequence to terminate OSC 8 strings.
102 2019-12-06  Andreas Krebbel  <krebbel@linux.ibm.com>
103             Vladimir Makarov  <vmakarov@redhat.com>
105         PR rtl-optimization/92176
106         * lra.c (simplify_subreg_regno): Don't permit unconditional
107         changing mode for LRA too.
109 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
111         * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
112         (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
113         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
114         Handle them.
116 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
118         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
119         in the asm output.
121 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
123         * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
124         (VEC_1REG_ALT): Likewise.
125         (VEC_ALL1REG_MODE): New mode iterator.
126         (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
127         (VEC_1REG_INT_ALT): Likewise.
128         (VEC_ALL1REG_INT_MODE): New mode interator.
129         (VEC_ALL1REG_INT_ALT): Likewise.
130         (VEC_REG_MODE): Remove V64QI and V64HI.
131         (VEC_ALLREG_MODE): New mode interator.
132         (vec_merge): Change to VEC_ALLREG_MODE.
133         (vec_merge_with_clobber): Likewise.
134         (vec_merge_with_vcc): Likewise.
135         (mov<mode>): Likewise.
136         (mov<mode>_unspec): Likewise.
137         (*mov<mode>): Change to VEC_ALL1REG_MODE.
138         (mov<mode>_exec): Likewise.
139         (*mov<mode>_exec_match): Likewise.
140         (mov<mode>_sgprbase): Likewise.
141         (reload_in<mode>): Change to VEC_ALLREG_MODE.
142         (reload_out<mode>): Likewise.
143         (scalar address splits): Likewise.
144         (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
145         (vec_set<mode>): Change to VEC_ALLREG_MODE.
146         (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
147         (vec_duplicate<mode><exec>): Likewise.
148         (vec_extract<mode><scalar_mode>): Likewise.
149         (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
150         (gather_load<mode>): Likewise.
151         (gather<mode>_exec): Likewise.
152         (gather<mode>_expr<exec>): Likewise.
153         (gather<mode>_insn_1offset<exec>): Likewise.
154         (gather<mode>_insn_1offset_ds<exec>): Likewise.
155         (gather<mode>_insn_2offsets<exec>): Likewise.
156         (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
157         (VEC_INT_MODE): Remove V64QI and V64HI.
158         (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
159         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
160         VEC_ALL1REG_MODE.
161         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
162         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
163         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
164         (maskload<mode>di): Change to VEC_ALL1REG_MODE.
165         (maskstore<mode>di): Likewise.
166         (mask_gather_load<mode>): Likewise.
167         (mov_from_lane63_<mode>): Likewise.
168         * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
169         and V64HImode vectorization.
170         (gcn_related_vector_mode): New function.
171         (TARGET_VECTORIZE_RELATED_MODE): New define.
173 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
174             Kwok Cheung Yeung  <kcy@codesourcery.com>
176         * omp-low.c (lower_omp_target): For optional arguments, deref once
177         more to obtain the type.
179 2019-12-06  Richard Biener  <rguenther@suse.de>
181         * match.pd (nop_convert): Remove empty match.  Use nop_convert?
182         everywhere.
184 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
186         * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
187         for empty vectors.  Avoid using ordered_remove and instead
188         shuffle the vector as we go.
190 2019-12-06  Richard Biener  <rguenther@suse.de>
192         * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
193         VIEW_CONVERT{0,1,2}.
194         (expr::opt_grp): Add and initialize.
195         (lower_opt_convert): Rename to ...
196         (lower_opt): ... and work on opt_grp, simply switching operations
197         from being optional to being present or not.
198         (has_opt_convert): Rename to ...
199         (has_opt): ... and adjust.
200         (parser::parse_operation): Return the optional opt_grp,
201         remove special-casing of conditional operations and more generally
202         parse [digit]'?'.
203         (parser::parse_expr): Stick on the parsed opt_grp and perform
204         rough verification.
205         (parser::parse_for): Remove now unnecessary code.
206         (main): Likewise.
207         * doc/match-and-simplify.texi: Mention ? now works on all
208         unary operations and also match predicates.
210 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
212         * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
213         functions, not inline clones.
215 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
217         * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
219 2019-12-06  Richard Biener  <rguenther@suse.de>
221         * genmatch.c (c_expr::gen_transform): Emit newlines from line
222         number changes rather than after every semicolon.
224 2019-12-06  Richard Biener  <rguenther@suse.de>
226         PR tree-optimization/92819
227         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
228         into the last lane.  For two-element vectors try inserting
229         into the last lane when inserting into the first fails.
231 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
233         * common.opt (fprofile-partial-training): Terminate description with
234         full stop.
236 2019-12-05  Martin Sebor  <msebor@redhat.com>
238         PR middle-end/92622
239         * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
240         left uninitialized by get_addr_base_and_unit_offset on failure.
242 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
244         * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
245         (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
246         (detect_type_change): Likewise.
247         (detect_type_change_ssa): Likewise.
248         (ipa_analyze_virtual_call_uses): Update.
250 2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
252         * config/nios2/linux.h (LINK_EH_SPEC): Define.
254 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
256         * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
258 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
260         * cgraphclones.c (localize_profile): New function.
261         (cgraph_node::create_clone): Use it for partial profiles.
262         * common.opt (fprofile-partial-training): New flag.
263         * doc/invoke.texi (-fprofile-partial-training): Document.
264         * ipa-cp.c (update_profiling_info): For partial profiles do not
265         set function profile to zero.
266         * profile.c (compute_branch_probabilities): With partial profile
267         watch if edge count is zero and turn all probabilities to guessed.
268         (compute_branch_probabilities): For partial profiles do not apply
269         profile when entry count is zero.
270         * tree-profile.c (tree_profiling): Only do value_profile_transformations
271         when profile is read.
273 2019-12-05  Sudakshina Das  <sudi.das@arm.com>
275         * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
276         check from if condition.
278 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
280         * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
281         and Fortran's optional arguments, unconditionally add the is-present
282         condition before the libgomp call.
284 2019-12-05  Richard Sandiford  <richard.sandiford@arm.com>
286         PR middle-end/92768
287         * tree-core.h (OEP_BITWISE): New flag.
288         * fold-const.c (operand_compare::operand_equal_p): Handle it.
289         * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
291 2019-12-05  Richard Biener  <rguenther@suse.de>
293         PR middle-end/92818
294         * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
295         heuristics on what don't care element to choose.
296         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
298 2019-12-05  Martin Liska  <mliska@suse.cz>
300         PR gcov-profile/92817
301         * coverage.c (build_gcov_exit_decl): Remove superfluous
302         void_type_node.
304 2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
306         * config/msp430/msp430.md (cbranch<mode>4): Use
307         msp430_general_dst_nonv_operand instead of nonimmediate_operand for
308         dest operand of CMP instruction.
309         (cbranchpsi4_real): Likewise.
310         (cbranchqi4_real): Likewise.
311         (cbranchhi4_real): Likewise.
312         (cbranchpsi4_reversed): Likewise.
313         (cbranchqi4_reversed): Likewise.
314         (cbranchhi4_reversed): Likewise.
316 2019-12-05  Richard Biener  <rguenther@suse.de>
318         PR tree-optimization/92803
319         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
320         invariant vector construction.
322 2019-12-05  Martin Liska  <mliska@suse.cz>
324         PR gcov-profile/91971
325         * coverage.c (coverage_init): Mangle full path
326         only when -fprofile-dir is used.
328 2019-12-05  Jakub Jelinek  <jakub@redhat.com>
330         PR target/92791
331         * config/i386/i386.md (movstrict<mode>): Move test for
332         TARGET_PARTIAL_REG_STALL and not optimizing for size from
333         expander's condition to the body - FAIL; in that case.
335 2019-12-03  Martin Sebor  <msebor@redhat.com>
337         PR middle-end/91582
338         * builtins.c (gimple_call_alloc_size): New function.
339         (compute_objsize): Add argument.  Call gimple_call_alloc_size.
340         Handle variable offsets and indices.
341         * builtins.h (gimple_call_alloc_size): Declare.
342         (compute_objsize): Add argument.
343         * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
344         * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
346 2019-12-04  Julian Brown  <julian@codesourcery.com>
348         * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
350 2019-12-04  Peter Bergner <bergner@linux.ibm.com>
352         PR bootstrap/92661
353         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
354         rs6000.h.
355         (altivec_overloaded_builtins): Move to rs6000-call.c.
356         * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
357         rs6000-c.c.
358         * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
359         (altivec_overloaded_builtins): Moved from rs6000-c.c.
360         (rs6000_common_init_builtins): Do no define builtins that overload
361         builtins that have been disabled.
363 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
365         * config/arm/arm.c (arm_option_override_internal):
366         Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
368 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
370         * config/aarch64/aarch64.c
371         (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
372         (thunderx_tunings): Likewise.
373         (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
374         (thunderx2t99_tunings): Likewise.
375         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
376         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
378 2019-12-04  Richard Biener  <rguenther@suse.de>
380         * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
381         empty CTOR and memset partial-def registering.  Take advantage
382         of fancy offset analysis in memset handling.
384 2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
386         * fold-const.c (native_encode_vector_part): Handle
387         VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
388         (native_decode_vector_tree): Delete, moving the bulk of the code to...
389         (native_interpret_vector_part): ...this new function.  Use a pointer
390         and length instead of a vec<> and start index.
391         (native_interpret_vector): Use native_interpret_vector_part.
392         (fold_view_convert_vector_encoding): Likewise.
394 2019-12-04  Richard Biener  <rguenther@suse.de>
396         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
397         non-constant defs in the most trivial way.
398         (vn_reference_lookup_3): Also push down SSA partial defs.
400 2019-12-04  Martin Liska  <mliska@suse.cz>
402         * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
403         Initialize count of newly created BB.
405 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
407         PR tree-optimization/92734
408         * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
409         A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
411 2019-12-04  Kewen Lin  <linkw@gcc.gnu.org>
413         PR target/92760
414         * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
415         VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
417 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
419         * ipa-fnsummary.c: Include tree-into-ssa.h.
420         (compute_fn_summary): Call update_ssa.
422 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
424         * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
425         is set only for symbol in comdat group.
426         * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
428 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
430         * cgraph.c: Include tree-into-ssa.h
431         (cgraph_node::get_body): Call update_ssa.
432         * cgraphunit.c (cgraph_node::expand): Likewise.
433         * lto-streamer-in.c (input_function): Do not call update_ssa.
435 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
437         * gimplify.c (gimplify_compound_lval): Don't gimplify and install
438         an array element size if array_element_size is already an invariant.
439         Similarly don't gimplify and install a field offset if
440         component_ref_field_offset is already an invariant.
442 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
444         * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
445         with POLY_INT_CST size is made to a fixed-size object, force the
446         object to live in memory.
448 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
450         * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
451         for the data mode.
453 2019-12-03  Richard Biener  <rguenther@suse.de>
455         PR tree-optimization/92758
456         * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
457         operation on uniform vectors.
459 2019-12-03  Richard Biener  <rguenther@suse.de>
461         PR tree-optimization/92645
462         * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
463         from or to a properly aligned register variable.
465 2019-12-03  Matthias Klose  <doko@ubuntu.com>
467         * Makefile.in (SOURCES): Add doc/lto-dump.1.
468         (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
469         ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
471 2019-12-03  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/92751
474         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
475         when a clobber ends up in the partial-def vector.
476         (vn_reference_lookup_3): Let clobbers be handled by the
477         assignment from CTOR handling.
479 2019-12-03  Jakub Jelinek  <jakub@redhat.com>
481         PR tree-optimization/92734
482         * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
483         CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
484         inner subtraction.
486 2019-12-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
487             Jakub Jelinek  <jakub@redhat.com>
489         PR target/92744
490         * config/i386/i386.md (peephole2 for *swap<mode>): Use
491         general_reg_operand predicates instead of register_operand.
493 2019-12-03  Richard Biener  <rguenther@suse.de>
495         PR tree-optimization/92645
496         * tree-ssa.c (execute_update_addresses_taken): Avoid representing
497         a full def of a vector via a BIT_INSERT_EXPR.
499 2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
501         * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
502         static.
503         * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
504         decl.
506 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
508         PR middle-end/92741
509         * fold-const.c (fold_convertible_p): Check vector types more
510         thoroughly.
512 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
514         * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
515         (aarch64_expand_mov_immediate): Use it when attempting to measure
516         the length of an SVE vector.
517         (aarch64_mov_operand_p): Only allow SVE CNT immediates when
518         SVE is enabled.
520 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
522         * config/aarch64/aarch64-sve-builtins.h
523         (gimple_folder::force_vector): Declare.
524         * config/aarch64/aarch64-sve-builtins.cc
525         (gimple_folder::force_vector): New function.
526         * config/aarch64/aarch64-sve-builtins-base.cc
527         (svcmp_impl::fold): Likewise.
528         (svdup_impl::fold): Handle svdup_z too.
530 2019-12-02  Martin Liska  <mliska@suse.cz>
532         * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
533         function.
534         (debug_tree_odr_name): New.
535         * ipa-utils.h (get_odr_name_for_type): New.
537 2019-12-02  Richard Biener  <rguenther@suse.de>
539         PR tree-optimization/92742
540         * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
541         touch the def-type but verify it is consistent with the
542         original stmts.
544 2019-12-02  Jakub Jelinek  <jakub@redhat.com>
546         PR tree-optimization/92712
547         * match.pd ((A * B) +- A -> (B +- 1) * A,
548         A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
549         even when we don't know anything about range of A, but do know
550         something about range of B and the simplification won't introduce
551         new UB.
553 2019-12-02  Feng Xue  <fxue@os.amperecomputing.com>
555         PR ipa/92133
556         * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
557         (ipa-cp-min-recursive-probability): Likewise.
558         * params.opt (ipa-cp-max-recursive-depth): New.
559         (ipa-cp-min-recursive-probability): Likewise.
560         * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
561         val_p and unlimited.
562         (self_recursively_generated_p): New function.
563         (get_val_across_arith_op): Likewise.
564         (propagate_vals_across_arith_jfunc): Add constant propagation for
565         self-recursive function.
566         (incorporate_penalties): Do not penalize pure self-recursive function.
567         (good_cloning_opportunity_p): Dump node_is_self_scc flag.
568         (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
569         (get_info_about_necessary_edges): Relax hotness check for edge to
570         self-recursive function.
571         * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
573 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
575         PR target/92499
577         * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
578         objects of flexible types to be small if they have internal linkage
579         or are declared extern.
580         * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
581         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
582         instead of the size of the object initializer.
583         * tree.c (flexible_array_type_p): Move from C front end, and
584         generalize to handle fields in non-C structures.
585         * tree.h (flexible_array_type_p): Declare.
587 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
589         * profile-count.h (profile_count::operator<): Use IPA value for
590         comparsion.
591         (profile_count::operator>): Likewise.
592         (profile_count::operator<=): Likewise.
593         (profile_count::operator>=): Likewise.
594         * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
596 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
598         * ipa-inline.c (compute_max_insns): Return int64_t.
599         (inline_small_functions): Simplify.
601 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
603         * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
604         scaling happen.
606 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
608         * cgraph.h (symtab_node): Add symver flag.
609         * cgraphunit.c (process_symver_attribute): New.
610         (process_common_attributes): Use process_symver_attribute.
611         * lto-cgraph.c (lto_output_node): Stream symver.
612         (lto_output_varpool_node): Stream symver.
613         (input_overwrite_node): Stream symver.
614         (input_varpool_node): Stream symver.
615         * output.h (do_assemble_symver): Decalre.
616         * symtab.c (symtab_node::dump_base): Dump symver.
617         (symtab_node::verify_base): Verify symver.
618         (symtab_node::resolve_alias): Handle symver.
619         * varasm.c (do_assemble_symver): New function.
620         * varpool.c (varpool_node::assemble_aliases): Use it.
621         * doc/extend.texi: (symver attribute): Document.
622         * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
624 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
626         * target.h (type_context_kind): New enum.
627         (verify_type_context): Declare.
628         * target.def (verify_type_context): New target hook.
629         * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
630         * doc/tm.texi: Regenerate.
631         * tree.c (verify_type_context): New function.
632         * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
633         Declare.
634         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
635         New function.
636         * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
637         (TARGET_VERIFY_TYPE_CONTEXT): Define.
639 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
641         * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
642         * cgraph.h (cgraph_node): Add unit_id and
643         merged_extern_inline.
644         (symbol_table): Add max_unit.
645         (symbol_table::symbol_table): Initialize it.
646         * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
647         merged_comdat, merged_extern_inline.
648         (cgraph_node::create_clone): Likewise.
649         (cgraph_node::create_version_clone): Likewise.
650         * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
651         calls.
652         * ipa-fnsummary.h (cross_module_call_p): New inline function.
653         * ipa-inline-analyssi.c (simple_edge_hints): Use it.
654         * ipa-inline.c (inline_small_functions): Likewise.
655         * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
656         copy merged_comdat and merged_extern_inline.
657         * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
658         merged_extern_inline and unit_id.
659         (input_overwrite_node): Stream in these.
660         (input_cgraph_1): Set unit_base.
661         * lto-streamer.h (lto_file_decl_data): Add unit_base.
662         * symtab.c (symtab_node::make_decl_local): Record former_comdat.
664 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
666         * gcc.c (process_command): Only warn about an ineffective `-x'
667         option if any input files have actually been supplied.
669 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
671         * doc/install.texi (Options specification): Remove the list of
672         target library subdirectories supporting
673         `--enable-version-specific-runtime-libs'.  Document defaults for
674         the option.
676 2019-11-29  Vladimir Makarov  <vmakarov@redhat.com>
678         PR rtl-optimization/92283
679         * lra.c (lra): Update reg notes after inheritance sub-pass and
680         before constraint sub-pass.
682 2019-11-29  Richard Biener  <rguenther@suse.de>
684         PR tree-optimization/91003
685         * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
686         operand number, avoid handling the non-condition operands of
687         COND_EXPRs as comparisons.
688         (vect_get_constant_vectors): Pass down the operand number.
689         (vect_get_slp_defs): Likewise.
691 2019-11-29  Frederik Harwath  <frederik@codesourcery.com>
693         * gimple-match-head.c (maybe_resimplify_conditional_op): Use
694         generic_expr_could_trap_p to check if the condition of COND_EXPR or
695         VEC_COND_EXPR can trap.
697 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
699         PR tree-optimization/92677
700         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
701         to zero when dissolving a group of strided accesses.
703 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
705         PR tree-optimization/92596
706         * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
707         operations.
708         (vectorizable_operation): Likewise, instead of relying on
709         vect_get_mask_type_for_stmt to do this.
710         (vect_get_vector_types_for_stmt): Always return a vector type
711         immediately, rather than deferring the choice for boolean results.
712         Use a vector mask type instead of a normal vector if
713         vect_use_mask_type_p.
714         (vect_get_mask_type_for_stmt): Delete.
715         * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
716         mask_producers argument and special boolean_type_node handling.
717         (vect_determine_vf_for_stmt): Remove mask_producers argument and
718         update calls to vect_determine_vf_for_stmt_1.  Remove doubled call.
719         (vect_determine_vectorization_factor): Update call accordingly.
720         * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
721         boolean_type_node handling.
722         (vect_slp_analyze_node_operations_1): Likewise.
724 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
726         * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
727         (vect_use_mask_type_p): New function.
728         * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
729         mask precision to the pattern statement.
730         (append_pattern_def_seq): Add a scalar_type_for_mask parameter
731         and use it to initialize the new stmt's mask precision.
732         (search_type_for_mask_1): Delete.
733         (search_type_for_mask): Replace with...
734         (integer_type_for_mask): ...this new function.  Use the information
735         cached in the stmt_vec_info.
736         (vect_recog_bool_pattern): Update accordingly.
737         (build_mask_conversion): Pass the scalar type associated with the
738         mask type to append_pattern_def_seq.
739         (vect_recog_mask_conversion_pattern): Likewise.  Call
740         integer_type_for_mask instead of search_type_for_mask.
741         (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
742         of search_type_for_mask.
743         (possible_vector_mask_operation_p): New function.
744         (vect_determine_mask_precision): Likewise.
745         (vect_determine_stmt_precisions): Call it.
747 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
749         * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
750         the slp_tree parameter with a group size parameter.
751         (vect_get_mask_type_for_stmt): Likewise.
752         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
753         (vect_get_mask_type_for_stmt): Likewise.
754         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
755         call accordingly.
757 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
759         * tree-vect-stmts.c (vectorizable_operation): Punt early
760         on codes that are handled elsewhere.
762 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
764         * doc/sourcebuild.texi (vect_bool_cmp): Document.
765         * tree-vect-patterns.c (search_type_for_mask_1): If neither
766         operand to a boolean comparison is a natural vector mask,
767         handle both operands like normal integers instead.
769 2019-11-29  Richard Biener  <rguenther@suse.de>
771         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
772         out early for too large objects.
774 2019-11-29  Martin Jambor  <mjambor@suse.cz>
776         PR ipa/92476
777         * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
778         the summary only if the summary exists.
779         (find_more_scalar_values_for_callers_subset): Check node_dead in
780         the summary only if the summary exists.
781         (ipcp_store_bits_results): Ignore nodes without lattices.
782         (ipcp_store_vr_results): Likewise.
783         * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
784         header files required by them.
785         (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
787 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
789         PR tree-optimization/92710
790         * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
791         vector mask arguments.
793 2019-11-29  Jan Hubicka  <hubicka@ucw.cz>
795         * profile-count.c (profile_count::to_cgraph_frequency,
796         profile_count::to_sreal_scale): Check for compaibility of counts.
797         * profile-count.h (compatible_p): Make public; add checking for
798         global0 versus global types.
799         * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
801 2019-11-29  Richard Biener  <rguenther@suse.de>
803         PR tree-optimization/92715
804         * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
805         out for uniform vectors and source vectors with less elements
806         than the destination.
808 2019-11-29  Martin Liska  <mliska@suse.cz>
810         PR lto/91574
811         * ipa-devirt.c (types_same_for_odr): Check for existence
812         of TYPE_NAMEs first.
814 2019-11-29  Richard Biener  <rguenther@suse.de>
816         PR tree-optimization/92704
817         * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
818         in loops performing only loads.
820 2019-11-29  Julian Brown  <julian@codesourcery.com>
822         * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
823         BT_DFLOAT128_PTR) Remove.
824         * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
825         TI_DFLOAT128_PTR_TYPE): Remove.
826         * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
827         dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
828         * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
829         dfloat128_ptr_type_node): Remove macros.
831 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
833         * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
834         formatting.
835         (*movdi_internal64): Ditto.
837 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
839         PR target/92602
840         * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
841         indexed_or_indirect_operand to be memory_operand.
842         (bswap<mode>2_store for HSI): Ditto.
843         (bswapdi2_load): Ditto.
844         (bswapdi2_store): Ditto.
846 2019-11-28  Martin Liska  <mliska@suse.cz>
848         PR debug/46558
849         * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
850         headers for translation.
852 2019-11-28  Martin Liska  <mliska@suse.cz>
854         PR lto/92609
855         * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
856         consistently.
858 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
860         * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
861         checks.
863 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
865         * profile-count.c (profile_count::combine_with_ipa_count): Return
866         uninitialized count if called on ininitialized count.
868 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
870         * ipa-inline-transform.c (inline_transform): Scale profile before
871         redirecting.
873 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
875         * profile-count.h (profile_count::max): Work on profiles of different
876         type.
877         (profile_count::apply_scale): Be sure that ret is not local or global0
878         type if num is global.
880 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
882         * profile-count.h (profile_count::max): Work on profiles of different
883         type.
884         (profile_count::apply_scale): Be sure that ret is not local or global0
885         type if num is global.
887 2019-11-28  Martin Jambor  <mjambor@suse.cz>
889         PR ipa/92697
890         * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
891         ifunc_resolvers.
892         * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
893         Removed trailig whitespace.
895 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
897         * profile-count.h (profile_count::combine_with_ipa_count_within):
898         Declare.
899         * profile-count.c (profile_count::combine_with_ipa_count_within):
900         New.
901         * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
902         it.
904 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
906         * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
907         of counters are done same way.
909 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
911         * ipa-cp.c (update_profiling_info): Fix scaling.
913 2019-11-28  Richard Biener  <rguenther@suse.de>
915         PR tree-optimization/92645
916         * tree-inline.c (remap_gimple_stmt): When the return value
917         is not wanted, elide GIMPLE_RETURN.
919 2019-11-28  Richard Biener  <rguenther@suse.de>
921         PR tree-optimization/92645
922         * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
923         conversions inside a mode class.  Remove restriction on
924         preserving the element size.
925         (simplify_vector_constructor): Deal with the above and for
926         identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
927         and VEC_PACK_TRUNC_EXPR.
929 2019-11-28  Georg-Johann Lay  <avr@gjlay.de>
931         Must use push insn to pass varargs arguments of DFmode because
932         otherwise the middle-end generates wrong code.
934         PR target/92055
935         * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
937 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
939         PR tree-optimization/92691
940         * tree-ssa-strlen.c (handle_store): Clarify return value meaning
941         in function comment.
942         (strlen_check_and_optimize_call): Likewise.  For handle_printf_call
943         calls, return !handle_printf_call rather than always returning true.
944         (check_and_optimize_stmt): Describe return value meaning in function
945         comment.  Formatting fix.
947 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
949         * profile-count.c (profile_count::to_sreal_scale): Handle correctly
950         combination of globa0 and global counters..
952 2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>
954         PR target/92566
955         * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
956         by VECTOR_UNIT_NONE_P instead.
958 2019-11-28  Hongtao Liu  <hongtao.liu@inte.com>
960         * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
961         Refine VF to VF_AVX512VL.
963 2019-11-27  Michael Meissner  <meissner@linux.ibm.com>
965         * config/rs6000/rs6000.md (movsi_internal): Reformat.
966         (movdi_internal64): Reformat.
968 2019-11-27  Peter Bergner <bergner@linux.ibm.com>
970         PR bootstrap/92661
971         * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
972         builtin if we don't have an actual type.
973         (builtin_function_type): If the builtin function uses a DFP type
974         and decimal float has been disabled, then return NULL_TREE.
976 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
978         PR rtl-optimization/92510
979         * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
980         of comparison into a comparison with different mode if both imode and
981         omode are scalar integral modes.
983 2019-11-27  Vladimir Makarov  <vmakarov@redhat.com>
985         PR rtl-optimization/90007
986         * recog.c (constrain_operands): Permit hard registers too for
987         memory when LRA is used.
989 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
991         * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
992         between Coldfire and regular m68k.
993         * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
995 2019-11-27  Richard Biener  <rguenther@suse.de>
997         * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
998         * targhooks.c (default_builtin_vectorized_conversion): Likewise.
999         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1000         * optabs-tree.c (supportable_convert_operation): Do not call
1001         targetm.vectorize.builtin_conversion.  Remove unused decl parameter.
1002         * optabs-tree.h (supportable_convert_operation): Adjust.
1003         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1004         * doc/tm.texi: Regenerate.
1005         * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1006         * tree-vect-generic.c (expand_vector_conversion): Likewise.
1007         * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1008         unused decl parameter and adjust.
1009         (vect_create_vectorized_promotion_stmts): Likewise.
1010         (vectorizable_conversion): Adjust.
1012 2019-11-27  Richard Biener  <rguenther@suse.de>
1014         PR tree-optimization/92690
1015         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1016         converting elements not originally converted.
1018 2019-11-27  Tobias Burnus  <tobias@codesourcery.com>
1020         PR middle-end/92463
1021         * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1022         do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1023         mpfr_rnd_t instead of mp_rnd_t.
1024         * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1025         do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1026         * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1027         Use mpfr_exp_t instead of mp_exp_t.
1028         * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1029         MPFR_RNDx instead of GMP_RNDx.
1030         * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1031         mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1032         * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1033         of mp_rnd_t and remove MPFR_RNDx poisoning.
1034         * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1036 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
1038         PR tree-optimization/91790
1039         * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
1040         DR for vect_setup_realignment when first_stmt_info is different
1041         from first_stmt_info_for_drptr.
1043 2019-11-27  Richard Biener  <rguenther@suse.de>
1045         PR tree-optimization/92645
1046         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1047         CTORs with just a subset of the original vectors.
1049 2019-11-27  Richard Biener  <rguenther@suse.de>
1051         PR middle-end/92674
1052         * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1053         edges and instead record blocks in bitmap.
1054         (gimple_expand_calls_inline): Adjust.
1055         (fold_marked_statements): Delay EH cleanup until all folding is
1056         done.
1057         (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1058         inlining finished.
1060 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
1062         * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1063         LRA is enabled.
1064         * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1065         disabled.
1067 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
1069         PR debug/92664
1070         * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1072 2019-11-26  Martin Sebor  <msebor@redhat.com>
1074         PR tree-optimization/92683
1075         * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1076         inadvertently removed in a previous change.  Rename local variable
1077         for clarity.
1079 2019-11-26  Richard Biener  <rguenther@suse.de>
1081         PR middle-end/92669
1082         * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1083         NULL pre_order.
1085 2019-11-26  Robin Dapp  <rdapp@linux.ibm.com>
1087         * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1089 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
1091         PR tree-optimization/92644
1092         * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1093         next to INTEGER_CST checks.
1095 2019-11-26  Richard Biener  <rguenther@suse.de>
1097         PR tree-optimization/92645
1098         * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1099         do not build the operation from scalars if the operand is.
1101 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
1103         * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1104         func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1105         definitions.
1107 2019-11-25  Martin Liska  <mliska@suse.cz>
1109         * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1110         up used dump message.
1112 2019-11-25  Martin Liska  <mliska@suse.cz>
1114         PR bootstrap/92653
1115         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1116         too strict checking assert.
1118 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1120         PR c/91985
1121         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1122         (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1123         error_mark_node if corresponding global tree node is NULL.
1124         * tree.c (build_common_tree_nodes): Do not initialize
1125         dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1126         decimal floating-point not supported.
1128 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1130         * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1131         types.
1133 2019-11-25  Bernd Schmidt  <bernds_cb1@t-online.de>
1135         * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1136         Replace code for non-CONST_INT constants with gcc_unreachable.
1137         * config/m68k/m68k.md (cbranchdi): Don't generate individual
1138         compare and test.
1139         (CMPMODE): New mode_iterator.
1140         (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1141         cbranch<mode>4.
1142         (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1143         cstore<mode>4.
1144         (cmp<mode>_68881): Remove 'F' constraint from first comparison
1145         operand.
1146         (bit test insns patterns): Use nonimmediate_operand, not
1147         register_operand, for source operands that allow memory in
1148         their constraints.
1149         (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1150         Use register_operand, not nonimmediate_operand, for the
1151         destinations.
1152         (DBCC): New mode_iterator.
1153         (dbcc peepholes): Use it to reduce duplication.
1154         (trap): Use const_true_rtx, not const1_rtx.
1155         * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1156         from m68k_subword_comparison_operand and changed to handle
1157         SImode.
1159         PR target/91851
1160         * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1161         declaration.
1162         (m68k_init_cc): New declaration.
1163         (m68k_output_compare_di, m68k_output_compare_si)
1164         (m68k_output_compare_hi, m68k_output_compare_qi)
1165         (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1166         (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1167         (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1168         m68k_output_branch_float, m68k_output_branch_float_rev):
1169         Likewise.
1170         (valid_dbcc_comparison_p_2, flags_in_68881)
1171         (output_btst): Remove declaration.
1172         * config/m68k/m68k.c (INCLDUE_STRING): Define.
1173         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1174         (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1175         (flags_compare_op0, flags_compare_op1, flags_operand1,
1176         flags_operand2, flags_valid): New static variables.
1177         (m68k_find_flags_value, m68k_init_cc): New functions.
1178         (handle_flags_for_move, m68k_asm_final_postscan_insn,
1179         remember_compare_flags): New static functions.
1180         (output_dbcc_and_branch): New argument CODE.  Use it, and add
1181         PLUS and MINUS to the possible codes.  All callers changed.
1182         (m68k_output_btst): Renamed from output_btst.  Remove OPERANDS
1183         and INSN arguments, add CODE arg.  Return the comparison code
1184         to use.  All callers changed.  Use CODE instead of
1185         next_insn_tests_no_inequality, and replace cc_status management
1186         with changing the return code.
1187         (m68k_rtx_costs): Instead of testing for COMPARE, test for
1188         RTX_COMPARE or RTX_COMM_COMPARE.
1189         (output_move_simode, output_move_qimode): Call
1190         handle_flags_for_move.
1191         (notice_update_cc): Delete function.
1192         (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1193         m68k_output_compare_hi, m68k_output_compare_qi,
1194         m68k_output_compare_fp, m68k_output_branch_integer,
1195         m68k_output_branch_integer_rev, m68k_output_scc,
1196         m68k_output_branch_float, m68k_output_branch_float_rev,
1197         m68k_output_scc_float): New functions.
1198         (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1199         once at the start, and set flags_valid and flags_operand1 if the
1200         flags are usable.
1201         * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1202         CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1203         definitions.
1204         (CC_STATUS_INIT): Define.
1205         * config/m68k/m68k.md (flags_valid): New define_attr.
1206         (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1207         tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1208         cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1209         cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1210         tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1211         sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1212         sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1213         bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1214         ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1215         bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1216         blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1217         bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1218         bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1219         ctrapqi4, conditional_trap): Delete patterns.
1220         (cbranchdi4_insn): New pattern.
1221         (cbranchdi4): Don't generate cc0 patterns.  When testing LT or GE,
1222         test high part only.  When testing EQ or NE, generate beq0_di
1223         and bne0_di patterns directly.
1224         (cstoredi4): When testing LT or GE, test high part only.
1225         (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1226         patterns.
1227         (scc0_constraints, cmp1_constraints, cmp2_constraints,
1228         scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1229         cmp2_cf_predicate): New define_mode_attrs.
1230         (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1231         cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1232         cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1233         New patterns.
1234         (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1235         (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1236         cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1237         New patterns.
1238         (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1239         cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1240         Likewise.
1241         (BTST): New define_mode_iterator.
1242         (btst_predicate, btst_constraint, btst_range): New
1243         define_mode_attrs.
1244         (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1245         patterns.
1246         (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1247         unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1248         patterns): Set attr "flags_valid".
1249         (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1250         management.  Set attr "flags_valid".
1251         (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1252         extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1253         addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1254         addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1255         manual CC_STATUS management.
1256         (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1257         unnamed strict_lowpart subhi and subqi patterns): Set attr
1258         "flags_valid".
1259         (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1260         Remove code to operate on address regs and assert the case
1261         does not occur.
1262         (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1263         manual CC_STATUS_INIT.
1264         (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1265         xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1266         negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1267         one_cmplqi2, unnamed strict_lowpart patterns
1268         for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1269         one_cmplhi and one_cmplqi): Set attr "flags_valid".
1270         (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1271         (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1272         CC_STATUS_INIT.
1273         (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1274         lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1275         rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1276         unnamed strict_low_part patterns for HI and
1277         QI versions): Set attr "flags_valid".
1278         (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1279         bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1280         insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1281         insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1282         dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1283         (various unnamed peepholes): Adjust compare/branch sequences
1284         for new cbranch patterns.
1285         (dbcc peepholes): Likewise, and output the comparison here
1286         as well.
1287         * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1288         (fp_src_operand): Allow constant zero.
1289         (address_reg_operand): New predicate.
1291         * rtl.h (inequality_comparisons_p): Remove declaration.
1292         * recog.h (next_insn_tests_no_inequality): Likewise.
1293         * rtlanal.c (inequality_comparisons_p): Delete function.
1294         * recog.c (next_insn_tests_no_inequality): Likewise.
1296 2019-11-25  Richard Biener  <rguenther@suse.de>
1298         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1299         (vect_detect_hybrid_slp): Swap lane and instance iteration,
1300         properly re-building the visited hash-map for each lane.
1302 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
1304         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1305         gcn_md_reorg): Remove unused variables.
1306         (gcn_emutls_var_init): Add missing (but unreachable) return
1307         to silence warning.
1308         (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1309         target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1310         an uninitialized variable.
1312 2019-11-25  Martin Jambor  <mjambor@suse.cz>
1314         PR ipa/92109
1315         * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1316         * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1317         (cgraph_materialize_clone): Move removel from clone tree to the
1318         the new method and use it instead.
1319         * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1320         bodies of clones, also remove it from the clone tree.
1322 2019-11-25  Martin Jambor  <mjambor@suse.cz>
1324         PR ipa/91956
1325         * ipa-sra.c (process_isra_node_results): Put the new node to the
1326         same comdat group as the original node.
1328 2019-11-25  Georg-Johann Lay  <avr@gjlay.de>
1330         Build double32 / long-double32 multilibs if needed.
1332         PR target/92055
1333         * config/avr/t-avr:
1334         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1335         (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1336         (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1337         tm_defines and pass to genmultilib.awk.
1338         * config/avr/genmultilib.awk: Use these variables to add double32
1339         and / or long-double32 multilib(s) as needed.
1340         * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1342 2019-11-25  Richard Biener  <rguenther@suse.de>
1344         * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1345         loop body, defaulted to NULL.
1346         (single_likely_exit): Add exit vector argument
1347         * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1348         (number_of_iterations_exit): Likewise.
1349         (number_of_iterations_exit_assumptions): Likewise.
1350         * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1351         if not NULL.
1352         * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1353         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1354         Compute exit vector around call to single_likely_exit.
1355         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1356         loop body to loop_only_exit_p.
1357         * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1358         caller.
1359         (number_of_iterations_exit_assumptions): Get loop body from caller
1360         if not NULL.
1361         (number_of_iterations_exit): Pass through new loop body arg.
1362         (infer_loop_bounds_from_undefined): Get loop body from caller.
1363         (estimate_numbers_of_iterations): Compute loop body once.
1365 2019-11-25  Richard Biener  <rguenther@suse.de>
1367         * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1368         auto_bb_flag instead of an sbitmap for visited handling.
1370 2019-11-25 Kewen Lin  <linkw@gcc.gnu.org>
1372         * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1373         iterator.
1374         (vector_fp_comparison_complex): Likewise.
1375         (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1376         define_and_split.
1377         (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1378         Likewise.
1379         (vector_lt<mode> for VEC_F): Refactor with
1380         vector_fp_comparison_simple.
1381         (vector_le<mode> for VEC_F): Likewise.
1382         (vector_unge<mode> for VEC_F): Likewise.
1383         (vector_unle<mode> for VEC_F): Likewise.
1384         (vector_ne<mode> for VEC_F): Likewise.
1385         (vector_ungt<mode> for VEC_F): Likewise.
1386         (vector_unlt<mode> for VEC_F): Likewise.
1387         (vector_ltgt<mode> for VEC_F): Refactor with
1388         vector_fp_comparison_complex.
1389         (vector_ordered<mode> for VEC_F): Likewise.
1390         (vector_uneq<mode> for VEC_F): Likewise.
1391         (vector_unordered<mode> for VEC_F): Likewise.
1393 2019-11-24  Bernd Schmidt  <bernds_cb1@t-online.de>
1395         * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1396         COMPARE, representing an overflow detection.
1398         * combine.c (combine_instructions): Record costs for jumps.
1400         * combine.c (can_combine_p): Allow autoinc in jumps.
1402 2019-11-23  Jan Hubicka  <hubicka@ucw.cz>
1404         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1405         * doc/invoke.texi (max-inline-insns-single-O2,
1406         inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1407         early-inlining-insns-O2): Remove documentation.
1408         * ipa-fnsummary.c (analyze_function_body,
1409         compute_fn_summary): Use opt_for_fn when accessing parameters.
1410         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1411         inline_insns_auto, can_inline_edge_by_limits_p,
1412         want_early_inline_function_p, big_speedup_p,
1413         want_inline_small_function_p, want_inline_self_recursive_call_p,
1414         recursive_inlining, compute_max_insns, inline_small_functions):
1415         Likewise.
1416         * opts.c (default_options): Add -O3 defaults for
1417         OPT__param_early_inlining_insns_,
1418         OPT__param_inline_heuristics_hint_percent_,
1419         OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1420         * params.opt (-param=early-inlining-insns-O2=,
1421         -param=inline-heuristics-hint-percent-O2=,
1422         -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1423         -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1424         -param=inline-min-speedup=, -param=inline-unit-growth=,
1425         -param=large-function-growth=, -param=large-stack-frame=,
1426         -param=large-stack-frame-growth=, -param=large-unit-insns=,
1427         -param=max-inline-insns-recursive=,
1428         -param=max-inline-insns-recursive-auto=,
1429         -param=max-inline-insns-single=,
1430         -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1431         -param=max-inline-recursive-depth=,
1432         -param=max-inline-recursive-depth-auto=,
1433         -param=min-inline-recursive-probability=,
1434         -param=partial-inlining-entry-probability=,
1435         -param=uninlined-function-insns=, -param=uninlined-function-time=,
1436         -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1437         Optimization.
1439 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
1441         * ipa-fnsummary.c: Fix comment typos.
1442         * ipa-ref.h: Likewise.
1443         * ipa-predicate.h: Likewise.
1444         * ipa-split.c: Likewise.
1445         * ipa-inline-analysis.c: Likewise.
1446         * ipa-predicate.c: Likewise.
1447         * ipa-devirt.c: Likewise.
1448         * ipa-icf.h: Likewise.
1449         * profile-count.c: Likewise.
1450         * ipa-icf.c: Likewise.
1451         (sem_function::equals_wpa): Fix typos in dump messages.
1452         * ipa-icf-gimple.h: Fix comment typos.
1453         * ipa-inline-transform.c: Likewise.
1454         * ipa-polymorphic-call.c: Likewise.
1455         * ipa-fnsummary.h: Likewise.
1456         * ipa-inline.c: Likewise.
1457         (dump_inline_stats): Fix typo in debug dump message.
1458         * profile-count.h: Fix comment typos.
1460         PR target/92615
1461         * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1462         GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1463         register_operand, force x into register before storing it into dest.
1464         Formatting fix.
1466         PR middle-end/83859
1467         * doc/extend.texi (attribute access): Fix a typo.
1469         PR rtl-optimization/92610
1470         * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1471         cse_cfg_altered is set, even when tem is 0.
1472         (rest_of_handle_cse_after_global_opts): Likewise.
1474 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
1476         PR c++/92458
1477         * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1478         tree_hash): Move to ...
1479         * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1480         (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1481         types.
1482         (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1484         PR tree-optimization/92618
1485         * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1486         containing the auto_vec and a tree.
1487         (undistribute_bitref_for_vector): Handle the case when element type
1488         of vec is not the same as type of the BIT_FIELD_REF.  Formatting
1489         fixes.
1491 2019-11-22  Martin Sebor  <msebor@redhat.com>
1493         PR middle-end/83859
1494         * attribs.h (struct attr_access): New.
1495         * attribs.c (decl_attributes): Add an informational note.
1496         * builtins.c (check_access): Make extern.  Consistently set no-warning
1497         after issuing a warning.  Handle calls through function pointers.  Set
1498         no-warning.
1499         * builtins.h (check_access): Declare.
1500         * calls.c (rdwr_access_hash): New type.
1501         (rdwr_map): Same.
1502         (init_attr_rdwr_indices): New function.
1503         (maybe_warn_rdwr_sizes): Same.
1504         (initialize_argument_information): Call init_attr_rdwr_indices.
1505         Call maybe_warn_rdwr_sizes.
1506         (get_size_range): Avoid null argument.
1507         * doc/extend.texi (attribute access): Document new attribute.
1509 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
1511         * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1512         (ACC_LDS_SIZE): Define.
1513         (OTHER_LDS_SIZE): Define.
1514         (LDS_SIZE): Redefine using above.
1515         (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1517 2019-11-22  Martin Sebor  <msebor@redhat.com>
1519         PR middle-end/88226
1520         * builtins.c (check_nul_terminated_array): New function.
1521         (fold_builtin_0): Remove declaration.
1522         (fold_builtin_1): Same.
1523         (fold_builtin_2): Same.
1524         (fold_builtin_3): Same.
1525         (fold_builtin_strpbrk): Add argument.
1526         (fold_builtin_strspn): Same.
1527         (fold_builtin_strcspn): Same.
1528         (expand_builtin_strcat): Call it.  Remove unused argument.
1529         (expand_builtin_stpncpy): Same.
1530         (expand_builtin_strncat): Same.
1531         (expand_builtin_strncpy): Same.  Adjust indentation.
1532         (expand_builtin_strcmp): Same.
1533         (expand_builtin_strncmp): Same.
1534         (expand_builtin_fork_or_exec): Same.
1535         (expand_builtin): Handle more built-ins.
1536         (fold_builtin_2): Add argument.
1537         (fold_builtin_n): Make static.  Add argument.
1538         (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1539         (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1540         (fold_builtin_strpbrk): Add argument.  Call check_nul_terminated_array.
1541         (fold_call_stmt): Pass new argument to fold_builtin_n.
1542         * builtins.h: Correct a comment.
1543         * gimple-fold.c (gimple_fold_builtin_strchr): Call
1544         check_nul_terminated_array.
1545         * tree-ssa-strlen.c (handle_builtin_strlen): Call
1546         check_nul_terminated_array.
1547         (handle_builtin_strchr): Same.
1548         (handle_builtin_string_cmp): Same.
1550 2019-11-22  Martin Sebor  <msebor@redhat.com>
1552         PR tree-optimization/92501
1553         * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1554         handle unterminated arrays.  Rename local variables for clarity.
1556 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
1558         * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1559         granulated_sgprs according to architecture.
1561 2019-11-22  Jan Hubicka  <jh@suse.cz>
1563         * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1564         * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1565         (memory_block_pool::reduce_free_list): ... this one.
1566         (memory_block_pool::trim): New static function.
1567         * memory-block.h (memory_block_pool::freelist_size): New constant
1568         (memory_block_pool::clear_free_list): Rename to ...
1569         (memory_block_pool::reduce_free_list): ... this one.
1570         (memory_block_pool::trim): Declare.
1572 2019-11-22  Richard Sandiford  <richard.sandiford@arm.com>
1574         * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1575         vect_cost_for_stmt.
1576         (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1577         here rather than...
1578         * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1580 2019-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
1582         * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1583         (bic_cmp0_noout): New pattern.
1584         (bic_cmp0): Likewise.
1585         (neg_scc_insn): Remove pattern.
1586         (not_scc_insn): Likewise.
1588 2019-11-21  Harald van Dijk  <harald@gigawatt.nl>
1590         * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1592 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
1594         * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1595         pedwarn instead of warning_at for fallthrough not preceding a case
1596         or default label.
1598 2019-11-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1600         PR tree-optimization/92608
1601         * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1602         of dyn_cast.
1604 2019-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
1606         * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1607         New predicate.
1608         * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1609         * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1610         special for FP comparisons that need a cror instruction eventually.
1611         (rs6000_emit_fp_cror): New function.
1612         (rs6000_emit_sCOND): Expand all floating point comparisons to one
1613         instruction, for normal FP modes, with HONOR_NANS.
1614         (rs6000_emit_cbranch): Reformat.
1615         * config/rs6000/rs6000.md (fp_rev): New iterator.
1616         (fp_two): New iterator.
1617         *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1618         *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1619         *cbranch_2insn: New define_insn_and_split.
1621 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
1623         PR tree-optimization/92526
1624         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1625         versioning for alignment if the accesses do not have a consistent
1626         mask, rather than asserting that the masks are consistent.
1628 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
1630         PR tree-optimization/92595
1631         * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1632         check.
1633         (vectorizable_store, vectorizable_load): Likewise.
1635 2019-11-21  Jan Hubicka  <jh@suse.cz>
1637         * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1638         (resolve_noninline_speculation, inline_small_functions): Avoid
1639         redundant updates.
1641 2019-11-21  Richard Biener  <rguenther@suse.de>
1643         * lra.c (lra_insn_recog_data_pool): New.
1644         (free_insn_recog_data): Adjust.
1645         (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1646         (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1648 2019-11-21  Richard Biener  <rguenther@suse.de>
1650         PR tree-optimization/92596
1651         * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1653 2019-11-21  Jan Hubicka  <jh@suse.cz>
1655         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1656         ready for some vectors to not be allocated.
1657         (evaluate_properties_for_edge): Document better; make
1658         known_vals and known_aggs caller allocated; avoid determining
1659         values of parameters which are not used.
1660         (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1661         known_aggs.
1662         * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1663         (do_estimate_edge_size): Likewise.
1664         (do_estimate_edge_hints): Likewise.
1665         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1666         values are not known.
1667         (ipa_release_agg_values): Add option to not release vector itself.
1668         * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1670 2019-11-21  Richard Biener  <rguenther@suse.de>
1672         * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1673         (loop_iterator::to_visit): Use an auto_vec with internal storage.
1674         (loop_iterator::loop_iterator): Adjust.
1675         * cfganal.c (compute_dominance_frontiers_1): Fold into...
1676         (compute_dominance_frontiers): ... this.  Hoist invariant
1677         get_immediate_dominator call.
1678         (compute_idf): Use a work-set instead of a work-list for more
1679         optimal iteration order and duplicate avoidance.
1680         * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1681         the vector all the time, instead pre-allocate the vector only
1682         once.
1683         (delete_update_ssa): Simplify.
1684         * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1686 2019-11-21  Jakub Jelinek  <jakub@redhat.com>
1688         PR tree-optimization/91355
1689         * tree-ssa-sink.c (select_best_block): Use >= rather than >
1690         for early_bb scaled count with best_bb count comparison.
1692         * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1693         preffer -> prefer.
1694         * ipa-inline.c (edge_badness): Likewise.
1695         * lto-streamer.h (class lto_location_cache): Likewise.
1696         * tree-ssa-sink.c (select_best_block): Likewise.  Fix comment typos,
1697         gratutious -> gratuitous.
1699 2019-11-21  Richard Biener  <rguenther@suse.de>
1701         Revert
1702         2019-09-17  Richard Biener  <rguenther@suse.de>
1704         PR tree-optimization/91790
1705         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1706         use the correct DR for setting up realignment.
1708 2019-11-21  Richard Biener  <rguenther@suse.de>
1710         * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1711         (equiv_class_obstack): New.
1712         (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1713         (perform_var_substitution): Initialize equiv_class_obstack.
1714         (free_var_substitution_info): Free equiv_class_obstack.
1716 2019-11-20  Jan Hubicka  <jh@suse.cz>
1718         * ipa-inline.c (want_early_inline_function_p): Do not estimate
1719         edge growth when callee function is very large.
1720         * ipa-inline.h (estimate_min_edge_growth): New.
1722 2019-11-20  Jan Hubicka  <jh@suse.cz>
1724         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1725         negative time in calls summary; correct roundoff errors
1726         leading to negative times.
1727         (ipa_merge_fn_summary_after_inlining): Update calls size time table
1728         if present.
1729         (ipa_update_overall_fn_summary): Add RESET parameter.
1730         * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1731         * ipa-inline-transform.c (inline_call): Enable incremental updates.
1733 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
1735         * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1736         def types for two-operation SLP.
1738 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
1740         PR testsuite/92366
1741         * doc/sourcebuild.texi (vect_char_add): Document.
1743 2019-11-20  Alexandre Oliva <oliva@adacore.com>
1745         * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1746         * function.c (record_final_call): Record even calls that might
1747         have been in the cgraph.
1748         * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1749         callees.
1751 2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>
1753         * configure.ac: Use https for gcc.gnu.org
1754         * configure: Regenerated.
1755         * doc/install.texi: Use https for gcc.gnu.org.
1756         * doc/sourcebuild.texi: Likewise.
1758 2019-11-20  Julian Brown  <julian@codesourcery.com>
1760         * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1762 2019-11-20  Jan Hubicka  <jh@suse.cz>
1764         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1765         parameter and update call_size_time_table.
1766         (ipa_fn_summary::max_size_time_table_size): New constant.
1767         (estimate_calls_size_and_time_1): Break out from ...
1768         (estimate_calls_size_and_time): ... here; implement summary production.
1769         (summarize_calls_size_and_time): New function.
1770         (ipa_call_context::estimate_size_and_time): Bypass
1771         estimate_calls_size_and_time for leaf functions.
1772         (ipa_update_overall_fn_summary): Likewise.
1773         * ipa-fnsummary.h (call_size_time_table): New.
1774         (ipa_fn_summary::account_size_time): Update prototype.
1776 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
1778         * doc/invoke.texi (-Wc11-c2x-compat): Document.
1780 2019-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
1782         PR85678
1783         * common.opt (fcommon): Change init to 1.
1784         * doc/invoke.texi (-fcommon): Update documentation.
1786 2019-11-20  Jan Hubicka  <jh@suse.cz>
1788         * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1789         to ordinary array.
1791 2019-11-20  Jan Hubicka  <jh@suse.cz>
1793         * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1794         Add allocator parameter.
1795         (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1796         (fibonacci_heap<K,V>::m_allocator): New.
1797         (fibonacci_heap<K,V>::m_own_allocator): New.
1798         (fibonacci_heap<K,V>::insert): Use allocator.
1799         (fibonacci_heap<K,V>::extract_min): Likewise.
1800         (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1801         allocator.
1802         (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1803         on stack.
1804         * fibonacci_heap.c: Include alloc-pool
1805         (test_empty_heap): Initialize allocator.
1806         (test_union): Likewise.
1807         * bb-reorder.c: Include alloc-pool.h.
1808         * tracer.c: Inlclude alloc-pool.h.
1810 2019-11-20  Jan Hubicka  <jh@suse.cz>
1812         * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1813         Preallocate for 32 entries.
1814         (DFS::worklist): Likewise.
1815         (DFS::DFS): Do not initialize sccstack and worklist.
1816         (DFS::~DFS): Do not release sccstack.
1818 2019-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
1820         PR target/92573
1821         * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1822         Handle UNORDERED if !HONOR_NANS.
1824 2019-11-20  Jan Hubicka  <jh@suse.cz>
1826         * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1827         (edge_badness): ... here.
1828         (inline_small_functions): Use monotonicity of badness calculation
1829         to avoid redundant updates.
1831 2019-11-20  Richard Biener  <rguenther@suse.de>
1833         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1834         constructors we are actually analyzing.
1835         (vect_slp_check_for_constructors): Do not vectorize uniform
1836         constuctors, do not dump here.
1838 2019-11-20  Richard Biener  <rguenther@suse.de>
1840         PR tree-optimization/92537
1841         * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1842         vectorization validity check...
1843         (vect_slp_analyze_operations): ... here.
1845 2019-11-20  Claudiu Zissulescu  <claziss@synopsys.com>
1847         * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1848         (make_pass_arc_predicate_delay_insns): Likewise.
1849         * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1850         method, remove clone.
1851         (class pass_arc_predicate_delay_insns): Likewise.
1852         (arc_init): Remove registering of ARC specific passes.
1853         * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1854         * config/arc/arc-passes.def: New file.
1856 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
1858         PR middle-end/90840
1859         * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1860         and has a mode that doesn't have corresponding integral type.
1862         PR target/90867
1863         * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1864         clear opts->x_ix86_isa_flags{,2} here...
1865         (ix86_valid_target_attribute_inner_p): ... but here when seeing
1866         arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.
1868         PR c/90898
1869         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1870         assertion.
1871         (insert_clobbers_for_var): Fix a typo in function comment.
1873 2019-11-20  Jiangning Liu  <jiangning.liu@amperecomputing.com>
1874             Jakub Jelinek  <jakub@redhat.com>
1876         PR middle-end/91195
1877         * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1878         earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
1879         load.
1881 2019-11-20  Georg-Johann Lay  <avr@gjlay.de>
1883         Make 0-series device specs work with older versions of avr-gcc.
1885         PR target/92545
1886         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1887         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1888         <*link_pm_base_address>: Don't write spec.
1889         <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1891 2019-11-20  Richard Biener  <rguenther@suse.de>
1893         PR c/92088
1894         * builtins.c (compute_objsize): Deal with VLAs.
1896 2019-11-19  Pat Haugen  <pthaugen@us.ibm.com>
1898         * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1899         from common code.
1900         (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1901         call new function.
1902         (power9_sched_reorder2): Call new function.
1903         (rs6000_sched_reorder2): Likewise.
1905 2019-11-18  Jan Hubicka  <jh@suse.cz>
1907         * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1908         (estimate_calls_size_and_time): Update.
1910 2019-11-18  Jan Hubicka  <jh@suse.cz>
1912         * ipa-inline.c (inlining_speedup): New function.
1913         (edge_badness): Use it.
1915 2019-11-19  Zoran Jovanovic <zoran.jovanovic@mips.com>
1916                         Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
1918         * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1919         Mark as not having "likely" version.
1920         * config/mips/mips.md (insn_count): The simd_div instruction with
1921         TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1922         (can_delay): Exclude simd_branch.
1923         (defile_delay *): Add simd_branch instructions.
1924         They have one regular delay slot.
1926 2019-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1928         Revert:
1929         2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1931         * cse.c (cse_insn): Delete no-op register moves too.
1932         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1933         Take a second comparison to control the value for NE.
1934         (mask_to_comparison): Handle unsigned comparisons.
1935         (simplify_logical_relational_operation): Likewise.  Update call
1936         to comparison_to_mask.  Handle AND if !HONOR_NANs.
1937         (simplify_binary_operation_1): Call the above for AND too.
1939 2019-11-19  Martin Liska  <mliska@suse.cz>
1941         * toplev.c (general_init): Move the call...
1942         (toplev::main): ... here as we need init_options_struct
1943         being called.
1945 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1947         PR target/79262
1948         * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1949         vec_to_scalar_cost.
1951 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1953         * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1954         (armv7-a): Likewise.
1955         (armv7ve): Likewise.
1957 2019-11-19  Richard Biener  <rguenther@suse.de>
1959         PR tree-optimization/92581
1960         * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1961         condition reduction chains gather all conditions involved
1962         for computing the index reduction vector.
1964 2019-11-19  Dennis Zhang  <dennis.zhang@arm.com>
1966         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1967         AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1968         AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1969         AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1970         AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1971         (aarch64_init_memtag_builtins): New.
1972         (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1973         (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1974         (aarch64_expand_builtin_memtag): New.
1975         (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1976         (AARCH64_BUILTIN_SUBCODE): New macro.
1977         (aarch64_resolve_overloaded_memtag): New.
1978         (aarch64_resolve_overloaded_builtin_general): New. Call
1979         aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1980         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1981         __ARM_FEATURE_MEMORY_TAGGING when enabled.
1982         (aarch64_resolve_overloaded_builtin): Call
1983         aarch64_resolve_overloaded_builtin_general.
1984         * config/aarch64/aarch64-protos.h
1985         (aarch64_resolve_overloaded_builtin_general): New declaration.
1986         * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1987         (TARGET_MEMTAG): Likewise.
1988         * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1989         (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1990         (irg, gmi, subp, addg, ldg, stg): New instructions.
1991         * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1992         (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1993         (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1994         (__arm_mte_get_tag): Likewise.
1995         * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1996         (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1997         * config/arm/types.md (memtag): New.
1998         * doc/invoke.texi (-memtag): Update description.
2000 2019-11-19  Richard Henderson  <richard.henderson@linaro.org>
2002         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2003         to define __GCC_ASM_FLAG_OUTPUTS__.
2004         * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2005         (arm_option_params_internal): Swap out targetm.md_asm_adjust
2006         depending on TARGET_THUMB1.
2007         * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2009 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2011         PR target/92549
2012         * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2014         PR middle-end/91450
2015         * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2016         operand is negative and one non-negative, compare the non-negative
2017         one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
2018         don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2019         and s2 == 0, unless one of them is known to be negative.  Remove
2020         tem2 variable, use tem where tem2 has been used before.
2022 2019-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2024         * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2026 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2028         PR tree-optimization/92557
2029         * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2030         vmode rather than asserting it always is.
2032 2019-11-19  Richard Biener  <rguenther@suse.de>
2034         PR tree-optimization/92554
2035         * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2036         for the actual condition stmt and deal with sign-changes.
2038 2019-11-19  Richard Biener  <rguenther@suse.de>
2040         PR tree-optimization/92555
2041         * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2042         for non-SLP stmts.
2044 2019-11-19  Martin Liska  <mliska@suse.cz>
2046         PR bootstrap/92540
2047         * config/riscv/riscv.c (riscv_address_insns): Initialize
2048         addr in order to remove boostrap -Wmaybe-uninitialized
2049         error.
2051 2019-11-18  Martin Sebor  <msebor@redhat.com>
2053         PR tree-optimization/92493
2054         * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2055         assignment.
2057 2019-11-18  Giuliano Belinassi  <giuliano.belinassi@usp.br>
2059         * cfgloop.c (get_loop_body_in_custom_order): New.
2060         * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2061         * tree-loop-distribution.c (class loop_distribution): New.
2062         (bb_top_order_cmp): Remove.
2063         (bb_top_order_cmp_r): New.
2064         (create_rdg_vertices): Move into class loop_distribution.
2065         (stmts_from_loop): Same as above.
2066         (update_for_merge): Same as above.
2067         (partition_merge_into): Same as above.
2068         (get_data_dependence): Same as above.
2069         (data_dep_in_cycle_p): Same as above.
2070         (update_type_for_merge): Same as above.
2071         (build_rdg_partition_for-vertex): Same as above.
2072         (classify_builtin_ldst): Same as above.
2073         (classify_partition): Same as above.
2074         (share_memory_accesses): Same as above.
2075         (rdg_build_partitions): Same as above.
2076         (pg_add_dependence_edges): Same as above.
2077         (build_partition_graph): Same as above.
2078         (merge_dep_scc_partitions): Same as above.
2079         (break_alias_scc_partitions): Same as above.
2080         (finalize_partitions): Same as above.
2081         (distribute_loop): Same as above.
2082         (bb_top_order_init): New method
2083         (bb_top_order_destroy): New method.
2084         (get_bb_top_order_index_size): New method.
2085         (get_bb_top_order_index_index): New method.
2086         (get_bb_top_order_index_index): New method.
2087         (loop_distribution::execute): New method.
2088         (pass_loop_distribution::execute): Instantiate loop_distribution.
2090 2019-11-18  Jan Hubicka  <jh@suse.cz>
2092         PR ipa/92508
2093         * ipa-inline.c (inline_small_functions): Add new edges after reseting
2094         caches.
2095         * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2097 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2099         * doc/sourcebuild.texi (vect_check_ptrs): Document.
2100         * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2101         * doc/md.texi: Document them.
2102         * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2103         internal functions.
2104         * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2105         * internal-fn.c (check_ptrs_direct): New macro.
2106         (expand_check_ptrs_optab_fn): Likewise.
2107         (direct_check_ptrs_optab_supported_p): Likewise.
2108         (internal_check_ptrs_fn_supported_p): New fuction.
2109         * tree-data-ref.c: Include internal-fn.h.
2110         (create_ifn_alias_checks): New function.
2111         (create_intersect_range_checks): Use it.
2112         * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2113         (optab, cmp_op): Handle it.
2114         (raw_war, unspec): New int attributes.
2115         * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2116         constants.
2117         * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2118         New predicate.
2119         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2120         expander.
2121         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2122         pattern.
2124 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2126         * tree.c (build_vector_from_ctor): Directly return a zero vector for
2127         empty constructors.
2129 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2131         * cse.c (cse_insn): Delete no-op register moves too.
2132         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2133         Take a second comparison to control the value for NE.
2134         (mask_to_comparison): Handle unsigned comparisons.
2135         (simplify_logical_relational_operation): Likewise.  Update call
2136         to comparison_to_mask.  Handle AND if !HONOR_NANs.
2137         (simplify_binary_operation_1): Call the above for AND too.
2139 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2141         * fold-const.c (native_encode_vector): Turn into a wrapper function,
2142         splitting the main code out into...
2143         (native_encode_vector_part): ...this new function.
2144         (native_decode_vector_tree): New function.
2145         (fold_view_convert_vector_encoding): Likewise.
2146         (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2147         to VECTOR_TYPEs.
2149 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2151         * tree-data-ref.c (create_intersect_range_checks_index): If the
2152         alias pair describes simple WAW and WAR dependencies, just check
2153         whether the first B access overlaps later A accesses.
2154         (create_waw_or_war_checks): New function that performs the same
2155         optimization on addresses.
2156         (create_intersect_range_checks): Call it.
2158 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2160         * lra-constraints.c (valid_address_p): Take the operand and a
2161         constraint as argument.  If the operand is a MEM and the constraint
2162         is a memory constraint, check whether the eliminated form of the
2163         MEM already satisfies the constraint.
2164         (process_address_1): Update calls accordingly.
2166 2019-11-18  Tom Tromey  <tromey@adacore.com>
2168         * doc/tm.texi: Rebuild.
2169         * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2170         * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2172 2019-11-18  Richard Biener  <rguenther@suse.de>
2174         PR tree-optimization/92516
2175         * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2176         argument, hoist bst_map creation/destruction to ...
2177         (vect_analyze_slp): ... here, forming a true graph with
2178         SLP instances being the entries.
2179         (vect_detect_hybrid_slp_stmts): Remove wrapper.
2180         (vect_detect_hybrid_slp): Use one visited set for all
2181         graph entries.
2182         (vect_slp_analyze_node_operations): Simplify visited/lvisited
2183         to hash-sets of slp_tree.
2184         (vect_slp_analyze_operations): Likewise.
2185         (vect_bb_slp_scalar_cost): Remove wrapper.
2186         (vect_bb_vectorization_profitable_p): Use one visited set for
2187         all graph entries.
2188         (vect_schedule_slp_instance): Elide bst_map use.
2189         (vect_schedule_slp): Likewise.
2191 2019-11-18  Richard Biener  <rguenther@suse.de>
2193         * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2194         was vectorized with just external refs fail.
2196 2019-11-18  Martin Liska  <mliska@suse.cz>
2198         PR ipa/92525
2199         * ipa-icf.c (sem_function::init): Unset m_checker
2200         at the end of the function.
2202 2019-11-18  Richard Biener  <rguenther@suse.de>
2204         PR tree-optimization/92558
2205         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2206         reducting the width of a reduction vector def update new_phis.
2208 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2210         * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2211         and s390*-*-linux-musl* targets.
2212         * configure: Regenerate.
2214 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2216         * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2217         (MUSL_DYNAMIC_LINKER64): Define.
2219 2019-11-18  Martin Liska  <mliska@suse.cz>
2221         * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2222         message for an unknown counter.
2223         (dbg_cnt_process_single_pair): Support 0 as minimum value.
2224         (dbg_cnt_process_opt): Remove unreachable code.
2226 2019-11-18  Martin Liska  <mliska@suse.cz>
2228         PR ipa/92529
2229         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2230         Compare LHS types of NOP_EXPR.
2232 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
2234         * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2235         "initial_pass_name" argument -- by running "*clean_state" pass.
2236         Also free the "initial_pass_name" when done.
2238 2019-11-18  Richard Biener  <rguenther@suse.de>
2240         PR rtl-optimization/92462
2241         * alias.c (find_base_term): Restrict the look through ANDs.
2242         (find_base_value): Likewise.
2244 2019-11-18  Georg-Johann Lay  <avr@gjlay.de>
2246         Add support for AVR devices from the 0-series.
2248         PR target/92545
2249         * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2250         * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2251         * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2252         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2253         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2254         <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2255         for spec definitions.
2256         * doc/avr-mmcu.texi: Regenerate.
2258 2019-11-18  Hongtao Liu  <hongtao.liu@intel.com>
2260         PR target/92448
2261         * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2262         Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2263         * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2264         (ix86_reassociation_width): Ditto.
2265         * config/i386/i386-options.c (ix86_option_override_internal):
2266         Replace TARGET_AVX128_OPTIAML with
2267         ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2268         * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2269         (TARGET_AVX128_OPTIMAL): Deleted.
2270         * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2271         DEF_TUNE.
2273 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2275         * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2276         (@cceq_ior_compare_<mode> for GPR): ... this.  Allow GPR instead of
2277         just SI.
2278         (cceq_rev_compare): Rename to...
2279         (@cceq_rev_compare_<mode> for GPR): ... this.  Allow GPR instead of
2280         just SI.
2281         (define_split for <bd>tf_<mode>): Add SImode first argument to
2282         gen_cceq_ior_compare.
2284 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2286         * common/config/powerpcspe: Delete.
2288 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2290         * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2291         output in UNSPEC_WRFFR.
2293 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2295         * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2296         the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2298 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2300         * tree-data-ref.c (create_intersect_range_checks_index)
2301         (create_intersect_range_checks): Print dump messages.
2303 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2305         * tree-data-ref.c (dump_alias_pair): New function.
2306         (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2308 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2310         * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2311         * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2312         merging data references with different steps.
2313         (create_intersect_range_checks_index): Take a
2314         dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2315         Bail out if DR_ALIAS_MIXED_STEPS is set.
2316         (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2317         instead of two dr_with_seg_lens.  Update call to
2318         create_intersect_range_checks_index.
2319         (create_runtime_alias_checks): Update call accordingly.
2321 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2323         * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2324         (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2325         (dr_with_seg_len_pair_t::sequencing): New enum.
2326         (dr_with_seg_len_pair_t::flags): New member variable.
2327         (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2328         parameter and initialize the flags member variable.
2329         * tree-loop-distribution.c (compute_alias_check_pairs): Update
2330         call accordingly.
2331         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2332         Ensure the two data references in an alias pair are in statement
2333         order, if there is a defined order.
2334         * tree-data-ref.c (prune_runtime_alias_test_list): Use
2335         DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2336         swapped the references in a dr_with_seg_len_pair_t.  OR together
2337         the flags when merging two dr_with_seg_len_pair_ts.  After merging,
2338         try to restore the original dr_with_seg_len order, updating the
2339         flags if that fails.
2341 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2343         * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2344         swapping the dr_as based on init values until we've decided
2345         whether to merge them.
2347 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2349         * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2350         two accesses in each dr_with_seg_len_pair_t before trying to
2351         combine separate dr_with_seg_len_pair_ts.
2352         * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2353         that here.
2354         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2356 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2358         * config/aarch64/aarch64-sve.md
2359         (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2360         (scatter_store<SVE_24:mode><v_int_container>): ...this.
2361         (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2362         (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2363         (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2364         (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2365         (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2366         pattern.
2367         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2368         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2369         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2370         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2372 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2374         * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2375         (SVE_4HSI): New mode iterators.
2376         (ANY_EXTEND2): New code iterator.
2377         * config/aarch64/aarch64-sve.md
2378         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2379         Extend to...
2380         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2381         ...this, handling extension to partial modes as well as full modes.
2382         Describe the extension as a predicated rather than unpredicated
2383         extension.
2384         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2385         Likewise extend to...
2386         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2387         ...this, making the same adjustments.
2388         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2389         Likewise extend to...
2390         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2391         ...this, making the same adjustments.
2392         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2393         Likewise extend to...
2394         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2395         ...this, making the same adjustments.
2396         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2397         New pattern.
2398         (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2399         extension predicate.
2400         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2401         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2402         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2403         Describe the extension as a predicated rather than unpredicated
2404         extension.
2405         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2406         Likewise.  Canonicalize to a constant extension predicate.
2407         * config/aarch64/aarch64-sve-builtins-base.cc
2408         (svld1_gather_extend_impl::expand): Add an extra predicate for
2409         the extension.
2410         (svldff1_gather_extend_impl::expand): Likewise.
2412 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2414         * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2415         iterators.
2416         * config/aarch64/aarch64-sve.md
2417         (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2418         (gather_load<SVE_24:mode><v_int_container>): ...this.
2419         (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2420         (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2421         (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2422         (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2423         (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2424         New pattern.
2425         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2426         (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2427         Allow the nominal extension predicate to be different from the
2428         load predicate.
2429         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2430         (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2432 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2434         * config/aarch64/aarch64-sve.md
2435         (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2436         * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2437         function.
2438         (aarch64_sve_adjust_stmt_cost): Call it.
2440 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2442         * config/aarch64/aarch64-sve.md
2443         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2444         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2445         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2446         Combine into...
2447         (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2448         ...this new pattern, handling extension to partial modes as well
2449         as full modes.  Describe the extension as a predicated rather than
2450         unpredicated extension.
2451         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2452         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2453         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2454         Combine into...
2455         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2456         ...this new pattern, handling extension to partial modes as well
2457         as full modes.  Describe the extension as a predicated rather than
2458         unpredicated extension.
2459         * config/aarch64/aarch64-sve-builtins.cc
2460         (function_expander::use_contiguous_load_insn): Add an extra
2461         predicate for extending loads.
2462         * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2463         (aarch64_sve_adjust_stmt_cost): Likewise.
2464         (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2465         the cost of SVE vector stmts.
2467 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2469         * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2470         (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2471         * config/aarch64/aarch64-sve.md
2472         (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2473         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2474         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2475         comment.  Avoid new narrower_mask ambiguity.
2476         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2477         (*cond_uxt<mode>_2): Update comment.
2478         (*cond_uxt<mode>_any): Likewise.
2480 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2482         * config/aarch64/aarch64-modes.def: Define partial SVE vector
2483         float modes.
2484         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2485         function.
2486         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2487         new vector float modes.
2488         (aarch64_sve_container_bits): New function.
2489         (aarch64_sve_pred_mode): Likewise.
2490         (aarch64_get_mask_mode): Use it.
2491         (aarch64_sve_element_int_mode): Handle structure modes and partial
2492         modes.
2493         (aarch64_sve_container_int_mode): New function.
2494         (aarch64_vectorize_related_mode): Return SVE modes when given
2495         SVE modes.  Handle partial modes, taking the preferred number
2496         of units from the size of the given mode.
2497         (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2498         in registers.
2499         (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2500         (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2501         (aarch64_split_sve_subreg_move): Use the mode form of
2502         aarch64_sve_pred_mode.
2503         (aarch64_secondary_reload): Handle partial modes in the same way
2504         as full big-endian vectors.
2505         (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2506         (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2507         merging with the Advanced SIMD modes.  If two modes have the
2508         same size, try the Advanced SIMD mode first.
2509         (aarch64_simd_valid_immediate): Use the container rather than
2510         the element mode for INDEX constants.
2511         (aarch64_simd_vector_alignment): Make the alignment of partial
2512         SVE vector modes the same as their minimum size.
2513         (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2514         * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2515         (mov<SVE_ALL:mode>): ...this.
2516         (movmisalign<SVE_FULL:mode>): Extend to...
2517         (movmisalign<SVE_ALL:mode>): ...this.
2518         (*aarch64_sve_mov<mode>_le): Rename to...
2519         (*aarch64_sve_mov<mode>_ldr_str): ...this.
2520         (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2521         (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this.  Handle
2522         partial modes regardless of endianness.
2523         (aarch64_sve_reload_be): Rename to...
2524         (aarch64_sve_reload_mem): ...this and enable for little-endian.
2525         Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2526         (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2527         (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2528         (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2529         (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2530         (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2531         (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2532         (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2533         (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2534         (maskload<SVE_FULL:mode><vpred>): Extend to...
2535         (maskload<SVE_ALL:mode><vpred>): ...this.
2536         (maskstore<SVE_FULL:mode><vpred>): Extend to...
2537         (maskstore<SVE_ALL:mode><vpred>): ...this.
2538         (vec_duplicate<SVE_FULL:mode>): Extend to...
2539         (vec_duplicate<SVE_ALL:mode>): ...this.
2540         (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2541         (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2542         (sve_ld1r<SVE_FULL:mode>): Extend to...
2543         (sve_ld1r<SVE_ALL:mode>): ...this.
2544         (vec_series<SVE_FULL_I:mode>): Extend to...
2545         (vec_series<SVE_I:mode>): ...this.
2546         (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2547         (*vec_series<SVE_I:mode>_plus): ...this.
2548         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2549         new VPRED ambiguity.
2550         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2551         (add<SVE_FULL_I:mode>3): Extend to...
2552         (add<SVE_I:mode>3): ...this.
2553         * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2554         (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2555         (VPRED, vpred): Likewise.
2556         (Vctype): New iterator.
2557         (vw): Remove SVE modes.
2559 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2561         * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2562         (SVE_PARTIAL_I): ...this.
2563         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2565 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2567         * config/aarch64/iterators.md (SVE_ALL): Rename to...
2568         (SVE_FULL): ...this.
2569         (SVE_I): Rename to...
2570         (SVE_FULL_I): ...this.
2571         (SVE_F): Rename to...
2572         (SVE_FULL_F): ...this.
2573         (SVE_BHSI): Rename to...
2574         (SVE_FULL_BHSI): ...this.
2575         (SVE_HSD): Rename to...
2576         (SVE_FULL_HSD): ...this.
2577         (SVE_HSDI): Rename to...
2578         (SVE_FULL_HSDI): ...this.
2579         (SVE_HSF): Rename to...
2580         (SVE_FULL_HSF): ...this.
2581         (SVE_SD): Rename to...
2582         (SVE_FULL_SD): ...this.
2583         (SVE_SDI): Rename to...
2584         (SVE_FULL_SDI): ...this.
2585         (SVE_SDF): Rename to...
2586         (SVE_FULL_SDF): ...this.
2587         (SVE_S): Rename to...
2588         (SVE_FULL_S): ...this.
2589         (SVE_D): Rename to...
2590         (SVE_FULL_D): ...this.
2591         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2592         * config/aarch64/aarch64-sve2.md: Likewise.
2594 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2596         * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2597         New option.
2598         * doc/invoke.texi: Document it.
2599         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2600         By default, return VECT_COMPARE_COSTS for SVE.
2602 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2604         * target.h (VECT_COMPARE_COSTS): New constant.
2605         * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2606         * doc/tm.texi: Regenerate.
2607         * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2608         * targhooks.c (default_autovectorize_vector_modes): Likewise.
2609         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2610         Likewise.
2611         * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2612         * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2613         * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2614         * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2615         * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2616         (_loop_vec_info::vec_inside_cost): New member variables.
2617         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2618         (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2619         (vect_analyze_loop): When autovectorize_vector_modes returns
2620         VECT_COMPARE_COSTS, try vectorizing the loop with each available
2621         vector mode and picking the one with the lowest cost.
2622         (vect_estimate_min_profitable_iters): Record the computed costs
2623         in the loop_vec_info.
2625 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2627         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2628         element type rather than an element mode.
2629         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2630         Use get_vectype_for_scalar_type to query the natural types
2631         for a given element type rather than basing everything on
2632         GET_MODE_SIZE (vinfo->vector_mode).  Limit int_mode_for_size
2633         query to MAX_FIXED_MODE_SIZE.
2634         (duplicate_and_interleave): Update call accordingly.
2635         * tree-vect-loop.c (vectorizable_reduction): Likewise.
2637 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2639         * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2640         optional maximum nunits.
2641         (get_vectype_for_scalar_type): Likewise.  Also declare a form that
2642         takes an slp_tree.
2643         (get_mask_type_for_scalar_type): Take an optional slp_tree.
2644         (vect_get_mask_type_for_stmt): Likewise.
2645         * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2646         the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2647         * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2648         vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2649         to get an assumed vector type for data references.
2650         * tree-vect-slp.c (vect_update_shared_vectype): New function.
2651         (vect_update_all_shared_vectypes): Likewise.
2652         (vect_build_slp_tree_1): Pass the group size to
2653         vect_get_vector_types_for_stmt.  Use vect_update_shared_vectype
2654         for BB vectorization.
2655         (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2656         before building the vectof from scalars.
2657         (vect_analyze_slp_instance): Pass the group size to
2658         get_vectype_for_scalar_type.
2659         (vect_slp_analyze_node_operations_1): Don't recompute the vector
2660         types for BB vectorization here; just handle the case in which
2661         we deferred the choice for booleans.
2662         (vect_get_constant_vectors): Pass the slp_tree to
2663         get_vectype_for_scalar_type.
2664         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2665         (vectorizable_call): Likewise.
2666         (vectorizable_simd_clone_call): Likewise.
2667         (vectorizable_conversion): Likewise.
2668         (vectorizable_shift): Likewise.
2669         (vectorizable_operation): Likewise.
2670         (vectorizable_comparison): Likewise.
2671         (vect_is_simple_cond): Take the slp_tree as argument and
2672         pass it to get_vectype_for_scalar_type.
2673         (vectorizable_condition): Update call accordingly.
2674         (get_vectype_for_scalar_type): Take a group_size argument.
2675         For BB vectorization, limit the the vector to that number
2676         of elements.  Also define an overload that takes an slp_tree.
2677         (get_mask_type_for_scalar_type): Add an slp_tree argument and
2678         pass it to get_vectype_for_scalar_type.
2679         (vect_get_vector_types_for_stmt): Add a group_size argument
2680         and pass it to get_vectype_for_scalar_type.  Don't use the
2681         cached vector type for BB vectorization if a group size is given.
2682         Handle data references in that case.
2683         (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2684         pass it to get_mask_type_for_scalar_type.
2686 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
2688         * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2689         parameter.
2690         (estimate_edge_time): Use it.
2691         * ipa-inline-analysis.c (do_estimate_edge_time): Add
2692         ret_nonspec_time parameter.
2694 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2696         * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2698 2019-11-15  Nick Clifton  <nickc@redhat.com>
2699             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2701         PR target/65649
2702         * config/microblaze/microblaze.c (print_operand): Print value as long.
2704 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
2706         * ipa-inline.c (edge_badness, inline_small_functions): Revert
2707         accidental commit.
2709 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2711         * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2712         (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2714 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2716         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2717         (gcn_conditional_register_usage): Use constants in place of hard-coded
2718         values.
2719         (gcn_hsa_declare_function_name): Set lower bound for number of
2720         SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2721         MAX_NORMAL_VGPR_COUNT.
2723 2019-11-15  Martin Jambor  <mjambor@suse.cz>
2725         * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2726         declaration.
2728 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2730         * config/gcn/gcn.c (default_requested_args): New.
2731         (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2732         set with default_requested_args.
2733         (gcn_conditional_register_usage): Limit register usage of non-kernel
2734         functions.  Reassign fixed registers if a non-standard set of args is
2735         requested.
2736         * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2738 2019-11-15  Feng Xue  <fxue@os.amperecomputing.com>
2740         PR ipa/92528
2741         * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2742         aggregate jump function when inlined-to caller has no edge summary.
2744 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2746         * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2748 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2750         * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2751         prologue use of v0.
2752         (print_operand_address): Use v1 for zero vector offset.
2754 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2756         PR tree-optimization/92515
2757         * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2758         types when converting a vector/scalar shift into a vector/vector one,
2759         using tree_nop_conversion_p instead of useless_type_conversion_p.
2760         Move the conversion code to the transform block.
2762 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2764         * read-rtl-function.c
2765         (function_reader::add_fixup_source_location): Take additional
2766         parameter of a column.
2767         (function_reader::maybe_read_location): Optionally parse column
2768         information and pass to add_fixup_source_location.
2770 2019-11-15  Richard Biener  <rguenther@suse.de>
2772         PR tree-optimization/92512
2773         * tree-vect-loop.c (check_reduction_path): Fix operand index
2774         computability check.  Add check for second use in COND_EXPRs.
2776 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2778         PR target/92515
2779         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2780         VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2782 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2784         * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2785         register class for VCC_LO and VCC_HI.
2786         (gcn_spill_class): Use SGPR_REGS to spill registers in
2787         VCC_CONDITIONAL_REG.
2789 2019-11-15  Richard Biener  <rguenther@suse.de>
2791         PR tree-optimization/92324
2792         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2793         singedness of SLP reduction epilouge operations.  Also reduce
2794         the vector width for SLP reductions before doing elementwise
2795         operations if possible.
2797 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2799         * passes.c (skip_pass): Set epilogue_completed if skipping the
2800         pro_and_epilogue pass.
2802 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2804         * passes.c (should_skip_pass_p): Always run "dfinish".
2806 2019-11-15  Richard Biener  <rguenther@suse.de>
2808         * ipa-inline.c (inline_small_functions): Move assignment
2809         to next before call destroying edge.
2811 2019-11-15  Richard Biener  <rguenther@suse.de>
2813         PR tree-optimization/92039
2814         PR tree-optimization/91975
2815         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2816         previous change, treat invariants consistently as non-constant.
2817         (tree_estimate_loop_size): Ternary ops with just the first op
2818         constant are not optimized away.
2820 2019-11-15  Jakub Jelinek  <jakub@redhat.com>
2822         * gimplify.c (gimplify_call_expr): Don't call
2823         omp_resolve_declare_variant after gimplification.
2824         * omp-general.c (omp_context_selector_matches): For isa that might
2825         match in some other function, defer if in declare simd function.
2826         (omp_context_compute_score): Don't look for " score" in construct
2827         trait set.  Set *score to -1 if it can't ever match.
2828         (omp_resolve_declare_variant): If any variants need to be deferred,
2829         don't punt immediately, but compute scores of all variants and if
2830         ther eis a score winner that doesn't need to be deferred, return that.
2832 2019-11-15  Luo Xiong Hu  <luoxhu@linux.ibm.com>
2834         * ipa-comdats.c: Fix comments typo.
2835         * ipa-profile.c: Fix comments typo.
2836         * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2837         __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2838         (gimple_gen_ic_func_profiler): Likewise.
2839         (pass_ipa_tree_profile::gate): Fix comments typo.
2841 2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>
2843         * ipa-inline.c (inline_small_functions): Update iterator of next.
2845 2019-11-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
2847         * lra-spills.c (assign_spill_hard_regs): Check that the spill
2848         register is suitable for the mode.
2850 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
2852         * range-op.h (range_operator::fold_range): Return a bool.
2853         * range-op.cc (range_operator::wi_fold): Assert supported type.
2854         (range_operator::fold_range): Assert supported type and return true.
2855         (operator_equal::fold_range): Return true.
2856         (operator_not_equal::fold_range): Same.
2857         (operator_lt::fold_range): Same.
2858         (operator_le::fold_range): Same.
2859         (operator_gt::fold_range): Same.
2860         (operator_ge::fold_range): Same.
2861         (operator_plus::op1_range): Adjust call to fold_range.
2862         (operator_plus::op2_range): Same.
2863         (operator_minus::op1_range): Same.
2864         (operator_minus::op2_range): Same.
2865         (operator_exact_divide::op1_range): Same.
2866         (operator_lshift::fold_range): Return true and adjust fold_range call.
2867         (operator_rshift::fold_range): Same.
2868         (operator_cast::fold_range): Return true.
2869         (operator_logical_and::fold_range): Same.
2870         (operator_logical_or::fold_range): Same.
2871         (operator_logical_not::fold_range): Same.
2872         (operator_bitwise_not::fold_range): Adjust call to fold_range.
2873         (operator_bitwise_not::op1_range): Same.
2874         (operator_cst::fold_range): Return true.
2875         (operator_identity::fold_range): Return true.
2876         (operator_negate::fold_range): Return true and adjust fold_range call.
2877         (operator_addr_expr::fold_range): Return true.
2878         (operator_addr_expr::op1_range): Adjust call to fold_range.
2879         (range_cast): Same.
2880         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2881         (range_fold_unary_symbolics_p): Same.
2883 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
2885         PR tree-optimization/92506
2886         * range-op.cc (range_operator::fold_range): Start with range undefined.
2887         (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2888         overflow is varying.
2890 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
2892         * range-op.cc (*operator*::*range): Remove calls to
2893         range_intersect, range_invert, and range_union in favor of calling
2894         the in-place API methods.
2895         (range_tests): Same.
2896         * range.cc (range_intersect): Remove.
2897         (range_union): Remove.
2898         (range_invert): Remove.
2899         * range.h (range_intersect): Remove.
2900         (range_union): Remove.
2901         (range_intersect): Remove.
2903 2019-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
2905         PR rtl-optimization/92430
2906         * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2907         (pass_jump_after_combine::execute): Perform jump threading
2908         unconditionally.
2910 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
2911             Doug Rupp <rupp@adacore.com>
2912             Olivier Hainque  <hainque@adacore.com>
2914         * config.gcc: Collapse the arm-vxworks entries into
2915         a single arm-wrs-vxworks7* one, bpabi based.  Update
2916         the default cpu from arm8 to armv7-a
2917         * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2918         we always use ARM_UNWIND_INFO.
2919         (DWARF2_UNWIND_INFO): Remove redefinition.
2920         (ARM_TARGET2_DWARF_FORMAT): Likewise.
2921         (VXWORKS_PERSONALITY): Define, to "llvm".
2922         (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2924 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
2926         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2927         _VX_CPU instead of CPU and handle arm_arch8.
2929 2019-11-14  Doug Rupp  <rupp@adacore.com>
2930             Olivier Hainque  <hainque@adacore.com>
2931             Jerome Lambourg  <lambourg@adacore.com>
2933         * config.gcc: Handle aarch64*-wrs-vxworks7*.
2934         * config/aarch64/aarch64-vxworks.h: New file.
2935         * config/aarch64/t-aarch64-vxworks: New file.
2937 2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
2938             Olivier Hainque  <hainque@adacore.com>
2940         * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2941         definition, pointless with a VxWorks specific version
2942         of crtstuff.
2943         (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2944         * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2945         New local macros, controlling the addition of vxworks specific
2946         crtstuff objects depending on the EH mechanism and kind of
2947         module being linked.
2948         (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2950 2019-11-06  Pat Bernardi  <bernardi@adacore.com>
2951             Jerome Lambourg  <lambourg@adacore.com>
2952             Olivier Hainque  <hainque@adacore.com>
2954         * config.gcc: Add comment to introduce the TARGET_VXWORKS
2955         common macro definitions, conveying VXWORKS7 or 64bit general
2956         variations.  Add a block to set gcc_cv_initfini_array
2957         unconditionally to "yes" for VxWorks7.
2958         config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2959         by default.  Update some comments.
2960         config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2961         default, to be added the end of VXWORKS_LIBS_RTP.
2962         (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2963         and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2964         redefine.
2965         (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2966         (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2967         to account for the now available TLS abilities.
2968         (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2969         (VXWORKS_HAVE_TLS): Likewise.
2971 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2973         * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2974         (vect_slp_convert_to_external): Likewise.
2975         (vect_slp_analyze_node_operations): If analysis fails, try building
2976         the node from scalars instead.
2978 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2980         * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2981         between vector types.
2982         * tree-vect-stmts.c (vectorizable_conversion): Extend the
2983         non-widening and non-narrowing path to handle standard
2984         conversion codes, if the target supports them.
2985         * expr.c (convert_move): Try using the extend and truncate optabs
2986         for vectors.
2987         * optabs-tree.c (supportable_convert_operation): Likewise.
2988         * config/aarch64/iterators.md (Vnarroqw): New iterator.
2989         * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2990         (trunc<mode><Vnarrowq>2): New patterns.
2992 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2994         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2995         require vectype and nunits_vectype to have the same size;
2996         instead assert that nunits_vectype has at least as many
2997         elements as vectype.  Don't compute a separate nunits_vectype
2998         if the scalar type is obviously the same as vectype's.
2999         Tweak dump messages.
3001 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3003         * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3004         function.
3005         (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3006         (TARGET_VECTORIZE_RELATED_MODE): Define.
3008 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3010         * tree-vectorizer.h (vec_info::mode_set): New typedef.
3011         (vec_info::used_vector_mode): New member variable.
3012         (vect_chooses_same_modes_p): Declare.
3013         * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3014         chosen vector mode in vec_info::used_vector_mode.
3015         (vect_chooses_same_modes_p): New function.
3016         * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3017         the same vector statements multiple times.
3018         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3020 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3022         * machmode.h (opt_machine_mode::operator==): New function.
3023         (opt_machine_mode::operator!=): Likewise.
3024         * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3025         (get_related_vectype_for_scalar_type): Delete.
3026         (get_vectype_for_scalar_type_and_size): Declare.
3027         * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3028         whether analysis passed or failed, and with what vector modes.
3029         Use related_vector_mode to check whether trying a particular
3030         vector mode would be redundant with the autodetected mode,
3031         and print a dump message if we decide to skip it.
3032         * tree-vect-loop.c (vect_analyze_loop): Likewise.
3033         (vect_create_epilog_for_reduction): Use
3034         get_related_vectype_for_scalar_type instead of
3035         get_vectype_for_scalar_type_and_size.
3036         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3037         with...
3038         (get_related_vectype_for_scalar_type): ...this new function.
3039         Take a starting/"prevailing" vector mode rather than a vector size.
3040         Take an optional nunits argument, with the same meaning as for
3041         related_vector_mode.  Use related_vector_mode when not
3042         auto-detecting a mode, falling back to mode_for_vector if no
3043         target mode exists.
3044         (get_vectype_for_scalar_type): Update accordingly.
3045         (get_same_sized_vectype): Likewise.
3046         * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3048 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3050         * tree-vect-stmts.c (vectorizable_call): Require the types
3051         to have the same size.
3053 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3055         * tree-vect-stmts.c (vectorizable_call): If an operand is
3056         constant or external, use get_vectype_for_scalar_type
3057         rather than get_same_sized_vectype to get its vector type.
3058         (vectorizable_conversion, vectorizable_shift): Likewise.
3059         (vectorizable_operation): Likewise.
3061 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3063         * tree-vectorizer.h (vec_info::vector_size): Replace with...
3064         (vec_info::vector_mode): ...this new field.
3065         * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3066         (vect_analyze_loop, vect_transform_loop): Likewise.
3067         * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3068         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3069         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3070         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3071         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3073 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3075         * target.h (vector_sizes, auto_vector_sizes): Delete.
3076         (vector_modes, auto_vector_modes): New typedefs.
3077         * target.def (autovectorize_vector_sizes): Replace with...
3078         (autovectorize_vector_modes): ...this new hook.
3079         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3080         Replace with...
3081         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3082         * doc/tm.texi: Regenerate.
3083         * targhooks.h (default_autovectorize_vector_sizes): Delete.
3084         (default_autovectorize_vector_modes): New function.
3085         * targhooks.c (default_autovectorize_vector_sizes): Delete.
3086         (default_autovectorize_vector_modes): New function.
3087         * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3088         of autovectorize_vector_sizes.  Use the number of units in the mode
3089         to calculate the maximum VF.
3090         * omp-low.c (omp_clause_aligned_alignment): Use
3091         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3092         Use a loop based on related_mode to iterate through all supported
3093         vector modes for a given scalar mode.
3094         * optabs-query.c (can_vec_mask_load_store_p): Use
3095         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3096         * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3097         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3098         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3099         Replace with...
3100         (aarch64_autovectorize_vector_modes): ...this new function.
3101         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3102         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3103         * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3104         (arc_autovectorize_vector_modes): ...this new function.
3105         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3106         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3107         * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3108         (arm_autovectorize_vector_modes): ...this new function.
3109         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3110         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3111         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3112         (ix86_autovectorize_vector_modes): ...this new function.
3113         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3114         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3115         * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3116         (mips_autovectorize_vector_modes): ...this new function.
3117         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3118         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3120 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3122         * tree-vect-stmts.c (vectorizable_shift): Check the number
3123         of vector elements as well as the type mode when deciding
3124         whether an op1_vectype is compatible.  Reuse the result of
3125         this check when generating vector statements.
3127 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3129         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3130         targetm.vectorize.preferred_simd_mode returns an integer mode,
3131         use mode_for_vector to decide what the vector type's mode
3132         should actually be.  Use build_vector_type_for_mode instead
3133         of build_vector_type.
3135 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3137         * target.def (get_mask_mode): Take a vector mode itself as argument,
3138         instead of properties about the vector mode.
3139         * doc/tm.texi: Regenerate.
3140         * targhooks.h (default_get_mask_mode): Update to reflect new
3141         get_mode_mask interface.
3142         * targhooks.c (default_get_mask_mode): Likewise.  Use
3143         related_int_vector_mode.
3144         * optabs-query.c (can_vec_mask_load_store_p): Update call
3145         to get_mask_mode.
3146         * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3147         first that the original mode really is a vector.
3148         * tree.c (build_truth_vector_type_for): Likewise.
3149         * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3150         get_mode_mask interface.
3151         (aarch64_expand_sve_vcond): Update call accordingly.
3152         * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3153         get_mode_mask interface.
3154         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3156 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3158         * tree.h (build_truth_vector_type): Delete.
3159         (build_same_sized_truth_vector_type): Likewise.
3160         * tree.c (build_truth_vector_type): Rename to...
3161         (build_truth_vector_type_for): ...this.  Make static and take
3162         a vector type as argument.
3163         (truth_type_for): Update accordingly.
3164         (build_same_sized_truth_vector_type): Delete.
3165         * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3166         instead of build_same_sized_truth_vector_type.
3167         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3168         (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3169         * tree-vect-patterns.c (build_mask_conversion): Likeise.
3170         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3171         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3172         (vect_build_gather_load_calls, vectorizable_call): Likewise.
3173         (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3174         (vectorizable_store, vectorizable_condition): Likewise.
3175         (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3176         (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3177         build_truth_vector_type.
3178         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3179         Use truth_type_for instead of build_same_sized_truth_vector_type.
3180         * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3182 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3184         * tree.h (build_truth_vector_type_for_mode): Declare.
3185         * tree.c (build_truth_vector_type_for_mode): New function,
3186         split out from...
3187         (build_truth_vector_type): ...here.
3188         (build_opaque_vector_type): Fix head comment.
3189         * tree-vectorizer.h (supportable_narrowing_operation): Remove
3190         vec_info parameter.
3191         (vect_halve_mask_nunits): Replace vec_info parameter with the
3192         mode of the new vector.
3193         (vect_double_mask_nunits): Likewise.
3194         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3195         (vect_double_mask_nunits): Likewise.
3196         * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3197         (vect_maybe_permute_loop_masks): Remove vinfo parameter.  Update call
3198         to vect_halve_mask_nunits, getting the required mode from the unpack
3199         patterns.
3200         (vect_set_loop_condition_masked): Update call accordingly.
3201         * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3202         parameter and update call to vect_double_mask_nunits.
3203         (vectorizable_conversion): Update call accordingly.
3204         (simple_integer_narrowing): Likewise.  Remove vec_info parameter.
3205         (vectorizable_call): Update call accordingly.
3206         (supportable_widening_operation): Update call to
3207         vect_halve_mask_nunits.
3208         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3209         Use build_truth_vector_type_mode instead of build_truth_vector_type.
3211 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3213         * machmode.h (mode_for_int_vector): Delete.
3214         (related_int_vector_mode): Declare.
3215         * stor-layout.c (mode_for_int_vector): Delete.
3216         (related_int_vector_mode): New function.
3217         * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3218         instead of mode_for_int_vector.
3219         (expand_vec_perm_const): Likewise.
3220         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3221         (aarch64_evpc_sve_tbl): Likewise.
3222         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3223         (s390_expand_vcond): Likewise.
3225 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3227         * target.def (related_mode): New hook.
3228         * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3229         * doc/tm.texi: Regenerate.
3230         * targhooks.h (default_vectorize_related_mode): Declare.
3231         * targhooks.c (default_vectorize_related_mode): New function.
3232         * machmode.h (related_vector_mode): Declare.
3233         * stor-layout.c (related_vector_mode): New function.
3234         * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3235         * optabs-query.c (qimode_for_vec_perm): Likewise.
3236         * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3237         (vectorizable_store, vectorizable_load): Likewise
3239 2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
3241         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3242         * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3243         * config/arm/arm-c.c (arm_cpu_builtins): Define
3244         __GCC_ASM_FLAG_OUTPUTS__.
3245         * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3246         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3247         Define __GCC_ASM_FLAG_OUTPUTS__.
3248         * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3249         * doc/extend.texi (FlagOutputOperands): Add documentation
3250         for ARM and AArch64.
3252         * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3253         * config/arm/predicates.md (nz_comparison_operator): Rename
3254         from noov_comparison_operator.
3255         * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3256         (arm_gen_dicompare_reg): Likewise.
3257         (maybe_get_arm_condition_code): Likewise.
3258         (thumb1_final_prescan_insn): Likewise.
3259         (arm_emit_coreregs_64bit_shift): Likewise.
3260         * config/arm/arm.md (addsi3_compare0): Likewise.
3261         (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3262         (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3263         (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3264         (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3265         (*mulsi3addsi_compare0_scratch): Likewise.
3266         (*mulsi3addsi_compare0_scratch_v6): Likewise.
3267         (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3268         (*zeroextractsi_compare0_scratch): Likewise.
3269         (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3270         (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3271         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3272         (andsi_not_shiftsi_si_scc): Likewise.
3273         (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3274         (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3275         (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3276         (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3277         (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3278         (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3279         (return_addr_mask, *check_arch2): Likewise.
3280         (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3281         (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3282         (compare_scc splitters): Likewise.
3283         (movcond_addsi): Likewise.
3284         * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3285         (*thumb2_addsi3_compare0_scratch): Likewise.
3286         (*thumb2_mulsi_short_compare0): Likewise.
3287         (*thumb2_mulsi_short_compare0_scratch): Likewise.
3288         (compare peephole2s): Likewise.
3289         * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3290         nz_comparison_operator names.
3291         (cbranchsi4_insn): Likewise.
3293         * config/arm/constraints.md (c): Use cc_register predicate.
3295         * config/aarch64/constraints.md (c): New constraint.
3297 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
3299         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3300         ipa_merge_fn_summary_after_inlining): Micro optimize.
3302 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
3304         * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3306 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
3308         * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3309         (ipa_value_range_from_jfunc): New function.
3310         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3311         known_value_ranges parameter; use it to evalulate conditions.
3312         (evaluate_properties_for_edge): Compute known value ranges.
3313         (ipa_fn_summary_t::duplicate): Update use of
3314         evaluate_conditions_for_known_args.
3315         (estimate_ipcp_clone_size_and_time): Likewise.
3316         (ipa_merge_fn_summary_after_inlining): Likewise.
3317         * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3319 2019-11-14  Martin Liska  <mliska@suse.cz>
3321         * ipa-inline.c (want_inline_small_function_p): Use
3322         CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3323         of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3325 2019-11-14  Martin Liska  <mliska@suse.cz>
3327         * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3328         of a callee to get value of the param.
3329         * ipa-inline.c (inline_insns_auto): Use proper
3330         opt_for_fn.
3331         * opts.c (maybe_default_option): Do not overwrite param
3332         value if optimization level does not match.  Note that
3333         params usually have default value set via Init() keyword.
3334         * params.opt: Remove -param=max-inline-insns-auto-O2.
3335         * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3336         * doc/invoke.texi: Remove documentation of
3337         max-inline-insns-auto-O2.
3339 2019-11-14  Martin Liska  <mliska@suse.cz>
3341         * tree-switch-conversion.c (switch_conversion::switch_conversion):
3342         Do not initialize m_other_count.
3343         (switch_conversion::collect): Do not count m_default_count and
3344         m_other_count as we use frequencies for edges.
3345         * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3347 2019-11-14  Martin Liska  <mliska@suse.cz>
3349         PR other/92329
3350         * doc/invoke.texi: Document -fallocation-dce.
3352 2019-11-14  Martin Liska  <mliska@suse.cz>
3354         PR target/92389
3355         * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3356         PTA_ICELAKE_CLIENT which is later interited by
3357         PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3359 2019-11-14  Martin Liska  <mliska@suse.cz>
3361         * ipa-icf.c (sem_item_optimizer::execute): Save
3362         loaded_symbols.
3363         (sem_item_optimizer::parse_nonsingleton_classes):
3364         Return number of loaded symbols.
3365         (sem_item_optimizer::merge_classes): Print
3366         statistics about totally needed symbols.
3367         * ipa-icf.h (parse_nonsingleton_classes): Change return
3368         type.
3369         (merge_classes): Add one argument.
3371 2019-11-14  Martin Liska  <mliska@suse.cz>
3373         * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3374         func_checker::hash_operand by handling of FIELD_DECLs.
3376 2019-11-14  Martin Liska  <mliska@suse.cz>
3378         * ipa-icf-gimple.h (func_checker::func_checker): Add
3379         default constructor.
3380         * ipa-icf.c (sem_function::init): Make operand_equal_p
3381         and hash_operand public.
3382         (sem_item::add_expr): Remove.
3383         (sem_item::add_type): Remove.
3384         (sem_function::hash_stmt): Use m_checker for hashing
3385         of GIMPLE statements.
3386         (sem_function::parse): Init with checker.
3387         (sem_variable::parse): Pass NULL as checker.
3388         (sem_item_optimizer::parse_funcs_and_vars):
3389         Pass checker to ::parse function.
3390         (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3391         (sem_variable::parse): New function.
3392         (sem_variable::get_hash): Only return computed hash value.
3393         (sem_variable::init): Initialize hash of a variable.
3394         * ipa-icf.h: Remove add_expr, add_type and add func_checker
3395         to couple of functions as a new argument.
3397 2019-11-14  Martin Liska  <mliska@suse.cz>
3399         * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3400         bail out reason.
3401         (func_checker::compare_gimple_assign): Likewise.
3403 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
3405         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3406         change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3407         * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3409         * omp-general.c (omp_context_name_list_prop): New function.
3410         (omp_context_selector_matches): Use it.  Return 0 if it returns
3411         NULL.
3412         (omp_context_selector_props_compare): Allow equivalency of an
3413         identifier and a string literal containing no embedded zeros.
3415 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
3417         * range-op.cc (RANGE3): Remove.
3418         (range_tests): Remove all selftest that check for multi-ranges.
3419         Put tests in namespace selftest.
3420         * selftest.h: Move range_tests into namespace selftest.
3421         * value-range.h (class value_range): Unfriend range_tests.
3423 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
3425         * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3426         normalize_symbolics and normalize_addresses working in place.
3427         (range_fold_unary_symbolics_p): Same.
3428         (range_fold_unary_symbolics_p): Same.
3429         * value-range.cc (num_pairs): Same.
3430         (lower_bound): Same.
3431         (upper_bound): Same.
3432         (contains_p): Same.
3433         (normalize_addresses): Same.
3434         (normalize_symbolics): Same.
3435         * value-range.h (normalize_symbolics): Same.
3436         (normalize_addresses): Same.
3438 2019-11-14  Feng Xue  <fxue@os.amperecomputing.com>
3440         PR ipa/91682
3441         * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3442         (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3443         (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3444         (ipa_agg_jump_function): Remove member function equal_to.
3445         (ipa_agg_jump_function_p): Remove typedef.
3446         (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3447         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3448         information for aggregate jump function.
3449         (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3450         record last definition statement.
3451         (load_from_unmodified_param_or_agg): New function.
3452         (ipa_known_agg_contents_list): Add new field type and value, remove
3453         field constant.
3454         (build_agg_jump_func_from_list): Rename parameter const_count to
3455         value_count, build aggregate jump function from ipa_load_agg_data.
3456         (analyze_agg_content_value): New function.
3457         (extract_mem_content): Analyze memory store assignment to prepare
3458         information for aggregate jump function generation.
3459         (determine_known_aggregate_parts): Add new parameter fbi, remove
3460         parameter aa_walk_budeget_p.
3461         (update_jump_functions_after_inlining): Update aggregate jump function.
3462         (ipa_find_agg_cst_for_param): Change type of parameter agg.
3463         (try_make_edge_direct_simple_call): Add new parameter new_root.
3464         (try_make_edge_direct_virtual_call): Add new parameter new_root and
3465         new_root_info.
3466         (update_indirect_edges_after_inlining): Pass new argument to
3467         try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3468         (ipa_write_jump_function): Write aggregate jump function to file.
3469         (ipa_read_jump_function): Read aggregate jump function from file.
3470         (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3471         * ipa-cp.c (ipa_get_jf_arith_result): New function.
3472         (ipa_agg_value_from_node): Likewise.
3473         (ipa_agg_value_set_from_jfunc): Likewise.
3474         (propagate_vals_across_arith_jfunc): Likewise.
3475         (propagate_aggregate_lattice): Likewise.
3476         (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3477         (propagate_vals_across_pass_through): Call
3478         propagate_vals_across_arith_jfunc.
3479         (get_clone_agg_value): Move forward.
3480         (propagate_aggs_across_jump_function): Handle value propagation for
3481         aggregate jump function.
3482         (agg_jmp_p_vec_for_t_vec): Remove.
3483         (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3484         with vec<ipa_agg_value>.
3485         (copy_plats_to_inter, intersect_with_plats): Likewise.
3486         (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3487         (intersect_aggregate_with_edge): Likewise.
3488         (find_aggregate_values_for_callers_subset): Likewise.
3489         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3490         (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3491         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3492         (gather_context_independent_values): Likewise.
3493         (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3494         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3495         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3496         (evaluate_properties_for_edge): Likewise.
3497         (estimate_edge_devirt_benefit): Likewise.
3498         (estimate_edge_size_and_time):  Likewise.
3499         (estimate_calls_size_and_time): Likewise.
3500         (ipa_call_context::ipa_call_context): Likewise.
3501         (estimate_ipcp_clone_size_and_time):  Likewise.
3502         * ipa-fnsummary.h (ipa_call_context): Replace
3503         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3504         * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3505         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3506         (do_estimate_edge_size): Likewise.
3507         (do_estimate_edge_hints): Likewise.
3509 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3511         * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3512         binary operations.
3514 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3516         * ipa-profile.c (check_argument_count): Check properly that e_info
3517         is non-NULL; do not check descriptors.
3519 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3521         * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3522         check for ipa profiles.
3524 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3526         PR c++/92421
3527         * ipa-prop.c (update_indirect_edges_after_inlining):
3528         Mark parameter as used.
3529         * ipa-inline.c (recursive_inlining): Reset node cache
3530         after inlining.
3531         (inline_small_functions): Remove checking ifdef.
3532         * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3533         cache consistency.
3535 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3537         PR ipa/92498
3538         * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3539         is NULL.
3540         (ipa_profile): Fix reversed test.
3542 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3544         * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3545         (propagate_constants_topo): Fix typo.
3547 2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
3549         * Makefile.in (OBJS): Add value-range.o.
3550         (GTFILES): Add value-range.h.
3551         * gengtype.c (open_base_files): Add value-range.h to list of
3552         header files.
3553         * tree-vrp.c: Move the following value_range related functions:
3554         ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3555         constant_p, set_undefined, set_varying, may_contain_p,
3556         singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3557         vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3558         set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3559         value_inside_range, ranges_from_anti_range, union_ranges,
3560         intersect_ranges, intersect_helper, union_helper, union_,
3561         normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3562         upper_bound, contains_p, invert, intersect...
3563         * value-range.cc: ...to here.
3564         * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3565         associated inline methods from here...
3566         * value-range.h: ...to here.
3568 2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
3570         * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3571         instead of asserting its value.
3573 (2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
3575         * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3576         constructors and set methods so value_range_kind is the last
3577         argument and defaults to VR_RANGE.
3578         * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3579         * ipa-cp.c (propagate_vr_across_jump_function): Same.
3580         * ipa-prop.c (ipa_get_value_range): Same.
3581         (ipa_compute_jump_functions_for_edge): Same.
3582         * range-op.cc (value_range_from_overflowed_bounds): Same.
3583         (operator_cast::op1_range): Same.
3584         (range_tests): Same.
3585         * range.cc (range_nonzero): Same.
3586         * tree-ssanames.c (get_range_info): Same.
3587         * tree-vrp.c (value_range_equiv::set): Same.
3588         (value_range::value_range): Same.
3589         (value_range_equiv::value_range_equiv): Same.
3590         (value_range_equiv::update): Same.
3591         (value_range_equiv::deep_copy): Same.
3592         (value_range_equiv::move): Same.
3593         (value_range_equiv::set_undefined): Same.
3594         (value_range::set): Same.
3595         (value_range::set_nonzero): Same.
3596         (ranges_from_anti_range): Same.
3597         (extract_range_from_plus_minus_expr): Same.
3598         (value_range::intersect_helper): Same.
3599         (value_range_equiv::intersect): Same.
3600         (value_range::union_helper): Same.
3601         (value_range_equiv::union_): Same.
3602         (value_range::normalize_symbolics): Same.
3603         (value_range::invert): Same.
3604         (determine_value_range_1): Same.
3605         * tree-vrp.h (class value_range): Same.
3606         (class value_range_equiv): Same.
3607         * vr-values.c (set_value_range_to_nonnegative): Same.
3608         (set_value_range_to_truthvalue): Same.
3609         (vr_values::update_value_range): Same.
3610         (vr_values::extract_range_for_var_from_comparison_expr): Same.
3611         (vr_values::extract_range_from_binary_expr): Same.
3612         (vr_values::extract_range_from_comparison): Same.
3613         (vr_values::extract_range_basic): Same.
3614         (vr_values::adjust_range_with_scev): Same.
3615         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3616         (vr_values::extract_range_from_phi_node): Same.
3618 2019-11-13  Ulrich Drepper  <drepper@redhat.com>
3620         * tree-dump.c (dequeue_and_dump): Print first tree operand
3621         for VIEW_CONVERT_EXPR.
3623 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
3625         * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3626         DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3627         * real.c (get_max_float): Add norm_max argument.
3628         * real.h (get_max_float): Update prototype.
3629         * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3630         get_max_float.
3632 2019-11-13  Martin Liska  <mliska@suse.cz>
3634         * dbgcnt.c (test_sorted_dbg_counters): New.
3635         (dbgcnt_c_tests): Likewise.
3636         * selftest-run-tests.c (selftest::run_tests): Likewise.
3637         * selftest.h (dbgcnt_c_tests): Likewise.
3639 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3640             Martin Jambor  <mjambor@suse.cz>
3642         PR ipa/92454
3643         * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3644         (identify_dead_nodes): Likewise.
3646 2019-11-13  Martin Liska  <mliska@suse.cz>
3648         * ipa-icf.c (sem_function::equals_private): Do not overuse
3649         push/pop_cfun functions.
3651 2019-11-13  Martin Liska  <mliska@suse.cz>
3653         * common.opt: Document change of -fdbg-cnt option.
3654         * dbgcnt.c (DEBUG_COUNTER): Remove.
3655         (dbg_cnt_is_enabled): Remove.
3656         (dbg_cnt): Work with new intervals.
3657         (dbg_cnt_set_limit_by_index): Set to new
3658         list of intervals.
3659         (dbg_cnt_set_limit_by_name): Likewise.
3660         (dbg_cnt_process_single_pair): Process new format.
3661         (dbg_cnt_process_opt): Likewise.
3662         (dbg_cnt_list_all_counters): Likewise.
3663         * doc/invoke.texi: Document change of -fdbg-cnt option.
3664         (cmp_tuples): New.
3666 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3668         * ipa-inline.c (ipa_inline): Check that function is defined before
3669         flattening.
3671 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3672             Julian Brown  <julian@codesourcery.com>
3674         * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3675         flag_worker_partitioning is not set.
3676         (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3677         * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3679 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3681         * config/gcn/gcn-run.c (heap_region): New global variable.
3682         (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3683         (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3684         (get_kernarg_region): Move contents to ....
3685         (get_memory_region): .... here.
3686         (get_heap_region): New function.
3687         (init_device): Initialize the heap_region.
3688         (device_malloc): Add region parameter.
3689         (struct kernargs): Move heap ....
3690         (heap): ... to global scope.
3691         (main): Allocate heap separate to kernargs.
3693 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3695         * ipa-prop.c (ipa_print_node_jump_functions,
3696         ipa_print_node_params): Print info about missing summaries.
3698 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3700         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3701         the cost of generating loop masks.
3703 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3705         * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3706         New function.
3707         * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3708         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3709         (vect_transform_loop): Likewise.
3710         (vect_analyze_loop_costing): Don't take the cost of versioning
3711         into account for the static profitability threshold if it turns
3712         out that no versioning is needed.
3714 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3716         * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3717         and target_option_default_node to get -fprofile-generate ctors working
3718         right with LTO.
3720 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3722         * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3723         * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3724         (vectorizable_assignment): Don't add a cost for nop conversions.
3725         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3726         Likewise.
3727         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3729 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3731         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3732         number of ncopies as an additional argument.
3733         (vectorizable_conversion): Update call accordingly.  Use "modifier"
3734         to check whether a conversion is between vectors with the same
3735         numbers of units.
3737 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3739         * config/aarch64/aarch64-sve-builtins-functions.h
3740         (unary_count::expand): Use aarch64_sve_int_mode instead of
3741         mode_for_int_vector.
3743 2019-11-13  Martin Liska  <mliska@suse.cz>
3745         * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3747 2019-11-13  Martin Liska  <mliska@suse.cz>
3749         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3750         Remove call to finalize_options_struct.
3752 2019-11-13  Georg-Johann Lay  <avr@gjlay.de>
3754         PR target/92055
3755         * config/avr/t-avr (avr-mcus): Do not depend on
3756         $(srcdir)/config/avr/t-multilib.
3758 2019-11-13  Richard Biener  <rguenther@suse.de>
3760         PR tree-optimization/92473
3761         * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3762         direct optab reduction in the correct type.
3764 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
3766         * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3767         hexadecimal literal.
3769 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
3771         * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3772         UNORDERED if !HONOR_NANS (DFmode).
3773         (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3774         if !HONOR_NANS (<MODE>mode).
3776 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
3778         * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3779         (ipcp_verify_propagated_values): Likewise.
3780         (propagate_constants_across_call): Likewise.
3781         (propagate_constants_topo): Likewise.
3782         (ipcp_propagate_stage): Likewise.
3784 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
3786         PR ipa/92471
3787         * ipa-profile.c (check_argument_count): Break out from ...;
3788         watch for missing summaries.
3789         (ipa_profile): Here.
3791 2019-11-12  Martin Sebor  <msebor@redhat.com>
3793         PR tree-optimization/92412
3794         * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3795         extern variables.
3797 2019-11-12  Martin Sebor  <msebor@redhat.com>
3799         PR middle-end/83688
3800         * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3801         (directive::argno): New member.
3802         (format_result::aliases, format_result::alias_count): New data members.
3803         (format_result::append_alias): New member function.
3804         (fmtresult::dst_offset): New data member.
3805         (pass_sprintf_length::call_info::dst_origin): New data member.
3806         (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3807         (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3808         (get_origin_and_offset): Same.
3809         (format_string): Call it.
3810         (format_directive): Call append_alias and set directive argument
3811         number.
3812         (maybe_warn_overlap): New function.
3813         (pass_sprintf_length::compute_format_length): Call it.
3814         (pass_sprintf_length::handle_gimple_call): Initialize new members.
3815         * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3817 2019-11-12  Ilya Leoshkevich  <iii@linux.ibm.com>
3819         PR rtl-optimization/92430
3820         * cfgcleanup.c (pass_jump_after_combine::execute): Free
3821         dominance info at the beginning.
3823 2019-11-12  Richard Biener  <rguenther@suse.de>
3825         PR tree-optimization/92460
3826         * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3827         expression before gimplifying.
3829 2019-11-12  Richard Biener  <rguenther@suse.de>
3831         PR tree-optimization/92461
3832         * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3833         stmt after propagation.
3835 2019-11-12  Martin Liska  <mliska@suse.cz>
3837         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3838         Use SET_OPTION_IF_UNSET.
3839         (ix86_option_override_internal): Likewise.
3840         * opts.c (default_options_optimization): Likewise.
3841         (finish_options): Likewise.
3842         (enable_fdo_optimizations): Likewise.
3843         (common_handle_option): Likewise.
3845 2019-11-12  Martin Liska  <mliska@suse.cz>
3847         * common/common-target.def: Remove option_validate_param and
3848         option_default_params.
3849         * common/common-targhooks.c (default_option_validate_param):
3850         Remove.
3851         * common/common-targhooks.h (default_option_validate_param):
3852         Remove.
3853         * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3854         Remove usage of this.
3855         (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3856         (aarch64_option_validate_param): Likewise.
3857         (aarch64_option_default_params): Likewise
3858         * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3859         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3860         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3861         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3862         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3863         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3864         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3865         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3866         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3867         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3868         * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3869         guard_size here.
3870         * doc/tm.texi: Remove option_default_params and option_validate_param.
3871         * doc/tm.texi.in: Likewise.
3873 2019-11-12  Martin Liska  <mliska@suse.cz>
3875         * common/common-target.def:
3876         Do not mention set_default_param_value
3877         and set_param_value.
3878         * doc/tm.texi: Likewise.
3880 2019-11-12  Martin Liska  <mliska@suse.cz>
3882         * common.opt: Remove param_values.
3883         * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3884         Remove finalize_options_struct.
3885         * gcc.c (driver::decode_argv): Do not call global_init_params
3886         and finish_params.
3887         (driver::finalize): Do not call params_c_finalize
3888         and finalize_options_struct.
3889         * opt-suggestions.c (option_proposer::get_completions): Remove
3890         special casing of params.
3891         (option_proposer::find_param_completions): Remove.
3892         (test_completion_partial_match): Update expected output.
3893         * opt-suggestions.h: Remove find_param_completions.
3894         * opts-common.c (add_misspelling_candidates): Add
3895         --param with a space.
3896         * opts.c (handle_param): Remove.
3897         (init_options_struct):. Remove init_options_struct and
3898         similar calls.
3899         (finalize_options_struct): Remove.
3900         (common_handle_option): Use SET_OPTION_IF_UNSET.
3901         * opts.h (finalize_options_struct): Remove.
3902         * toplev.c (general_init): Do not call global_init_params.
3903         (toplev::finalize): Do not call params_c_finalize and
3904         finalize_options_struct.
3906 2019-11-12  Martin Liska  <mliska@suse.cz>
3908         * Makefile.in: Remove PARAMS_H and params.list
3909         and params.options.
3910         * params-enum.h: Remove.
3911         * params-list.h: Remove.
3912         * params-options.h: Remove.
3913         * params.c: Remove.
3914         * params.def: Remove.
3915         * params.h: Remove.
3916         * asan.c: Do not include params.h.
3917         * auto-profile.c: Likewise.
3918         * bb-reorder.c: Likewise.
3919         * builtins.c: Likewise.
3920         * cfgcleanup.c: Likewise.
3921         * cfgexpand.c: Likewise.
3922         * cfgloopanal.c: Likewise.
3923         * cgraph.c: Likewise.
3924         * combine.c: Likewise.
3925         * common/config/aarch64/aarch64-common.c: Likewise.
3926         * common/config/gcn/gcn-common.c: Likewise.
3927         * common/config/ia64/ia64-common.c: Likewise.
3928         * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3929         * common/config/rs6000/rs6000-common.c: Likewise.
3930         * common/config/sh/sh-common.c: Likewise.
3931         * config/aarch64/aarch64.c: Likewise.
3932         * config/alpha/alpha.c: Likewise.
3933         * config/arm/arm.c: Likewise.
3934         * config/avr/avr.c: Likewise.
3935         * config/csky/csky.c: Likewise.
3936         * config/i386/i386-builtins.c: Likewise.
3937         * config/i386/i386-expand.c: Likewise.
3938         * config/i386/i386-features.c: Likewise.
3939         * config/i386/i386-options.c: Likewise.
3940         * config/i386/i386.c: Likewise.
3941         * config/ia64/ia64.c: Likewise.
3942         * config/rs6000/rs6000-logue.c: Likewise.
3943         * config/rs6000/rs6000.c: Likewise.
3944         * config/s390/s390.c: Likewise.
3945         * config/sparc/sparc.c: Likewise.
3946         * config/visium/visium.c: Likewise.
3947         * coverage.c: Likewise.
3948         * cprop.c: Likewise.
3949         * cse.c: Likewise.
3950         * cselib.c: Likewise.
3951         * dse.c: Likewise.
3952         * emit-rtl.c: Likewise.
3953         * explow.c: Likewise.
3954         * final.c: Likewise.
3955         * fold-const.c: Likewise.
3956         * gcc.c: Likewise.
3957         * gcse.c: Likewise.
3958         * ggc-common.c: Likewise.
3959         * ggc-page.c: Likewise.
3960         * gimple-loop-interchange.cc: Likewise.
3961         * gimple-loop-jam.c: Likewise.
3962         * gimple-loop-versioning.cc: Likewise.
3963         * gimple-ssa-split-paths.c: Likewise.
3964         * gimple-ssa-sprintf.c: Likewise.
3965         * gimple-ssa-store-merging.c: Likewise.
3966         * gimple-ssa-strength-reduction.c: Likewise.
3967         * gimple-ssa-warn-alloca.c: Likewise.
3968         * gimple-ssa-warn-restrict.c: Likewise.
3969         * graphite-isl-ast-to-gimple.c: Likewise.
3970         * graphite-optimize-isl.c: Likewise.
3971         * graphite-scop-detection.c: Likewise.
3972         * graphite-sese-to-poly.c: Likewise.
3973         * graphite.c: Likewise.
3974         * haifa-sched.c: Likewise.
3975         * hsa-gen.c: Likewise.
3976         * ifcvt.c: Likewise.
3977         * ipa-cp.c: Likewise.
3978         * ipa-fnsummary.c: Likewise.
3979         * ipa-inline-analysis.c: Likewise.
3980         * ipa-inline.c: Likewise.
3981         * ipa-polymorphic-call.c: Likewise.
3982         * ipa-profile.c: Likewise.
3983         * ipa-prop.c: Likewise.
3984         * ipa-split.c: Likewise.
3985         * ipa-sra.c: Likewise.
3986         * ira-build.c: Likewise.
3987         * ira-conflicts.c: Likewise.
3988         * loop-doloop.c: Likewise.
3989         * loop-invariant.c: Likewise.
3990         * loop-unroll.c: Likewise.
3991         * lra-assigns.c: Likewise.
3992         * lra-constraints.c: Likewise.
3993         * modulo-sched.c: Likewise.
3994         * opt-suggestions.c: Likewise.
3995         * opts.c: Likewise.
3996         * postreload-gcse.c: Likewise.
3997         * predict.c: Likewise.
3998         * reload.c: Likewise.
3999         * reorg.c: Likewise.
4000         * resource.c: Likewise.
4001         * sanopt.c: Likewise.
4002         * sched-deps.c: Likewise.
4003         * sched-ebb.c: Likewise.
4004         * sched-rgn.c: Likewise.
4005         * sel-sched-ir.c: Likewise.
4006         * sel-sched.c: Likewise.
4007         * shrink-wrap.c: Likewise.
4008         * stmt.c: Likewise.
4009         * targhooks.c: Likewise.
4010         * toplev.c: Likewise.
4011         * tracer.c: Likewise.
4012         * trans-mem.c: Likewise.
4013         * tree-chrec.c: Likewise.
4014         * tree-data-ref.c: Likewise.
4015         * tree-if-conv.c: Likewise.
4016         * tree-inline.c: Likewise.
4017         * tree-loop-distribution.c: Likewise.
4018         * tree-parloops.c: Likewise.
4019         * tree-predcom.c: Likewise.
4020         * tree-profile.c: Likewise.
4021         * tree-scalar-evolution.c: Likewise.
4022         * tree-sra.c: Likewise.
4023         * tree-ssa-ccp.c: Likewise.
4024         * tree-ssa-dom.c: Likewise.
4025         * tree-ssa-dse.c: Likewise.
4026         * tree-ssa-ifcombine.c: Likewise.
4027         * tree-ssa-loop-ch.c: Likewise.
4028         * tree-ssa-loop-im.c: Likewise.
4029         * tree-ssa-loop-ivcanon.c: Likewise.
4030         * tree-ssa-loop-ivopts.c: Likewise.
4031         * tree-ssa-loop-manip.c: Likewise.
4032         * tree-ssa-loop-niter.c: Likewise.
4033         * tree-ssa-loop-prefetch.c: Likewise.
4034         * tree-ssa-loop-unswitch.c: Likewise.
4035         * tree-ssa-math-opts.c: Likewise.
4036         * tree-ssa-phiopt.c: Likewise.
4037         * tree-ssa-pre.c: Likewise.
4038         * tree-ssa-reassoc.c: Likewise.
4039         * tree-ssa-sccvn.c: Likewise.
4040         * tree-ssa-scopedtables.c: Likewise.
4041         * tree-ssa-sink.c: Likewise.
4042         * tree-ssa-strlen.c: Likewise.
4043         * tree-ssa-structalias.c: Likewise.
4044         * tree-ssa-tail-merge.c: Likewise.
4045         * tree-ssa-threadbackward.c: Likewise.
4046         * tree-ssa-threadedge.c: Likewise.
4047         * tree-ssa-uninit.c: Likewise.
4048         * tree-switch-conversion.c: Likewise.
4049         * tree-vect-data-refs.c: Likewise.
4050         * tree-vect-loop.c: Likewise.
4051         * tree-vect-slp.c: Likewise.
4052         * tree-vrp.c: Likewise.
4053         * tree.c: Likewise.
4054         * value-prof.c: Likewise.
4055         * var-tracking.c: Likewise.
4057 2019-11-12  Martin Liska  <mliska@suse.cz>
4059         * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4060         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
4061         macro.
4062         (asan_sanitize_allocas_p): Likewise.
4063         (asan_emit_stack_protection): Likewise.
4064         (asan_protect_global): Likewise.
4065         (instrument_derefs): Likewise.
4066         (instrument_builtin_call): Likewise.
4067         (asan_expand_mark_ifn): Likewise.
4068         * auto-profile.c (auto_profile): Likewise.
4069         * bb-reorder.c (copy_bb_p): Likewise.
4070         (duplicate_computed_gotos): Likewise.
4071         * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4072         * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4073         (try_crossjump_bb): Likewise.
4074         * cfgexpand.c (defer_stack_allocation): Likewise.
4075         (stack_protect_classify_type): Likewise.
4076         (pass_expand::execute): Likewise.
4077         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4078         (estimate_reg_pressure_cost): Likewise.
4079         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4080         * combine.c (combine_instructions): Likewise.
4081         (record_value_for_reg): Likewise.
4082         * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4083         (aarch64_option_default_params): Likewise.
4084         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4085         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4086         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4087         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4088         * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4089         (aarch64_allocate_and_probe_stack_space): Likewise.
4090         (aarch64_expand_epilogue): Likewise.
4091         (aarch64_override_options_internal): Likewise.
4092         * config/alpha/alpha.c (alpha_option_override): Likewise.
4093         * config/arm/arm.c (arm_option_override): Likewise.
4094         (arm_valid_target_attribute_p): Likewise.
4095         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4096         * config/i386/i386.c (get_probe_interval): Likewise.
4097         (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4098         (ix86_max_noce_ifcvt_seq_cost): Likewise.
4099         * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4100         * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4101         (get_stack_clash_protection_guard_size): Likewise.
4102         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4103         * config/s390/s390.c (allocate_stack_space): Likewise.
4104         (s390_emit_prologue): Likewise.
4105         (s390_option_override_internal): Likewise.
4106         * config/sparc/sparc.c (sparc_option_override): Likewise.
4107         * config/visium/visium.c (visium_option_override): Likewise.
4108         * coverage.c (get_coverage_counts): Likewise.
4109         (coverage_compute_profile_id): Likewise.
4110         (coverage_begin_function): Likewise.
4111         (coverage_end_function): Likewise.
4112         * cse.c (cse_find_path): Likewise.
4113         (cse_extended_basic_block): Likewise.
4114         (cse_main): Likewise.
4115         * cselib.c (cselib_invalidate_mem): Likewise.
4116         * dse.c (dse_step1): Likewise.
4117         * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4118         (get_max_insn_count): Likewise.
4119         (make_debug_insn_raw): Likewise.
4120         (init_emit): Likewise.
4121         * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4122         * final.c (compute_alignments): Likewise.
4123         * fold-const.c (fold_range_test): Likewise.
4124         (fold_truth_andor): Likewise.
4125         (tree_single_nonnegative_warnv_p): Likewise.
4126         (integer_valued_real_single_p): Likewise.
4127         * gcse.c (want_to_gcse_p): Likewise.
4128         (prune_insertions_deletions): Likewise.
4129         (hoist_code): Likewise.
4130         (gcse_or_cprop_is_too_expensive): Likewise.
4131         * ggc-common.c: Likewise.
4132         * ggc-page.c (ggc_collect): Likewise.
4133         * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4134         (MAX_DATAREFS): Likewise.
4135         (OUTER_STRIDE_RATIO): Likewise.
4136         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4137         * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4138         * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4139         * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4140         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4141         (imm_store_chain_info::output_merged_store): Likewise.
4142         (pass_store_merging::process_store): Likewise.
4143         * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4144         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4145         (scop_to_isl_ast): Likewise.
4146         * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4147         (optimize_isl): Likewise.
4148         * graphite-scop-detection.c (build_scops): Likewise.
4149         * haifa-sched.c (set_modulo_params): Likewise.
4150         (rank_for_schedule): Likewise.
4151         (model_add_to_worklist): Likewise.
4152         (model_promote_insn): Likewise.
4153         (model_choose_insn): Likewise.
4154         (queue_to_ready): Likewise.
4155         (autopref_multipass_dfa_lookahead_guard): Likewise.
4156         (schedule_block): Likewise.
4157         (sched_init): Likewise.
4158         * hsa-gen.c (init_prologue): Likewise.
4159         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4160         (cond_move_process_if_block): Likewise.
4161         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4162         (merge_agg_lats_step): Likewise.
4163         (devirtualization_time_bonus): Likewise.
4164         (hint_time_bonus): Likewise.
4165         (incorporate_penalties): Likewise.
4166         (good_cloning_opportunity_p): Likewise.
4167         (ipcp_propagate_stage): Likewise.
4168         * ipa-fnsummary.c (decompose_param_expr): Likewise.
4169         (set_switch_stmt_execution_predicate): Likewise.
4170         (analyze_function_body): Likewise.
4171         (compute_fn_summary): Likewise.
4172         * ipa-inline-analysis.c (estimate_growth): Likewise.
4173         * ipa-inline.c (caller_growth_limits): Likewise.
4174         (inline_insns_single): Likewise.
4175         (inline_insns_auto): Likewise.
4176         (can_inline_edge_by_limits_p): Likewise.
4177         (want_early_inline_function_p): Likewise.
4178         (big_speedup_p): Likewise.
4179         (want_inline_small_function_p): Likewise.
4180         (want_inline_self_recursive_call_p): Likewise.
4181         (edge_badness): Likewise.
4182         (recursive_inlining): Likewise.
4183         (compute_max_insns): Likewise.
4184         (early_inliner): Likewise.
4185         * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4186         * ipa-profile.c (ipa_profile): Likewise.
4187         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4188         (ipa_analyze_node): Likewise.
4189         (ipcp_transform_function): Likewise.
4190         * ipa-split.c (consider_split): Likewise.
4191         * ipa-sra.c (allocate_access): Likewise.
4192         (process_scan_results): Likewise.
4193         (ipa_sra_summarize_function): Likewise.
4194         (pull_accesses_from_callee): Likewise.
4195         * ira-build.c (loop_compare_func): Likewise.
4196         (mark_loops_for_removal): Likewise.
4197         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4198         * loop-doloop.c (doloop_optimize): Likewise.
4199         * loop-invariant.c (gain_for_invariant): Likewise.
4200         (move_loop_invariants): Likewise.
4201         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4202         (decide_unroll_runtime_iterations): Likewise.
4203         (decide_unroll_stupid): Likewise.
4204         (expand_var_during_unrolling): Likewise.
4205         * lra-assigns.c (spill_for): Likewise.
4206         * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4207         * modulo-sched.c (sms_schedule): Likewise.
4208         (DFA_HISTORY): Likewise.
4209         * opts.c (default_options_optimization): Likewise.
4210         (finish_options): Likewise.
4211         (common_handle_option): Likewise.
4212         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4213         (if): Likewise.
4214         * predict.c (get_hot_bb_threshold): Likewise.
4215         (maybe_hot_count_p): Likewise.
4216         (probably_never_executed): Likewise.
4217         (predictable_edge_p): Likewise.
4218         (predict_loops): Likewise.
4219         (expr_expected_value_1): Likewise.
4220         (tree_predict_by_opcode): Likewise.
4221         (handle_missing_profiles): Likewise.
4222         * reload.c (find_equiv_reg): Likewise.
4223         * reorg.c (redundant_insn): Likewise.
4224         * resource.c (mark_target_live_regs): Likewise.
4225         (incr_ticks_for_insn): Likewise.
4226         * sanopt.c (pass_sanopt::execute): Likewise.
4227         * sched-deps.c (sched_analyze_1): Likewise.
4228         (sched_analyze_2): Likewise.
4229         (sched_analyze_insn): Likewise.
4230         (deps_analyze_insn): Likewise.
4231         * sched-ebb.c (schedule_ebbs): Likewise.
4232         * sched-rgn.c (find_single_block_region): Likewise.
4233         (too_large): Likewise.
4234         (haifa_find_rgns): Likewise.
4235         (extend_rgns): Likewise.
4236         (new_ready): Likewise.
4237         (schedule_region): Likewise.
4238         (sched_rgn_init): Likewise.
4239         * sel-sched-ir.c (make_region_from_loop): Likewise.
4240         * sel-sched-ir.h (MAX_WS): Likewise.
4241         * sel-sched.c (process_pipelined_exprs): Likewise.
4242         (sel_setup_region_sched_flags): Likewise.
4243         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4244         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4245         * toplev.c (print_version): Likewise.
4246         (process_options): Likewise.
4247         * tracer.c (tail_duplicate): Likewise.
4248         * trans-mem.c (tm_log_add): Likewise.
4249         * tree-chrec.c (chrec_fold_plus_1): Likewise.
4250         * tree-data-ref.c (split_constant_offset): Likewise.
4251         (compute_all_dependences): Likewise.
4252         * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4253         * tree-inline.c (remap_gimple_stmt): Likewise.
4254         * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4255         * tree-parloops.c (MIN_PER_THREAD): Likewise.
4256         (create_parallel_loop): Likewise.
4257         * tree-predcom.c (determine_unroll_factor): Likewise.
4258         * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4259         * tree-sra.c (analyze_all_variable_accesses): Likewise.
4260         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4261         * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4262         (dse_optimize_redundant_stores): Likewise.
4263         (dse_classify_store): Likewise.
4264         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4265         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4266         * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4267         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4268         (try_peel_loop): Likewise.
4269         (tree_unroll_loops_completely): Likewise.
4270         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4271         (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4272         (MAX_CONSIDERED_GROUPS): Likewise.
4273         (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4274         * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4275         * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4276         * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4277         (L1_CACHE_SIZE_BYTES): Likewise.
4278         (L2_CACHE_SIZE_BYTES): Likewise.
4279         (should_issue_prefetch_p): Likewise.
4280         (schedule_prefetches): Likewise.
4281         (determine_unroll_factor): Likewise.
4282         (volume_of_references): Likewise.
4283         (add_subscript_strides): Likewise.
4284         (self_reuse_distance): Likewise.
4285         (mem_ref_count_reasonable_p): Likewise.
4286         (insn_to_prefetch_ratio_too_small_p): Likewise.
4287         (loop_prefetch_arrays): Likewise.
4288         (tree_ssa_prefetch_arrays): Likewise.
4289         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4290         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4291         (convert_mult_to_fma): Likewise.
4292         (math_opts_dom_walker::after_dom_children): Likewise.
4293         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4294         (hoist_adjacent_loads): Likewise.
4295         (gate_hoist_loads): Likewise.
4296         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4297         (compute_partial_antic_aux): Likewise.
4298         * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4299         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4300         (vn_reference_lookup): Likewise.
4301         (do_rpo_vn): Likewise.
4302         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4303         * tree-ssa-sink.c (select_best_block): Likewise.
4304         * tree-ssa-strlen.c (new_stridx): Likewise.
4305         (new_addr_stridx): Likewise.
4306         (get_range_strlen_dynamic): Likewise.
4307         (class ssa_name_limit_t): Likewise.
4308         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4309         (create_variable_info_for_1): Likewise.
4310         (init_alias_vars): Likewise.
4311         * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4312         (tail_merge_optimize): Likewise.
4313         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4314         (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4315         (thread_jumps::find_jump_threads_backwards): Likewise.
4316         * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4317         * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4318         * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4319         (jump_table_cluster::can_be_handled): Likewise.
4320         * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4321         (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4322         (param_switch_conversion_branch_ratio): Likewise.
4323         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4324         (vect_enhance_data_refs_alignment): Likewise.
4325         (vect_prune_runtime_alias_test_list): Likewise.
4326         * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4327         (vect_get_datarefs_in_loop): Likewise.
4328         (vect_analyze_loop): Likewise.
4329         * tree-vect-slp.c (vect_slp_bb): Likewise.
4330         * tree-vectorizer.h: Likewise.
4331         * tree-vrp.c (find_switch_asserts): Likewise.
4332         (vrp_prop::check_mem_ref): Likewise.
4333         * tree.c (wide_int_to_tree_1): Likewise.
4334         (cache_integer_cst): Likewise.
4335         * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4336         (reverse_op): Likewise.
4337         (vt_find_locations): Likewise.
4339 2019-11-12  Martin Liska  <mliska@suse.cz>
4341         * Makefile.in: Include params.opt.
4342         * flag-types.h (enum parloops_schedule_type): Add
4343         parloops_schedule_type used in params.opt.
4344         * params.opt: New file.
4346 2019-11-12  Martin Liska  <mliska@suse.cz>
4348         * common.opt: Remove --param and --param= options.
4349         * opt-functions.awk: Mark CL_PARAMS for options
4350         that have Param keyword.
4351         * opts-common.c (decode_cmdline_options_to_array):
4352         Replace --param key=value with --param=key=value.
4353         * opts.c (print_filtered_help): Remove special
4354         printing of params.
4355         (print_specific_help): Update title for params.
4356         (common_handle_option): Do not handle OPT__param.
4357         opts.h (SET_OPTION_IF_UNSET): New macro.
4358         * doc/options.texi: Document Param keyword.
4360 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4361             Frederik Harwath  <frederik@codesourcery.com>
4362             Thomas Schwinge  <thomas@codesourcery.com>
4364         gcc/
4365         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4366         enumeration constant.
4367         (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4368         (is_gimple_omp_offloaded): Likewise.
4369         * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4370         constant.  Adjust the value of ORT_NONE accordingly.
4371         (is_gimple_stmt): Handle OACC_SERIAL.
4372         (oacc_default_clause): Handle ORT_ACC_SERIAL.
4373         (gomp_needs_data_present): Likewise.
4374         (gimplify_adjust_omp_clauses): Likewise.
4375         (gimplify_omp_workshare): Handle OACC_SERIAL.
4376         (gimplify_expr): Likewise.
4377         * omp-expand.c (expand_omp_target):
4378         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4379         (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4380         * omp-low.c (is_oacc_parallel): Rename function to...
4381         (is_oacc_parallel_or_serial): ... this.
4382         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4383         (scan_sharing_clauses): Adjust accordingly.
4384         (scan_omp_for): Likewise.
4385         (lower_oacc_head_mark): Likewise.
4386         (convert_from_firstprivate_int): Likewise.
4387         (lower_omp_target): Likewise.
4388         (check_omp_nesting_restrictions): Handle
4389         GF_OMP_TARGET_KIND_OACC_SERIAL.
4390         (lower_oacc_reductions): Likewise.
4391         (lower_omp_target): Likewise.
4392         * tree.def (OACC_SERIAL): New tree code.
4393         * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4395         * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4397 2019-11-12  Jakub Jelinek  <jakub@redhat.com>
4399         PR target/92449
4400         * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4401         don't emit UNORDERED_EXPR guarded libcall.  Formatting fixes.
4403         PR tree-optimization/92452
4404         * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4405         into NULL_TREE, set up_bound to NULL_TREE instead of computing
4406         MINUS_EXPR on it.
4408 2019-11-12  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4410         * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4411         safelen with 0.
4413 2019-11-12  Alan Modra  <amodra@gmail.com>
4415         * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4416         element of unspec vec.
4417         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4418         PC-relative TLS.
4419         * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4420         (tls_gd_pcrel, tls_ld_pcrel): New insns.
4421         (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4422         (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4424 2019-11-12  Alan Modra  <amodra@gmail.com>
4426         * config/rs6000/rs6000.opt (mtls-markers): Delete.
4427         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4428         (IS_NOMARK_TLSGETADDR): Likewise.
4429         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4430         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4431         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4432         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4433         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4434         (rs6000_indirect_call_template_1): Likewise.
4435         (rs6000_pltseq_template): Likewise.
4436         (rs6000_opt_vars): Remove "tls-markers" entry.
4437         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4438         with TARGET_ELF.
4439         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4440         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4441         (pltseq_plt_pcrel<mode>): Likewise.
4442         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4443         (call_value_local64): Likewise.
4444         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4445         output and length attribute sub-expression.
4446         (call_value_nonlocal_sysv<mode>),
4447         (call_value_nonlocal_sysv_secure<mode>),
4448         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4449         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4450         (call_value_indirect_pcrel<mode>): Likewise.
4451         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4452         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4453         * configure: Regenerate.
4454         * config.in: Regenerate.
4456 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
4458         * config/rs6000/predicates.md (prefixed_memory): New predicate.
4459         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4460         address being a prefixed load/store.
4461         (stack_protect_testdi): Deal with either address being a prefixed
4462         load.
4464 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
4466         PR bootstrap/92433
4467         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4468         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
4469         std::swap.
4471 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
4473         PR tree-optimization/92420
4474         * tree-vect-stmts.c (get_negative_load_store_type): Move further
4475         up file.
4476         (get_group_load_store_type): Use it for reversed SLP accesses.
4478 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
4480         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4481         summary.
4482         (ipcp_transformation_t::duplicate): Break out from ...
4483         (ipa_node_params_t::duplicate): ... here; add copying of agg
4484         replacements.
4485         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4486         (ipcp_transformation_t): Add duplicate.
4488 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
4490         PR fortran/91828
4491         * doc/install.texi: Document that the minimum MPFR version is
4492         3.1.0.
4494 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
4496         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4497         use new register constraint letters.
4499 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
4501         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4502         as well, if interesting recover the symbol and re-legitimize the
4503         pic address.
4505 2019-11-11  Martin Liska  <mliska@suse.cz>
4507         * dbgcnt.def (DEBUG_COUNTER): Sort counters
4508         alphabetically.
4510 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4512         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4513         account when checking if there are enough iterations to vectorize
4514         epilogue.
4516 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4517             Kwok Cheung Yeung  <kcy@codesourcery.com>
4519         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4520         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4521         (LANG_HOOKS_DECLS): Rename also here.
4522         * langhooks.h (lang_hooks_for_decls): Rename
4523         omp_is_optional_argument to omp_check_optional_argument; take
4524         additional bool argument.
4525         * omp-general.h (omp_check_optional_argument): Likewise.
4526         * omp-general.h (omp_check_optional_argument): Likewise.
4527         * omp-low.c (lower_omp_target): Update calls; handle absent
4528         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4530 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
4532         PR target/87833
4533         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4534         -fPIC and -shared the last to create offload image.
4536 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4538         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4539         of 'offset'.
4541         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4542         (config.status): Use/depend on it.
4543         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4544         * configure: Regenerate.
4546 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
4548         PR tree-optimization/88760
4549         * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4550         * gcc/common/config/rs6000/rs6000-common.c
4551         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4552         Turn on -funroll-loops and -munroll-only-small-loops.
4553         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4554         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4555         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4556         Turn off -munroll-only-small-loops for explicit -funroll-loops.
4557         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4558         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
4560 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
4562         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4563         Make scalar_load, vector_load, unaligned_load and
4564         vector_gather_load cost more to conform hardware latency and
4565         insn cost settings.
4567 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
4569         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4570         (MACHO_SYMBOL_LINKER_VIS_P): New.
4572 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
4574         * lra-spills.c (assign_spill_hard_regs): Do not spill into
4575         registers in eliminable_regset.
4577 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4579         * ipa-inline.c (compute_uninlined_call_time,
4580         compute_inlined_call_time): Take edge frequency as
4581         parameter rather than computing it by itself.
4582         (big_speedup_p, edge_badness): Manually CSE sreal
4583         frequency calculations.
4585 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4587         * profile-count.c (profile_count::to_sreal_scale): Short circuit
4588         case where profiles are same.
4590 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4592         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4594 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4596         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4597         args summaries of inlined edge unless it holds info about
4598         described reference.
4600 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
4602         * config/rs6000/rs6000.md (CC_any): New mode iterator.
4603         (*movcc_internal1): Rename to...
4604         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
4606 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4608         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4609         (cgraph_node::create_virtual_clone): Copy it.
4610         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4611         summaries.
4612         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4613         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4614         is disabled.
4615         (propagate_constants_across_call): If callee is not analyzed, give up.
4616         (propagate_constants_topo): Lower to bottom latties of all callees of
4617         functions with ipa-cp disabled.
4618         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4619         (cgraph_edge_brings_value_p): Check for availability first.
4620         (create_specialized_node): Set ipcp_clone.
4621         (ipcp_store_bits_results): Check that info is present.
4622         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4623         thunks.
4624         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4625         conservative when callee summary is missing.
4626         (remap_edge_summaries): Lookup call summary only when needed.
4627         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4628         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4629         Use get_create.
4630         (ipa_analyze_node): Use get_create.
4631         (propagate_controlled_uses): Do not propagate when function is not
4632         analyzed.
4633         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4634         (ipa_read_node_info): Use get_create.
4635         * ipa-prop.h (IPA_NODE_REF): Use get.
4636         (IPA_NODE_REF_GET_CREATE): New.
4638 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4640         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4641         on function symbol.
4643 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4645         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4646         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4647         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4648         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4650 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4652         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4653         capping the growth cumulated.
4654         (offline_size): Break out from ...
4655         (estimate_growth): ... here.
4656         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4657         parameters.
4658         (growth_likely_positive): Turn to ...
4659         (growth_positive_p): Re-implement.
4660         * ipa-inline.h (growth_likely_positive): Remove.
4661         (growth_positive_p): Declare.
4662         * ipa-inline.c (want_inline_small_function_p): Use
4663         growth_positive_p.
4664         (want_inline_function_to_all_callers_p): Likewise.
4666 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4668         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4669         calculation of min_size.
4670         (ipa_update_overall_fn_summary): Likewise.
4672 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4674         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4675         estimate_edge_devirt_benefit when not computing hints;
4676         do not compute time when not asked for.
4677         (estimate_calls_size_and_time): Pass NULL hints and time when
4678         these are not computed; do not evaluate hint predicates when these are
4679         not computed.
4680         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4681         frequency.
4683 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
4685         PR tree-optimization/92401
4686         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4687         if res_op->code is an expression with code length 1.
4688         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4689         if res_op->code is an expression with code length 2.
4690         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4691         if res_op->code is an expression with code length 3.
4693 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
4695         * config/darwin.c (machopic_mcount_stub_name): Validate the
4696         symbol stub name when it is created.
4697         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4698         stub validation.
4700 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
4702         * symtab.c: Fix comment typos.
4703         * cgraphunit.c: Likewise.
4704         * cgraph.h: Likewise.
4705         * cgraphclones.c: Likewise.
4706         * cgraph.c: Likewise.
4707         * varpool.c: Likewise.
4708         * tree-ssa-strlen.c: Likewise.
4709         * ipa-sra.c: Likewise.
4710         (scan_expr_access, check_all_callers_for_issues): Fix typo
4711         in a dump message.
4713 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
4715         * config/darwin-protos.h: Add include quard.
4717 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
4719         * range-op.h (range_operator::fold_range): Return result in a
4720         reference parameter instead of by value.
4721         (range_operator::wi_fold): Same.
4722         * range-op.cc (range_operator::wi_fold): Return result in a reference
4723         parameter instead of by value.
4724         (range_operator::fold_range): Same.
4725         (value_range_from_overflowed_bounds): Same.
4726         (value_range_with_overflow): Same
4727         (create_possibly_reversed_range): Same.
4728         (operator_equal::fold_range): Same.
4729         (operator_not_equal::fold_range): Same.
4730         (operator_lt::fold_range): Same.
4731         (operator_le::fold_range): Same.
4732         (operator_gt::fold_range): Same.
4733         (operator_ge::fold_range): Same.
4734         (operator_plus::wi_fold): Same.
4735         (operator_plus::op1_range): Change call to fold_range.
4736         (operator_plus::op2_range): Change call to fold_range.
4737         (operator_minus::wi_fold): Return result via reference parameter.
4738         (operator_minus::op1_range): Change call to fold_range.
4739         (operator_minus::op2_range): Change call to fold_range.
4740         (operator_min::wi_fold): Return result via reference parameter.
4741         (operator_max::wi_fold): Same.
4742         (cross_product_operator::wi_cross_product): Same.
4743         (operator_mult::wi_fold): Same.
4744         (operator_div::wi_fold): Same.
4745         (operator_div op_floor_div): Fix whitespace.
4746         (operator_exact_divide::op1_range): Change call to fold_range.
4747         (operator_lshift::fold_range): Return result via reference parameter.
4748         (operator_lshift::wi_fold): Same.
4749         (operator_rshift::fold_range): Same.
4750         (operator_rshift::wi_fold): Same.
4751         (operator_cast::fold_range): Same.
4752         (operator_cast::op1_range): Change calls to fold_range.
4753         (operator_logical_and::fold_range): Return result via reference.
4754         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4755         (operator_bitwise_and::wi_fold): Return result via reference.
4756         (operator_logical_or::fold_range): Same.
4757         (operator_bitwise_or::wi_fold): Same.
4758         (operator_bitwise_xor::wi_fold): Same.
4759         (operator_trunc_mod::wi_fold): Same.
4760         (operator_logical_not::fold_range): Same.
4761         (operator_bitwise_not::fold_range): Same.
4762         (operator_bitwise_not::op1_range): Change call to fold_range.
4763         (operator_cst::fold_range): Return result via reference.
4764         (operator_identity::fold_range): Same.
4765         (operator_abs::wi_fold): Same.
4766         (operator_absu::wi_fold): Same.
4767         (operator_negate::fold_range): Same.
4768         (operator_negate::op1_range): Change call to fold_range.
4769         (operator_addr_expr::fold_range): Return result via reference.
4770         (operator_addr_expr::op1_range): Change call to fold_range.
4771         (operator_pointer_plus::wi_fold): Return result via reference.
4772         (operator_pointer_min_max::wi_fold): Same.
4773         (operator_pointer_and::wi_fold): Same.
4774         (operator_pointer_or::wi_fold): Same.
4775         (range_op_handler): Change call to fold_range.
4776         (range_cast): Same.
4777         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4778         fold_range.
4779         (range_fold_unary_symbolics_p): Same.
4780         (range_fold_binary_expr): Same.
4781         (range_fold_unary_expr): Same.
4783 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4785         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4786         vector type as an argument rather than reading it from the
4787         stmt_vec_info.
4788         (vect_create_epilog_for_reduction): Update accordingly.
4789         (vectorizable_reduction): Likewise.
4790         (vect_transform_cycle_phi): Likewise.
4792 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
4794         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4795         the comparison codes that make sense for the mode used, and only the
4796         codes that can be done with a single branch instruction.
4798 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4800         PR tree-optimization/92351
4801         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4802         peeling the main loop for alignment, make sure to set the misalignment
4803         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4805 2019-11-08  Richard Biener  <rguenther@suse.de>
4807         * dbgcnt.def (ivopts_loop): Add.
4808         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4809         ivopts_loop before optimizing a loop.
4811 2019-11-08  Richard Biener  <rguenther@suse.de>
4813         PR ipa/92409
4814         * tree-inline.c (declare_return_variable): Properly handle
4815         type mismatches for the return slot.
4817 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4819         PR target/92095
4820         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4821         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4822         change.
4823         (got_helper_needed): New static variable.
4824         (output_load_pcrel_sym): New function.
4825         (get_pc_thunk_name): Remove after inlining...
4826         (load_got_register): ...here.  Rework the initialization of the GOT
4827         register and of the GOT helper.
4828         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4829         (sparc_file_end): Test got_helper_needed to decide whether the GOT
4830         helper must be emitted.  Use output_asm_insn instead of fprintf.
4831         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4832         if optimization is enabled.
4833         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4834         by calling output_load_pcrel_sym.
4836 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4838         * tree-sra.c (create_access): Delay disqualifying the base
4839         for poly_int values until we know we have a base.
4841 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4843         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4844         for loops with SIMDUID set.  Enable epilogue vectorization for loops
4845         with SIMDLEN set after finding a main loop with a VF that matches it.
4847 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
4849         PR target/92038
4850         * gimple-ssa-store-merging.c (find_constituent_stores): For return
4851         value only, return non-NULL if there is a single non-clobber
4852         constituent store even if there are constituent clobbers and return
4853         one of clobber constituent stores if all constituent stores are
4854         clobbers.
4855         (split_group): Handle clobbers.
4856         (imm_store_chain_info::output_merged_store): When computing
4857         bzero_first, look after all clobbers at the start.  Don't count
4858         clobber stmts in orig_num_stmts, except if the first orig store is
4859         a clobber covering the whole area and split_stores cover the whole
4860         area, consider equal number of stmts ok.  Punt if split_stores
4861         contains only ->orig stores and their number plus number of original
4862         clobbers is equal to original number of stmts.  For ->orig, look past
4863         clobbers in the constituent stores.
4864         (imm_store_chain_info::output_merged_stores): Don't remove clobber
4865         stmts.
4866         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4867         rhs.
4868         (store_valid_for_store_merging_p): Allow clobber stmts.
4869         (verify_clear_bit_region_be): Fix up a thinko in function comment.
4871         PR c++/92384
4872         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4873         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4874         slot.
4875         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4876         force creation of a unique data.stack_parm slot.
4878 2019-11-08  Richard Biener  <rguenther@suse.de>
4880         * genmatch.c (expr::gen_transform): Use the resimplify
4881         member function instead of hard-coding the gimple_resimplifyN variant.
4882         (dt_simplify::gen_1): Likewise.
4884 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4886         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4887         POLY_INT_CST.
4889 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4891         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4892         instead of INTEGER_CST.
4894 2019-11-08  Richard Biener  <rguenther@suse.de>
4896         PR tree-optimization/92324
4897         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4898         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4899         sign-conversions as necessary.
4900         (vectorizable_reduction): Reject conversions in the chain
4901         that are not sign-conversions, base analysis on a non-converting
4902         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
4903         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4904         for debug stmts.
4905         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4906         (STMT_VINFO_REDUC_VECTYPE): Likewise.
4908 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
4910         PR target/92055
4911         * config/avr/avr.opt (-mdouble=, -mlong-double=):
4912         Fix a missing '-' when displaying these options in the
4913         help screen.
4915 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4917         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4919 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4921         * config/aarch64/aarch64-builtins.c
4922         (aarch64_builtin_vectorized_function): Remove bswap handling.
4924 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4926         * tree-core.h (tree_type_common::indivisible_p): New member variable.
4927         * tree.h (TYPE_INDIVISIBLE_P): New macro.
4928         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4929         Treat the vector types as indivisible.
4931 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4933         * optabs.def (gather_load_optab, mask_gather_load_optab)
4934         (scatter_store_optab, mask_scatter_store_optab): Turn into
4935         conversion optabs, with the offset mode given explicitly.
4936         * doc/md.texi: Update accordingly.
4937         * config/aarch64/aarch64-sve-builtins-base.cc
4938         (svld1_gather_impl::expand): Likewise.
4939         (svst1_scatter_impl::expand): Likewise.
4940         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4941         (expand_scatter_store_optab_fn): Likewise.
4942         (direct_gather_load_optab_supported_p): Likewise.
4943         (direct_scatter_store_optab_supported_p): Likewise.
4944         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
4945         to be argument 4.
4946         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4947         (internal_gather_scatter_fn_supported_p): Replace the offset sign
4948         argument with the offset vector type.  Require the two vector
4949         types to have the same number of elements but allow their element
4950         sizes to be different.  Treat the optabs as conversion optabs.
4951         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4952         prototype accordingly.
4953         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4954         (supports_vec_convert_optab_p): ...this new function.
4955         (supports_vec_gather_load_p): Update accordingly.
4956         (supports_vec_scatter_store_p): Likewise.
4957         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4958         Replace the offset sign and bits parameters with a scalar type tree.
4959         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4960         Pass back the offset vector type instead of the scalar element type.
4961         Allow the offset to be wider than the memory elements.  Search for
4962         an offset type that the target supports, stopping once we've
4963         reached the maximum of the element size and pointer size.
4964         Update call to internal_gather_scatter_fn_supported_p.
4965         (vect_check_gather_scatter): Update calls accordingly.
4966         When testing a new scale before knowing the final offset type,
4967         check whether the scale is supported for any signed or unsigned
4968         offset type.  Check whether the target supports the source and
4969         target types of a conversion before deciding whether to look
4970         through the conversion.  Record the chosen offset_vectype.
4971         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4972         (vect_recog_gather_scatter_pattern): Get the scalar offset type
4973         directly from the gs_info's offset_vectype instead.  Pass a zero
4974         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4975         * tree-vect-stmts.c (check_load_store_masking): Update call to
4976         internal_gather_scatter_fn_supported_p, passing the offset vector
4977         type recorded in the gs_info.
4978         (vect_truncate_gather_scatter_offset): Update call to
4979         vect_check_gather_scatter, leaving it to search for a valid
4980         offset vector type.
4981         (vect_use_strided_gather_scatters_p): Convert the offset to the
4982         element type of the gs_info's offset_vectype.
4983         (vect_get_gather_scatter_ops): Get the offset vector type directly
4984         from the gs_info.
4985         (vect_get_strided_load_store_ops): Likewise.
4986         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4987         and IFN_MASK_GATHER_LOAD.
4988         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4989         (gather_load<mode><v_int_equiv>): ...this.
4990         (mask_gather_load<mode>): Rename to...
4991         (mask_gather_load<mode><v_int_equiv>): ...this.
4992         (scatter_store<mode>): Rename to...
4993         (scatter_store<mode><v_int_equiv>): ...this.
4994         (mask_scatter_store<mode>): Rename to...
4995         (mask_scatter_store<mode><v_int_equiv>): ...this.
4997 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
4999         PR target/92132
5000         * config/rs6000/predicates.md
5001         (signed_or_equality_comparison_operator): New predicate.
5002         (unsigned_or_equality_comparison_operator): Likewise.
5003         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5004         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5005         * config/rs6000/vector.md
5006         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5007         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5008         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5009         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5010         vector modes and same-size integer vector modes.
5011         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5012         (vector_lt<mode> for VEC_F): New expand.
5013         (vector_le<mode> for VEC_F): Likewise.
5014         (vector_ne<mode> for VEC_F): Likewise.
5015         (vector_unge<mode> for VEC_F): Likewise.
5016         (vector_ungt<mode> for VEC_F): Likewise.
5017         (vector_unle<mode> for VEC_F): Likewise.
5018         (vector_unlt<mode> for VEC_F): Likewise.
5019         (vector_uneq<mode>): Expose name.
5020         (vector_ltgt<mode>): Likewise.
5021         (vector_unordered<mode>): Likewise.
5022         (vector_ordered<mode>): Likewise.
5024 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
5026         PR target/92295
5027         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5028         Enhance ix86_expand_vector_init_concat.
5030 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
5032         * doc/invoke.texi (-Wold-style-definition): Document () not being
5033         considered an old-style definition for C2x.
5035 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
5037         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5038         Enhance comment.
5039         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5040         insn patterns using ldcw instruction.
5041         (memory_barrier): Remove insn pattern using sync instruction.
5042         * config/pa/pa.opt (coherent-ldcw): New option.
5043         (ordered): New option.
5045 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5047         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5048         valid conditions.
5050 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
5052         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5053         typo - mistmatch -> mismatch.
5054         * ipa-profile.c (ipa_profile): Likewise.
5055         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5056         - mistmatch -> mismatch.
5058 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5060         * simplify-rtx.c (comparison_to_mask): New function.
5061         (mask_to_comparison): New function.
5062         (simplify_logical_relational_operation): New function.
5063         (simplify_binary_operation_1): Call
5064         simplify_logical_relational_operation.
5066 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
5068         PR other/92090
5069         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5070         modes for integer constants.
5072 2019-11-07  Jan Hubicka  <jh@suse.cz>
5074         PR ipa/92406
5075         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5076         summary.
5078 2019-11-07  Jan Hubicka  <jh@suse.cz>
5080         * optc-save-gen.awk: Generate cl_target_option_free
5081         and cl_optimization_option_free.
5082         * opth-en.awk: Declare cl_target_option_free
5083         and cl_optimization_option_free.
5084         * tree.c (free_node): Use it.
5086 2019-11-06  Jan Hubicka  <jh@suse.cz>
5088         * lto-streamer-in.c: Include alloc-pool.h.
5089         (freeing_string_slot_hasher): Remove.
5090         (string_slot_allocator): New object allocator.
5091         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5092         (file_name_obstack): New obstack.
5093         (canon_file_name): Allocate in obstack and allocator.
5094         (lto_reader_init): Initialize obstack and allocator.
5095         (lto_free_file_name_hash): New function.
5096         * lto-streamer.h (lto_free_file_name_hash): New.
5098 2019-11-07  Feng Xue  <fxue@os.amperecomputing.com>
5100         PR tree-optimization/89134
5101         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5102         * params.def: Add min-loop-cond-split-prob.
5103         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5104         outside checks on loop into the function.
5105         (split_info): New class.
5106         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5107         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5108         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5109         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5110         (stmt_semi_invariant_p, branch_removable_p): Likewise.
5111         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5112         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5113         (split_loop_on_cond): Likewise.
5114         (tree_ssa_split_loops): Add loop split on conditional statement.
5116 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
5118         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5119         pattern.
5121 2019-11-07  Richard Biener  <rguenther@suse.de>
5123         PR tree-optimization/92405
5124         * tree-vect-loop.c (vectorizable_reduction): Appropriately
5125         restrict lane-reducing ops to single stmt chains.
5127 2019-11-07  Martin Jambor  <mjambor@suse.cz>
5129         PR lto/70929
5130         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5131         * cgraph.h (gimple_check_call_matching_types): Remove
5132         * cgraph.c (gimple_check_call_args): Likewise.
5133         (gimple_check_call_matching_types): Likewise.
5134         (symbol_table::create_edge): Do not call
5135         gimple_check_call_matching_types.
5136         (cgraph_edge::make_direct): Likewise.
5137         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5138         * value-prof.h (check_ic_target): Remove.
5139         * value-prof.c (check_ic_target): Remove.
5140         (gimple_ic_transform): Do nat call check_ic_target.
5141         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5142         (afdo_indirect_call): Likewise.
5143         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5144         gimple_check_call_matching_types.
5145         * ipa-inline.c (early_inliner): Likewise.
5147 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5149         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5150         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5151         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5152         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5153         * config/arm/iterators.md (USSAT16): New int_iterator.
5154         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5155         (sup): Likewise.
5156         * config/arm/predicates.md (ssat16_imm): New predicate.
5157         (usat16_imm): Likewise.
5158         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5160 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5162         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5163         New define_insns.
5164         (arm_<simd32_op>): New define_expands.
5165         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5166         __smuad, __smuadx): Define.
5167         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5168         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5169         (SIMD32_BINOP_Q): Likewise.
5170         (simd32_op): Handle the above.
5171         * config/arm/unspecs.md: Define unspecs for the above.
5173 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5175         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5176         * config/arm/arm.md (APSRGE_REGNUM): Define.
5177         (arm_<simd32_op>): New define_insn.
5178         (arm_sel): Likewise.
5179         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5180         (CALL_USED_REGISTERS): Likewise.
5181         (REG_ALLOC_ORDER): Likewise.
5182         (FIRST_PSEUDO_REGISTER): Update value.
5183         (ARM_GE_BITS_READ): Define.
5184         * config/arm/arm.c (arm_conditional_register_usage): Clear
5185         APSRGE_REGNUM from operand_reg_set.
5186         (arm_ge_bits_access): Define.
5187         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5188         ARM_BUIILTIN_sel.
5189         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5190         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5191         FAIL if ARM_GE_BITS_READ.
5192         (*arm_add<mode>3): New define_insn.
5193         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
5194         (*arm_sub<mode>3): New define_insn.
5195         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5196         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5197         __usub16): Define.
5198         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5199         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5200         (simd32_op): Handle the above.
5201         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5202         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5203         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5204         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5206 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5208         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5209         (arm_smlabb): New define_expand.
5210         (*maddhisi4tb): Rename to...
5211         (maddhisi4tb): ... This.
5212         (*maddhisi4tt): Rename to...
5213         (maddhisi4tt): ... This.
5214         (arm_smlatb_setq): New define_insn.
5215         (arm_smlatb): New define_expand.
5216         (arm_smlatt_setq): New define_insn.
5217         (arm_smlatt): New define_expand.
5218         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5219         (arm_<smlaw_op>): New define_expand.
5220         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5221         __smlawb, __smlawt): Define.
5222         * config/arm_acle_builtins.def: Define builtins for the above.
5223         * config/arm/iterators.md (SMLAWBT): New int_iterator.
5224         (slaw_op): New int_attribute.
5225         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5227 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5229         * config/arm/arm.md (arm_<ss_op>): New define_expand.
5230         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5231         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5232         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5233         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5234         (ss_op): New code_attr.
5236 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5238         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5239         * config/arm/arm.md (APSRQ_REGNUM): Define.
5240         (add_setq): New define_subst.
5241         (add_clobber_q_name): New define_subst_attr.
5242         (add_clobber_q_pred): Likewise.
5243         (maddhisi4): Change to define_expand.  Split into mult and add if
5244         ARM_Q_BIT_READ.
5245         (arm_maddhisi4): New define_insn.
5246         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5247         (*maddhisi4tt): Likewise.
5248         (arm_ssat): New define_expand.
5249         (arm_usat): Likewise.
5250         (arm_get_apsr): New define_insn.
5251         (arm_set_apsr): Likewise.
5252         (arm_saturation_occurred): New define_expand.
5253         (arm_set_saturation): Likewise.
5254         (*satsi_<SAT:code>): Rename to...
5255         (satsi_<SAT:code><add_clobber_q_name>): ... This.
5256         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5257         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5258         (CALL_USED_REGISTERS): Mark apsrq.
5259         (FIRST_PSEUDO_REGISTER): Update value.
5260         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5261         (machine_function): Add q_bit_access.
5262         (ARM_Q_BIT_READ): Define.
5263         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5264         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5265         operand_reg_set.
5266         (arm_q_bit_access): Define.
5267         * config/arm/arm-builtins.c: Include stringpool.h.
5268         (arm_sat_binop_imm_qualifiers,
5269         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5270         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5271         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5272         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5273         SET_SAT_QUALIFIERS): Likewise.
5274         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5275         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5276         Handle 0 argument expander.
5277         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5278         (arm_check_builtin_call): Define.
5279         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5280         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5281         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5282         (arm_q_bit_access): Likewise.
5283         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5284         __saturation_occurred, __set_saturation_occurred): Define.
5285         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5286         saturation_occurred, set_saturation_occurred.
5287         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5288         (UNSPEC_APSR_READ): Likewise.
5289         (VUNSPEC_APSR_WRITE): Likewise.
5290         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5291         (*arm_ssadd<mode>3): New define_insn.
5292         (sssub<mode>3): Convert to define_expand.
5293         (*arm_sssub<mode>3): New define_insn.
5294         (ssmulsa3): Convert to define_expand.
5295         (*arm_ssmulsa3): New define_insn.
5296         (usmulusa3): Convert to define_expand.
5297         (*arm_usmulusa3): New define_insn.
5298         (ssmulha3): FAIL if ARM_Q_BIT_READ.
5299         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5300         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5302 2019-11-07  Martin Liska  <mliska@suse.cz>
5304         PR c++/92354
5305         * cgraph.c (delete_function_version): Clear global
5306         variable version_info_node if equal to deleted
5307         function.
5309 2019-11-07  Martin Liska  <mliska@suse.cz>
5311         * fold-const.c (operand_compare::operand_equal_p): Add comparison
5312         of CONSTRUCTOR_NO_CLEARING.
5313         (operand_compare::hash_operand): Likewise.
5315 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
5317         Support 64-bit double and 64-bit long double configurations.
5319         PR target/92055
5320         * config.gcc (tm_defines) [avr]: Set from --with-double=,
5321         --with-long-double=.
5322         * config/avr/t-multilib: Remove.
5323         * config/avr/t-avr: Output of genmultilib.awk is now fully
5324         dynamically generated and no more part of the repo.
5325         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5326         Pass them down to...
5327         * config/avr/genmultilib.awk: ...here and handle them.
5328         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5329         (-mlong-double=, avr_long_double). New option and var.
5330         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5331         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5332         Set default as requested by --with-double=
5333         (TARGET_HANDLE_OPTION): Define to this...
5334         (avr_handle_option): ...new hook worker.
5335         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5336         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5337         (avr_double_lib): New proto for spec function.
5338         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5339         (DRIVER_SELF_SPECS): Call %:double-lib.
5340         * config/avr/avr.c (avr_option_override): Assert
5341         sizeof(long double) >= sizeof(double) for the target.
5342         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5343         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5344         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5345         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5346         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5347         New built-in define depending on --with-double=, --with-long-double=.
5348         * config/avr/driver-avr.c (avr_double_lib): New spec function.
5349         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5350         * doc/install.texi (Cross-Compiler-Specific Options)
5351         <--with-double=, --with-long-double=>: Doc.
5353 2019-11-07  Richard Biener  <rguenther@suse.de>
5355         * dbgcnt.def (gimple_unroll): New.
5356         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5357         gimple_unroll debug counter before applying transform.
5358         (try_peel_loop): Likewise.
5360 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
5362         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5363         frame pointer in multiple registers.
5364         (ira_setup_eliminable_regset): Setup eliminable_regset,
5365         ira_no_alloc_regs and regs_ever_live for frame pointer in
5366         multiple registers.
5368 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5370         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5371         V2DI modes.
5373 2019-11-06  Jan Hubicka  <jh@suse.cz>
5375         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5376         allocations.
5377         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5378         Do not silently ignore summary corruptions.
5380 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
5382         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5383         the epilogue if there are peeled iterations for it to handle.
5385 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
5387         * config/arc/arc.c (arc_split_ior): Add asserts.
5388         (arc_split_mov_const): Likewise.
5389         (arc_check_ior_const): Do not match known short immediate values.
5390         * config/arc/arc.md (movsi): Don't split predicated instructions
5391         (iorsi): Likewise.
5393 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
5395         * config/arc/arc.opt (mea): Update help string.
5396         * doc/invoke.texi(ARC): Update mea option info.
5398 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
5400         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5401         (zero_extendqisi2_ac): Likewise.
5402         (zero_extendhisi2_i): Likewise.
5403         (extendqihi2_i): Likewise.
5404         (extendqisi2_ac): Likewise.
5405         (extendhisi2_i): Likewise.
5407 2019-11-06  Richard Biener  <rguenther@suse.de>
5409         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5410         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5411         Simplify single_defuse_cycle condition.
5413 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
5415         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5416         epilogue loop, make sure that the VF is small enough or that
5417         the epilogue loop can be fully-masked.
5419 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
5421         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5422         loop when we've finished, rather than returning directly from
5423         the loop.  Use a local variable to track whether we're still
5424         searching for the preferred simdlen.  Make vect_epilogues
5425         record whether the next iteration should try to treat the
5426         loop as an epilogue.
5428 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
5430         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5431         __arc_hard_float__, __ARC_HARD_FLOAT__,
5432         __arc_soft_float__, __ARC_SOFT_FLOAT__
5434 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5436         PR tree-optimization/92317
5437         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5438         update phi's with constant phi arguments.
5440 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
5441             Alexandre Oliva  <oliva@adacore.com>
5443         * common.opt (-fcallgraph-info[=]): New option.
5444         * doc/invoke.texi (Developer options): Document it.
5445         * opts.c (common_handle_option): Handle it.
5446         * builtins.c (expand_builtin_alloca): Record allocation if
5447         -fcallgraph-info=da.
5448         * calls.c (expand_call): If -fcallgraph-info, record the call.
5449         (emit_library_call_value_1): Likewise.
5450         * flag-types.h (enum callgraph_info_type): New type.
5451         * explow.c: Include stringpool.h.
5452         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5453         * function.c (allocate_stack_usage_info): New.
5454         (allocate_struct_function): Call it for -fcallgraph-info.
5455         (prepare_function_start): Call it otherwise.
5456         (record_final_call, record_dynamic_alloc): New.
5457         * function.h (struct callinfo_callee): New.
5458         (CALLEE_FROM_CGRAPH_P): New.
5459         (struct callinfo_dalloc): New.
5460         (struct stack_usage): Add callees and dallocs.
5461         (record_final_call, record_dynamic_alloc): Declare.
5462         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5463         object if -fcallgraph-info=da.
5464         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5465         * print-tree.h (print_decl_identifier): Declare.
5466         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5467         * print-tree.c: Include print-tree.h.
5468         (print_decl_identifier): New function.
5469         * toplev.c: Include print-tree.h.
5470         (callgraph_info_file): New global variable.
5471         (callgraph_info_external_printed): Likewise.
5472         (output_stack_usage): Rename to...
5473         (output_stack_usage_1): ... this.  Make it static, add cf
5474         parameter.  If -fcallgraph-info=su, print stack usage to cf.
5475         If -fstack-usage, use print_decl_identifier for
5476         pretty-printing.
5477         (INDIRECT_CALL_NAME): New.
5478         (dump_final_node_vcg_start): New.
5479         (dump_final_callee_vcg, dump_final_node_vcg): New.
5480         (output_stack_usage): New.
5481         (lang_dependent_init): Open and start file if
5482         -fcallgraph-info.  Allocated callgraph_info_external_printed.
5483         (finalize): If callgraph_info_file is not null, finish it,
5484         close it, and release callgraph_info_external_printed.
5486 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
5487             Frederik Harwath  <frederik@codesourcery.com>
5488             Thomas Schwinge  <thomas@codesourcery.com>
5490         * omp-low.c (struct omp_context): New fields
5491         local_reduction_clauses, outer_reduction_clauses.
5492         (new_omp_context): Initialize these.
5493         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5494         (scan_omp_for): Check reduction clauses for incorrect nesting.
5496 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
5498         PR inline-asm/92352
5499         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5500         operands with non-memory constraints.
5502 2019-11-05  Martin Sebor  <msebor@redhat.com>
5504         PR tree-optimization/92373
5505         * tree.c (component_ref_size): Only consider initializers of objects
5506         of matching struct types.
5507         Return null for instances of interior zero-length arrays.
5509 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
5511         * doc/md.texi (Insn Splitting): Fix combiner documentation.
5513 2019-11-05  Jason Merrill  <jason@redhat.com>
5515         PR tree-optimization/91825
5516         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5518 2019-11-05  Jim Wilson  <jimw@sifive.com>
5520         PR middle-end/92263
5521         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5522         optimize_insn_for_speed_p is true.
5524 2019-11-05  Martin Sebor  <msebor@redhat.com>
5526         PR middle-end/92333
5527         PR middle-end/82608
5528         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5529         size.
5530         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5531         name and location for a temporary variable.
5533 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5535         * tree-vrp.c (value_range::value_range): Fix whitespace.
5536         (defined_ranges_p): Same.
5537         (range_fold_binary_symbolics_p): Same.
5538         (value_range::intersect_helper): Same.
5539         (value_range::union_helper): Same.
5540         * tree-vrp.h (range_fold_binary_expr): Same.
5542 2019-11-04  Martin Sebor  <msebor@redhat.com>
5544         PR middle-end/92341
5545         PR middle-end/82612
5546         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5547         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5548         of message printed in a warning for empty arrays.
5549         (vrp_prop::check_mem_ref): Also handle function parameters and
5550         empty arrays.
5552 2019-11-05  Richard Biener  <rguenther@suse.de>
5554         PR tree-optimization/92371
5555         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5556         on the original stmt of live stmts in the chain.
5557         (vectorizable_live_operation): Look at the original stmt when
5558         checking STMT_VINFO_REDUC_DEF.
5560 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5562         * gimple-fold.c, gimple-loop-versioning.cc,
5563         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5564         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5565         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5566         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5567         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5568         value_range_equiv, and value_range_base to value_range.
5570 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
5572         * expr.c (build_personality_function): Fix generated type to
5573         match actual personality functions.
5575 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
5577         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5578         enough bytes for the NULL character.
5580 2019-11-05  Richard Biener  <rguenther@suse.de>
5582         PR tree-optimization/92280
5583         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5584         had a single use do not create a new CTOR.
5585         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5586         BIT_FIELD_REF of a CTOR via GENERIC.
5588 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
5590         * config/s390/s390.c (s390_vector_alignment): Check if the value
5591         fits into uhwi before using it.
5593 2019-11-05  Martin Liska  <mliska@suse.cz>
5595         * symbol-summary.h: Use ggc_delete.
5597 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
5599         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5600         Change vec_perm field to 10.
5602 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
5604         * doc/install.texi: Further fix syntax for html generation.
5606 2019-11-05  Martin Liska  <mliska@suse.cz>
5608         * symbol-summary.h: Rename allocator to m_allocator and
5609         add comment.
5611 2019-11-05  Richard Biener  <rguenther@suse.de>
5613         PR tree-optimization/92324
5614         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5615         all signed or unsigned operations.
5617 2019-11-05  Jan Hubicka  <jh@suse.cz>
5619         * hsa-brig.c: Include alloc-pool.h
5620         * hsa-dump.c: Likewise.
5621         * hsa-gen.c: Likewise.
5622         * hse-regalloc.c: Likewise.
5623         * ipa-hsa.c: Likewise.
5624         * ipa-predicate.c: Likewise.
5625         * ipa-reference.c: Likewise.
5626         * ipa-sra.c: Likewise.
5627         * omp-expand.c: Likewise.
5628         * omp-general.c: Likewise.
5629         * omp-low.c: Likewise.
5630         * sumbol-summary.h (function_summary_base): Add allocator.
5631         (function_summary<T *>::function_summary): Update construction.
5632         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5633         (call_summary_base): Add allcator.
5634         (call_summary<T *>::call_summary): Update construction.
5635         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5637 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
5639         PR tree-optimization/91945
5640         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5641         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5642         Formatting fix.
5644 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5646         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5647         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5648         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5649         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5650         (vrp_set_zero_nonzero_bits): Move to...
5651         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5652         (vr_values::simplify_bit_ops_using_ranges): Rename
5653         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5655 2019-11-05  Martin Liska  <mliska@suse.cz>
5657         PR c++/92339
5658         * fold-const.c (operand_compare::hash_operand): Remove
5659         FIELD_DECL handling.
5661 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5663         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5664         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5665         static.
5667 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5669         * tree-vrp.c (value_range_base::operator==): Use equal_p to
5670         properly handle symbolics.
5671         (range_compatible_p): Remove.
5673 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
5675         * common.opt (-fabi-version): Document =14.
5676         * doc/invoke.texi (C++ Dialect Options): Likewise.
5678 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5680         * tree-vrp.c (value_range_base::set): Do not special case pointers.
5682 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
5684         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5685         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5686         gcn_omp_device_kind_arch_isa.
5687         * config/gcn/t-omp-device: New file.
5688         * configure.ac: Support gcn for omp_device_property.
5689         * configure: Regenerate.
5691 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5693         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5694         (vrp_val_max): Same.
5695         (vrp_val_is_min): Same.
5696         (vrp_val_is_max): Same.
5697         (value_range_base::nonzero_p): Remove last argument to
5698         vrp_val_is_max.
5699         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5700         (vrp_val_max): Same.
5701         (vrp_val_is_min): Same.
5702         (vrp_val_is_max): Same.
5703         (value_range_base::set_varying): Remove last argument to vrp_val*.
5704         (value_range_base::dump): Same.
5705         (value_range_base::set): Same.
5706         (value_range_base::normalize_symbolics): Same.
5707         (value_range_base::num_pairs): Same.
5708         (value_range_base::lower_bound): Same.
5709         (value_range_base::upper_bound): Same.
5710         (ranges_from_anti_range): Remove handle_pointers argument.
5711         (value_range_base::singleton_p): Remove last argument to
5712         ranges_from_anti_range.
5714 2019-11-04  Jan Hubicka  <jh@suse.cz>
5716         * ipa-reference.c (init_function_info): Initialize
5717         info->global.statics_read.
5719 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5721         * tree-vrp.c (value_range_base::invert): Use constructors to build
5722         range.
5724 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5726         * tree-vrp.c (range_int_cst_singleton_p): Remove.
5727         * tree-vrp.h (range_int_cst_singleton_p): Remove.
5729 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5731         * tree-vrp.c (value_range_base::normalize_addresses): Handle
5732         VR_UNDEFINED.
5734 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5736         * tree-vrp.c (dump_assert_info): New.
5737         (dump_asserts_info): New.
5739 2019-11-04  Jan Hubicka  <jh@suse.cz>
5741         * ipa-inline-transform.c: Include ipa-utils.h
5742         (inline_call): Set thunk_expansion flag.
5743         * ipa-utils.h (thunk_expansion): Declare.
5744         * ipa-devirt.c (thunk_expansion): New global var.
5745         (devirt_node_removal_hook): Do not invalidate cache while
5746         doing thunk expansion.
5748 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
5750         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5752 2019-11-04  Martin Sebor  <msebor@redhat.com>
5754         PR tree-optimization/92349
5755         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5756         memebers have constant sizes.
5758 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5760         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5761         parameter.
5762         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5763         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5764         vect_analyze_loop.
5766 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
5768         * expr.c (store_constructor): Modify to handle single element vectors.
5769         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5770         constructors.
5771         (vect_slp_check_for_constructors): New function.
5772         (vect_slp_analyze_bb_1): Call new function to check for vector
5773         constructors.
5774         (vectorize_slp_instance_root_stmt): New function.
5775         (vect_schedule_slp): Call new function to vectorize root stmt of vector
5776         constructors.
5777         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5779 2019-11-04  Richard Biener  <rguenther@suse.de>
5781         PR tree-optimization/92345
5782         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5783         we produced a reduction chain.
5784         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5785         LOOP_VINFO_REDUCTIONS.
5787 2019-11-04  Jan Hubicka  <jh@suse.cz>
5789         * cgraphclones.c (cgraph_node::create_version_clone): Do not
5790         duplicate summaries.
5791         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5792         first.
5793         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5794         access call summaries.
5795         (dump_ipa_call_summary): Be ready for missing edge summaries.
5796         (analyze_function_body): Use get instead of get_create to access
5797         edge summary.
5798         (estimate_calls_size_and_time): Do not access summaries of
5799         inlined edges; sanity check they are missing.
5800         (ipa_call_context::estimate_size_and_time): Use get instead
5801         of get_create to access node summary.
5802         (inline_update_callee_summaries): Do not update depth of
5803         inlined edge.
5804         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5805         growth caches.
5806         (ipa_merge_fn_summary_after_inlining): Use get instead
5807         of get_create.
5808         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5809         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5810         fast summary.
5811         (initialize_growth_caches): Update.
5812         (do_estimate_edge_time): Remove redundant copy of context.
5813         (ipa_remove_from_growth_caches): New function.
5814         * ipa-inline.c (flatten_function): Update overall summary
5815         only when optimizing.
5816         (inline_to_all_callers): Update overall summary of function
5817         inlined to.
5818         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5819         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5820         to false.
5822 2019-11-04  Richard Biener  <rguenther@suse.de>
5824         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5825         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5827 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
5829         * ggc-common.c: Include system.h before malloc.h.
5831 2019-11-04  Alexandre Oliva <oliva@adacore.com>
5833         * configure.ac: Pass --enable-obsolete=* and
5834         --enable-option-checking=* down to build configure, and fail
5835         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
5836         * configure: Rebuild.
5837         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5838         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5840 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5842         * config.in: Regenerate.
5843         * config/msp430/msp430.c (msp430_option_override): Emit an error if
5844         -mtiny-printf is used without GCC being configured with
5845         --enable-newlib-nano-formatted-io.
5846         * config/msp430/msp430.h (LINK_SPEC): Pass 
5847         "--wrap puts --wrap printf" when -mtiny-printf is used.
5848         * config/msp430/msp430.opt: Document -mtiny-printf.
5849         * configure: Regenerate.
5850         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5851         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5852         --enable-newlib-nano-formatted-io is passed.
5853         * doc/invoke.texi: Document -mtiny-printf.
5855 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5857         * configure: Regenerate.
5859 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5861         * config/msp430/driver-msp430.c
5862         (msp430_get_linker_devices_include_path): New spec function.
5863         * config/msp430/msp430-devices.c (msp430_dirname): New function.
5864         (extract_devices_dir_from_exec_prefix): New function.
5865         (extract_devices_dir_from_collect_gcc): New function.
5866         (msp430_check_env_var_for_devices): New function.
5867         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5868         (parse_devices_csv): Call msp430_check_env_var_for_devices if
5869         devices.csv was not found using other methods.
5870         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5871         New prototype.
5872         (msp430_dirname): Likewise.
5873         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5874         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5875         msp430_get_linker_devices_include_path.
5876         (TARGET_EXTRA_PRE_INCLUDES): Define.
5877         * doc/invoke.texi: Document new ways of searching for support files.
5879 2019-11-04  Richard Biener  <rguenther@suse.de>
5881         PR tree-optimization/92301
5882         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5883         as required by epilogue generation
5885 2019-11-04  Martin Liska  <mliska@suse.cz>
5887         PR ipa/92304
5888         * fold-const.c (operand_compare::hash_operand): Fix field
5889         hashing of CONSTRUCTOR.
5891 2019-11-04  Martin Liska  <mliska@suse.cz>
5893         * ggc.h (ggc_delete): New function.
5894         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5895         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5896         (ipa_free_all_node_params): Likewise.
5897         * ipa-sra.c (ipa_sra_analysis): Likewise.
5899 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5901         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5902         set_switch_stmt_execution_predicate, compute_bb_predicates,
5903         will_be_nonconstant_expr_predicate,
5904         phi_result_unknown_predicate,
5905         analyze_function_body): Pass arround params summary.
5906         (ipa_call_context::duplicate_from): New comment;
5907         only duplicate useful values.
5908         (ipa_call_context::equal_to): Only compare useful values.
5909         (remap_edge_summaries): Pass params_summary.
5910         (remap_hint_predicate): Likewise.
5911         (ipa_merge_fn_summary_after_inlining): Likewise.
5912         (inline_read_section): Initialize params summary used flags.
5913         * ipa-predicate.c (predicate::remap_after_inlining): Pass
5914         around param_summary.
5915         (add_condition): Initialized used params summary flags.
5916         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5917         (inline_param_summary::useless_p): New predicate.
5918         (remap_after_inlining, add_condition): Update prototype
5919         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5920         move_cost.
5921         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5922         summaries.
5923         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5924         (ipa_analyze_virtual_call_uses): Likewise.
5925         (update_indirect_edges_after_inlining): Update param summaries.
5926         (ipa_print_node_params): Print used flags.
5927         (ipa_read_indirect_edge_info): Update param summareis.
5928         * ipa-prop.h (ipa_param_descriptor): Add
5929         used_by_ipa_predicates, used_by_indirect_call
5930         and used_by_polymorphic_call.
5931         (ipa_set_param_used_by_ipa_predicates,
5932         ipa_set_param_used_by_indirect_call,
5933         ipa_set_param_used_by_polymorphic_call,
5934         ipa_is_param_used_by_ipa_predicates,
5935         ipa_is_param_used_by_indirect_call,
5936         ipa_is_param_used_by_polymorphic_call): New inline functions.
5938 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5940         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5941         member function.
5942         (ipa_call_context::release): Add ALL parameter.
5943         (ipa_call_context::equal_to): New member function.
5944         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5945         duplicate_form, release, equal_to and exists_p member functoins.
5946         * ipa-inline-analysis.c (node_context_cache_entry): New
5947         class.
5948         (node_context_summary): Likewise.
5949         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5950         node_context_clear): New static vars.
5951         (initialize_growth_caches): New function.
5952         (free_growth_caches): Also delete node_context_cache; output stats.
5953         (do_estimate_edge_time): Cache contexts.
5954         (reset_node_cache): New function.
5955         * ipa-inline.c (reset_edge_caches): Reset also node cache.
5956         (inline_small_functions): Initialize growth caches.
5957         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5958         Declare.
5959         * ipa-predicate.h (inline_param_summary::equal_to): New.
5960         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5961         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5962         (ipa_agg_jump_function): Implement equal_to member function.
5964 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5966         * ipa-fnsummary.c (inline_read_section): Set vector size
5967         ahead of time.
5969 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5971         * ipa-fnsummary.c (ipa_call_context): New constructor.
5972         (estimate_node_size_and_time): Turn to ...
5973         (ipa_call_context::estimate_size_and_time): ... this one.
5974         (ipa_call_context::release): New.
5975         * ipa-fnsummary.h (ipa_call_context): New class.
5976         (estimate_node_size_and_time): Remove.
5977         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5978         do_estimate_edge_hints): Update.
5980 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5982         * config.in: Regenerate.
5983         * configure: Regenerate.
5984         * configure.ac: Check for mallinfo.
5985         * ggc-common.c: Include malloc.h if available;
5986         include options.h
5987         (report_heap_memory_use): New functoin.
5988         * ggc-page.c (ggc_grow): Do not print "start".
5989         * ggc.h (report_heap_memory_use): Declare.
5990         * pases.c (execute_one_pass): Report memory after IPA passes.
5991         (ipa_read_summaries_1): Likewise.
5992         (ipa_read_optimization_summaries_1): Likewise.
5994 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
5996         * gimplify.h (omp_construct_selector_matches): Change return
5997         type to int, add a new SCORES argument.
5998         * gimplify.c (omp_construct_selector_matches): Likewise.  If
5999         SCORES is non-NULL, compute scores of each construct.
6000         * omp-general.h (omp_get_context_selector): Declare.
6001         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6002         Adjust omp_construct_selector_matches callers.
6003         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6004         (omp_context_compute_score): New function.
6005         (omp_resolve_declare_variant): Compute scores and decide based on
6006         that.
6008         PR bootstrap/92314
6009         * configure.ac: Don't look for omp-device-properties files from
6010         installed offloading compilers.  Instead add tmake_file snippets
6011         for configured offloading targets and use files they generate.
6012         * Makefile.in (install): Don't depend on
6013         install-omp-device-properties.
6014         (install-omp-device-properties): Remove goal.
6015         * config/i386/t-omp-device: New file.
6016         * config/i386/t-intelmic (omp-device-properties): Remove goal.
6017         * config/nvptx/t-omp-device: New file.
6018         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6019         * configure: Regenerated.
6021         * omp-general.h (omp_context_selector_set_compare): Declare.
6022         * omp-general.c (omp_construct_simd_compare,
6023         omp_context_selector_props_compare, omp_context_selector_set_compare,
6024         omp_context_selector_compare): New functions.
6025         (omp_resolve_declare_variant): Prune variants that are strict subset
6026         of another variant.
6028 2019-11-01  Martin Sebor  <msebor@redhat.com>
6030         PR middle-end/91679
6031         PR middle-end/91647
6032         PR middle-end/91463
6033         PR middle-end/92312
6034         * doc/invoke.texi (-Wzero-length-bounds): Document.
6035         * gimple-match-head.c (try_conditional_simplification): Use memcpy
6036         instead of a hand-rolled loop to avoid PR 92323.
6037         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6038         with initializers.
6039         (vrp_prop::check_mem_ref): Handle declared struct objects.
6040         * tree.c (last_field): New function.
6041         (array_at_struct_end_p): Handle MEM_REF.
6042         (get_initializer_for): New helper.
6043         (component_ref_size): Add argument.  Rename locals.  Call
6044         get_initializer_for instead of fold_ctor_reference.  Correct handling
6045         of flexible array members.
6046         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6048 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6050         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6051         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6052         UNSPEC_VSX_CVSPUXDS): Remove.
6053         (vsx_xvcvspdp): New define_expand, old define_insn split to...
6054         (vsx_xvcvspdp_be): ... this.  New.  And...
6055         (vsx_xvcvspdp_le): ... this.  New.
6056         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6057         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
6058         (vsx_xvcv<su>xwdp_le): ... this.  New.
6059         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6060         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
6061         (vsx_xvcvsp<su>xds_le): ... this.  New.
6063 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6065         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6066         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6067         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6068         UNSPEC_VSX_XVCVSPSXWS): Remove.
6069         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6070         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6072 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6074         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6075         (UNSPEC_VSX_XVCDPSP): Remove.
6076         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6077         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6079 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
6081         * hooks.c (hook_tree_tree_bool_null): New.
6082         * hooks.h (hook_tree_tree_bool_null): Declare.
6083         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6084         (LANG_HOOKS_DECLS): Add it.
6085         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6086         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6087         (lower_omp_target): Handle Fortran array with descriptor in
6088         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6090 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
6092         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6093         Assert that the type we store in abi_vector_types is its own
6094         main variant.
6095         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6097 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6099         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6100         from a CONST_INT address when TARGET_THUMB2.
6102 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6104         * config/arm/arm.md (add_not_cin): New insn.
6105         (add_not_shift_cin): Likewise.
6107 2019-10-31  Martin Liska  <mliska@suse.cz>
6109         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6110         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6111         and compare_memory_operand.
6113 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
6115         * configure.ac: Compute and substitute omp_device_properties and
6116         omp_device_property_deps.
6117         * Makefile.in (generated_files): Add omp-device-properties.h.
6118         (omp-general.o): Depend on omp-device-properties.h.
6119         (omp_device_properties): New make variable.
6120         (omp-device-properties.h, s-omp-device-properties-h,
6121         install-omp-device-properties): New goals.
6122         (install): Depend on install-omp-device-properties for accelerators.
6123         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6124         * target.h (enum omp_device_kind_arch_isa): New enum.
6125         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6126         documentation.
6127         * omp-general.c: Include omp-device-properties.h.
6128         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6129         colon instead of comma.
6130         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6131         functions.
6132         (omp_context_selector_matches): Implement device set arch/isa
6133         selectors, improve device set kind selector handling.
6134         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6135         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6136         TARGET_SIMD_CLONE_USABLE): Formatting fix.
6137         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6138         ix86_omp_device_kind_arch_isa.
6139         * config/i386/i386-options.c (struct ix86_target_opts): Move type
6140         definition from ix86_target_string to file scope.
6141         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6142         to file scope.
6143         (ix86_omp_device_kind_arch_isa): New function.
6144         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6145         isa_opts definitions to file scope.
6146         * config/i386/t-intelmic (omp-device-properties): New goal.
6147         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6148         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6149         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6150         nvptx_omp_device_kind_arch_isa.
6151         * configure: Regenerate.
6152         * doc/tm.texi: Regenerate.
6154         PR middle-end/92231
6155         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6156         DECL_BUILT_IN in comment.  Remove redundant ()s around return
6157         argument.
6158         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6159         before calling fndecl_built_in_p.
6160         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6161         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6162         fndecl_built_in_p on it.
6164 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6166         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6168 2019-10-31  Martin Liska  <mliska@suse.cz>
6170         * config/arm/arm.c (arm_get_pcs_model): Remove usage
6171         of cgraph_local_info and use local_info_node instead.
6172         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6173         (bfin_function_ok_for_sibcall): Likewise.
6174         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6175         (must_reload_pic_reg_p): Likewise.
6177 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
6179         PR c++/90947
6180         * tree.h (type_initializer_zero_p): Remove.
6181         * tree.c (type_initializer_zero_p): Remove.
6183 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6185         * doc/invoke.texi (-Wshadow, -Wshadow=global
6186         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6188 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
6190         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6191         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6192         and 'target exit data'.
6194 2019-10-30  Martin Jambor  <mjambor@suse.cz>
6196         ipa/92278
6197         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6198         availability comparison.
6200 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6202         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6203         calls to __mspabi_mpy* functions.
6204         * config/msp430/msp430.md (mulhisi3): New define_expand.
6205         (umulhisi3): New define_expand.
6206         (*mulhisi3_inline): Use old mulhisi3 define_insn.
6207         (*umulhisi3_inline): Use old umulhisi3 define_insn.
6209 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6211         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6212         (msp430_check_plus_not_high_mem): New.
6213         (msp430_op_not_in_high_mem): Use new functions to check if the operand
6214         might be in low memory.
6215         Indicate that a 16-bit absolute address is in lower memory.
6217 2019-10-30  Martin Jambor  <mjambor@suse.cz>
6219         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6220         ultimate_alias_target.
6222 2019-10-30  Richard Biener  <rguenther@suse.de>
6224         PR tree-optimization/92275
6225         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6226         Copy all loop-closed PHIs.
6228 2019-10-30  Martin Liska  <mliska@suse.cz>
6230         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6231         const_tree as function argument.
6232         (func_checker::compare_decl): Likewise.
6233         (func_checker::operand_equal_p): Likewise.
6234         (func_checker::compare_variable_decl): Likewise.
6235         (func_checker::parse_labels): Likewise.
6236         * ipa-icf-gimple.h: Likewise.
6238 2019-10-30  Martin Liska  <mliska@suse.cz>
6240         * ipa-icf-gimple.c (func_checker::compatible_types_p):
6241         Do not compare alias sets.  It's handled by operand_equal_p.
6243 2019-10-30  Martin Liska  <mliska@suse.cz>
6245         * ipa-icf-gimple.c (func_checker::func_checker): Do not
6246         initialize m_compare_polymorphic.
6247         (func_checker::compare_decl): Do not compare polymorphic types.
6248         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6249         * ipa-icf.c (sem_function::equals_private): Do not call
6250         compare_polymorphic_p.
6252 2019-10-30  Martin Liska  <mliska@suse.cz>
6254         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6255         compare_operand.
6256         (func_checker::compare_memory_operand): Remove.
6257         (func_checker::compare_cst_or_decl): Remove.
6258         (func_checker::operand_equal_valueize): Do not handle
6259         FIELD_DECL.
6260         (func_checker::compare_gimple_call): Call compare_operand.
6261         (func_checker::compare_gimple_assign): Likewise.
6262         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6263         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6264         * ipa-icf.h (icf_handled_component_p): Remove.
6266 2019-10-30  Martin Liska  <mliska@suse.cz>
6268         * ipa-icf-gimple.c (func_checker::hash_operand): New.
6269         (func_checker::compare_cst_or_decl): Remove handling
6270         of FIELD_DECL.
6271         (func_checker::compare_operand): Transform to ...
6272         (func_checker::operand_equal_p): ... this.
6273         * ipa-icf-gimple.h (class func_checker): Add
6274         operand_equal_p and hash_operand.
6275         * ipa-icf.c (sem_function::equals_private): Fix
6276         pushing and popping of cfun.
6278 2019-10-30  Martin Liska  <mliska@suse.cz>
6280         * fold-const.c (operand_equal_p): Move to ...
6281         (operand_compare::operand_equal_p): ... here.
6282         (operand_compare::verify_hash_value): New.
6283         (add_expr): Move to ...
6284         (operand_compare::hash_operand): ... here.
6285         * fold-const.h (operand_equal_p): Move to the class.
6286         (class operand_compare): New.
6287         * tree.c (add_expr): Remove.
6289 2019-10-30  Martin Liska  <mliska@suse.cz>
6291         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6292         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6294 2019-10-30  Martin Liska  <mliska@suse.cz>
6296         PR lto/91393
6297         PR lto/88220
6298         * cgraph.c (cgraph_node::get_create): Overwrite node->order
6299         from a first_clone in order to get proper LTO section
6300         in LTO stream.
6301         (cgraph_node::get_untransformed_body):
6302         Use lto_get_section_data where symtab_node::order
6303         must be provided.
6304         * cgraphclones.c (cgraph_node::find_replacement):
6305         Update also symbol order.
6306         * ipa-fnsummary.c (ipa_fn_summary_read):
6307         Use new function lto_get_summary_section_data.
6308         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6309         * ipa-icf.c (sem_item_optimizer::read_summary):
6310         Likewise.
6311         * ipa-prop.c (ipa_prop_read_jump_functions):
6312         Likewise.
6313         (ipcp_read_transformation_summaries): Likewise.
6314         * ipa-sra.c (ipa_sra_read_summary): Likewise.
6315         * lto-cgraph.c (input_node): Add also order_base.
6316         (input_varpool_node): Likewise.
6317         (input_cgraph_1): Assign the order_base.
6318         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6319         * lto-opts.c (lto_write_options): Pass new argument.
6320         * lto-section-in.c (lto_get_section_data): Add new argumente order.
6321         (lto_get_summary_section_data): New.
6322         (lto_get_raw_section_data): Add order argument.
6323         (lto_create_simple_input_block): Likewise.
6324         * lto-section-out.c (lto_destroy_simple_output_block):
6325         Likewise.
6326         * lto-streamer-in.c (lto_input_toplevel_asms):
6327         Use lto_get_summary_section_data.
6328         (lto_input_mode_table): Likewise.
6329         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6330         (lto_output_toplevel_asms): Pass new argument.
6331         (copy_function_or_variable): Likewise.
6332         (produce_lto_section):Likewise.
6333         (produce_symtab): Likewise.
6334         (lto_write_mode_table): Likewise.
6335         (produce_asm_for_decls): Likewise.
6336         * lto-streamer.c (lto_get_section_name): Concat symbol name
6337         and symbol order.
6338         * lto-streamer.h (lto_get_section_data): Add order argument.
6339         (lto_get_summary_section_data): New.
6340         (lto_get_raw_section_data): Add order argument.
6341         (lto_get_section_name): Likewise.
6342         * varpool.c (varpool_node::get_constructor): Pass order argument.
6344 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
6346         PR tree-optimization/92262
6347         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6348         ubase or cbase here.
6349         (remove_unused_ivs): Unshare comp before using it.
6351 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
6353         * ipa-prop.c (update_jump_functions_after_inlining):
6354         Watch for missing summaries.
6356 2019-10-30  Richard Biener  <rguenther@suse.de>
6358         PR tree-optimization/65930
6359         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6360         chains also allow a leading and trailing conversion.
6361         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6362         intermediate reduction chains.
6363         (vect_analyze_slp_instance): Likewise.  Build a SLP
6364         node for a trailing conversion manually.
6366 2019-10-30  Martin Liska  <mliska@suse.cz>
6368         * cgraph.c (cgraph_node::local_info): Transform to ...
6369         (cgraph_node::local_info_node): ... this.
6370         (cgraph_node::dump): Remove cgraph_local_info and
6371         put its fields directly into cgraph_node.
6372         (cgraph_node::get_availability): Likewise.
6373         (cgraph_node::make_local): Likewise.
6374         (cgraph_node::verify_node): Likewise.
6375         * cgraph.h (struct GTY): Likewise.
6376         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6377         (duplicate_thunk_for_node): Likewise.
6378         (cgraph_node::create_clone): Likewise.
6379         (cgraph_node::create_virtual_clone): Likewise.
6380         (cgraph_node::create_version_clone): Likewise.
6381         * cgraphunit.c (cgraph_node::reset): Likewise.
6382         (cgraph_node::finalize_function): Likewise.
6383         (cgraph_node::add_new_function): Likewise.
6384         (analyze_functions): Likewise.
6385         * combine.c (setup_incoming_promotions): Likewise.
6386         * config/i386/i386.c (ix86_function_regparm): Likewise.
6387         (ix86_function_sseregparm): Likewise.
6388         (init_cumulative_args): Likewise.
6389         * ipa-cp.c (determine_versionability): Likewise.
6390         (count_callers): Likewise.
6391         (set_single_call_flag): Likewise.
6392         (initialize_node_lattices): Likewise.
6393         (estimate_local_effects): Likewise.
6394         (create_specialized_node): Likewise.
6395         (identify_dead_nodes): Likewise.
6396         * ipa-fnsummary.c (compute_fn_summary): Likewise.
6397         (ipa_fn_summary_generate): Likewise.
6398         * ipa-hsa.c (check_warn_node_versionable): Likewise.
6399         (process_hsa_functions): Likewise.
6400         * ipa-icf.c (set_local): Likewise.
6401         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6402         * ipa-inline.c (speculation_useful_p): Likewise.
6403         * ipa-profile.c (ipa_propagate_frequency): Likewise.
6404         (ipa_profile): Likewise.
6405         * ipa-split.c (split_function): Likewise.
6406         (execute_split_functions): Likewise.
6407         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6408         (ipa_sra_ipa_function_checks): Likewise.
6409         * ipa-visibility.c (function_and_variable_visibility): Likewise.
6410         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6411         * lto-cgraph.c (lto_output_node): Likewise.
6412         (input_overwrite_node): Likewise.
6413         * multiple_target.c (expand_target_clones): Likewise.
6414         * omp-simd-clone.c (simd_clone_create): Likewise.
6415         * trans-mem.c (expand_call_tm): Likewise.
6416         (ipa_tm_mayenterirr_function): Likewise.
6417         (ipa_tm_diagnose_tm_safe): Likewise.
6418         (ipa_tm_diagnose_transaction): Likewise.
6419         (ipa_tm_create_version): Likewise.
6420         (ipa_tm_transform_calls_redirect): Likewise.
6421         (ipa_tm_execute): Likewise.
6422         * tree-inline.c (expand_call_inline): Likewise.
6424 2019-10-29  Martin Liska  <mliska@suse.cz>
6426         * symbol-summary.h (function_summary): Pass memory location
6427         to underlaying hash_map (or vec).
6428         (V>::fast_function_summary): Likewise.
6430 2019-10-29  Martin Liska  <mliska@suse.cz>
6432         * ggc.h (ggc_alloc_no_dtor): New function.
6433         * ipa-fnsummary.c (ipa_free_fn_summary): Call
6434         destructor and ggc_free.
6435         (ipa_free_size_summary): Call delete instead
6436         of release.
6437         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6438         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6439         (ipa_free_all_edge_args): Call destructor and ggc_free.
6440         (ipa_free_all_node_params): Likewise.
6441         (ipcp_free_transformation_sum): Likewise.
6442         * ipa-prop.h (ipa_check_create_node_params):
6443         Call new ggc_alloc_no_dtor.
6444         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6445         (ipa_sra_analysis): Call destructor and ggc_free.
6446         Replace release with delete operator.
6447         * symbol-summary.h (release): Remove ..
6448         (V>::~fast_function_summary): and move logic here.
6449         Likewise for other classes.
6451 2019-10-29  Richard Biener  <rguenther@suse.de>
6453         PR tree-optimization/92260
6454         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6455         lane-reducing ops.
6457 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6459         PR tree-optimization/88915
6460         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6461         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6462         and make the valueize function pointer also take a void pointer.
6463         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6464         around vn_valueize, to call it without a context.
6465         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6466         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6467         (~_loop_vec_info): Release epilogue_vinfos.
6468         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6469         number of iterations of epilogue.
6470         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6471         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
6472         versioning threshold needed for main loop.
6473         (vect_analyze_loop): Likewise.
6474         (find_in_mapping): New helper function.
6475         (update_epilogue_loop_vinfo): New function.
6476         (vect_transform_loop): When vectorizing epilogues re-use analysis done
6477         on main loop and call update_epilogue_loop_vinfo to update it.
6478         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6479         stmts on loop preheader edge.
6480         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6481         we decided to vectorize epilogues.  Update epilogues NITERS and
6482         construct ADVANCE to update epilogues data references where needed.
6483         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6484         (vect_do_peeling, vect_update_inits_of_drs,
6485          determine_peel_for_niter, vect_analyze_loop): Add or update
6486         declarations.
6487         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6488         created loop_vec_info's for epilogues when available.  Otherwise analyse
6489         epilogue separately.
6491 2019-10-29  Richard Biener  <rguenther@suse.de>
6493         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6494         example.
6496 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6498         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6499         index for the COND_EXPR from stmt_info rather than reduc_info.
6501 2019-10-29  Richard Biener  <rguenther@suse.de>
6503         PR tree-optimization/65930
6504         * tree-vect-loop.c (check_reduction_path): Relax single-use
6505         check allowing out-of-loop uses.
6506         (vect_is_simple_reduction): SLP reduction chains cannot have
6507         intermediate stmts used outside of the loop.
6508         (vect_create_epilog_for_reduction): The adjustment might need
6509         to be converted.
6510         (vectorizable_reduction): Annotate live stmts of the reduction
6511         chain with STMT_VINFO_REDUC_DEF.
6512         * tree-vect-stms.c (process_use): Remove no longer true asserts.
6514 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6516         * calls.c (pass_by_reference): Leave the target to decide whether
6517         POLY_INT_CST-sized arguments should be passed by value or reference,
6518         rather than forcing them to be passed by reference.
6519         (must_pass_in_stack_var_size): Likewise.
6520         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6521         V31_REGNUM to P15_REGNUM.
6522         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6523         Take an extra "silent_p" parameter, defaulting to false.
6524         (aarch64_sve::svbool_type_p): Declare.
6525         (aarch64_sve::nvectors_if_data_type): Likewise.
6526         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6527         (aarch64_frame::reg_offset): Turn into poly_int64s.
6528         (aarch64_frame::save_regs_size): Likewise.
6529         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6530         (aarch64_frame::sve_callee_adjust): Likewise.
6531         (aarch64_frame::spare_reg_reg): Likewise.
6532         (ARM_PCS_SVE): New arm_pcs value.
6533         (CUMULATIVE_ARGS::aapcs_nprn): New field.
6534         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6535         (CUMULATIVE_ARGS::silent_p): Likewise.
6536         (BITS_PER_SVE_PRED): New macro.
6537         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6538         function.  Reject aarch64_vector_pcs attributes on SVE functions.
6539         (aarch64_attribute_table): Use the above handler.
6540         (aarch64_sve_abi): New function.
6541         (aarch64_sve_argument_p): Likewise.
6542         (aarch64_returns_value_in_sve_regs_p): Likewise.
6543         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6544         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6545         descriptor for them.
6546         (aarch64_simd_decl_p): Delete.
6547         (aarch64_emit_cfi_for_reg_p): New function.
6548         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6549         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
6550         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6551         as partly clobbered for the SVE PCS.
6552         (aarch64_function_ok_for_sibcall): Check whether the two functions
6553         use the same ABI, rather than checking specifically for whether
6554         they're aarch64_vector_pcs functions.
6555         (aarch64_pass_by_reference): Raise an error for attempts to pass
6556         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
6557         if there are not enough free registers left, or if the argument is
6558         variadic.
6559         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6560         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6561         tuples in memory.
6562         (aarch64_layout_arg): Take a function_arg_info rather than
6563         individual properties.  Handle SVE predicates, vectors and tuples.
6564         Raise an error if they are passed to unprototyped functions.
6565         (aarch64_function_arg): If the silent_p flag is set, suppress the
6566         usual error about using float registers without TARGET_FLOAT.
6567         (aarch64_init_cumulative_args): Take a silent_p parameter and store
6568         it in the cumulative_args structure.  Initialize aapcs_nprn and
6569         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
6570         error about using float registers without TARGET_FLOAT.
6571         If the silent_p flag is not set, also raise an error about
6572         using SVE functions when SVE is disabled.
6573         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6574         and call it for SVE functions too.  Update aapcs_nprn similarly
6575         to the other register counts.
6576         (aarch64_layout_frame): If a big-endian function needs to save
6577         and restore Z8-Z15, search for a spare predicate that it can use.
6578         Store SVE predicates at the bottom of the register save area,
6579         followed by SVE vectors, then followed by the normal slots.
6580         Keep pointing the hard frame pointer at the base of the normal slots,
6581         above the SVE vectors.  Update the various frame creation and
6582         tear-down strategies for the new layout, initializing the new
6583         sve_callee_adjust field.  Add an additional layout for frames
6584         whose saved registers are all SVE registers.
6585         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6586         (aarch64_return_address_signing_enabled): Likewise.
6587         (aarch64_push_regs, aarch64_pop_regs): Update calls to
6588         aarch64_reg_save_mode.
6589         (aarch64_adjust_sve_callee_save_base): New function.
6590         (aarch64_add_cfa_expression): Move earlier in file.  Take the
6591         saved register as an rtx rather than a register number and use
6592         its mode for the MEM slot.
6593         (aarch64_save_callee_saves): Remove the mode argument and instead
6594         use aarch64_reg_save_mode to get the mode of each save slot.
6595         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
6596         offsets.  Allow GP offsets to be saved at a VL-based offset from
6597         the stack, handling this case using the frame pointer if available
6598         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
6599         big-endian SVE functions; use normal moves for other SVE saves.
6600         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6601         returns true.  Add explicit CFA notes when not storing via the
6602         stack pointer.  Do not try to pair SVE saves.
6603         (aarch64_restore_callee_saves): Cope with poly_int64 register
6604         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6605         use normal moves for other SVE restores.  Only add CFA restore notes
6606         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
6607         SVE restores.
6608         (aarch64_get_separate_components): Always keep the first SVE save
6609         in the prologue if we need to use it as a stack probe.  Don't allow
6610         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6611         Likewise the spare predicate register that they need.  Update the
6612         offset calculation to account for the SVE save area.  Use the
6613         appropriate range check for SVE LDR and STR instructions.
6614         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6615         (aarch64_process_components): Likewise.  Update the offset
6616         calculation to account for the SVE save area.  Only mark the
6617         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6618         Do not try to pair SVE saves.
6619         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6620         reg_offsets.  When handling the final allocation, expect the
6621         first SVE register save to be part of the initial allocation
6622         and for it to act as a probe at SP.  Account for the SVE callee
6623         save area in the dump information.
6624         (aarch64_expand_prologue): Update the frame diagram.  Fold the
6625         SVE callee allocation into the initial allocation if stack clash
6626         protection is enabled.  Use new variables to track the offset
6627         of the frame chain (and hard frame pointer) from the current
6628         stack pointer, and likewise the offset of the bottom of the
6629         register save area.  Update calls to aarch64_save_callee_saves
6630         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
6631         saving the FP&SIMD registers.  Save the predicate registers.
6632         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6633         into account when setting the stack pointer from the frame pointer,
6634         and when deciding whether we can inherit the initial adjustment
6635         amount from the prologue.  Restore the predicate registers after
6636         the vector registers, then apply sve_callee_adjust, then restore
6637         the general registers.
6638         (aarch64_secondary_reload): Don't use secondary SVE reloads
6639         for VNx16BImode.
6640         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6641         (aarch64_short_vector_p): Return false for SVE types.
6642         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6643         at the start of the function.  Return false for SVE types.
6644         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6645         functions too.
6646         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6647         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6648         to big-endian targets for bytewise moves.
6649         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6651 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6652             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6653             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6655         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6656         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6657         aarch64-sve-builtins-base.o to extra_objs.  Add
6658         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6659         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6660         (aarch64-sve-builtins-shapes.o): Likewise.
6661         (aarch64-sve-builtins-base.o): New rules.
6662         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6663         (aarch64_resolve_overloaded_builtin): Likewise.
6664         (aarch64_check_builtin_call): Likewise.
6665         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6666         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
6667         pragma.
6668         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6669         (aarch64_svprfop): New enum.
6670         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6671         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6672         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6673         (aarch64_output_sve_cnt_pat_immediate): Likewise.
6674         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6675         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6676         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6677         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6678         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6679         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6680         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6681         (aarch64_sve::mangle_builtin_type): Likewise.
6682         (aarch64_sve::resolve_overloaded_builtin): Likewise.
6683         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6684         (aarch64_sve::expand_builtin): Likewise.
6685         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6686         (aarch64_sve_int_mode): Likewise.
6687         (aarch64_ptrue_all_mode): New function.
6688         (aarch64_convert_sve_data_to_pred): Make public.
6689         (svprfop_token): New function.
6690         (aarch64_output_sve_prefetch): Likewise.
6691         (aarch64_fold_sve_cnt_pat): Likewise.
6692         (aarch64_output_sve_cnt_pat_immediate): Likewise.
6693         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6694         instead of gen_while_ult.
6695         (aarch64_replace_reg_mode): Make public.
6696         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6697         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6698         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6699         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6700         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6701         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6702         (aarch64_sve_ptrue_svpattern_p): Likewise.
6703         (aarch64_sve_pred_valid_immediate): Check
6704         aarch64_sve_ptrue_svpattern_p.
6705         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6706         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6707         functions.
6708         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6709         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6710         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6711         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6712         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6713         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6714         New unspecs.
6715         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6716         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6717         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6718         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6719         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6720         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6721         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6722         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6723         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6724         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6725         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6726         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6727         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6728         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6729         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6730         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6731         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6732         (Vesize): Handle partial vector modes.
6733         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6734         mode attributes.
6735         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6736         iterators.
6737         (s, paired_extend, inc_dec): New code attributes.
6738         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6739         (SVE_INT_UNARY): Add UNSPEC_RBIT.
6740         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6741         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6742         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6743         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6744         UNSPEC_COND_FMULX.
6745         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6746         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6747         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6748         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6749         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6750         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6751         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6752         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6753         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6754         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6755         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6756         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6757         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6758         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6759         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6760         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6761         UNSPEC_COND_FSCALE.
6762         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6763         (binqops_op, binqops_op_rev, last_op): New int attributes.
6764         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6765         (fn, ab): New int attributes.
6766         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6767         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6768         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6769         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6770         UNSPEC_RBIT.
6771         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6772         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6773         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6774         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6775         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6776         UNSPEC_COND_FMULX.
6777         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6778         (brk_reg_con, brk_reg_opno): New int attributes.
6779         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6780         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6781         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6782         UNSPEC_COND_FMIN.
6783         (max_elem_bits): New int attribute.
6784         (min_elem_bits): Handle UNSPEC_RBIT.
6785         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6786         TRUNCATE as well as SUBREG.
6787         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6788         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6789         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6790         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6791         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6792         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6793         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6794         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6795         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6796         (aarch64_gather_scale_operand_h): New predicates.
6797         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6798         (vgd, vgh, vgw, vsQ, vsS): New constraints.
6799         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6800         (*aarch64_sve_reinterpret<mode>): Allow any source register
6801         instead of requiring an exact match.
6802         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6803         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6804         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6805         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6806         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6807         (aarch64_update_ffrt): New patterns.
6808         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6809         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6810         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6811         (@aarch64_ld<fn>f1<mode>): New patterns.
6812         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6813         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6814         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6815         (@aarch64_ldnt1<mode>): New patterns.
6816         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6817         the scalar part of the address.
6818         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6819         scalar part of the addresse and add an alternative for handling
6820         nonzero offsets.
6821         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6822         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6823         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6824         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6825         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6826         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6827         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6828         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6829         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6830         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6831         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6832         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6833         (@aarch64_sve_prefetch<mode>): New patterns.
6834         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6835         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6836         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6837         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6838         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6839         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6840         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6841         (@aarch64_stnt1<mode>): New patterns.
6842         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6843         the scalar part of the address.
6844         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6845         the scalar part of the addresse and add an alternative for handling
6846         nonzero offsets.
6847         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6848         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6849         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6850         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6851         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6852         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6853         New patterns.
6854         (vec_duplicate<mode>): Use QI as the mode of the input operand.
6855         (extract_last_<mode>): Generalize to...
6856         (@extract_<LAST:last_op>_<mode>): ...this.
6857         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6858         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6859         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6860         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6861         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6862         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6863         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6864         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6865         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6866         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6867         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6868         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6869         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6870         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6871         (*aarch64_adr_uxtw_unspec): Likewise.
6872         (*aarch64_adr_uxtw): Rename to...
6873         (*aarch64_adr_uxtw_and): ...this.
6874         (@aarch64_adr<mode>_shift): New expander.
6875         (*aarch64_adr_shift_sxtw): New pattern.
6876         (aarch64_<su>abd<mode>_3): Rename to...
6877         (@aarch64_pred_<su>abd<mode>): ...this.
6878         (<su>abd<mode>_3): Update accordingly.
6879         (@aarch64_cond_<su>abd<mode>): New expander.
6880         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6881         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6882         (*<su>mul<mode>3_highpart): Rename to...
6883         (@aarch64_pred_<optab><mode>): ...this.
6884         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6885         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6886         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6887         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6888         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6889         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6890         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6891         (*v<ASHIFT:optab><mode>3): Rename to...
6892         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6893         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6894         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6895         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6896         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6897         (@cond_asrd<mode>): New expander.
6898         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6899         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6900         (*sdiv_pow2<mode>3): Delete.
6901         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6902         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6903         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6904         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6905         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6906         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6907         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6908         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6909         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6910         (*add<SVE_F:mode>3): Rename to...
6911         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6912         for SVE_STRICT_GP.
6913         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6914         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6915         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6916         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6917         (*sub<SVE_F:mode>3): Rename to...
6918         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6919         for SVE_STRICT_GP.
6920         (@aarch64_pred_abd<SVE_F:mode>): New expander.
6921         (*fabd<SVE_F:mode>3): Rename to...
6922         (*aarch64_pred_abd<SVE_F:mode>): ...this.
6923         (@aarch64_cond_abd<SVE_F:mode>): New expander.
6924         (*mul<SVE_F:mode>3): Rename to...
6925         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6926         for SVE_STRICT_GP.
6927         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6928         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6929         to...
6930         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6931         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6932         (*<nlogical><PRED_ALL:mode>3): Rename to...
6933         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6934         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6935         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6936         (*<logical_nn><PRED_ALL:mode>3): Rename to...
6937         (aarch64_pred_<logical_nn><mode>_z): ...this.
6938         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6939         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6940         (*fma<SVE_I:mode>4): Rename to...
6941         (@aarch64_pred_fma<SVE_I:mode>): ...this.
6942         (*fnma<SVE_I:mode>4): Rename to...
6943         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6944         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6945         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6946         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6947         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6948         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6949         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6950         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6951         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6952         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6953         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6954         (@aarch64_sve_tmad<mode>): Likewise.
6955         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6956         (*aarch64_sel_dup<mode>): Rename to...
6957         (@aarch64_sel_dup<mode>): ...this.
6958         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6959         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6960         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6961         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6962         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6963         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6964         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6965         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6966         (*fcm<cmp_op><mode>): Rename to...
6967         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
6968         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6969         (*fcmuo<mode>): Rename to...
6970         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
6971         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6972         (@aarch64_pred_fac<cmp_op><mode>): New expander.
6973         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6974         (fold_extract_last_<mode>): Generalize to...
6975         (@fold_extract_<last_op>_<mode>): ...this.
6976         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6977         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6978         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6979         DImode result explicit.
6980         (reduc_plus_scal_<mode>): Update accordingly.
6981         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6982         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6983         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6984         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6985         (*aarch64_sve_tbl<mode>): Rename to...
6986         (@aarch64_sve_tbl<mode>): ...this.
6987         (@aarch64_sve_compact<mode>): New pattern.
6988         (*aarch64_sve_dup_lane<mode>): Rename to...
6989         (@aarch64_sve_dup_lane<mode>): ...this.
6990         (@aarch64_sve_dupq_lane<mode>): New pattern.
6991         (@aarch64_sve_splice<mode>): Likewise.
6992         (aarch64_sve_<perm_insn><mode>): Rename to...
6993         (@aarch64_sve_<perm_insn><mode>): ...this.
6994         (*aarch64_sve_ext<mode>): Rename to...
6995         (@aarch64_sve_ext<mode>): ...this.
6996         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6997         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6998         to...
6999         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7000         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7001         Rename to...
7002         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7003         ...this.
7004         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7005         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7006         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7007         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7008         to...
7009         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7010         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7011         a "@" marker.
7012         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7013         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7014         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7015         pattern.
7016         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7017         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7018         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7019         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7020         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7021         "@" marker.
7022         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7023         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7024         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7025         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7026         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7027         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7028         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7029         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7030         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7031         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7032         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7033         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7034         (aarch64_sve_cnt_pat): Likewise.
7035         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7036         (*aarch64_sve_incsi_pat): Likewise.
7037         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7038         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7039         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7040         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7041         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7042         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7043         (*aarch64_sve_decsi_pat): Likewise.
7044         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7045         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7046         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7047         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7048         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7049         (@aarch64_pred_cntp<mode>): Likewise.
7050         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7051         New expander.
7052         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7053         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7054         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7055         New expander.
7056         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7057         New pattern.
7058         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7059         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7060         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7061         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7062         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7063         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7064         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7065         New expander.
7066         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7067         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7068         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7069         New expander.
7070         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7071         New pattern.
7072         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7073         expander.
7074         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7075         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7076         expander.
7077         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7078         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7079         expander.
7080         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7081         * config/aarch64/arm_sve.h: New file.
7082         * config/aarch64/aarch64-sve-builtins.h: Likewise.
7083         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7084         * config/aarch64/aarch64-sve-builtins.def: Likewise.
7085         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7086         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7087         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7088         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7089         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7090         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7092 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7094         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7095         New pattern.
7096         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7097         SVE modes.
7099 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7101         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7102         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7103         FFRT_REGNUM + 1.
7104         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7105         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7106         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7107         (aarch64_hard_regno_nregs): Handle the new register classes.
7108         (aarch64_hard_regno_mode_ok): Likewise.
7109         (aarch64_regno_regclass): Likewise.
7110         (aarch64_class_max_nregs): Likewise.
7111         (aarch64_register_move_cost): Likewise.
7112         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7113         as general register_operands.
7115 2019-10-29  Martin Liska  <mliska@suse.cz>
7117         * ggc-common.c: One can't subtract unsigned types
7118         in compare function.
7120 2019-10-29  Martin Liska  <mliska@suse.cz>
7122         * cgraphunit.c (symbol_table::compile): Pass
7123         title as dump_memory_report argument.
7124         * toplev.c (dump_memory_report):  New argument.
7125         (finalize): Pass new argument.
7126         * toplev.h (dump_memory_report): Add argument.
7128 2019-10-29  Martin Liska  <mliska@suse.cz>
7130         * ggc-common.c: Move Leak to the first column.
7132 2019-10-29  Martin Liska  <mliska@suse.cz>
7134         * cgraphunit.c (symbol_table::compile): Remove argument
7135         for dump_memory_report.
7136         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7137         (compare_final): Remove in order to make report
7138         better readable.
7139         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
7140         * mem-stats.h (mem_alloc_description::get_list):
7141         Do not pass cmp.
7142         (mem_alloc_description::dump): Likewise here.
7143         * toplev.c (dump_memory_report): Remove final
7144         argument.
7145         (finalize): Likewise.
7146         * toplev.h (dump_memory_report): Remove argument.
7148 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7150         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7151         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7152         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7153         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7154         accept "const".
7156 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7158         * coretypes.h (string_int_pair): New typedef.
7159         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7160         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7161         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7163 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7165         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7166         (simulate_builtin_function_decl): Declare.
7167         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7168         (LANG_HOOKS_INITIALIZER): Include it.
7169         * langhooks.c (add_builtin_function_common): Rename to...
7170         (build_builtin_function): ...this.  Add a location parameter and use
7171         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
7172         the decl instead.
7173         (add_builtin_function): Update accordingly, passing the returned
7174         decl to the lang hook.
7175         (add_builtin_function_ext_scope): Likewise
7176         (simulate_builtin_function_decl): New function.
7178 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
7180         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7181         example, use actual names of supported offload targets.
7183         PR target/92258
7184         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7186 2019-10-28  Martin Sebor  <msebor@redhat.com>
7188         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7189         (handle_store): Pass argument to get_addr_stridx.
7191 2019-10-28  Martin Sebor  <msebor@redhat.com>
7193         PR tree-optimization/92226
7194         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7195         the offset is in the open range outlined by SI's length.
7197 2019-10-28  Martin Sebor  <msebor@redhat.com>
7199         PR c/66970
7200         * doc/cpp.texi (__has_builtin): Document.
7201         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7203 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
7205         PR target/82981
7206         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7207         doubleword and low doubleword result of multiplication on
7208         MIPS64R6.
7210         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7211         pure qualifier to the built-in.
7212         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7213         built-ins.
7214         (struct mips_builtin_description): Add is_pure flag.
7215         (mips_init_builtins): Mark built-in as pure if the flag in the
7216         corresponding mips_builtin_description struct is set.
7218         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7219         alternative which covers the floating-point input value. Also
7220         forbid the split of insert.d pattern for floating-point values.
7222 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7224         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7225         * config/riscv/riscv-sr.c: New file.
7226         * config/riscv/riscv.c (riscv_reorg): New function.
7227         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7228         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7229         (riscv_remove_unneeded_save_restore_calls): Declare.
7230         * config/riscv/t-riscv (riscv-sr.o): New build rule.
7232 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7234         PR tree-optimization/92163
7235         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7236         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7237         before calling bitmap_set_bit.
7238         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7239         delete_dead_or_redundant_assignment.
7240         (dse_dom_walker::dse_optimize_stmt): Likewise.
7241         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7243 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7245         PR middle-end/91272
7246         * tree-vect-stmts.c (vectorizable_condition): Support
7247         EXTRACT_LAST_REDUCTION with fully-masked loops.
7249 2019-10-28  Richard Biener  <rguenther@suse.de>
7251         PR tree-optimization/92252
7252         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7253         STMT_VINFO_REDUC_IDX when swapping operands.
7255 2019-10-28  Richard Biener  <rguenther@suse.de>
7257         PR tree-optimization/92241
7258         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7259         we failed to update the reduction index do not use the pattern
7260         stmts for the reduction chain.
7261         (vectorizable_reduction): When the reduction chain is corrupt,
7262         fail.
7263         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7264         fail to update the reduction chain.
7266 2019-10-28  Richard Biener  <rguenther@suse.de>
7268         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7269         STMT_VINFO_REDUC_IDX from the actual stmt.
7270         (vect_transform_reduction): Likewise.
7271         (vectorizable_reduction): Compute the reduction chain length,
7272         do not recompute the reduction operand index.  Remove no longer
7273         necessary restriction for condition reduction chains.
7275 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7277         PR target/92225
7278         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7279         condition for V2DImode.
7281 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7283         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7284         Remove %k operand modifier.
7285         (*vec_extractv2df_1_sse): Remove %q operand modifier.
7287 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
7289         PR rtl-optimization/92007
7290         * cfgcleanup.c (thread_jump): Add an assertion that we don't
7291         call it after reload if hot/cold partitioning has been done.
7292         (class pass_postreload_jump): Rename to
7293         pass_jump_after_combine.
7294         (make_pass_postreload_jump): Rename to
7295         make_pass_jump_after_combine.
7296         * passes.def(pass_postreload_jump): Move before reload, rename
7297         to pass_jump_after_combine.
7298         * tree-pass.h (make_pass_postreload_jump): Rename to
7299         make_pass_jump_after_combine.
7301 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
7303         PR ipa/92242
7304         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7305         for missing EDGE_REF
7306         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7308 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
7310         PR tree-optimization/88760
7311         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7312         Enable -funroll-loops for -O2 and above.
7313         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7314         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7315         do not turn on web and rngreg implicitly, if the unroller is not
7316         explicitly enabled.
7318 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
7320         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7321         jump functions.
7323 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
7325         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7326         * cgraph.h (cgraph_node::rtl_info): Likewise.
7328 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
7330         * ipa-cp.c (propagate_constants_across_call): If args are not available
7331         just drop everything to varying.
7332         (find_aggregate_values_for_callers_subset): Watch for missing
7333         edge summary.
7334         (find_more_scalar_values_for_callers_subs): Likewise.
7335         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7336         update_jump_functions_after_inlining, propagate_controlled_uses):
7337         Watch for missing summaries.
7338         (ipa_propagate_indirect_call_infos): Remove summary after propagation
7339         is finished.
7340         (ipa_write_node_info): Watch for missing summaries.
7341         (ipa_read_edge_info): Create new ref.
7342         (ipa_edge_args_sum_t): Add remove.
7343         (IPA_EDGE_REF_GET_CREATE): New macro.
7344         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7345         edge summary.
7346         (remap_edge_change_prob): Likewise.
7348 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
7350         * ipa-inline-transform.c (inline_call): update function summaries
7351         after expanidng thunk.
7353 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
7355         * ipa-icf.c (sem_function::merge): Update function summaries.
7356         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7358 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
7360         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7361         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7362         operand already has scalar mode.
7363         (iptr): Remove SF/DF.
7365 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
7367         PR target/91289
7368         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7369         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
7370         this.
7372 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
7374         * config/i386/sse.md
7375         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7376         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7377         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7378         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7379         <sse>_vmmaskcmp<mode>3):
7380         Change predicates from vector_operand to nonimmediate_operand,
7381         constraints xBm to xm, since scalar operations don't need
7382         memory address alignment.
7383         (avx512f_vmcmp<mode>3<round_saeonly_name>,
7384         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7385         round_saeonly_nimm_predicate with
7386         round_saeonly_nimm_scalar_predicate.
7387         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7388         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7389         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7390         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7391         avx512f_vmfmadd_<mode>_mask3<round_name>,
7392         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7393         *avx512f_vmfmsub_<mode>_mask<round_name>,
7394         avx512f_vmfmsub_<mode>_mask3<round_name>,
7395         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7396         *avx512f_vmfnmadd_<mode>_mask<round_name>,
7397         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7398         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7399         *avx512f_vmfnmsub_<mode>_mask<round_name>,
7400         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7401         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7402         cvtusi2<ssescalarmodesuffix>32<round_name>,
7403         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7404         round_nimm_predicate with round_nimm_scalr_predicate.
7405         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7406         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7407         avx512er_vmrcp28<mode><round_saeonly_name>,
7408         avx512er_vmrsqrt28<mode><round_saeonly_name>,
7409         ): Replace round_saeonly_nimm_predicate with
7410         round_saeonly_nimm_scalar_predicate.
7411         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7412         vector_operand with nonimmediate_operand.
7413         * config/i386/subst.md (round_scalar_nimm_predicate,
7414         round_saeonly_scalar_nimm_predicate): Replace
7415         vector_operand with nonimmediate_operand.
7417 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
7419         PR target/89071
7420         * config/i386/i386.md (*rcpsf2_sse): Add
7421         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7422         (*rsqrtsf2_sse): Ditto.
7423         (*sqrt<mode>2_sse): Ditto.
7424         (sse4_1_round<mode>2): separate constraint vm, add
7425         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7426         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7427         by pass rpad.
7428         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7429         Ditto.
7430         (*sse_vmrsqrtv4sf2): Ditto.
7431         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7432         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7433         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7434         <iptr> pointer size modifier since vround support memory operand.
7436 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
7438         PR target/85969
7439         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7440         static function.
7442 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
7443             Tobias Burnus  <tobias@codesourcery.com>
7445         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7446         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7447         common block decls.
7449 2019-10-25  Richard Biener  <rguenther@suse.de>
7451         PR tree-optimization/92222
7452         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7453         (_slp_oprnd_info::second_pattern): Likewise.
7454         (_slp_oprnd_info::any_pattern): New.
7455         (vect_create_oprnd_info): Adjust.
7456         (vect_get_and_check_slp_defs): Compute whether any stmt is
7457         in a pattern.
7458         (vect_build_slp_tree_2): Avoid building up a node from scalars
7459         if any of the operand defs, not just the first, is in a pattern.
7461 2019-10-25  Richard Biener  <rguenther@suse.de>
7463         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7464         swapping if we actually have to modify the IL on a shared stmt.
7465         (vect_build_slp_tree_2): Never fail swapping on shared stmts
7466         because we no longer modify the IL.
7468 2019-10-25  Martin Liska  <mliska@suse.cz>
7470         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7472 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
7474         * tree-vect-loop.c (vectorizable_reduction): Restrict the
7475         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7476         handled by vect_transform_reduction.  Allow fully-masked loops
7477         to be used with reduction chains.
7478         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7479         operations in fully-masked loops.
7480         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7481         operations in fully-masked loops.
7483 2019-10-25  Richard Biener  <rguenther@suse.de>
7485         * tree-vect-loop.c (vectorizable_reduction): Verify
7486         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7487         correctly.
7488         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7489         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7490         stmts.
7492 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
7494         * gimplify.h (omp_construct_selector_matches): Declare.
7495         * gimplify.c (struct gimplify_omp_ctx): Add code member.
7496         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7497         called function if needed for flag_openmp.
7498         (gimplify_scan_omp_clauses): Set ctx->code.
7499         (omp_construct_selector_matches): New function.
7500         * omp-general.h (omp_constructor_traits_to_codes,
7501         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7502         * omp-general.c (omp_constructor_traits_to_codes,
7503         omp_context_selector_matches, omp_resolve_declare_variant): New
7504         functions.
7506         * config/arc/arc.c (hwloop_optimize): Add missing space in string
7507         literal.
7508         * config/rx/rx.c (rx_print_operand): Likewise.
7509         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7510         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7511         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7512         Likewise.
7513         * genemit.c (emit_c_code): Likewise.
7514         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
7516 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7518         * symbols-summary.h (fast_function_summary<T *, V>::release,
7519         fast_call_summary<T *, V>::release): Free m_vector.
7521 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7523         * cgraphunit.c (symbol_table::process_new_functions): Call
7524         ipa_free_size_summary.
7525         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7526         (devirtualization_time_bonus): Update.
7527         (ipcp_propagate_stage): Update.
7528         * ipa-fnsummary.c (ipa_size_summaries): New.
7529         (ipa_fn_summary_alloc): Alloc size summary.
7530         (dump_ipa_call_summary): Update.
7531         (ipa_dump_fn_summary): Update.
7532         (analyze_function_body): Update.
7533         (compute_fn_summary): Likewise.
7534         (ipa_get_stack_frame_offset): New function.
7535         (inline_update_callee_summaries): Do not update frame offsets.
7536         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7537         remove call and function summary.
7538         (ipa_update_overall_fn_summary): Update.
7539         (inline_read_section): Update.
7540         (ipa_fn_summary_write): Update.
7541         (ipa_free_fn_summary): Do not remove summaries.
7542         (ipa_free_size_summary): New.
7543         (release summary pass): Also run at WPA.
7544         * ipa-fnsummary.h (ipa_size_summary): Declare.
7545         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7546         estimated_self_stack_size.
7547         (ipa_size_summary_t): New type.
7548         (ipa_size_summaries): Declare.
7549         (ipa_free_size_summary): Declare.
7550         (ipa_get_stack_frame_offset): Declare.
7551         * ipa-icf.c (sem_function::merge): Update.
7552         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7553         (estimate_growth): Update.
7554         (growth_likely_positive): Update.
7555         (clone_inlined_nodes): Update.
7556         (inline_call): Update.
7557         * ipa-inline.c (caller_growth_limits): Update.
7558         (edge_badness): Update.
7559         (recursive_inlining): Update.
7560         (inline_small_functions): Update.
7561         (inline_to_all_callers_1): Update.
7562         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7564 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
7566         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7567         (uavg<mode>3_ceil): ... This.
7568         (altivec_vavgs<VI_char>): Rename to...
7569         (avg<mode>3_ceil): ... This.
7570         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7571         VAVGUW, VAVGSW): Adjust.
7573 2019-10-24  Nathan Sidwell  <nathan@acm.org>
7575         * dumpfile.c (dump_begin): Reorder decls to use RAII.
7577 2019-10-24  Martin Liska  <mliska@suse.cz>
7579         * symbol-summary.h (gt_pch_nx): Mark all functions
7580         with gcc_unreachable as we do not expect to be called.
7582 2019-10-24  Richard Biener  <rguenther@suse.de>
7584         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7585         chains try harder with operand swapping and instead of
7586         putting a shifted chain into the reduction operands put
7587         a repetition of the final reduction op there as if we'd
7588         reassociate the expression.
7590 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7592         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7593         statics_not_read and statics_not_written to statics_read and
7594         statics_written respectively.
7595         (no_module_statics): New static var.
7596         (ipa_reference_get_not_read_global): Rename to ...
7597         (ipa_reference_get_read_global): ... this.
7598         (ipa_reference_get_not_written_global): Rename to ...
7599         (ipa_reference_get_written_global): ... this.
7600         (dump_static_vars_set_to_file): Dump no_module_statics.
7601         (copy_static_var_set): Add for propagation parameter.
7602         (ipa_init): Initialize no_module_statics.
7603         (ipa_ref_opt_summary_t::duplicate): Update.
7604         (ipa_ref_opt_summary_t::remove): Update.
7605         (propagate): Update.
7606         (write_node_summary_p): Look correctly for bitmap differences.
7607         (ipa_reference_write_optimization_summary): Update.
7608         (ipa_reference_read_optimization_summary): Update.
7609         * ipa-reference.h
7610         (ipa_reference_get_not_read_global): Rename to ...
7611         (ipa_reference_get_read_global): ... this.
7612         (ipa_reference_get_not_written_global): Rename to ...
7613         (ipa_reference_get_written_global): ... this.
7614         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7615         (call_may_clobber_ref_p_1): Update.
7617 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7619         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7620         and add comment.
7621         (msp430_hard_regno_nregs_with_padding): Remove.
7623 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7625         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7626         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7627         shift amount is between 1 and 4.
7628         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7629         is between 1 and 4.
7631 2019-10-24  Richard Biener  <rguenther@suse.de>
7633         PR tree-optimization/92205
7634         * tree-vect-loop.c (vectorizable_reduction): Restrict
7635         search for alternate vectype_in to lane-reducing patterns
7636         we support.
7638 2019-10-24  Richard Biener  <rguenther@suse.de>
7640         PR tree-optimization/92203
7641         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7642         Skip eliminating conversion stmts inserted by insertion.
7644 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
7646         * config/s390/s390.c (s390_get_thread_pointer): Use
7647         gen_get_thread_pointer.
7648         (s390_expand_split_stack_prologue): Likewise.
7649         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7650         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7651         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7652         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7653         parameterized name.
7655 2019-10-24  Richard Biener  <rguenther@suse.de>
7657         * tree-vect-slp.c (vect_analyze_slp): When reduction group
7658         SLP discovery fails try to handle the reduction as part
7659         of SLP reduction discovery.
7661 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
7663         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7664         declaration.
7665         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7666         attribute if it exists, rather than the insn size.  If we use the
7667         insn size, adjust the size to remove the extra size that prefixed
7668         instructions take.
7669         (rs6000_adjust_insn_length): New function.
7670         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7671         update the instruction sized if prefixed instructions are used.
7672         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7673         (non_prefixed_length attribute): Delete.
7674         (num_insns attribute): New insn attribute to return the number of
7675         instructions.
7676         (max_prefixed_insns attribute): New insn attribute to return the
7677         maximum number of prefixed instructions in an insn.
7678         (length attribute): Do not adjust for prefix instructions here,
7679         punt to ADJUST_INSN_LENGTH.
7680         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7681         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7682         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7683         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7684         max_prefixed_insns and num_insns.
7686         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7687         (movtd_64bit_nodm): Reformat.
7688         (mov<mode>_32bit): Reformat.
7689         (mov<mode>_softfloat): Reformat.
7690         (FMOVE128_GPR splitter): Reformat.
7691         (DIFD splitter): Reformat.
7692         (TI2 splitter): Reformat.
7693         * config/rs6000/predicates.md (lwa_operand): If the bottom two
7694         bits of the offset for the memory address are non-zero, use PLWA
7695         if prefixed instructions are available.
7697 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7699         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7701 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7703         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7704         previous patch.
7706 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7708         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7709         (cmp_symbol_files): New.
7710         (lto_output): Copy sections in file order.
7711         * lto-streamer.h (lto_file_decl_data): Add field order.
7713 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7715         * ipa-reference.h (ipa_reference_var_uid): Move offline.
7716         * ipa-reference.c (reference_vars_map_t): new type.
7717         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7718         (ipa_reference_var_uid): Implement.
7719         (varpool_node_hooks): New static var.
7720         (varpool_removal_hook): New function.
7721         (is_improper): Do not check bitmap for id==-1
7722         (get_static_name): Update.
7723         (ipa_init): Initialize new datastructures.
7724         (analyze_function): Do not recompute ids.
7725         (propagate): Free reference_vars_to_consider.
7726         (stream_out_bitmap): Update.
7727         (ipa_reference_read_optimization_summary): Update.
7729 2019-10-23  qing zhao  <qing.zhao@oracle.com>
7731         PR gcov-profile/91971
7732         * coverage.c (coverage_init): Mangle the full path of filename when
7733         filename is a absolute path.
7735 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7737         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7738         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7739         (msp430_has_hwmult): New.
7740         (msp430_output_labelref):
7741         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7742         * config/msp430/msp430.md (mulhisi3): Likewise.
7743         (umulhisi3): Likewise.
7744         (mulsidi3): Likewise.
7745         (umulsidi3): Likewise.
7747 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7749         PR ipa/92074
7750         * params.def (inline-heuristics-hint-percent): Set to 600.
7752 2019-10-23  Richard Biener  <rguenther@suse.de>
7754         PR tree-optimization/65930
7755         * tree-vect-loop.c (check_reduction_path): Allow conversions
7756         that only change the sign.
7757         (vectorizable_reduction): Relax latch def stmts we handle further.
7759 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
7761         PR debug/90231
7762         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7763         (remove_unused_ivs): Use it instead of get_computation_at.  When
7764         choosing best candidate, only consider candidates where
7765         get_debug_computation_at actually returns non-NULL.
7767 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
7769         PR tree-optimization/92131
7770         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7771         range would be symbolic, drop to varying for any explicit overflow
7772         in the constant part or if neither range is a singleton.
7774 2019-10-23  Martin Liska  <mliska@suse.cz>
7776         PR middle-end/81669
7777         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7778         Initialize m_data.
7780 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
7782         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7783         int_mode_for_mode rather than mode_for_int_vector for scalars.
7785 2019-10-23  Richard Biener  <rguenther@suse.de>
7787         PR tree-optimization/92179
7788         * tree-vect-stmts.c (vectorizable_shift): For shift args
7789         that are all the same remove type restriction in the SLP case.
7790         Adjust SLP code to handle converting of the shift arg to
7791         only apply in case the modes are different.
7793 2019-10-23  Martin Liska  <mliska@suse.cz>
7795         PR ipa/91969
7796         * ipa-inline.c (recursive_inlining): Do not print
7797         when curr->count is not initialized.
7799 2019-10-23  Richard Biener  <rguenther@suse.de>
7801         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7802         op from scalars in case there's a constant operand in its
7803         definition.
7805 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
7807         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7808         against out of range max skip or log values.
7810 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
7812         * cgraph.c (dump_graphviz): Change name to dump_name
7814 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
7816         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7817         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7818         subtraction from a carry operation.
7820 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
7822         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7824 2019-10-22  Richard Biener  <rguenther@suse.de>
7826         PR tree-optimization/92173
7827         * tree-vect-loop.c (vectorizable_reduction): If
7828         vect_transform_reduction cannot handle code-generation try without
7829         the single-def-use-cycle optimization.  Pass optab_vector to
7830         optab_for_tree_code to get vector shifts as that's what we'd
7831         generate.
7833 2019-10-22  Michael Matz  <matz@suse.de>
7835         PR middle-end/90796
7836         * gimple-loop-jam.c (any_access_function_variant_p): New function.
7837         (adjust_unroll_factor): Use it to constrain safety, new parameter.
7838         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7840 2019-10-22  Richard Biener  <rguenther@suse.de>
7842         PR tree-optimization/92173
7843         * tree-vect-loop.c (vectorizable_reduction): If
7844         vect_transform_reduction cannot handle code-generation try without
7845         the single-def-use-cycle optimization.  Pass optab_vector to
7846         optab_for_tree_code to get vector shifts as that's what we'd
7847         generate.
7849 2019-10-22  Martin Liska  <mliska@suse.cz>
7851         * diagnostic-format-json.cc (json_from_expanded_location):
7852         Use json::integer_number.
7853         * gcov.c (output_intermediate_json_line): Use new
7854         json::integer_number.
7855         (output_json_intermediate_file): Likewise.
7856         * json.cc (number::print): Move to ...
7857         (float_number::print): ... this.
7858         (integer_number::print): New.
7859         (test_writing_numbers): Move to ...
7860         (test_writing_float_numbers): ... this.
7861         (test_writing_integer_numbers): New.
7862         (json_cc_tests): Register test_writing_integer_numbers.
7863         * json.h (class value): Add forward declaration
7864         for float_number and integer_number.
7865         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7866         (class number): Move to ...
7867         (class float_number): ... this.
7868         (class integer_number): New.
7869         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7870         Use json::integer_number.
7871         (optrecord_json_writer::location_to_json): Likewise.
7872         (optrecord_json_writer::profile_count_to_json): Likewise.
7873         (optrecord_json_writer::pass_to_json): Likewise.
7875 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7877         * tree-vect-slp.c (vect_slp_bb_region): Check whether
7878         autodetected_vector_size rather than vector_size is zero.
7879         * tree-vect-loop.c (vect_analyze_loop): Likewise.
7880         Set autodetected_vector_size immediately after calling
7881         vect_analyze_loop_2.  Check for a fatal error before advancing
7882         next_size.
7884 2019-10-21  Jason Merrill  <jason@redhat.com>
7886         * lock-and-run.sh: Check for process existence rather than timeout.
7888 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7890         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7891         widening multiplication.
7893 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
7895         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7896         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7897         type attribute.
7898         (subsi3_carryin_shift): Separate into register and constant controlled
7899         alternatives.  Use shift_amount_operand for operand 4.  Set shift
7900         attribute and simplify type attribute.
7901         (subsi3_carryin_shift_alt): Likewise.
7902         (rsbsi3_carryin_shift): Likewise.
7903         (rsbsi3_carryin_shift_alt): Likewise.
7904         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
7905         and register controlled shifts into distinct alternatives.
7906         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7907         (andsi_not_shiftsi_si_scc): Likewise.
7908         (arm_cmpsi_negshiftsi_si): Likewise.
7909         (not_shiftsi): Remove redundant M constraint from alternative 1.
7910         (not_shiftsi_compare0): Likewise.
7911         (arm_cmpsi_insn): Remove redundant alternative 2.
7912         (cmpsi_shift_swp): Likewise.
7913         (sub_shiftsi): Likewise.
7914         (sub_shiftsi_compare0_scratch): Likewise.
7915         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7916         (thumb2_cmpsi_neg_shiftsi): Likewise.
7918 2019-10-21  Richard Biener  <rguenther@suse.de>
7920         PR tree-optimization/92162
7921         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7922         STMT_VINFO_REDUC_IDX in reduc_info.
7923         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7925 2019-10-21  Richard Biener  <rguenther@suse.de>
7927         * tree-vectorizer.h (_slp_tree::ops): New member.
7928         (SLP_TREE_SCALAR_OPS): New.
7929         (vect_get_slp_defs): Adjust prototype.
7930         * tree-vect-slp.c (vect_free_slp_tree): Release
7931         SLP_TREE_SCALAR_OPS.
7932         (vect_create_new_slp_node): Initialize it.  New overload for
7933         initializing by an operands array.
7934         (_slp_oprnd_info::ops): New member.
7935         (vect_create_oprnd_info): Initialize it.
7936         (vect_free_oprnd_info): Release it.
7937         (vect_get_and_check_slp_defs): Populate the operands array.
7938         Do not swap operands in the IL when not necessary.
7939         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7940         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
7941         swap operands in the operands array.  Do not swap operands in
7942         the IL.
7943         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7944         (vect_gather_slp_loads): Fix.
7945         (vect_detect_hybrid_slp_stmts): Likewise.
7946         (vect_slp_analyze_node_operations_1): Search for a internal
7947         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7948         (vect_slp_analyze_node_operations): Skip ops-only stmts for
7949         the def-type push/pop dance.
7950         (vect_get_constant_vectors): Compute number_of_vectors here.
7951         Use SLP_TREE_SCALAR_OPS and simplify greatly.
7952         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7953         (vect_get_slp_defs): Simplify greatly.
7954         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7955         (vect_transform_reduction): Likewise.
7956         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7957         (vectorizable_call): Likewise.
7958         (vectorizable_operation): Likewise.
7959         (vectorizable_load): Likewise.
7960         (vectorizable_condition): Likewise.
7961         (vectorizable_comparison): Likewise.
7963 2019-10-21  Richard Biener  <rguenther@suse.de>
7965         PR tree-optimization/92161
7966         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7967         for reductions.
7969 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7971         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7972         (aarch64_rndr): New define_insn.
7973         (aarch64_rndrrs): Likewise.
7974         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7975         (TARGET_RNG): Likewise.
7976         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7977         argument.
7978         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7979         Add fourth argument in prototype.
7980         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7981         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7982         (aarch64_init_rng_builtins): Define.
7983         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7984         (aarch64_expand_rng_builtin): Define.
7985         (aarch64_general_expand_builtin): Use IGNORE argument, handle
7986         RNG builtins.
7987         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7988         __ARM_FEATURE_RNG when TARGET_RNG.
7989         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7991 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7993         * tree-vect-stmts (ensure_base_align): Only change alignment if new
7994         alignment is more restrictive.
7996 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7998         * tree-vectorizer.h (vec_info::vector_size): New member variable.
7999         (vect_update_max_nunits): Update comment.
8000         (current_vector_size): Delete.
8001         * tree-vect-stmts.c (current_vector_size): Likewise.
8002         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8003         of current_vector_size.
8004         (get_mask_type_for_scalar_type): Likewise.
8005         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8006         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8007         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8008         (vect_double_mask_nunits, vect_transform_loop): Likewise.
8009         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8010         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8012 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8014         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8015         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8016         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
8017         accordingly.
8019 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8021         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8022         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8023         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8024         call accordingly.
8025         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8027 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8029         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8030         a loop_vec_info.
8031         (vect_set_loop_condition_masked): Update call accordingly.
8033 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8035         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8036         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8037         (simple_integer_narrowing): Update call accordingly.
8038         (vectorizable_conversion): Likewise.
8040 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8042         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8043         (vectorizable_call): Update call accordingly.
8045 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8047         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8048         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8049         (duplicate_and_interleave): Update call accordingly.
8050         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8052 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8054         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8055         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8056         (vect_get_constant_vectors): Update call accordingly.
8057         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8059 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8061         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8062         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8063         (vect_prologue_cost_for_slp_op): Update call accordingly.
8064         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8065         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8066         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8067         (get_mask_type_for_scalar_type): Likewise.
8068         (vect_get_vector_types_for_stmt): Likewise.
8069         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8070         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8071         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8072         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8073         (vect_split_statement, vect_convert_input): Likewise.
8074         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8075         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8076         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8077         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8078         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8079         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8080         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8081         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8082         (vect_recog_mask_conversion_pattern): Likewise.
8083         (vect_add_conversion_to_pattern): Likewise.
8084         (vect_recog_gather_scatter_pattern): Likewise.
8085         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8086         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8088 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8090         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8091         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8092         (vect_check_load_store_mask): Update call accordingly.
8093         (vect_get_mask_type_for_stmt): Likewise.
8094         * tree-vect-patterns.c (check_bool_pattern): Likewise.
8095         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8096         (vect_convert_mask_for_vectype): Likewise.
8098 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8100         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8101         a vec_info.
8102         (vect_recog_dot_prod_pattern): Update call accordingly.
8103         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8104         (vect_recog_widen_sum_pattern): Likewise.
8106 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8108         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8109         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8110         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8111         accordingly.
8113 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8115         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8116         get_vectype_for_scalar_type_and_size instead of
8117         get_vectype_for_scalar_type.
8119 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8121         * common.opt (-fcommon): Fix description.
8123 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
8125         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8126         * config/i386/i386.c (ix86_pre_reload_split): New function.
8127         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8128         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8129         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8130         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8131         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8132         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8133         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8134         *<shift_insn><dwi>3_doubleword_mask,
8135         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8136         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8137         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8138         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8139         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8140         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8141         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8142         *avx2_<code>v8qiv8si2<mask_name>_2,
8143         *sse4_1_<code>v4qiv4si2<mask_name>_2,
8144         *sse4_1_<code>v4hiv4si2<mask_name>_2,
8145         *avx512f_<code>v8qiv8di2<mask_name>_2,
8146         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8147         *sse4_1_<code>v2hiv2di2<mask_name>_2,
8148         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8149         sse4_2_pcmpistr): Likewise.
8151 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
8153         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8154         now defaults to https.
8156 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
8158         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8159         skip non-zero array accesses.
8161 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8163         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8164         and return a boolean success value.  Move the allocation and
8165         initialization of the bb_vec_info to...
8166         (vect_slp_bb_region): ...here.  Update call accordingly.
8167         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8168         than in vect_slp_analyze_bb_1.
8170 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8172         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8173         when processing the given datarefs for the first time and
8174         check_datarefs subsequently.
8175         (vect_slp_bb_region): New function, split out of...
8176         (vect_slp_bb): ...here.  Don't recompute the region bounds and
8177         dataref sets when retrying with a different vector size.
8179 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
8180             UroÅ¡ Bizjak  <ubizjak@gmail.com>
8182         PR target/92140
8183         * config/i386/predicates.md (int_nonimmediate_operand): New special
8184         predicate.
8185         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8186         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8187         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8188         define_insn_and_split patterns.
8190 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
8192         * config/rs6000/rs6000.md: Delete out--of-date comment about
8193         special-casing integer loads.
8195 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
8197         * escaped_string.h (escaped_string): New header.
8198         * tree.c (escaped_string): Remove escaped_string class.
8200 2019-10-18  Martin Sebor  <msebor@redhat.com>
8202         PR tree-optimization/92157
8203         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8204         compute_string_length to return a negative result.
8206 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8208         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8209         (negvsi3, negvdi3): Delete.
8210         (negdi2_compare): Delete.
8212 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8214         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8215         operations.
8216         (subdi3_compare1): Delete pattern.
8217         (subvsi3_borrow): New insn pattern.
8218         (subvsi3_borrow_imm): Likewise.
8220 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8222         * config/arm/arm.md (subv<mode>4): Delete.
8223         (subvdi4): New expander pattern.
8224         (subvsi4): Likewise.  Handle some immediate values.
8225         (subvsi3_intmin): New insn pattern.
8226         (subvsi3): Likewise.
8227         (subvsi3_imm1): Likewise.
8228         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8229         idioms.
8231 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8233         * config/arm/arm.md (usubvdi4): Allow registers or integers for
8234         incoming operands.  Early split the calculation into SImode
8235         operations.
8236         (usubvsi3_borrow): New insn pattern.
8237         (usubvsi3_borrow_imm): Likewise.
8239 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8241         * config/arm/arm.md (usubv<mode>4): Delete expansion.
8242         (usubvsi4): New pattern.  Allow some immediate values for inputs.
8243         (usubvdi4): New pattern.
8245 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8247         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8248         or second operand of the PLUS inside a DImode equality test to be
8249         sign-extend when selecting CC_Vmode.
8250         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8251         instructions.
8252         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8253         expand patterns.
8254         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8255         (addsi3_cin_vout_0): Likewise.
8256         (adddi3_compareV): Delete.
8258 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8260         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8261         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
8262         to transform this back into the summation version when that leads
8263         to smaller code.
8265 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8267         * config/arm/arm.md (addv<mode>4): Delete.
8268         (addvsi4): New pattern.  Handle immediate values that the architecture
8269         supports.
8270         (addvdi4): New pattern.
8271         (addsi3_compareV): Rename to ...
8272         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
8273         and use COMPARE rather than NE.
8274         (addsi3_compareV_imm): New pattern.
8275         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8276         a signed-overflow check.
8278 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8280         * config/arm/arm-modes.def (CC_ADC): New CC mode.
8281         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8282         CC_ADCmode.
8283         (maybe_get_arm_condition_code): Handle CC_ADCmode.
8284         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8285         with overflow.
8286         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8287         expand patterns.
8288         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8289         (addsi3_cin_cout_imm_insn): Likewise.
8290         (adddi3_compareC): Delete insn.
8291         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8293 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8295         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8296         * (uaddv<mode>4): Delete expansion pattern.
8297         (uaddvsi4): New pattern.
8298         (uaddvdi4): Likewise.
8299         (addsi3_compareC): Delete pattern, change callers to use
8300         addsi3_compare_op1.
8301         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
8302         reduce the number of alternatives and re-work type attribute handling.
8303         (addsi3_compare_op2): Clean up constraints to reduce the number of
8304         alternatives and re-work type attribute handling.
8305         (compare_addsi2_op0): Likewise.
8306         (compare_addsi2_op1): Likewise.
8308 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8310         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8311         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8312         for DImode operands.
8313         (arm_gen_dicompare_reg): Remove unreachable expansion code.
8314         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8315         CC_NCVmode.
8316         * config/arm/arm.md (arm_cmpdi_insn): Delete.
8317         (arm_cmpdi_unsigned): Delete.
8319 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8321         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8322         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8323         unchanged only if that will be cheaper.
8324         (arm_select_cc_mode): Recognize a swapped comparison that will
8325         be regenerated using RSBS or RSCS.  Relax restriction on selecting
8326         CC_RSBmode.
8327         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8328         a constant.
8329         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8330         is CC_RSBmode.
8331         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8332         as CCmode.
8333         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8334         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8336 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8338         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8339         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8340         need these modes.
8341         (arm_gen_dicompare_reg): New code to early expand the sub-operations
8342         of EQ, NE, LT, GE, LTU and GEU.
8343         * config/arm/iterators.md (CC_EXTEND): New code attribute.
8344         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8345         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8346         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8347         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8349 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8351         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8352         operand 2.
8353         (cstoredi4): Similarly, but for operand 3.
8354         * config/arm/arm.c (arm_canoncialize_comparison): Allow
8355         canonicalization of unsigned compares with a constant on Arm.
8356         Prefer using const+1 and adjusting the comparison over swapping the
8357         operands whenever the original constant was not valid.
8358         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8359         register here.
8360         (arm_validize_comparison): Do not force invalid DImode operands to
8361         registers here.
8363 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8365         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8366         return CC_Zmode if comparing against a constant where one word is
8367         zero.
8368         (arm_gen_compare_reg): Split DImode handling to ...
8369         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
8370         against simple constants.
8371         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8373 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8375         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8376         (rsbsi3_carryin_shift_alt): Likewise.
8378 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8380         * config/arm/arm.md (negscc_borrow): New pattern.
8381         (mov_negscc): Don't split if the insn would match negscc_borrow.
8382         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8383         (thumb2_mov_negscc_strict_it): Likewise.
8385 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8387         * config/arm/arm.c (arm_insn_cost): New function.
8388         (TARGET_INSN_COST): Override default definition.
8390 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8392         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8393         borrow operations.
8395 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8397         * config/arm/arm.c (strip_carry_operation): New function.
8398         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8399         for SImode.
8401 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8403         * config/arm/predicates.md (arm_carry_operation): New special
8404         predicate.
8405         * config/arm/iterators.md (LTUGEU): Delete iterator.
8406         (cnb): Delete code attribute.
8407         (optab): Delete ltu and geu elements.
8408         * config/arm/arm.md (addsi3_carryin): Renamed from
8409         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
8410         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8411         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8412         (addsi3_carryin_clobercc): Similarly.
8413         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
8414         Thumb2 state.
8416 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8418         * config/arm/arm.md (arm_subdi3): Delete insn.
8419         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8421 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8423         * config/arm/arm-modes.def (CC_RSB): New CC mode.
8424         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8425         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8426         return CC_RSBmode.
8427         (maybe_get_arm_condition_code): Handle CC_RSBmode.
8428         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8429         expand.
8430         (subdi3): Rewrite to early-expand the sub-operations.
8431         (rsb_im_compare): New pattern.
8432         (negdi2): Delete.
8433         (negdi2_insn): Delete.
8434         (arm_negsi2): Correct type attribute to alu_imm.
8435         (negsi2_0compare): New insn pattern.
8436         (negsi2_carryin): New insn pattern.
8438 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8440         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8441         operand 2.
8443 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8445         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8446         to match canonical form.
8448 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8450         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8451         (extend<mode>di2): Likewise.
8453 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8455         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8456         * config/arm/arm.c (arm_decompose_di_binop): New function.
8457         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8458         If not generating Thumb-1 code, decompose the operation into 32-bit
8459         pieces.
8460         * add0si_carryin_<optab>: New pattern.
8462 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8464         * arm.md (adddi3): Only accept register operands.
8465         (arm_adddi3): Convert to simple insn with no split.  Do not accept
8466         constants.
8467         (adddi_sesidi_di): Delete patern.
8468         (adddi_zesidi_di): Likewise.
8469         (uaddv<mode>4): Use LTU as condition for branch.
8470         (adddi3_compareV): Convert to simple insn with no split.
8471         (addsi3_compareV_upper): Delete pattern.
8472         (adddi3_compareC): Convert to simple insn with no split.  Correct
8473         flags setting expression.
8474         (addsi3_compareC_upper): Delete pattern.
8475         (addsi3_compareC): Correct flags setting expression.
8476         (subdi3_compare1): Convert to simple insn with no split.
8477         (subsi3_carryin_compare): Delete pattern.
8478         (arm_subdi3): Convert to simple insn with no split.
8479         (subdi_zesidi): Delete pattern.
8480         (subdi_di_sesidi): Delete pattern.
8481         (subdi_zesidi_di): Delete pattern.
8482         (subdi_sesidi_di): Delete pattern.
8483         (subdi_zesidi_zesidi): Delete pattern.
8484         (negvdi3): Use s_register_operand.
8485         (negdi2_compare): Convert to simple insn with no split.
8486         (negdi2_insn): Likewise.
8487         (negsi2_carryin_compare): Delete pattern.
8488         (negdi_zero_extendsidi): Delete pattern.
8489         (arm_cmpdi_insn): Convert to simple insn with no split.
8490         (negdi2): Don't call gen_negdi2_neon.
8491         * config/arm/neon.md (adddi3_neon): Delete pattern.
8492         (subdi3_neon): Delete pattern.
8493         (negdi2_neon): Delete pattern.
8494         (splits for negdi2_neon): Delete splits.
8496 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
8498         PR middle-end/92153
8499         * ggc-page.c (release_pages): Read g->alloc_size before free rather
8500         than after it.
8502 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8504         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8505         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
8506         new multilib variants and new mappings.
8508 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
8510         PR target/86040
8511         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8513 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8514             Richard Sandiford  <richard.sandiford@arm.com>
8516         PR target/86753
8517         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8518         and define hashmap traits for it.
8519         (loop_vec_info::scalar_cond_masked_set): New member.
8520         (vect_record_loop_mask): Adjust prototype.
8521         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8522         Implement method.
8523         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8524         vect_record_loop_mask.
8525         (vectorizable_live_operation): Likewise.
8526         (vect_record_loop_mask): New param scalar_mask. Add entry
8527         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8528         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8529         Pass it as last arg to vect_record_loop_mask.
8530         (vectorizable_call): Pass scalar_mask as last arg to
8531         vect_record_loop_mask.
8532         (vectorizable_store): Likewise.
8533         (vectorizable_load): Likewise.
8534         (vectorizable_condition): Check if another part of vectorized code
8535         applies loop_mask to condition or to it's inverse, and if yes,
8536         apply loop_mask to result of vector comparison.
8538 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
8540         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8542 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
8544         PR tree-optimization/92056
8545         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8546         before calling compute_builtin_object_size.
8548 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
8550         PR target/65342
8551         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8552         (movdi_low_st): Delete.
8553         * config/rs6000/rs6000.c
8554         (darwin_rs6000_legitimate_lo_sum_const_p): New.
8555         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8556         * config/rs6000/rs6000.md (movsi_low): Delete.
8558 2019-10-17  Jason Merrill  <jason@redhat.com>
8560         * gimplify.h (get_initialized_tmp_var): Add default argument to
8561         post_p.
8562         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8563         NULL post_p argument.
8564         * targhooks (std_gimplify_va_arg_expr): Likewise.
8566 2019-10-17  Richard Biener  <rguenther@suse.de>
8568         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8569         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8570         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8571         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8572         * tree-vect-loop.c (vect_is_simple_reduction): Set
8573         STMT_VINFO_REDUC_CODE.
8574         (vectorizable_reduction): Remove dead and redundant code, use
8575         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8577 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
8579         Fix breakage introduced by r276985.
8581         * config/avr/avr.c (avr_option_override): Remove set of
8582         PARAM_ALLOW_STORE_DATA_RACES.
8583         * common/config/avr/avr-common.c (avr_option_optimization_table)
8584         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8586 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8588         * config/i386/i386.h (processor_costs): Add clear_ratio.
8589         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8590         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8591         of 6 and move_ratio in all cost models.
8593 2019-10-17  Richard Biener  <rguenther@suse.de>
8595         * tree-vect-loop.c (check_reduction_path): Compute reduction
8596         operation here.
8597         (vect_is_simple_reduction): Remove special-case of single-stmt
8598         reduction path detection.
8600 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
8602         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8604 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
8606         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8607         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8608         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8609         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8610         New combine patterns.
8611         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8612         above.
8613         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8615 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
8617         * tree-vrp.c (value_range_base::dump): Display +INF for both
8618         pointers and integers when appropriate.
8620 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8622         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8623         when to use versioning threshold.
8625 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8627         * tree-vect-loop.c (determine_peel_for_niter): New function contained
8628         outlined code from ...
8629         (vect_analyze_loop_2): ... here.
8631 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8633         * tree-vect-loop.c (vect_transform_loop): Move code from here...
8634         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8635         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8637 2019-10-17  Richard Biener  <rguenther@suse.de>
8639         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8640         (vect_is_simple_reduction): Move all validity checks ...
8641         (vectorizable_reduction): ... here.  Compute whether we
8642         need a fold-left reduction here.
8643         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8644         both overloads, check needs_fold_left_reduction_p directly.
8645         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8647 2019-10-17  Richard Biener  <rguenther@suse.de>
8649         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8650         TARGET_MEM_REF creation.
8652 2019-10-17  Richard Biener  <rguenther@suse.de>
8654         PR tree-optimization/92129
8655         * tree-vect-loop.c (vectorizable_reduction): Also fail
8656         on GIMPLE_SINGLE_RHS.
8658 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
8660         PR tree-optimization/92056
8661         * tree-object-size.c (cond_expr_object_size): Return early if then_
8662         processing resulted in unknown size.
8664         PR tree-optimization/92115
8665         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8666         temporary if it could trap.
8668 2019-10-17  Richard Biener  <rguenther@suse.de>
8670         PR debug/91887
8671         * dwarf2out.c (gen_formal_parameter_die): Also try to match
8672         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8674 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
8676         * tree-ssa-strlen.c (maybe_invalidate): Use
8677         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8679 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
8680             Jim Wilson  <jimw@sifive.com>
8682         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8683         regs to SIBCALL_REGS.
8684         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8685         passing regs to SIBCALL_REGS.
8687 2019-10-16  Martin Sebor  <msebor@redhat.com>
8689         PR tree-optimization/83821
8690         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
8691         the length of a string when available.
8692         (handle_builtin_memset) Add argument.
8693         (handle_store, strlen_check_and_optimize_call): Same.
8694         (check_and_optimize_stmt): Same.  Pass it to callees.
8696 2019-10-16  Martin Sebor  <msebor@redhat.com>
8698         PR tree-optimization/91996
8699         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8700         information.
8701         (compare_nonzero_chars): Add an overload.
8702         (count_nonzero_bytes): Add an argument.  Call overload above.
8703         Handle non-constant lengths in some range.
8704         (handle_store): Add an argument.
8705         (check_and_optimize_stmt): Pass an argument to handle_store.
8707 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
8709         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8711 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8713         * config/mips/mips.c (mips_expand_builtin_insn): Force the
8714         operands which correspond to the same input-output register to
8715         have the same pseudo assigned to them.
8717 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
8719         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8721 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
8723         * config/aarch64/aarch64.c (aarch64_classify_symbol):
8724         Apply reasonable limit to symbol offsets.
8726 2019-10-16  Richard Biener  <rguenther@suse.de>
8728         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8729         (vect_is_simple_reduction): Delay checking to
8730         vectorizable_reduction and relax the checking.
8731         (vectorizable_reduction): Check we have a simple use.  Check
8732         for bogus condition reductions.
8733         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8734         are looking at the last stmt in a pattern sequence when
8735         filling in backedge PHI values.
8737 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
8738             Jiufu Guo  <guojiufu@linux.ibm.com>
8740         PR target/70010
8741         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8742         the callee explicitly disables some isa_flags the caller is using.
8744 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8746         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8748 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8750         * genmodes.c (mode_data::order): New field.
8751         (blank_mode): Update accordingly.
8752         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8753         (make_vector_modes): Likewise.
8754         (VECTOR_MODES): Update use accordingly.
8755         (cmp_modes): Sort by the new order field ahead of sorting by size.
8756         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8757         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8758         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8759         (aarch64_classify_vector_mode): Handle the new partial modes.
8760         (aarch64_vl_bytes): New function.
8761         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8762         when counting the number of registers in an SVE mode.
8763         (aarch64_class_max_nregs): Likewise.
8764         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8765         in registers yet.
8766         (aarch64_classify_address): Treat partial vectors analogously
8767         to full vectors.
8768         (aarch64_print_address_internal): Consolidate the printing of
8769         MUL VL addresses, using aarch64_vl_bytes as the number of
8770         bytes represented by "VL".
8771         (aarch64_vector_mode_supported_p): Reject partial vector modes.
8773 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8775         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8776         rather than known_lt when choosing frame layouts.
8778 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8780         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8781         that all the adjustments add up to the full frame size.
8782         Use crtl->outgoing_args_size directly as the final adjustment
8783         where appropriate.
8785 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8787         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8788         "frame" reference instead of always referring directly to
8789         "cfun->machine->frame".
8791 2019-10-16  Richard Biener  <rguenther@suse.de>
8793         PR tree-optimization/92119
8794         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8795         against missing bswap lhs.
8797 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8799         PR middle-end/92033
8800         * poly-int.h (constant_lower_bound_with_limit): New function.
8801         (constant_upper_bound_with_limit): Likewise.
8802         * doc/poly-int.texi: Document them.
8803         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8804         into the worst-case INTEGER_CST bounds.
8806 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
8808         PR ipa/91088
8809         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8810         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8811         * ipa-predicat.h (struct expr_eval_op): New struct.
8812         (expr_eval_ops): New typedef.
8813         (struct condition): Add type and param_ops fields, remove size field.
8814         (add_condition): Replace size parameter with type parameter, add
8815         param_ops parameter.
8816         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8817         (predicate::add_clause): Add comparisons on type and param_ops.
8818         (dump_condition): Add debug dump for param_ops.
8819         (remap_after_inlining): Adjust call arguments to add_condition.
8820         (add_condition): Replace size parameter with type parameter, add
8821         param_ops parameter. Unshare constant value used in conditions.
8822         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8823         parameter expressions using param_ops.
8824         (decompose_param_expr):  New function.
8825         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8826         to replace call to unmodified_parm_or_parm_agg_item.
8827         (set_switch_stmt_execution_predicate): Likewise.
8828         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8829         with type.
8830         (inline_read_section): Read param_ops from summary stream.
8831         (ipa_fn_summary_write): Write param_ops to summary stream.
8833 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
8835         PR rtl-optimization/92107
8836         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8837         expression written.
8839 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
8841         * config/darwin.c: Update description of fix and continue.
8843 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
8845         * config/darwin.c (darwin_binds_local_p): Update to call
8846         default_binds_local_p_3 () directly. amend comments.
8848 2019-10-15  Richard Biener  <rguenther@suse.de>
8850         * lto-streamer-out.c (lto_variably_modified_type_p): New.
8851         (tree_is_indexable): Use it.
8852         * tree-streamer-out.c (pack_ts_type_common_value_fields):
8853         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8854         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8856 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8858         * config/msp430/msp430.md (zero_extendqipsi2): New.
8859         (zero_extendqisi2): Optimize case where src register and base dst
8860         register are the same.
8861         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8862         (zero_extendpsisi2): Optimize r->m case.
8863         Add unnamed insn patterns to catch insns combine searches for when
8864         optimizing pointer manipulation.
8866 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8868         * config/msp430/msp430.md: Group zero_extend* insns together.
8870 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8872         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8873         constraint.
8874         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8875         POST_INC.
8876         (msp430_subreg): Likewise.
8877         (msp430_split_addsi): Likewise.
8878         (msp430_print_operand_addr): Likewise.
8879         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8880         (USE_STORE_POST_INCREMENT): Define.
8881         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8882         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8883         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8884         (msp430_general_dst_operand): New.
8885         (msp430_general_dst_nonv_operand): New.
8886         (msp430_nonsubreg_operand): Remove.
8887         (msp430_nonsubreg_dst_operand): New.
8888         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8889         of defunct msp430_nonsubreg_operand.
8890         (msp430_nonsubregnonpostinc_or_imm_operand): New.
8892 2019-10-15  Richard Biener  <rguenther@suse.de>
8894         PR tree-optimization/91929
8895         * tree-ssa-pre.c (pre_expr_d::loc): New member.
8896         (get_or_alloc_expr_for_name): Initialize it.
8897         (get_or_alloc_expr_for_constant): Likewise.
8898         (phi_translate_1): Copy it.
8899         (create_expression_by_pieces): Use the original location
8900         of the expression for the inserted stmt.
8901         (compute_avail): Record the location of the stmt for the
8902         expressions created.
8904 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
8906         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8907         before using tree_to_uhwi.
8909 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
8911         * config/s390/s390.md: Run %a0:DI splitters only after reload.
8913 2019-10-15  Richard Biener  <rguenther@suse.de>
8915         PR tree-optimization/92094
8916         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8917         do not adjust the reduction definition def type.
8918         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8919         defines the latch argument of the PHI.
8921 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
8923         PR target/92035
8924         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8925         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8926         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8927         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8928         _mm_maskz_roundscale_round_sd): New intrinsics.
8929         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8930         __builtin_ia32_rndscales?_mask_round builtins instead of
8931         __builtin_ia32_rndscales?_round.
8932         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8933         __builtin_ia32_rndscalesd_round): Remove.
8934         (__builtin_ia32_rndscaless_mask_round,
8935         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8936         * config/i386/sse.md
8937         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8938         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8939          ... this, adjust and add subst atrributes to make it maskable.
8941 2019-10-15  Richard Biener  <rguenther@suse.de>
8943         PR middle-end/92046
8944         * common.opt (fallow-store-data-races): New.
8945         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8946         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8947         * doc/invoke.texi (fallow-store-data-races): Document.
8948         (--param allow-store-data-races): Remove docs.
8949         * opts.c (default_options_table): Enable -fallow-store-data-races
8950         at -Ofast.
8951         (default_options_optimization): Do not enable --param
8952         allow-store-data-races at -Ofast.
8953         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8954         instead of PARAM_ALLOW_STORE_DATA_RACES.
8955         * tree-ssa-loop-im.c (execute_sm): Likewise.
8957 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8959         PR tree-optimization/92085
8960         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8961         instead of calling it unconditionally after
8962         delete_dead_or_redundant_assignment and fix indentation.
8964 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
8966         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8967         TARGET_VFP_DOUBLE.
8968         (*fmsub<SDF:mode>4): Likewise.
8969         *fnmsub<SDF:mode>4): Likewise.
8970         (*fnmadd<SDF:mode>4): Likewise.
8972 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
8974         * doc/tree-ssa.texi: Update renamed macro name.
8976 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8978         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8979         vector constants.
8981 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
8983         * config/darwin.c: Use unsigned ints for the picbase label
8984         counters, initialise the vars explicitly.
8985         (update_pic_label_number_if_needed): Move a variable declaration
8986         to where it's needed.
8987         (machopic_output_function_base_name): Use a more strict checking
8988         assert, and and unsigned int for the picbase label counter.
8989         (machopic_get_function_picbase): Likewise.
8991 2019-10-14  Richard Biener  <rguenther@suse.de>
8993         PR middle-end/92046
8994         * dse.c (scan_insn): Use param max_active_local_stores.
8995         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8996         based on optimization level.
8997         * loop-invariant.c (move_loop_invariants): Adjust
8998         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8999         * opts.c (default_options_optimization): Do not adjust
9000         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9001         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9003 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9005         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9007 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9009         * config/arm/arm.c (arm_option_override): Don't override sched
9010         pressure algorithm.
9012 2019-10-14  Richard Biener  <rguenther@suse.de>
9014         PR tree-optimization/92069
9015         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9016         cycles do not set vect_nested_cycle on the latch definition.
9018 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
9020         * function-abi.h (expr_callee_abi): Declare.
9021         * function-abi.cc (expr_callee_abi): New function.
9023 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
9025         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9026         into [1,MAX].
9027         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9028         non-zero being represented as [1,MAX].
9030 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9032         * tree-sra.c (dump_access): Add missing braces.
9034 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9036         * config/darwin.c (machopic_indirection_name): Rework the
9037         function to emit linker-visible symbols only for indirections
9038         in the data section.  Clean up the code and update comments.
9040 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9042         * config/darwin.c (machopic_indirect_data_reference): Remove
9043         redundant code.
9045 2019-10-13  Nathan Sidwell  <nathan@acm.org>
9047         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9049 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9051         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9052         c99_runtime.
9054 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
9056         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9057         so non-virutal are before virutals.
9058         (output_function): Avoid body modifications.
9060 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9062         * config/pa/pa.c (pa_output_call): Load descriptor address to register
9063         %r22.  Load function address before global pointer.
9064         (pa_attr_length_indirect_call): Adjust length of inline versions of
9065         $$dyncall.
9066         (pa_output_indirect_call): Remove fast inline version of $$dyncall
9067         before normal cases.  Update inline $$dyncall sequences to preserve
9068         function descriptor address in register %r22.
9069         (TRAMPOLINE_CODE_SIZE): Adjust.
9070         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
9071         register %r22 contains trampoline address.
9072         (pa_trampoline_init): Adjust offsets.
9073         (pa_trampoline_adjust_address): Likewise.
9074         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9076 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9078         PR target/67183
9079         * config/darwin.c (machopic_indirection): New field to flag
9080         non-lazy-symbol-pointers in the data section.
9081         (machopic_indirection_name): Compute if an indirection should
9082         appear in the data section.
9083         (machopic_output_data_section_indirection): New callback split
9084         from machopic_output_indirection.
9085         (machopic_output_stub_indirection): Likewise.
9086         (machopic_output_indirection): Retain the code for non-lazy
9087         symbol pointers in their regular section.
9088         (machopic_finish): Use the new callbacks to order the indirection
9089         output.
9091 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9093         * config/darwin-protos.h (machopic_finish): Delete.
9094         * config/darwin.c (machopic_finish): Make static.
9096 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9098         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9099         sections when building kernel extension code.
9101 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
9103         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9104         later standard."
9106 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9108         * config/pa/pa.c (pa_option_override): Remove trailing comma
9109         from warning.
9111 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
9113         PR middle-end/92063
9114         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9115         <case VEC_COND_EXPR>: Return false with *handled = false.
9116         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9117         recursing on the first operand.
9118         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9119         instead of tree_could_trap_p.
9120         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9122 2019-10-11  Jim Wilson  <jimw@sifive.com>
9124         PR rtl-optimization/91860
9125         * combine.c (subst): If new_rtx is a constant, also check for
9126         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9128 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
9130         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9131         INTVAL when calling store_bit_field.
9133 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
9135         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9136         size.
9138 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9140         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9141         vectorizable_live_operation.
9142         (vectorizable_live_operation): Adjust parameters.
9143         * tree-vect-stmts.c (vect_init_vector,
9144         vect_gen_widened_results_half): Fix typo in function comment.
9145         (can_vectorize_live_stmts): Adjust function comment.
9146         Adjust parameters.  Adjust call to vectorizable_live_operation.
9147         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9148         (vect_transform_stmt): Adjust function comment.  Adjust call to
9149         can_vectorize_live_stmts.
9150         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9152 2019-10-11  Richard Biener  <rguenther@suse.de>
9154         PR tree-optimization/90883
9155         PR tree-optimization/91091
9156         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9157         alias-sets both for recording VN table entries and continuing
9158         walking after translating through copies.  Handle same-sized
9159         reads from SSA names by returning the plain SSA name.
9160         (eliminate_dom_walker::eliminate_stmt): Properly handle
9161         non-size precision stores in redundant store elimination.
9163 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
9165         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9166         (ggc_collect): Dump later to not interfere with release_page dump.
9167         (ggc_trim): New function.
9168         * ggc-none.c (ggc_trim): New.
9169         * ggc.h (ggc_trim): Declare.
9171 2019-10-11  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/92066
9174         PR tree-optimization/92046
9175         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9176         Fix bogus cost model check.
9178 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9180         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9181         (LANG_HOOKS_DECLS): Add it.
9182         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9183         update comment for omp_is_optional_argument.
9184         * omp-general.c (omp_is_allocatable_or_ptr): New.
9185         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9186         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9187         Fortran's optional arguments and allocatable/pointer scalars
9188         with use_device_addr.
9190 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
9192         PR target/77918
9193         * config/s390/2827.md: Add new opcodes.
9194         * config/s390/2964.md: Likewise.
9195         * config/s390/3906.md: Likewise.
9196         * config/s390/8561.md: Likewise.
9197         * config/s390/s390-builtins.def (s390_vfchesb): Use
9198         the new vec_cmpgev4sf_quiet_nocc.
9199         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9200         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9201         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9202         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9203         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9204         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9205         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9206         * config/s390/s390-modes.def (CCSFPS): New mode.
9207         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9208         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9209         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9210         (s390_expand_vec_compare): Use non-signaling patterns where
9211         necessary.
9212         (s390_reverse_condition): Support CCSFPS.
9213         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9214         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9215         (asm_fcmp_op): Likewise.
9216         (*smaxv2df3_vx): Use pattern for quiet comparison.
9217         (*sminv2df3_vx): Likewise.
9218         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9219         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9220         (vec_cmpgt<mode>_quiet_nocc): Likewise.
9221         (vec_cmplt<mode>_quiet_nocc): New expander.
9222         (vec_cmpge<mode>_quiet_nocc): New pattern.
9223         (vec_cmple<mode>_quiet_nocc): New expander.
9224         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9225         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9226         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9227         (*vec_cmpge<mode>_signaling_nocc): Likewise.
9228         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9229         (vec_cmpungt<mode>): New expander.
9230         (vec_cmpunge<mode>): Likewise.
9231         (vec_cmpuneq<mode>): Use quiet patterns.
9232         (vec_cmpltgt<mode>): Allow only on z14+.
9233         (vec_cmpordered<mode>): Use quiet patterns.
9234         (vec_cmpunordered<mode>): Likewise.
9235         (VEC_CMP_EXPAND): Add ungt and unge.
9237 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
9239         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9240         parameter.
9241         * lto-streamer-out.c: Include tree-dfa.h.
9242         (output_cfg): Do not use cfun.
9243         (lto_prepare_function_for_streaming): New.
9244         (output_function): Do not push cfun; do not initialize loop optimizer.
9245         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9246         * passes.c (ipa_write_summaries): Use it.
9247         (ipa_write_optimization_summaries): Do not modify bodies.
9248         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9249         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9250         * tree-ssa-dse.c (pass_dse::execute): Update use of
9251         renumber_gimple_stmt_uids.
9252         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9254 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
9256         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9257         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9259 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
9261         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9262         macros.
9263         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9264         Also define DFP macros for these conditions.
9265         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9266         DEC128_SUBNORMAL_MIN): Do not define.
9267         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9268         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9270 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9271             Sandra Loosemore  <sandra@codesourcery.com>
9273         PR middle-end/26241
9274         * doc/lto.texi (IPA): Reference to the IPA passes.
9275         * doc/passes.texi (Pass manager): Add node IPA passes and
9276           description for each IPA pass.
9278 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
9280         * ipa-reference.c: Do not include splay-tree.h
9281         (reference_vars_to_consider): Turn to hash map.
9282         (get_static_name, ipa_init, analyze_function, propagate,
9283         stream_out_bitmap, ipa_reference_write_optimization_summary,
9284         ipa_reference_write_optimization_summary): Update.
9286 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
9288         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9290 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
9292         * config/darwin.c: Lookup Objective C metadata and force indirection
9293         for IVAR refs.
9295 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
9297         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9298         addresses.
9299         (mem_operand_gpr): Add check for prefixed addresses.
9300         (mem_operand_ds_form): Add check for prefixed addresses.
9301         (rs6000_legitimate_offset_address_p): If we support prefixed
9302         addresses, check for a 34-bit offset instead of 16-bit.
9303         (rs6000_legitimate_address_p): Add check for prefixed addresses.
9304         Do not allow load/store with update if the address is prefixed.
9305         (rs6000_mode_dependent_address):  If we support prefixed
9306         addresses, check for a 34-bit offset instead of 16-bit.
9308 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
9310         PR target/77918
9311         * config/s390/vector.md (vcond_comparison_operator): New
9312         predicate.
9313         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9315 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
9317         PR 87488
9318         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9319         -D.
9320         * configure.ac (--with-documentation-root-url): New option.
9321         * configure: Regenerate.
9322         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9323         option URL, add it as a new string field of the diagnostic option.
9324         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9325         (print_option_information): If get_option_url is non-NULL, call
9326         it, and if the result is non-NULL, potentially emit an escape
9327         sequence to markup the option text with the resulting URL.
9328         * diagnostic.h (diagnostic_context::get_option_url): New callback.
9329         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9330         example of JSON output.
9331         * opts-diagnostic.h (get_option_url): New decl.
9332         * opts.c (get_option_url): New function.
9333         * toplev.c (general_init): Initialize the get_option_url callback.
9335 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
9337         PR 87488
9338         * common.opt (fdiagnostics-urls=): New option.
9339         (diagnostic-url.h): Add SourceInclude.
9340         (diagnostic_url_rule): New enum.
9341         * diagnostic-color.c: Include "diagnostic-url.h".
9342         (diagnostic_urls_enabled_p): New function.
9343         * diagnostic-url.h: New file.
9344         * diagnostic.c: Include "diagnostic-url.h".
9345         (diagnostic_urls_init): New function.
9346         * diagnostic.h (diagnostic_urls_init): New decl.
9347         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9348         -fdiagnostics-urls to the list.
9349         (-fdiagnostics-urls): New option.
9350         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9351         (driver::global_initializations): Call diagnostic_urls_init.
9352         * opts-global.c (init_options_once): Likewise.
9353         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9354         * pretty-print.c (pretty_printer::pretty_printer): Initialize
9355         show_urls.
9356         (pp_begin_url): New function.
9357         (pp_end_url): New function.
9358         (selftest::test_urls): New selftest.
9359         (selftest::pretty_print_c_tests): Call it.
9360         * pretty-print.h (pretty_printer::show_urls): New field.
9361         (pp_begin_url): New decl.
9362         (pp_end_url): New decl.
9364 2019-10-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9366         PR target/92022
9367         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9369 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
9371         PR target/88630
9372         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9373         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9374         also for TARGET_FPU_SH4_300.
9375         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9376         TARGET_SH4_300.
9377         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9378         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9379         (*negsf2_i): Split into ...
9380         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9381         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9382         (**abssf2_i): Split into ...
9383         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9384         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9385         (*negdf2_i): Split into ...
9386         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9387         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9388         (**abssf2_i): Split into ...
9389         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9391 2019-10-10  Richard Biener  <rguenther@suse.de>
9393         PR middle-end/92046
9394         * opts.c (finish_options): Do not influence global --params
9395         from options that are adjustable per function.
9396         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9397         Apply --param adjustment based on active cost-model.
9398         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9399         further store-sinking when vectorization or if-conversion
9400         are not enabled.
9402 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
9404         PR middle-end/92037
9405         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9406         rather than ggc_alloc_cleared to alloc symbol table.
9407         * toplev.c (general_init): Likewise.
9408         * cgraph.h (symbol_table): Explicitly construct every field.
9410 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
9412         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9413         (PF_Z15): ... this.
9414         * config.gcc: Add z15 as option for --with-arch and --with-tune
9415         configure switches.
9416         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9417         error reporting for unsupported builtins.
9418         * config/s390/s390-opts.h (enum processor_type): Rename
9419         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9420         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9421         * config/s390/driver-native.c (s390_host_detect_local_cpu):
9422         Likewise.
9423         * config/s390/s390-builtins.def: Likewise.
9424         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9425         (s390_expand_builtin): Add missing check for unsupported builtins.
9426         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9427         (s390_rtx_costs): Likewise.
9428         (s390_get_sched_attrmask): Rename arch13 to z15.
9429         (s390_get_unit_mask): Likewise.
9430         (s390_is_fpd): Likewise.
9431         (s390_is_fxd): Likewise.
9432         * config/s390/s390.h (enum processor_flags): Likewise.
9433         * config/s390/s390.md: Likewise.
9434         * config/s390/vector.md: Likewise.
9435         * config/s390/vx-builtins.md: Likewise.
9436         * config/s390/s390.opt: Add z15 to processor_type value.
9438 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
9440         PR target/91035
9441         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9442         prototype.
9443         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9444         ("split_stack_data", "split_stack_call")
9445         ("split_stack_call_<mode>", "split_stack_cond_call")
9446         ("split_stack_cond_call_<mode>"): Remove.
9447         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9448         insn definition.
9449         * config/s390/s390.c (s390_output_split_stack_data): New function.
9450         (s390_expand_split_stack_prologue): Use the merged expander.
9452 2019-10-09  Martin Sebor  <msebor@redhat.com>
9454         PR tree-optimization/90879
9455         * builtins.c (check_access): Avoid using maxbound when null.
9456         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9457         * doc/invoke.texi (-Wstring-compare): Document new warning option.
9458         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9459         conditional.
9460         (get_range_strlen): Overwrite initial maxbound when non-null.
9461         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9462         changes.
9463         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9464         (used_only_for_zero_equality): New function.
9465         (handle_builtin_memcmp): Call it.
9466         (determine_min_objsize): Return an integer instead of tree.
9467         (get_len_or_size, strxcmp_eqz_result): New functions.
9468         (maybe_warn_pointless_strcmp): New function.
9469         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
9470         between a longer string and a smaller array.
9471         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9473 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
9475         * config/darwin.c (darwin_override_options): Make the check for
9476         Objective-C ABI version more specific for 64bit code.
9478 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
9480         * config/darwin.c (machopic_indirect_data_reference): Set flag to
9481         indicate that the new symbol is an indirection.
9482         (machopic_indirect_call_target): Likewise.
9483         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9484         (MACHO_SYMBOL_INDIRECTION_P): New.
9485         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9487 2019-10-08  Jason Merrill  <jason@redhat.com>
9489         * doc/invoke.texi: Document -fconcepts-ts.
9491 2019-10-09  Richard Biener  <rguenther@suse.de>
9493         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9494         allow stmts other than GIMPLE_ASSIGN in nested cycles.
9496 2019-10-08  Richard Biener  <rguenther@suse.de>
9498         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9499         (_stmt_vec_info::force_single_cycle): Likewise.
9500         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9501         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9502         * tree-vect-loop.c (vectorizable_reduction): Set
9503         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9504         (vect_transform_reduction): Use them to remove redundant code.
9505         (vect_transform_cycle_phi): Likewise.
9507 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9509         PR tree-optimization/90836
9510         * match.pd (popcount): New pattern.
9512 2019-10-08  Martin Sebor  <msebor@redhat.com>
9514         PR middle-end/92026
9515         PR middle-end/92014
9516         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9517         again once nbytes has been set.  Set the access size when not yet set.
9519 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
9521         * config/darwin.c (machopic_select_section): Remove dead code for
9522         old Objective-C section selection method, replace with unreachable.
9524 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
9526         * config/darwin.c (machopic_indirect_data_reference): Check for
9527         required indirections before making direct access to defined
9528         values.
9529         (machopic_output_indirection): Place the indirected pointes for
9530         required indirections into the non-lazy symbol pointers section.
9531         (darwin_encode_section_info):
9532         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9533         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9535 2019-10-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9537         PR target/91994
9538         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9539         instead of ALL_SSE_REG to check if function call preserves some
9540         256-bit SSE registers.
9542 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
9544         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9545         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9546         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9548 2019-10-08  Richard Biener  <rguenther@suse.de>
9550         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9551         (_stmt_vec_info::is_reduc_info): Add.
9552         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9553         (vectorizable_condition): Remove.
9554         (vectorizable_shift): Likewise.
9555         (vectorizable_reduction): Adjust.
9556         (info_for_reduction): New.
9557         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9558         (vect_analyze_scalar_cycles_1): ... here.
9559         (vect_analyze_loop_operations): Adjust.
9560         (needs_fold_left_reduction_p): Simplify for single caller.
9561         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
9562         for nested cycles not part of double reductions.
9563         (vect_model_reduction_cost): Pass in the reduction type.
9564         (info_for_reduction): New function.
9565         (vect_create_epilog_for_reduction): Use it, access reduction
9566         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
9567         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9568         (vectorize_fold_left_reduction): Remove pointless assert.
9569         (vectorizable_reduction): Analyze the full reduction when
9570         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
9571         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
9572         stmt code-generation to vectorizable_* in most cases.  Verify
9573         code-generation only for cases handled by
9574         vect_transform_reductuon.
9575         (vect_transform_reduction): Use info_for_reduction to get at
9576         reduction meta.  Simplify.
9577         (vect_transform_cycle_phi): Likewise.
9578         (vectorizable_live_operation): Likewise.
9579         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9580         at the PHI node for STMT_VINFO_REDUC_TYPE.
9581         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9582         longer necessary code.
9583         * tree-vect-stmts.c (vectorizable_shift): Make static again.
9584         (vectorizable_condition): Likewise.  Get at reduction related
9585         info via info_for_reduction.
9586         (vect_analyze_stmt): Adjust.
9587         (vect_transform_stmt): Likewise.
9588         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9589         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9591 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
9593         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9594         -fno-fp-int-builtin-inexact default for C2X.
9596 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9597             Richard Biener  <rguenther@suse.de>
9599         PR tree-optimization/91532
9600         * tree-if-conv.c: Include tree-ssa-dse.h.
9601         (ifcvt_local_dce): Change param from bb to loop,
9602         and call dse_classify_store.
9603         (tree_if_conversion): Pass loop instead of loop->header as arg
9604         to ifcvt_local_dce.
9605         * tree-ssa-dse.c: Include tree-ssa-dse.h.
9606         (delete_dead_or_redundant_assignment): Remove static qualifier from
9607         declaration, and add prototype in tree-ssa-dse.h.
9608         (dse_store_status): Move to tree-ssa-dse.h.
9609         (dse_classify_store): Remove static qualifier and add new tree param
9610         stop_at_vuse, and add prototype in tree-ssa-dse.h.
9611         * tree-ssa-dse.h: New header.
9613 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
9615         * config/darwin.c (machopic_output_indirection): Don't put
9616         hidden symbol indirections into the .data section, use the
9617         non-lazy symbol pointers section as normal.
9618         (darwin_encode_section_info): Record if a symbol is hidden.
9619         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9620         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9622 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
9624         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9625         predicates instead of accessing bits directly.
9626         (machopic_indirect_call_target): Likewise.
9627         (machopic_output_indirection): Likewise.
9628         (darwin_encode_section_info): Improve description.  Use renamed
9629         symbol flags.  Use predicate macros for variables and functions.
9630         * config/darwin.h:
9631         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9632         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9633         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9634         (MACHO_SYMBOL_VARIABLE_P): New.
9635         (MACHO_SYMBOL_DEFINED_P):New.
9636         (MACHO_SYMBOL_STATIC_P): New.
9637         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9638         (SYMBOL_FLAG_SUBT_DEP): New.
9639         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9641 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9643         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9644         (msp430_expand_epilogue): Likewise.
9645         * config/msp430/predicates.md: Likewise.
9646         * config/msp430/msp430.md: Likewise.
9647         Replace blocks of 8 spaces with tabs.
9649 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9651         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9652         * config/msp430/msp430.c (msp430_split_addsi): New.
9653         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9654         a block of C code for splitting addsi.
9656 2019-10-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9658         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9659         ix86_expand_rounddf_32): Reorder functions.
9660         * config/i386/i386-protos.h: Update.
9662 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9664         * config.in: Regenerate.
9665         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9666         Add new "Yx" constraint.
9667         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9668         function.
9669         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9670         prototype.
9671         * config/msp430/msp430.c (msp430_option_override): Allow the lower
9672         code/data region to be selected in the small memory model.
9673         (msp430_section_attr): Don't warn if the "section" and "lower"
9674         attributes are used together.
9675         (msp430_handle_generic_attribute): Likewise.
9676         (msp430_var_in_low_mem): New function.
9677         (TARGET_ENCODE_SECTION_INFO): Define.
9678         (msp430_encode_section_info): New function.
9679         (gen_prefix): Return early in the small memory model.
9680         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9681         ".lower" prefix if -m{code,data}-region=lower have been passed.
9682         (msp430_output_aligned_decl_common): Emit common symbols when
9683         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9684         set.
9685         (TARGET_ASM_FILE_END): Define.
9686         (msp430_file_end): New function.
9687         (msp430_do_not_relax_short_jumps): Allow relaxation when
9688         function will be in the lower region.
9689         (msp430_op_not_in_high_mem): New function.
9690         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9691         the 'X' operand selector.
9692         Clarify comment for 'x' operand selector.
9693         * config/msp430/msp430.h (LINK_SPEC): Propagate
9694         -m{code,data}-region to the linker via spec function
9695         msp430_propagate_region_opt.
9696         (msp430_propagate_region_opt): New prototype.
9697         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9698         (SYMBOL_FLAG_LOW_MEM): Define.
9699         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9700         selector.
9701         (zero_extendqihi2): Fix operand number used by "%X" selector.
9702         (zero_extendqisi2): Likewise.
9703         (zero_extendhisi2): Likewise.
9704         (movqi): Use "Yx" constraint in place of "%X" operand selector.
9705         (movhi): Likewise.
9706         (addqi3): Likewise.
9707         (addhi3): Likewise.
9708         (addsi3): Likewise.
9709         (addhi3_cy): Likewise.
9710         (addchi4_cy): Likewise.
9711         (subqi3): Likewise.
9712         (subhi3): Likewise.
9713         (subsi3): Likewise.
9714         (bic<mode>3): Likewise.
9715         (and<mode>3): Likewise.
9716         (ior<mode>3): Likewise.
9717         (xor<mode>3): Likewise.
9718         (slli_1): Add missing "%X" operand selector.
9719         (slll_1): Likewise.
9720         (slll_2): Likewise.
9721         (srai_1): Likewise.
9722         (sral_1): Likewise.
9723         (sral_2): Likewise.
9724         (srli_1): Likewise.
9725         (srll_1): Likewise.
9726         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9727         selector.
9728         (cbranchhi4_real): Likewise.
9729         (cbranchqi4_reversed): Likewise.
9730         (cbranchhi4_reversed): Likewise.
9731         (*bitbranch<mode>4): Likewise.
9732         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9733         * config/msp430/msp430.opt (mcode-region=): Set default to
9734         MSP430_REGION_LOWER. Improve docstring.
9735         (mdata-region=): Likewise.
9736         (muse-lower-region-prefix): New option.
9737         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9738         mdata-region=none multilib.
9739         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9740         mdata-region=none multilib.
9741         MULTILIB_EXCEPTIONS: Remove.
9742         MULTILIB_REQUIRED: Define.
9743         * configure: Regenerate.
9744         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9745         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9746         * doc/extend.texi: Clarify comment for {upper,lower,either}
9747         function attributes.
9748         Add separate description for "lower" variable attribute.
9750 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
9752         PR target/77918
9753         * optabs-tree.c (vcond_icode_p): New function.
9754         (vcond_eq_icode_p): Likewise.
9755         (expand_vec_cond_expr_p): Use vcond_icode_p and
9756         vcond_eq_icode_p.
9757         * optabs.c (can_vcond_compare_p): New function.
9758         * optabs.h (can_vcond_compare_p): Likewise.
9760 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
9762         PR target/77918
9763         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9764         caller passes a non-trapping condition.
9765         (is_gimple_condexpr): Allow trapping conditions.
9766         (is_gimple_condexpr_1): New helper function.
9767         (is_gimple_condexpr_for_cond): New function, acts like old
9768         is_gimple_condexpr.
9769         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9770         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9771         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9772         * gimplify.c (gimplify_cond_expr): Use
9773         is_gimple_condexpr_for_cond.
9774         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9775         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9776         VEC_COND_EXPR.
9777         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9778         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9779         is_gimple_condexpr_for_cond, remove pointless tmp check
9780         (forward_propagate_into_cond): Remove pointless tmp check.
9782 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
9784         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9785         match that of other gsi_next_* functions.  Adjust the comment.
9786         (gsi_start_nonvirtual_phis): New function.
9787         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9788         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
9790 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
9792         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9793         setjmp situation here.  Fix a verb's ending: "the exact variables or
9794         elements for which there are warnings depends" -> "... depend".
9796 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9798         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9800 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9802         * ipa-prop.c (ipa_vr::nonzero_p): New.
9803         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9804         non-zero range.
9805         * ipa-prop.h (class ipa_vr): Add nonzero_p.
9806         * tree-vrp.c (range_has_numeric_bounds_p): New.
9807         (range_int_cst_p): Use range_has_numeric_bounds_p.
9808         (get_range_op_handler): New.
9809         (supported_types_p): New.
9810         (defined_ranges_p): New.
9811         (drop_undefines_to_varying): New.
9812         (range_fold_binary_symbolics_p): New.
9813         (range_fold_unary_symbolics_p): New.
9814         (range_fold_unary_expr): Extract out into above functions.
9815         (range_fold_binary_expr): Same.
9816         (value_range_base::normalize_addresses): New.
9817         (value_range_base::normalize_symbolics): Normalize addresses.
9818         * tree-vrp.h (class value_range_base): Add normalize_addresses.
9820 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9822         * tree-vrp.c (value_range_base::singleton_p): Use
9823         value_range_base::num_pairs instead of vrp_val_is* to check
9824         if a range has one sub-range.
9826 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9828         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9829         DEF is not a true earlyclobber but is tied to a specific input
9830         operand, and so is effectively earlyclobber wrt inputs that have
9831         different values.
9832         (make_early_clobber_and_input_conflicts): Pass this case to the above.
9834 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9836         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9837         (pod_mode): Mark operators likewise.
9838         (scalar_int_mode): Mark non-default constructors and
9839         operators with CONSTEXPR.
9840         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9841         (fixed_size_mode): Likewise.
9843 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9845         PR target/91994
9846         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9847         and wrap the unspec_volatile in a parallel.
9848         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
9849         the unspec_volatile.
9850         * config/i386/predicates.md (vzeroupper_pattern): Expect the
9851         unspec_volatile to be wrapped in a parallel.
9852         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9853         (ix86_add_reg_usage_to_vzerouppers): New functions.
9854         (rest_of_handle_insert_vzeroupper): Use them to add register
9855         usage information to the vzeroupper instructions.
9857 2019-10-07  Richard Biener  <rguenther@suse.de>
9859         PR tree-optimization/91975
9860         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9861         handle invariants.
9863 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
9865         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9866         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9868 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
9870         * config/darwin.c (darwin_override_options): Adjust objective-c
9871         ABI version error messages to avoid punctuation and contracted
9872         negations.
9874 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
9876         * ipa-inline.c: Fix type; compute size rather than self_size
9877         for size of caller function.
9879 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
9881         PR target/59888
9882         * config/darwin.c (darwin_rodata_section): Add relocation flag,
9883         choose const_data section for constants with relocations.
9884         (machopic_select_section): Pass relocation flag to
9885         darwin_rodata_section ().
9887 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
9889         PR tree-optimization/91734
9890         * generic-match-head.c: Include fold-const-call.h.
9891         * match.pd (sqrt(x) cmp c): Check the boundary value and
9892         in case inexact computation of c*c affects comparison of the boundary,
9893         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9894         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
9895         for -frounding-math.  For c2, try the next smaller or larger floating
9896         point constant depending on comparison code and if it has the same
9897         sqrt as c2, use it instead of c2.
9899 2019-10-04  Martin Sebor  <msebor@redhat.com>
9901         PR middle-end/91977
9902         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9903         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
9904         uninitialized objects.
9906 2019-10-04  Martin Sebor  <msebor@redhat.com>
9908         * builtins.c (compute_objsize): Add an argument.
9909         * tree-object-size.c (addr_object_size): Same.
9910         (compute_builtin_object_size): Same.
9911         * tree-object-size.h (compute_builtin_object): Same.
9913 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
9915         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9917 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
9919         * match.pd (sinh (x) / cosh (x)): New simplification rule.
9921 2019-10-04  Martin Jambor  <mjambor@suse.cz>
9923         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9924         fntype when switching to calling memcpy instead of memset.
9926 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9928         * hash-table.h (hash_table::empty_slow): Don't assign
9929         size_t values to int variables.
9931 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9933         * expr.c (convert_mode_scalar): Remove shadowing local var.
9934         (emit_block_move): Rename local vars.
9935         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9936         (emit_push_insn): Rename local vars.
9937         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
9938         shadowing local vars.
9939         (store_constructor): Remove shadowing local vars.  Rename local var.
9940         (store_field, expand_cond_expr_using_cmove,
9941         expand_expr_real_2): Remove shadowing local vars.
9942         (expand_expr_real_1,
9943         do_store_flag): Remove shadowing local vars.  Rename local vars.
9945 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9947         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9949 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9951         * genmatch.c (commutate): Rename local var.
9952         (lower_cond): Reuse local var.
9953         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9954         dt_operand::gen, dt_operand::gen_gimple_expr,
9955         dt_simplify::gen): Add a param.  Rename generated vars.
9956         (decision_tree::insert_operand,
9957         (capture_info::walk_match, capture_info::walk_result,
9958         capture_info::walk_c_expr): Rename local vars.
9959         (expr::gen_transform): Rename generated vars.
9960         Use snprintf.  Rename local vars.
9961         (capture::gen_transform, dt_operand::get_name,
9962         dt_operand::gen_opname): Rename generated vars.
9963         (write_predicate): Adjust call to gen_kids.
9964         (parser::get_internal_capture_id): Rename generated vars.
9965         (parser::parse_expr): Rename local vars.
9966         (parser::parse_if): Remove local var.
9967         (parser::parse_pattern, add_operator): Rename local vars.
9969 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
9971         * builtins.def (DEF_C2X_BUILTIN): New macro.
9972         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9973         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9974         (strndup): Use DEF_C2X_BUILTIN.
9975         * coretypes.h (enum function_class): Add function_c2x_misc.
9977 2019-10-04  Maya Rashish  <coypu@sdf.org>
9979         * ira-color.c (update_costs_from_allocno): Call
9980         ira_init_register_move_cost_if_necessary.
9982 2019-10-04  Jeff Law  <law@redhat.com>
9984         * config/h8300/h8300.md (cpymemsi): Disable.
9985         (movmd, movmd_internal_<mode>, movstr, movsd):
9986         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9987         (movmd splitter, movsd splitter): Likewise.
9989         * range-op.cc (range_tests): Avoid two tests when ints and
9990         shorts are the same size.
9992 2019-10-04  Richard Biener  <rguenther@suse.de>
9994         PR lto/91968
9995         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9996         BLOCK_VARS.
9998 2019-10-04  Richard Biener  <rguenther@suse.de>
10000         PR tree-optimization/91982
10001         * tree-vect-loop.c (vectorizable_live_operation): Also guard
10002         against EXTRACT_LAST_REDUCTION.
10003         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10005 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
10007         * range-op.o (value_range_from_overflowed_bounds): Rename from
10008         adjust_overflow_bound.
10009         (value_range_with_overflow): Rename from
10010         create_range_with_overflow.
10011         (create_possibly_reversed_range): Adjusted for above renames.
10012         (operator_*::wi_fold): Same.
10013         (cross_product_operator::wi_cross_productor): Same.
10015 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10017         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10018         -Wshadow=compatible-local): Fix description.
10019         Add an example where -Wshadow=compatible-local does not
10020         warn.
10022 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
10024         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10026         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10027         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10029 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
10031         * expr.c (emit_block_move_hints): Slightly cleaner fix to
10032         can_move_by_pieces issue.
10034 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
10036         PR target/87243
10037         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10038         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10039         is available and the user has not set one on the command line.
10041 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
10043         PR target/91769
10044         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10045         instead of REGNO equality check on addr.reg.
10047 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
10049         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10050         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10051         * doc/invoke.texi (inline-heuristics-hint-percent,
10052         inline-heuristics-hint-percent-O2): Document.
10053         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10054         hint attribute.
10055         (can_inline_edge_by_limits_p): Use it.
10057 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
10059         * config/arm/arm.c (arm_print_value): Use real_to_decimal
10060         to print CONST_DOUBLEs.
10062 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
10064         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10065         * ipa-prop.c (ipcp_free_transformation_sum): New function.
10066         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10068 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
10070         * Makefile.in (OBJS): Add range.o and range-op.o.
10071         Remove wide-int-range.o.
10072         * function-tests.c (test_ranges): New.
10073         (function_tests_c_tests): Call test_ranges.
10074         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10075         range_fold_unary_expr instead of extract_range_from_unary_expr.
10076         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10077         * range-op.cc: New file.
10078         * range-op.h: New file.
10079         * range.cc: New file.
10080         * range.h: New file.
10081         * selftest.h (range_tests): New prototype.
10082         * ssa.h: Include range.h.
10083         * tree-vrp.c (value_range_base::value_range_base): New
10084         constructors.
10085         (value_range_base::singleton_p): Do not call
10086         ranges_from_anti_range until sure we will need to.
10087         (value_range_base::type): Rename gcc_assert to
10088         gcc_checking_assert.
10089         (vrp_val_is_max): New argument.
10090         (vrp_val_is_min): Same.
10091         (wide_int_range_set_zero_nonzero_bits): Move from
10092         wide-int-range.cc.
10093         (extract_range_into_wide_ints): Remove.
10094         (extract_range_from_multiplicative_op): Remove.
10095         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10096         from extract_range_from_binary_expr.
10097         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10098         from extract_range_from_binary_expr.
10099         (extract_range_from_binary_expr): Remove.
10100         (normalize_for_range_ops): New.
10101         (range_fold_binary_expr): New.
10102         (range_fold_unary_expr): New.
10103         (value_range_base::num_pairs): New.
10104         (value_range_base::lower_bound): New.
10105         (value_range_base::upper_bound): New.
10106         (value_range_base::upper_bound): New.
10107         (value_range_base::contains_p): New.
10108         (value_range_base::invert): New.
10109         (value_range_base::union_): New.
10110         (value_range_base::intersect): New.
10111         (range_compatible_p): New.
10112         (value_range_base::operator==): New.
10113         (determine_value_range_1): Call range_fold_*expr instead of
10114         extract_range_from_*expr.
10115         * tree-vrp.h (class value_range_base): Add new constructors.
10116         Add methods for union_, intersect, operator==, contains_p,
10117         num_pairs, lower_bound, upper_bound, invert.
10118         (vrp_val_is_min): Add handle_pointers argument.
10119         (vrp_val_is_max): Same.
10120         (extract_range_from_unary_expr): Remove.
10121         (extract_range_from_binary_expr): Remove.
10122         (range_fold_unary_expr): New.
10123         (range_fold_binary_expr): New.
10124         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10125         range_fold_binary_expr instead of extract_range_from_binary_expr.
10126         (vr_values::extract_range_basic): Same.
10127         (vr_values::extract_range_from_unary_expr): Call
10128         range_fold_unary_expr instead of extract_range_from_unary_expr.
10129         * wide-int-range.cc: Remove.
10130         * wide-int-range.h: Remove.
10132 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
10134         * config/rs6000/rs6000.c (mem_operand_gpr): Use
10135         SIGNED_16BIT_OFFSET_EXTRA_P macro.
10136         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10137         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10138         macro.
10140 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
10142         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10143         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10144         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10145         * glimits.h: Likewise.
10147 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
10149         PR rtl-optimization/91976
10150         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10151         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
10152         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
10154 2019-10-02  Martin Sebor  <msebor@redhat.com>
10156         PR tree-optimization/80936
10157         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10159 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10161         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10162         instead of reg_class_contents[ALL_REGS].
10164 2019-09-30  Jason Merrill  <jason@redhat.com>
10166         Add some hash_map_safe_* functions like vec_safe_*.
10167         * hash-map.h (default_hash_map_size): New variable.
10168         (create_ggc): Use it as default argument.
10169         (hash_map_maybe_create, hash_map_safe_get)
10170         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10172 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
10174         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10175         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10176         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10177         (can_inline_edge_by_limits_p): Use it.
10178         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10179         (want_inline_small_function_p): Use O2 bounds.
10180         (edge_badness): LIkewise.
10181         * opts.c (default_options): Add OPT_finline_functions.
10182         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10183         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10184         New parameters.
10185         * doc/invoke.texi (-finline-functions): Update documentation.
10186         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10187         inline-min-speedup-O2): Document.
10188         (early-inlining-insns-O2): Simplify docs.
10190 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
10192         PR rtl-optimization/87047
10193         * ifcvt.c (average_cost): New static function.  Use it...
10194         (noce_process_if_block): ... here.
10196 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
10198         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10199         * config/rs6000/rs6000-string.c (expand_block_move): Add
10200         might_overlap parm.
10201         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10202         (cpymemsi): Add might_overlap parm to expand_block_move() call.
10204 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
10206         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10207         (expand_builtin_memcpy): Use might_overlap parm.
10208         (expand_builtin_mempcpy_args): Use might_overlap parm.
10209         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10210         (expand_builtin_memory_copy_args): Add might_overlap parm.
10211         * expr.c (emit_block_move_via_cpymem): Rename to
10212         emit_block_move_via_pattern, add might_overlap parm, use cpymem
10213         or movmem optab as appropriate.
10214         (emit_block_move_hints): Add might_overlap parm, do the right
10215         thing for might_overlap==true.
10216         * expr.h (emit_block_move_hints): Update prototype.
10218 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
10220         * tree-eh.h (unsplit_eh_edges): Declare.
10221         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10222         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10223         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10224         (struct store_immediate_info): Add lp_nr field.
10225         (store_immediate_info::store_immediate_info): Add NR2 parameter and
10226         initialize lp_nr with it.
10227         (struct merged_store_group): Add lp_nr and only_constants fields.
10228         (merged_store_group::merged_store_group): Initialize them.
10229         (merged_store_group::can_be_merged_into): Deal with them.
10230         (pass_store_merging): Rename terminate_and_release_chain into
10231         terminate_and_process_chain.
10232         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10233         renaming and remove useless assertions.
10234         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10235         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10236         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10237         instead of always recomputing it and compare lp_nr.
10238         (imm_store_chain_info::output_merged_store): If the group is in an
10239         active EH region, register new stores if they can throw.  Moreover,
10240         if the insertion has created new basic blocks, adjust the PHI nodes
10241         of the post landing pad.
10242         (imm_store_chain_info::output_merged_stores): If the original stores
10243         are in an active EH region, deregister them.
10244         (lhs_valid_for_store_merging_p): Prettify.
10245         (adjust_bit_pos): New function extracted from...
10246         (mem_valid_for_store_merging): ...here.  Use it for the base address
10247         and also for the offset if it is the addition of a constant.
10248         (lp_nr_for_store): New function.
10249         (pass_store_merging::process_store): Change return type to bool.
10250         Call lp_nr_for_store to initialize the store info.  Propagate the
10251         return status of various called functions to the return value.
10252         (store_valid_for_store_merging_p): New predicate.
10253         (enum basic_block_status): New enumeration.
10254         (get_status_for_store_merging): New function.
10255         (pass_store_merging::execute): If the function can throw and catch
10256         non-call exceptions, unsplit the EH edges on entry and clean up the
10257         CFG on exit if something changed.  Call get_status_for_store_merging
10258         for every basic block and keep the chains open across basic blocks
10259         when possible.  Terminate and process open chains at the end, if any.
10261 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10263         * reginfo.c (globalize_reg): Fix shadowed variable in
10264         function_abis walk.
10266 2019-10-02  Martin Jambor  <mjambor@suse.cz>
10268         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10269         do not compute some stuff when set.
10270         (cgraph_node::create_edge): Likewise.
10271         (cgraph_node::create_indirect_edge): Renamed last parameter to
10272         coning_p and flipped its meaning, don't even calculate
10273         inline_failed when set.
10274         * cgraph.h (cgraph_node::create_edge): Add new parameter.
10275         (symbol_table::::create_edge): Likewise.
10276         (cgraph_node::create_indirect_edge): Rename last parameter, flip
10277         the default value.
10278         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10279         call graph edge creating functions.
10281 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
10283         PR c++/91222
10284         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10285         namespace types.
10287 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
10289         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10291 2019-10-02  Richard Biener  <rguenther@suse.de>
10293         * tree-vectorizer.h (vect_transform_reduction): Declare.
10294         * tree-vect-stmts.c (vect_transform_stmt): Use it.
10295         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10296         stmt transform to ...
10297         (vect_transform_reduction): ... this.
10299 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
10301         * omp-low.c (lower_omp_target): Dereference optional argument
10302         to work with the right pointer.
10304 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
10306         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10307         false.
10308         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10309         * langhooks.h (omp_is_optional_argument): New hook.
10310         * omp-general.c (omp_is_optional_argument): New.
10311         * omp-general.h (omp_is_optional_argument): New declaration.
10312         * omp-low.c (lower_omp_target): Create temporary for received value
10313         and take the address for new_var if the original variable was a
10314         DECL_BY_REFERENCE.  Use size of referenced object when a
10315         pass-by-reference optional argument used as argument to firstprivate.
10317 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
10319         PR tree-optimization/91940
10320         * tree-vect-patterns.c: Include tree-vector-builder.h and
10321         vec-perm-indices.h.
10322         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10323         unpromoting the argument back to uint16_t, or by converting into a
10324         rotate, or into shifts plus ior.
10326 2019-10-02  Richard Biener  <rguenther@suse.de>
10328         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10329         New.
10330         (vect_transform_cycle_phi): Declare.
10331         * tree-vect-stmts.c (vect_transform_stmt): Call
10332         vect_transform_cycle_phi.
10333         * tree-vect-loop.c (vectorizable_reduction): Split out
10334         PHI transformation stage to ...
10335         (vect_transform_cycle_phi): ... here.
10337 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10339         PR middle-end/91957
10340         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10341         eliminable registers.
10342         (make_hard_regno_live): Likewise, and don't make them live.
10344 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
10346         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10347         Call pp_emit_prefix.
10348         (layout::print_source_line): Likewise.
10349         (layout::start_annotation_line): Likewise.
10350         (diagnostic_show_locus): Remove call to temporarily clear the
10351         prefix.
10352         (selftest::test_one_liner_fixit_remove): Add test coverage for the
10353         interaction of pp_set_prefix with rulers and fix-it hints.
10354         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10355         prefix when calling diagnostic_show_locus, rather than destroying
10356         it afterwards.
10357         (print_parseable_fixits): Temporarily clear prefix.
10358         * pretty-print.c (pp_format): Save and restore line_length, rather
10359         than assuming it is zero.
10360         (pp_output_formatted_text): Remove assertion that line_length is
10361         zero.
10363 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
10365         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10366         Rename to ...
10367         (nonoverlapping_refs_since_match_p): ... this; handle also
10368         ARRAY_REFs.
10369         (alias_stats): Update stats.
10370         (dump_alias_stats): Likewise.
10371         (cheap_array_ref_low_bound): New function.
10372         (aliasing_matching_component_refs_p): Add partial_overlap
10373         argument;
10374         pass it to nonoverlapping_refs_since_match_p.
10375         (aliasing_component_refs_walk): Update call of
10376         aliasing_matching_component_refs_p
10377         (nonoverlapping_array_refs_p): New function.
10378         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10379         indirect_refs_may_alias_p): Update calls of
10380         nonoverlapping_refs_since_match_p.
10382 2019-10-01  Maya Rashish  <coypu@sdf.org>
10384         PR target/85401
10385         * ira-color.c (allocno_copy_cost_saving): Call
10386         ira_init_register_move_cost_if_necessary.
10388 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
10390         * Makefile.in (gnat_install_lib): New variable.
10391         * configure.ac: Substitute it.
10392         * configure: Regenerate.
10394 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
10396         PR lto/91222
10397         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10398         is matched with non-C++ type
10400 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10402         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10403         after local CSE.
10405 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
10407         * doc/invoke.texi (early-inlining-insns-O2): Document.
10408         (early-inlining-insns): Update.
10409         * params.def (early-inlining-insns-O2): New bound.
10410         (early-inlining-insns): Update docs.
10411         * ipa-inline.c (want_early_inline_function_p): Use new bound.
10413 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
10415         PR target/88562
10416         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10417         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10418         a memory access insn.
10420 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
10422         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10423         vpmsumd.
10425 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
10427         PR target/77918
10428         * config/s390/s390.c (s390_expand_vec_compare): Use
10429         gen_vec_cmpordered and gen_vec_cmpunordered.
10430         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10431         vec_unordered): Delete.
10432         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10433         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10434         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10435         (vec_cmp<code>): Generic dispatcher.
10437 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
10439         PR target/77918
10440         * config/s390/vector.md (V_HW): Add V1TI in order to make
10441         vcond$a$b generate vcondv1tiv1tf.
10443 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10445         PR rtl-optimization/91948
10446         * ira-build.c (ira_create_allocno): Initialize
10447         ALLOCNO_CROSSED_CALLS_ABIS.
10448         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10449         than regno to ira_need_caller_save_p.
10451 2019-10-01  Alexandre Oliva <oliva@adacore.com>
10453         * config/i386/i386-options.c
10454         (ix86_recompute_optlev_based_flags): New, moved out of...
10455         (ix86_option_override_internal): ... this.  Call it.
10456         (ix86_override_options_after_change): Call it here too.
10458         PR debug/91507
10459         * dwarf2out.c (override_type_for_decl_p): New.
10460         (gen_variable_die): Use it.
10462 2019-10-01  Richard Biener  <rguenther@suse.de>
10464         * tree-vect-loop.c (vectorizable_reduction): Move variables
10465         to where they are used.
10467 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10469         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10470         (build_def_use): Use PC instead of CC0 in a comment.
10472 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10474         * rtl.def (CLOBBER_HIGH): Delete.
10475         * doc/rtl.texi (clobber_high): Remove documentation.
10476         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10477         (reg_is_clobbered_by_clobber_high): Delete.
10478         (gen_hard_reg_clobber_high): Likewise.
10479         * alias.c (record_set): Remove CLOBBER_HIGH handling.
10480         * cfgexpand.c (expand_gimple_stmt): Likewise.
10481         * combine-stack-adj.c (single_set_for_csa): Likewise.
10482         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10483         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10484         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10485         * cse.c (invalidate_reg): Remove clobber_high parameter.
10486         (invalidate): Update call accordingly.
10487         (canonicalize_insn): Remove CLOBBER_HIGH handling.
10488         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10489         (count_reg_usage, insn_live_p): Likewise.
10490         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10491         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10492         (cselib_invalidate_rtx_note_stores): Update call accordingly.
10493         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10494         (cselib_invalidate_regno, cselib_process_insn): Likewise.
10495         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10496         (mark_nonreg_stores_2): Likewise.
10497         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10498         (df_get_call_refs): Likewise.
10499         * dwarf2out.c (mem_loc_descriptor): Likewise.
10500         * emit-rtl.c (verify_rtx_sharing): Likewise.
10501         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10502         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10503         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10504         * genemit.c (gen_exp, gen_insn): Likewise.
10505         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10506         * haifa-sched.c (haifa_classify_rtx): Likewise.
10507         * ira-build.c (create_insn_allocnos): Likewise.
10508         * ira-costs.c (scan_one_insn): Likewise.
10509         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10510         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10511         * jump.c (mark_jump_label_1): Likewise.
10512         * lra-int.h (lra_insn_reg::clobber_high): Delete.
10513         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10514         handling.
10515         (mark_not_eliminable): Likewise.
10516         * lra-lives.c (process_bb_lives): Likewise.
10517         * lra.c (new_insn_reg): Remove clobber_high parameter.
10518         (collect_non_operand_hard_regs): Likewise.  Update call to new
10519         insn_reg.  Remove CLOBBER_HIGH handling.
10520         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
10521         to collect_non_operand_hard_regs.
10522         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10523         Update call to new_insn_reg.
10524         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10525         * postreload.c (reload_cse_simplify, reload_combine_note_use)
10526         (move2add_note_store): Likewise.
10527         * print-rtl.c (print_pattern): Likewise.
10528         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10529         (if_test_bypass_p): Likewise.
10530         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10531         * reginfo.c (reg_scan_mark_refs): Likewise.
10532         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10533         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10534         (forget_old_reloads_1): Likewise.
10535         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10536         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10537         (dbr_schedule): Likewise.
10538         * resource.c (update_live_status, mark_referenced_resources)
10539         (mark_set_resources): Likewise.
10540         * rtl.c (copy_rtx): Likewise.
10541         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10542         (note_pattern_stores): Likewise.
10543         (reg_is_clobbered_by_clobber_high): Delete.
10544         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10545         CLOBBER_HIGH handling.
10547 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10549         PR target/91452
10550         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10551         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10552         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10553         Handle ARM_PCS_TLSDESC.
10554         (aarch64_tlsdesc_abi_id): New function.
10555         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10556         rtx instead of a list of clobbers and clobber_highs.
10557         (tlsdesc_small_<mode>): Update accordingly.
10559 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10561         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10562         extra callee_abi argument.
10563         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10564         Insert a CALLEE_ABI unspec into the call pattern as the second
10565         element in the PARALLEL.
10566         (aarch64_simd_call_p): Delete.
10567         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10568         the new CALLEE_ABI element of the PARALLEL.
10569         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10570         from the function type, if given.
10571         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10572         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
10573         when passed the function_arg_info end marker.
10574         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10575         final argument of gen_sibcall.
10576         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10577         (call): Make operand 2 a const_int_operand and pass it to expand_call.
10578         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10579         pattern.
10580         (call_value): Likewise operand 3.
10581         (sibcall): Likewise operand 2.  Place the unspec before rather than
10582         after the return.
10583         (sibcall_value): Likewise operand 3.
10584         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10585         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10586         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
10587         constraint strings.
10588         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10590 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10592         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10593         choose_hard_reg_mode.
10594         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10596 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10598         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10599         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10600         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10602 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
10604         * diagnostic-show-locus.c (line_label::line_label): Initialize
10605         m_has_vbar.
10606         (line_label::comparator): Reverse the sort order by m_state_idx,
10607         so that when the list is walked backwards the labels appear in
10608         order of insertion into the rich_location.
10609         (line_label::m_has_vbar): New field.
10610         (layout::print_any_labels): When dealing with multiple labels at
10611         the same line and column, only print vertical bars for the one
10612         with the highest label_line.
10613         (selftest::test_one_liner_labels): Update test for multiple labels
10614         to expect the labels to be in the order of insertion into the
10615         rich_location.  Add a test for many such labels, where the column
10616         numbers are out-of-order relative to the insertion order.
10618 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10620         * config/i386/i386.h (ix86_frame::expensive_p): New field.
10621         (ix86_frame::expensive_count): Likewise.
10622         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10623         of use_fast_prologue_epilogue robust against incidental changes
10624         in function size.
10626 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
10628         PR target/77918
10629         * config/s390/vector.md (vec_unordered<mode>): Call
10630         gen_vec_ordered<mode>.
10632 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
10634         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10635         New pattern for ASRD.
10636         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10637         * internal-fn.def (IFN_DIV_POW2): New internal function.
10638         * optabs.def (sdiv_pow2_optab): New optab.
10639         * tree-vect-patterns.c (vect_recog_divmod_pattern):
10640         Modify pattern to support new operation.
10641         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10642         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10643         Document new target selector.
10645 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10647         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10648         to test whether we're compiling a vector PCS function and to test
10649         whether the function needs to save a particular register.
10650         Remove the vector PCS handling of df_set_regs_ever_live.
10651         (aarch64_components_for_bb): Use crtl->abi to test whether
10652         the function needs to save a particular register.
10653         (aarch64_process_components): Use crtl->abi to test whether
10654         we're compiling a vector PCS function.
10655         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10656         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10658 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10660         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10661         Delete.
10662         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10663         whether the block calls a function that clobbers more registers
10664         than the current function is allowed to.
10665         (aarch64_use_simple_return_insn_p): Delete.
10666         * config/aarch64/aarch64.md (simple_return): Remove condition.
10668 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10670         * function-abi.h (function_abi_aggregator): New class.
10671         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10672         function.
10673         * ira.c (update_equiv_regs_prescan): New function.  Call
10674         set_paradoxical_subreg here rather than...
10675         (update_equiv_regs): ...here.
10676         (ira): Call update_equiv_regs_prescan.
10678 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10680         * hard-reg-set.h (regs_invalidated_by_call): Only define if
10681         IN_TARGET_CODE.
10682         (call_used_or_fixed_regs): Likewise.
10683         (call_used_or_fixed_reg_p): Likewise.
10684         * reginfo.c (regs_invalidated_by_call): New macro.
10686 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10688         * shrink-wrap.c: Include function-abi.h.
10689         (requires_stack_frame_p): Use crtl->abi to test whether the
10690         current function can use a register without saving it first.
10692 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10694         * sel-sched-ir.h (_def::crosses_call): Replace with...
10695         (_def::crossed_call_abis): ..this new field.
10696         (def_list_add): Take a mask of ABIs instead of a crosses_call
10697         boolean.
10698         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
10699         of _def accordingly.
10700         * sel-sched.c: Include function-abi.h.
10701         (hard_regs_data::regs_for_call_clobbered): Delete.
10702         (reg_rename::crosses_call): Replace with...
10703         (reg_rename::crossed_call_abis): ...this new field.
10704         (fur_static_params::crosses_call): Replace with...
10705         (fur_static_params::crossed_call_abis): ...this new field.
10706         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10707         (init_hard_regs_data): Use crtl->abi to test which registers the
10708         current function would need to save before it uses them.
10709         (mark_unavailable_hard_regs): Update handling of call-clobbered
10710         registers, using call_clobbers_in_region to find out which registers
10711         might be call-clobbered (but without taking -fipa-ra into account
10712         for now).  Remove separate handling of partially call-clobbered
10713         registers.
10714         (verify_target_availability): Use crossed_call_abis instead of
10715         crosses_call.
10716         (get_spec_check_type_for_insn, find_used_regs): Likewise.
10717         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10719 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10721         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10722         function to test whether a register is fully or partly clobbered.
10724 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10726         * rtlanal.c: Include function-abi.h.
10727         (reg_set_p): Use insn_callee_abi to get the ABI of the called
10728         function and clobbers_reg_p to test whether the register
10729         is call-clobbered.
10730         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10731         to get the ABI of the called function and full_reg_clobbers to
10732         get the set of fully call-clobbered registers.  Warn about the
10733         pitfalls of using this mode.
10735 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10737         * reload.c: Include function-abi.h.
10738         (find_equiv_reg): Use clobbers_reg_p to test whether either
10739         of the equivalent registers is clobbered by a call.
10740         * reload1.c: Include function-abi.h.
10741         (reg_reloaded_call_part_clobbered): Delete.
10742         (reload): Use crtl->abi to test which registers would need
10743         saving in the prologue before use.
10744         (find_reg): Likewise.
10745         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10746         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
10747         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10749 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10751         * regrename.h (du_head::call_clobber_mask): New field.
10752         (du_head::need_caller_save_reg): Replace with...
10753         (du_head::call_abis): ...this new field.
10754         * regrename.c: Include function-abi.h.
10755         (call_clobbered_in_chain_p): New function.
10756         (check_new_reg_p): Use crtl->abi when deciding whether a register
10757         is free for use after RA.  Use call_clobbered_in_chain_p to test
10758         whether a candidate register would be clobbered by a call.
10759         (find_rename_reg): Don't add call-clobber conflicts here.
10760         (rename_chains): Check call_abis instead of need_caller_save_reg.
10761         (merge_chains): Update for changes to du_head.
10762         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10763         target.  Record the ABI identifier in call_abis and the set of
10764         fully or partially clobbered registers in call_clobber_mask.
10765         Add fully-clobbered registers to hard_conflicts here rather
10766         than in find_rename_reg.
10767         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10768         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10769         * config/aarch64/falkor-tag-collision-avoidance.c: Include
10770         function-abi.h.
10771         * config/c6x/c6x.c: Likewise.
10773 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10775         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10776         mode of the register when deciding whether it is no longer
10777         available after a call.
10779 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10781         * recog.c: Include function-abi.h.
10782         (peep2_find_free_register): Use crtl->abi when deciding whether
10783         a register is free for use after RA.
10785 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10787         * postreload-gcse.c: Include regs.h and function-abi.h.
10788         (record_opr_changes): Use insn_callee_abi to get the ABI of the
10789         call insn target.  Conservatively assume that partially-clobbered
10790         registers are altered.
10792 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10794         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10795         when deciding whether a register is free for use after RA.
10796         (reload_combine): Remove unnecessary use of fixed_reg_set.
10797         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10798         call insn target.  Use reg_mode when testing whether a register
10799         is no longer available.
10801 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10803         * target.def (return_call_with_max_clobbers): Delete.
10804         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10805         * doc/tm.texi: Regenerate.
10806         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10807         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10808         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10809         (lra_reg::call_insn): Delete.
10810         * lra.c: Include function-abi.h.
10811         (initialize_lra_reg_info_element): Don't initialize the fields above.
10812         (lra): Use crtl->abi to test whether the current function needs to
10813         save a register in the prologue.  Remove special pre-inheritance
10814         lra_create_live_ranges pass for flag_ipa_ra.
10815         * lra-assigns.c: Include function-abi.h
10816         (find_hard_regno_for_1): Use crtl->abi to test whether the current
10817         function needs to save a register in the prologue.
10818         (lra_assign): Assert that registers aren't allocated to a
10819         conflicting register, rather than checking only for overlaps
10820         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
10821         and for registers that are not live across a call.
10822         * lra-constraints.c (last_call_for_abi): New variable.
10823         (full_and_partial_call_clobbers): Likewise.
10824         (setup_next_usage_insn): Remove the register from
10825         full_and_partial_call_clobbers.
10826         (need_for_call_save_p): Use call_clobbered_in_region_p to test
10827         whether the register needs a caller save.
10828         (need_for_split_p): Use full_and_partial_reg_clobbers instead
10829         of call_used_or_fixed_regs.
10830         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10831         full_and_partial_call_clobbers.
10832         * lra-lives.c (check_pseudos_live_through_calls): Replace
10833         last_call_used_reg_set and call_insn arguments with an abi argument.
10834         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
10835         as the set of conflicting registers.
10836         (calls_have_same_clobbers_p): Delete.
10837         (process_bb_lives): Track the ABI of the last call instead of an
10838         insn/HARD_REG_SET pair.  Update calls to
10839         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
10840         the set of registers that could be clobbered by an EH edge.
10841         Include partially-clobbered as well as fully-clobbered registers.
10842         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10843         * lra-remat.c: Include function-abi.h.
10844         (call_used_regs_arr_len, call_used_regs_arr): Delete.
10845         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10846         registers and bitmap_view to combine them into dead_regs.
10847         (call_used_input_regno_present_p): Take a function_abi argument
10848         and use it to test whether a register is call-clobbered.
10849         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10850         call insn target.  Update tje call to call_used_input_regno_present_p.
10851         (do_remat): Likewise.
10852         (lra_remat): Remove the initialization of call_used_regs_arr_len
10853         and call_used_regs_arr.
10855 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10857         * loop-iv.c: Include regs.h and function-abi.h.
10858         (simplify_using_initial_values): Use insn_callee_abi to get the
10859         ABI of the call insn target.  Conservatively assume that
10860         partially-clobbered registers are altered.
10862 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10864         * function-abi.h (call_clobbers_in_region): Declare.
10865         (call_clobbered_in_region_p): New function.
10866         * function-abi.cc (call_clobbers_in_region): Likewise.
10867         * ira-int.h: Include function-abi.h.
10868         (ira_allocno::crossed_calls_abis): New field.
10869         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10870         (ira_need_caller_save_regs): New function.
10871         (ira_need_caller_save_p): Likewise.
10872         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10873         of call_used_or_fixed_regs.
10874         (do_reload): Use crtl->abi to test whether the current function
10875         needs to save a register in the prologue.  Count registers that
10876         need to be saved rather than registers that don't.
10877         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10878         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10879         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10880         (propagate_some_info_from_allocno): Likewise.
10881         (copy_info_to_removed_store_destinations): Likewise.
10882         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10883         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10884         (ira_build): Use ira_need_caller_save_regs instead of
10885         call_used_or_fixed_regs.
10886         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10887         whether the current function would need to save a register
10888         before using it.
10889         (calculate_spill_cost): Likewise.
10890         (allocno_reload_assign): Use ira_need_caller_save_regs and
10891         ira_need_caller_save_p instead of call_used_or_fixed_regs.
10892         * ira-conflicts.c (ira_build_conflicts): Use
10893         ira_need_caller_save_regs rather than call_used_or_fixed_regs
10894         as the set of call-clobbered registers.  Remove the
10895         call_used_or_fixed_regs mask from the calculation of
10896         temp_hard_reg_set and mask its use instead.  Remove special
10897         handling of partially-clobbered registers.
10898         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10899         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10900         calculate the set of conflicting registers for calls that
10901         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10902         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10903         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10904         Use eh_edge_abi to calculate the set of registers that could
10905         be clobbered by an EH edge.  Include partially-clobbered as
10906         well as fully-clobbered registers.
10908 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10910         * haifa-sched.c: Include function-abi.h.
10911         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10912         the function would need to save a register before using it.
10914 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10916         * gcse.c: Include function-abi.h.
10917         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10918         the call insn target.  Invalidate partially call-clobbered
10919         registers as well as fully call-clobbered ones.
10921 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10923         * function.c (aggregate_value_p): Work out which ABI the
10924         function is using before testing which registers are at least
10925         partly preserved by a call.
10927 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10929         * early-remat.c: Include regs.h and function-abi.h.
10930         (early_remat::maybe_add_candidate): Don't check for call-clobbered
10931         registers here.
10932         (early_remat::restrict_remat_for_unavail_regs): New function.
10933         (early_remat::restrict_remat_for_call): Likewise.
10934         (early_remat::process_block): Before calling emit_remat_insns
10935         for a previous call in the block, invalidate any candidates
10936         that would clobber call-preserved registers.
10937         (early_remat::emit_remat_insns_for_block): Likewise for the
10938         final call in a block.  Do the same thing for live-in registers
10939         when calling emit_remat_insns at the head of a block.
10941 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10943         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10944         whether the current function needs to save at least part of a
10945         register before using it.
10946         (df_get_exit_block_use_set): Likewise for epilogue restores.
10948 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10950         * df-problems.c: Include regs.h and function-abi.h.
10951         (df_rd_problem_data): Rename sparse_invalidated_by_call to
10952         sparse_invalidated_by_eh and dense_invalidated_by_call to
10953         dense_invalidated_by_eh.
10954         (df_print_bb_index): Update accordingly.
10955         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10956         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10957         that are clobbered by an EH edge.  Clobber partially-clobbered
10958         registers as well as fully-clobbered ones.
10959         (df_md_confluence_n): Likewise.
10960         (df_rd_local_compute): Likewise.  Update for changes to
10961         df_rd_problem_data.
10962         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10963         of registers that are clobbered by an EH edge.  Includde partially-
10964         clobbered registers as well as fully-clobbered ones.
10966 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10968         * cselib.c (cselib_process_insn): If we know what mode a
10969         register was set in, check whether it is clobbered in that
10970         mode by a call.  Only fall back to reg_raw_mode if that fails.
10972 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10974         * cse.c: Include regs.h and function-abi.h.
10975         (invalidate_for_call): Take the call insn as an argument.
10976         Use insn_callee_abi to get the ABI of the call and invalidate
10977         partially clobbered registers as well as fully clobbered ones.
10978         (cse_insn): Update call accordingly.
10980 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10982         * combine.c: Include function-abi.h.
10983         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10984         of the target of call insns.  Invalidate partially-clobbered
10985         registers as well as fully-clobbered ones.
10987 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10989         * cfgloopanal.c: Include regs.h and function-abi.h.
10990         (init_set_costs): Use default_function_abi to test whether
10991         a general register is call-clobbered.
10993 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10995         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10996         instead of the call-clobbered sets.
10998 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11000         * caller-save.c (setup_save_areas): Remove redundant |s of
11001         fixed_reg_set.
11002         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
11003         than call_used_or_fixed_regs to decide whether a REG_RETURNED
11004         value is useful.
11006 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11008         * rtl.h (predefined_function_abi): Declare.
11009         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11010         instead of a boolean call_save flag.
11011         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11012         accordingly.
11013         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11014         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11015         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11016         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11017         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11018         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11019         * reginfo.c (init_reg_modes_target): Likewise.
11020         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11021         instead of a boolean call_save flag.
11022         * targhooks.c: Include function-abi.h.
11023         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11024         using eh_edge_abi to choose the mode.
11026 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11028         * target.def (hard_regno_call_part_clobbered): Take an ABI
11029         identifier instead of an rtx_insn.
11030         * doc/tm.texi: Regenerate.
11031         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11032         (hook_bool_uint_uint_mode_false): New function.
11033         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11034         (hook_bool_uint_uint_mode_false): New function.
11035         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11036         Take an ABI identifier instead of an rtx_insn.
11037         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11038         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11039         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11040         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11041         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11042         Likewise.
11043         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11044         * cselib.c: Include function-abi.h.
11045         (cselib_process_insn): Update call to
11046         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11047         to get the appropriate ABI identifier.
11048         * function-abi.cc (predefined_function_abi::initialize): Update call
11049         to targetm.hard_regno_call_part_clobbered.
11050         * ira-conflicts.c (ira_build_conflicts): Likewise.
11051         * ira-costs.c (ira_tune_allocno_costs): Likewise.
11052         * lra-constraints.c: Include function-abi.h.
11053         (need_for_call_save_p): Update call to
11054         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11055         to get the appropriate ABI identifier.
11056         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11057         * regcprop.c (copyprop_hardreg_forward_1): Update call
11058         to targetm.hard_regno_call_part_clobbered.
11059         * reginfo.c (choose_hard_reg_mode): Likewise.
11060         * regrename.c (check_new_reg_p): Likewise.
11061         * reload.c (find_equiv_reg): Likewise.
11062         * reload1.c (emit_reload_insns): Likewise.
11063         * sched-deps.c: Include function-abi.h.
11064         (deps_analyze_insn): Update call to
11065         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11066         to get the appropriate ABI identifier.
11067         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11068         call to targetm.hard_regno_call_part_clobbered.
11069         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11071 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11073         * config/i386/i386.c: Include function-abi.h.
11074         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11075         if they preserve some 256-bit or 512-bit SSE registers.
11077 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11079         * target.def (insn_callee_abi): New hook.
11080         (remove_extra_call_preserved_regs): Delete.
11081         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11082         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11083         * doc/tm.texi: Regenerate.
11084         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11085         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11086         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11087         insn argument.
11088         (aarch64_remove_extra_call_preserved_regs): Delete.
11089         (aarch64_insn_callee_abi): New function.
11090         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11091         (TARGET_INSN_CALLEE_ABI): New macro.
11092         * rtl.h (get_call_fndecl): Declare.
11093         (cgraph_rtl_info): Fix formatting.  Tweak comment for
11094         function_used_regs.  Remove function_used_regs_valid.
11095         * rtlanal.c (get_call_fndecl): Moved from final.c
11096         * function-abi.h (insn_callee_abi): Declare.
11097         (target_function_abi_info): Mention insn_callee_abi.
11098         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11099         way to get_call_reg_set_usage did.
11100         (insn_callee_abi): New function.
11101         * regs.h (get_call_reg_set_usage): Delete.
11102         * final.c: Include function-abi.h.
11103         (collect_fn_hard_reg_usage): Add fixed and stack registers to
11104         function_used_regs before the main loop rather than afterwards.
11105         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
11106         if function_used_regs ends up not being useful.
11107         (get_call_fndecl): Move to rtlanal.c
11108         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11109         * caller-save.c: Include function-abi.h.
11110         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11111         instead of get_call_reg_set_usage.
11112         * cfgcleanup.c: Include function-abi.h.
11113         (old_insns_match_p): Use insn_callee_abi instead of
11114         get_call_reg_set_usage.
11115         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11116         a tree.
11117         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
11118         function_used_regs.
11119         * df-scan.c: Include function-abi.h.
11120         (df_get_call_refs): Use insn_callee_abi instead of
11121         get_call_reg_set_usage.
11122         * ira-lives.c: Include function-abi.h.
11123         (process_bb_node_lives): Use insn_callee_abi instead of
11124         get_call_reg_set_usage.
11125         * lra-lives.c: Include function-abi.h.
11126         (process_bb_lives): Use insn_callee_abi instead of
11127         get_call_reg_set_usage.
11128         * postreload.c: Include function-abi.h.
11129         (reload_combine): Use insn_callee_abi instead of
11130         get_call_reg_set_usage.
11131         * regcprop.c: Include function-abi.h.
11132         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11133         get_call_reg_set_usage.
11134         * resource.c: Include function-abi.h.
11135         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11136         instead of get_call_reg_set_usage.
11137         * var-tracking.c: Include function-abi.h.
11138         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11139         get_call_reg_set_usage.
11141 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11143         * target.def (fntype_abi): New target hook.
11144         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11145         * doc/tm.texi: Regenerate.
11146         * target.h (predefined_function_abi): Declare.
11147         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11148         if defined.
11149         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11150         * config/aarch64/aarch64.c: Include function-abi.h.
11151         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11152         (TARGET_FNTYPE_ABI): Define.
11154 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11156         * Makefile.in (OBJS): Add function-abi.o.
11157         (GTFILES): Add function-abi.h.
11158         * function-abi.cc: New file.
11159         * function-abi.h: Likewise.
11160         * emit-rtl.h (rtl_data::abi): New field.
11161         * function.c: Include function-abi.h.
11162         (prepare_function_start): Initialize crtl->abi.
11163         * read-rtl-function.c: Include regs.h and function-abi.h.
11164         (read_rtl_function_body): Initialize crtl->abi.
11165         (read_rtl_function_body_from_file_range): Likewise.
11166         * reginfo.c: Include function-abi.h.
11167         (init_reg_sets_1): Initialize default_function_abi.
11168         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11169         when making a register global.
11170         * target-globals.h (this_target_function_abi_info): Declare.
11171         (target_globals::function_abi_info): New field.
11172         (restore_target_globals): Copy it.
11173         * target-globals.c: Include function-abi.h.
11174         (default_target_globals): Initialize the function_abi_info field.
11175         (target_globals): Allocate it.
11176         (save_target_globals): Free it.
11178 2019-09-30  Nick Clifton  <nickc@redhat.com>
11180         PR target/85978
11181         * config/frv/frv.c (frv_register_move_cost): Add break statements
11182         to avoid falling through to the wrong cases.  Tidy code.
11184 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11186         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11187         For multi-registers modes, test how big each register part is.
11189 2019-09-30  Nick Clifton  <nickc@redhat.com>
11191         PR target/59205
11192         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11193         (TARGET_ASM_SELECT_SECTION): Remove definition.
11194         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11196 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
11198         * emit-rtl.c (init_raw_REG): New function.
11199         (gen_raw_REG): Use init_raw_REG.
11200         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11201         macros.
11202         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11203         * rtl.h (rtx_init): New function.
11204         (rtx_alloca): New function.
11205         (init_raw_REG): New function.
11206         (alloca_raw_REG): New macro.
11208 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
11210         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11211         (pcrel_local_address): Replace pcrel_address predicate, use the
11212         new function address_to_insn_form.
11213         (pcrel_external_address): Replace with new implementation using
11214         address_to_insn_form..
11215         (prefixed_mem_operand): Delete predicate which is now unused.
11216         (pcrel_external_mem_operand): Delete predicate which is now
11217         unused.
11218         * config/rs6000/rs6000-protos.h (enum insn_form): New
11219         enumeration.
11220         (enum non_prefixed_form): New enumeration.
11221         (address_to_insn_form): New declaration.
11222         (prefixed_load_p): New declaration.
11223         (prefixed_store_p): New declaration.
11224         (prefixed_paddi_p): New declaration.
11225         (rs6000_asm_output_opcode): New declaration.
11226         (rs6000_final_prescan_insn): Move declaration and update calling
11227         signature.
11228         (address_is_prefixed): New helper inline function.
11229         * config/rs6000/rs6000.c(print_operand_address): Check for either
11230         PC-relative local symbols or PC-relative external symbols.
11231         (rs6000_emit_move): Support loading PC-relative addresses.
11232         (mode_supports_prefixed_address_p): Delete, no longer used.
11233         (rs6000_prefixed_address_mode_p): Delete, no longer used.
11234         (address_to_insn_form): New function to decode an address format.
11235         (reg_to_non_prefixed): New function to identify what the
11236         non-prefixed memory instruction format is for a register.
11237         (prefixed_load_p): New function to identify prefixed loads.
11238         (prefixed_store_p): New function to identify prefixed stores.
11239         (prefixed_paddi_p): New function to identify prefixed load
11240         immediates.
11241         (next_insn_prefixed_p): New static state variable.
11242         (rs6000_final_prescan_insn): New function to determine if an insn
11243         uses a prefixed instruction.
11244         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11245         prefixed instruction.
11246         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11247         (ASM_OUTPUT_OPCODE): New target hook.
11248         * config/rs6000/rs6000.md (prefixed): New insn attribute for
11249         prefixed instructions.
11250         (prefixed_length): New insn attribute for the size of prefixed
11251         instructions.
11252         (non_prefixed_length): New insn attribute for the size of
11253         non-prefixed instructions.
11254         (pcrel_local_addr): New insn to load up a local PC-relative
11255         address.
11256         (pcrel_extern_addr): New insn to load up an external PC-relative
11257         address.
11258         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11259         GPR and loading a 128-bit floating point type to a GPR.
11261 2019-09-30  Richard Biener  <rguenther@suse.de>
11263         * gimple.c (gimple_get_lhs): For PHIs return the result.
11264         * tree-vectorizer.h (vectorizable_live_operation): Also get the
11265         SLP instance as argument.
11266         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11267         double-reduction PHIs with vectorizable_lc_phi.
11268         (vect_analyze_loop_operations): Adjust.
11269         (vect_create_epilog_for_reduction): Remove all code not dealing
11270         with reduction LC PHI or epilogue generation.
11271         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11272         for live stmts of reductions.
11273         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11274         do not handle defs that are not vect_internal_def.
11275         (can_vectorize_live_stmts): Adjust.
11276         (vect_analyze_stmt): When the vectorized stmt defined a value
11277         used on backedges adjust the backedge uses of vectorized PHIs.
11279 2019-09-30  Martin Jambor  <mjambor@suse.cz>
11281         PR ipa/91853
11282         * tree-inline.c (force_value_to_type): New function.
11283         (setup_one_parameter): Use force_value_to_type to convert type.
11284         * tree-inline.c (force_value_to_type): Declare.
11285         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11286         with register type mismatches.
11288 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
11290         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11291         32-bit PowerPC.
11292         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11293         * config/rs6000/t-freebsd64: Make use of the above define and build
11294         the 32-bit libraries with secure-plt.
11296 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
11298         PR target/91931
11299         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11300         gen_int_mode instead of GEN_INT.
11302 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
11304         * config/darwin.c (gen_macho_low): Amend to include the mode
11305         argument.
11306         (machopic_indirect_data_reference): Amend gen_macho_low call
11307         to include mode argument
11308         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11309         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11310         the macho_high expander and two define_insn entries.
11312 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
11314         PR bootstrap/90543
11315         * optc-save-gen.awk: Fix up printing string option differences.
11317 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
11319         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11320         vec_perm cost to 1 for non-Power7 VSX architectures.
11322 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
11324         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11325         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11326         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11328 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
11330         * config/darwin.c (gen_macho_high): Amend to include the mode
11331         argument.
11332         (machopic_indirect_data_reference): Amend gen_macho_high call
11333         to include mode argument.
11334         (machopic_legitimize_pic_address): Likewise.
11335         * config/rs6000/rs6000.c (rs6000_legitimize_address):
11336         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11337         the macho_high expander and two define_insn entries.
11339 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
11341         PR target/86805
11342         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11344 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
11346         PR target/80672
11347         * config/sh/sh.c (parse_validate_atomic_model_option): Use
11348         std::string::compare instead of std::string::find.
11350 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
11352         * configure: Regenerate.
11354 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
11356         PR middle-end/91920
11357         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11358         variables as shared.
11360 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
11362         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11363         replaces the expander and two define_insn entries.
11364         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11365         call.
11366         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11368 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
11370         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11371         (fibonacci_heap::nodes): Likewise.
11372         (fibonacci_heap::min_key): Likewise.
11373         (fibonacci_heap::min): Likewise.
11375 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
11377         * cgraph.c (cgraph_node::get_fun): Make const.
11378         * cgraph.h (cgraph_node::get_fun): Likewise.
11380 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
11382         PR target/91919
11383         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11384         of SImode MULT.
11386 2019-09-27  Richard Biener  <rguenther@suse.de>
11388         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11389         (STMT_VINFO_REDUC_FN): Likewise.
11390         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11391         STMT_VINFO_REDUC_FN.
11392         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11393         for condition reductions.
11394         (vect_create_epilog_for_reduction): Compute all required state
11395         from the stmt to be vectorized.
11396         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11397         invocation and remove then dead code.  For single def-use chains
11398         record only a single vector stmt.
11400 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
11402         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11403         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11404         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11405         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11406         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11407         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11408         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11409         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11410         (aarch64_general_builtin_rsqrt): Declare.
11411         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11412         New function.
11413         (aarch64_mangle_builtin_type): Rename to...
11414         (aarch64_general_mangle_builtin_type): ...this.
11415         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11416         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11417         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11418         aarch64_general_add_builtin instead of add_builtin_function.
11419         (aarch64_init_builtins): Rename to...
11420         (aarch64_general_init_builtins): ...this.  Use
11421         aarch64_general_add_builtin instead of add_builtin_function.
11422         (aarch64_builtin_decl): Rename to...
11423         (aarch64_general_builtin_decl): ...this and remove the unused
11424         arguments.
11425         (aarch64_expand_builtin): Rename to...
11426         (aarch64_general_expand_builtin): ...this and remove the unused
11427         arguments.
11428         (aarch64_builtin_rsqrt): Rename to...
11429         (aarch64_general_builtin_rsqrt): ...this.
11430         (aarch64_fold_builtin): Rename to...
11431         (aarch64_general_fold_builtin): ...this.  Take the function subcode
11432         and return type as arguments.  Remove the "ignored" argument.
11433         (aarch64_gimple_fold_builtin): Rename to...
11434         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
11435         subcode and gcall as arguments, and return the new function call.
11436         * config/aarch64/aarch64.c (aarch64_init_builtins)
11437         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11438         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11439         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11440         instead of aarch64_builtin_rsqrt.
11441         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11442         instead of aarch64_mangle_builtin_type.
11444 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
11446         * target.def (check_builtin_call): New target hook.
11447         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11448         * doc/tm.texi: Regenerate.
11450 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
11452         PR tree-optimization/91909
11453         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11454         reduc_index parameter.  When handling COND_REDUCTION, make sure
11455         that the reduction phi operand is in the correct arm of the
11456         VEC_COND_EXPR.
11457         (vectorizable_reduction): Pass reduc_index to the above.
11459 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
11461         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11462         New combine pattern.
11464 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
11466         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11467         loop instruction into new basic block before the loop when basic
11468         block that precedes the loop is empty.
11470 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
11472         * function.c (gimplify_parameters): Use build_clobber function.
11473         * tree-ssa.c (execute_update_addresses_taken): Likewise.
11474         * tree-inline.c (expand_call_inline): Likewise.
11475         * tree-sra.c (clobber_subtree): Likewise.
11476         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11477         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11478         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11479         lower_omp_target): Likewise.
11480         * omp-expand.c (expand_omp_for_generic): Likewise.
11481         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11483 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
11485         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11486         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11487         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11488         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11489         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11490         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11491         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11492         LD_ELEMREV_V16QI): Use the PURE attribute.
11494 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
11496         * config/rs6000/darwin.md: Replace the expanders for
11497         load_macho_picbase and reload_macho_picbase with use of '@'
11498         and <mode> in their respective define_insns.
11499         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11500         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11501         Pmode to gen_load_macho_picbase.
11502         * config/rs6000/rs6000.md: Likewise.
11504 2019-09-25  Richard Biener  <rguenther@suse.de>
11506         PR tree-optimization/91896
11507         * tree-vect-loop.c (vectorizable_reduction): The single
11508         def-use cycle optimization cannot apply when there's more
11509         than one pattern stmt involved.
11511 2019-09-26  Richard Biener  <rguenther@suse.de>
11513         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11514         loop-closed PHIs that are vect_internal_def.
11515         (vect_create_epilog_for_reduction): Exit early for nested cycles.
11516         Simplify.
11517         (vectorizable_lc_phi): New.
11518         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11519         (vect_transform_stmt): Likewise.
11520         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11521         (vectorizable_lc_phi): Declare.
11523 2019-09-26  Richard Biener  <rguenther@suse.de>
11525         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11526         vectorizable_reduction for vect_double_reduction_def.
11527         (vect_transform_loop): Likewise.
11528         (vect_create_epilog_for_reduction): Move double-reduction
11529         PHI creation and preheader argument setting of PHIs ...
11530         (vectorizable_reduction): ... here.  Also process
11531         vect_double_reduction_def PHIs, creating the vectorized
11532         PHI nodes, remembering the scalar adjustment computed for
11533         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11534         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11535         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11536         Initialize STMT_VINFO_REDUC_CODE.
11537         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11538         (_stmt_vec_info::reduc_code): Likewise.
11539         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11540         (STMT_VINFO_REDUC_CODE): Likewise.
11542 2019-09-26  Matt Turner  <mattst88@gmail.com>
11544         PR driver/69471
11545         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11546         (mtune=): Add Negative(mtune=).
11547         (mcpu=): Add Negative(mcpu=).
11548         * config/arm/arm.opt: Likewise.
11550 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11552         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11553         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11554         Define.
11555         * config/arm/arm_acle.h: Define builtins for the above.
11556         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11557         (simd32_op): Handle the above.
11558         * config/arm/unspecs.md: Define unspecs for the above.
11560 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11562         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11563         (arm_<sup>xtb16): Likewise.
11564         (arm_usada8): Likewise.
11565         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11566         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11567         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11568         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11569         __sxtb16, __uxtab16, __uxtb16): Define.
11570         * config/arm/arm_acle_builtins.def: Define builtins for the above.
11571         * config/arm/unspecs.md: Define unspecs for the above.
11572         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11573         (USXTB16): Likewise.
11574         (simd32_op): New int_attribute.
11575         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11576         * doc/sourcebuild.exp (arm_simd32_ok): Document.
11578 2019-09-26  Martin Jambor  <mjambor@suse.cz>
11580         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11581         internal_error.
11583 2019-09-26  Martin Jambor  <mjambor@suse.cz>
11585         * ipa-sra.c (process_scan_results): Fix continue condition.
11587 2019-09-26  Martin Liska  <mliska@suse.cz>
11589         PR tree-optimization/91885
11590         * tree-vectorizer.c (try_vectorize_loop_1): Add
11591         TODO_update_ssa_only_virtuals similarly to what slp pass does.
11593 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
11595         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11596         aarch64_plus_immediate rather than aarch64_uimm12_shift
11597         to test for valid PLUS immediates.
11599 2019-09-25  Martin Jambor  <mjambor@suse.cz>
11601         * tree-sra.c (no_accesses_p): Remove.
11602         (no_accesses_representant): Likewise.
11604 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11606         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11607         consistenly.
11608         (vaba_s16): Likewise.
11609         (vaba_s32): Likewise.
11610         (vaba_u8): Likewise.
11611         (vaba_u16): Likewise.
11612         (vaba_u32): Likewise.
11613         (vabal_high_s8): Likewise.
11614         (vabal_high_s16): Likewise.
11615         (vabal_high_s32): Likewise.
11616         (vabal_high_u8): Likewise.
11617         (vabal_high_u16): Likewise.
11618         (vabal_high_u32): Likewise.
11619         (vabal_s8): Likewise.
11620         (vabal_s16): Likewise.
11621         (vabal_s32): Likewise.
11622         (vabal_u8): Likewise.
11623         (vabal_u16): Likewise.
11624         (vabal_u32): Likewise.
11625         (vabaq_s8): Likewise.
11626         (vabaq_s16): Likewise.
11627         (vabaq_s32): Likewise.
11628         (vabaq_u8): Likewise.
11629         (vabaq_u16): Likewise.
11630         (vabaq_u32): Likewise.
11631         (vabd_s8): Likewise.
11632         (vabd_s16): Likewise.
11633         (vabd_s32): Likewise.
11634         (vabd_u8): Likewise.
11635         (vabd_u16): Likewise.
11636         (vabd_u32): Likewise.
11637         (vabdl_high_s8): Likewise.
11638         (vabdl_high_s16): Likewise.
11639         (vabdl_high_s32): Likewise.
11640         (vabdl_high_u8): Likewise.
11641         (vabdl_high_u16): Likewise.
11642         (vabdl_high_u32): Likewise.
11643         (vabdl_s8): Likewise.
11644         (vabdl_s16): Likewise.
11645         (vabdl_s32): Likewise.
11646         (vabdl_u8): Likewise.
11647         (vabdl_u16): Likewise.
11648         (vabdl_u32): Likewise.
11649         (vabdq_s8): Likewise.
11650         (vabdq_s16): Likewise.
11651         (vabdq_s32): Likewise.
11652         (vabdq_u8): Likewise.
11653         (vabdq_u16): Likewise.
11654         (vabdq_u32): Likewise.
11655         (vaddlv_s8): Likewise.
11656         (vaddlv_s16): Likewise.
11657         (vaddlv_u8): Likewise.
11658         (vaddlv_u16): Likewise.
11659         (vaddlvq_s8): Likewise.
11660         (vaddlvq_s16): Likewise.
11661         (vaddlvq_s32): Likewise.
11662         (vaddlvq_u8): Likewise.
11663         (vaddlvq_u16): Likewise.
11664         (vaddlvq_u32): Likewise.
11665         (vcvtx_f32_f64): Likewise.
11666         (vcvtx_high_f32_f64): Likewise.
11667         (vcvtxd_f32_f64): Likewise.
11668         (vmla_n_f32): Likewise.
11669         (vmla_n_s16): Likewise.
11670         (vmla_n_s32): Likewise.
11671         (vmla_n_u16): Likewise.
11672         (vmla_n_u32): Likewise.
11673         (vmla_s8): Likewise.
11674         (vmla_s16): Likewise.
11675         (vmla_s32): Likewise.
11676         (vmla_u8): Likewise.
11677         (vmla_u16): Likewise.
11678         (vmla_u32): Likewise.
11679         (vmlal_high_n_s16): Likewise.
11680         (vmlal_high_n_s32): Likewise.
11681         (vmlal_high_n_u16): Likewise.
11682         (vmlal_high_n_u32): Likewise.
11683         (vmlal_high_s8): Likewise.
11684         (vmlal_high_s16): Likewise.
11685         (vmlal_high_s32): Likewise.
11686         (vmlal_high_u8): Likewise.
11687         (vmlal_high_u16): Likewise.
11688         (vmlal_high_u32): Likewise.
11689         (vmlal_n_s16): Likewise.
11690         (vmlal_n_s32): Likewise.
11691         (vmlal_n_u16): Likewise.
11692         (vmlal_n_u32): Likewise.
11693         (vmlal_s8): Likewise.
11694         (vmlal_s16): Likewise.
11695         (vmlal_s32): Likewise.
11696         (vmlal_u8): Likewise.
11697         (vmlal_u16): Likewise.
11698         (vmlal_u32): Likewise.
11699         (vmlaq_n_f32): Likewise.
11700         (vmlaq_n_s16): Likewise.
11701         (vmlaq_n_s32): Likewise.
11702         (vmlaq_n_u16): Likewise.
11703         (vmlaq_n_u32): Likewise.
11704         (vmlaq_s8): Likewise.
11705         (vmlaq_s16): Likewise.
11706         (vmlaq_s32): Likewise.
11707         (vmlaq_u8): Likewise.
11708         (vmlaq_u16): Likewise.
11709         (vmlaq_u32): Likewise.
11710         (vmls_n_f32): Likewise.
11711         (vmls_n_s16): Likewise.
11712         (vmls_n_s32): Likewise.
11713         (vmls_n_u16): Likewise.
11714         (vmls_n_u32): Likewise.
11715         (vmls_s8): Likewise.
11716         (vmls_s16): Likewise.
11717         (vmls_s32): Likewise.
11718         (vmls_u8): Likewise.
11719         (vmls_u16): Likewise.
11720         (vmls_u32): Likewise.
11721         (vmlsl_high_n_s16): Likewise.
11722         (vmlsl_high_n_s32): Likewise.
11723         (vmlsl_high_n_u16): Likewise.
11724         (vmlsl_high_n_u32): Likewise.
11725         (vmlsl_high_s8): Likewise.
11726         (vmlsl_high_s16): Likewise.
11727         (vmlsl_high_s32): Likewise.
11728         (vmlsl_high_u8): Likewise.
11729         (vmlsl_high_u16): Likewise.
11730         (vmlsl_high_u32): Likewise.
11731         (vmlsl_n_s16): Likewise.
11732         (vmlsl_n_s32): Likewise.
11733         (vmlsl_n_u16): Likewise.
11734         (vmlsl_n_u32): Likewise.
11735         (vmlsl_s8): Likewise.
11736         (vmlsl_s16): Likewise.
11737         (vmlsl_s32): Likewise.
11738         (vmlsl_u8): Likewise.
11739         (vmlsl_u16): Likewise.
11740         (vmlsl_u32): Likewise.
11741         (vmlsq_n_f32): Likewise.
11742         (vmlsq_n_s16): Likewise.
11743         (vmlsq_n_s32): Likewise.
11744         (vmlsq_n_u16): Likewise.
11745         (vmlsq_n_u32): Likewise.
11746         (vmlsq_s8): Likewise.
11747         (vmlsq_s16): Likewise.
11748         (vmlsq_s32): Likewise.
11749         (vmlsq_u8): Likewise.
11750         (vmlsq_u16): Likewise.
11751         (vmlsq_u32): Likewise.
11752         (vmovl_high_s8): Likewise.
11753         (vmovl_high_s16): Likewise.
11754         (vmovl_high_s32): Likewise.
11755         (vmovl_high_u8): Likewise.
11756         (vmovl_high_u16): Likewise.
11757         (vmovl_high_u32): Likewise.
11758         (vmovl_s8): Likewise.
11759         (vmovl_s16): Likewise.
11760         (vmovl_s32): Likewise.
11761         (vmovl_u8): Likewise.
11762         (vmovl_u16): Likewise.
11763         (vmovl_u32): Likewise.
11764         (vmovn_high_s16): Likewise.
11765         (vmovn_high_s32): Likewise.
11766         (vmovn_high_s64): Likewise.
11767         (vmovn_high_u16): Likewise.
11768         (vmovn_high_u32): Likewise.
11769         (vmovn_high_u64): Likewise.
11770         (vmovn_s16): Likewise.
11771         (vmovn_s32): Likewise.
11772         (vmovn_s64): Likewise.
11773         (vmovn_u16): Likewise.
11774         (vmovn_u32): Likewise.
11775         (vmovn_u64): Likewise.
11776         (vmull_high_n_s16): Likewise.
11777         (vmull_high_n_s32): Likewise.
11778         (vmull_high_n_u16): Likewise.
11779         (vmull_high_n_u32): Likewise.
11780         (vmull_high_p8): Likewise.
11781         (vmull_high_s8): Likewise.
11782         (vmull_high_s16): Likewise.
11783         (vmull_high_s32): Likewise.
11784         (vmull_high_u8): Likewise.
11785         (vmull_high_u16): Likewise.
11786         (vmull_high_u32): Likewise.
11787         (vmull_n_s16): Likewise.
11788         (vmull_n_s32): Likewise.
11789         (vmull_n_u16): Likewise.
11790         (vmull_n_u32): Likewise.
11791         (vmull_p8): Likewise.
11792         (vmull_s8): Likewise.
11793         (vmull_s16): Likewise.
11794         (vmull_s32): Likewise.
11795         (vmull_u8): Likewise.
11796         (vmull_u16): Likewise.
11797         (vmull_u32): Likewise.
11798         (vpadal_s8): Likewise.
11799         (vpadal_s16): Likewise.
11800         (vpadal_s32): Likewise.
11801         (vpadal_u8): Likewise.
11802         (vpadal_u16): Likewise.
11803         (vpadal_u32): Likewise.
11804         (vpadalq_s8): Likewise.
11805         (vpadalq_s16): Likewise.
11806         (vpadalq_s32): Likewise.
11807         (vpadalq_u8): Likewise.
11808         (vpadalq_u16): Likewise.
11809         (vpadalq_u32): Likewise.
11810         (vpaddl_s8): Likewise.
11811         (vpaddl_s16): Likewise.
11812         (vpaddl_s32): Likewise.
11813         (vpaddl_u8): Likewise.
11814         (vpaddl_u16): Likewise.
11815         (vpaddl_u32): Likewise.
11816         (vpaddlq_s8): Likewise.
11817         (vpaddlq_s16): Likewise.
11818         (vpaddlq_s32): Likewise.
11819         (vpaddlq_u8): Likewise.
11820         (vpaddlq_u16): Likewise.
11821         (vpaddlq_u32): Likewise.
11822         (vpaddq_s8): Likewise.
11823         (vpaddq_s16): Likewise.
11824         (vpaddq_s32): Likewise.
11825         (vpaddq_s64): Likewise.
11826         (vpaddq_u8): Likewise.
11827         (vpaddq_u16): Likewise.
11828         (vpaddq_u32): Likewise.
11829         (vpaddq_u64): Likewise.
11830         (vqdmulh_n_s16): Likewise.
11831         (vqdmulh_n_s32): Likewise.
11832         (vqdmulhq_n_s16): Likewise.
11833         (vqdmulhq_n_s32): Likewise.
11834         (vqmovn_high_s16): Likewise.
11835         (vqmovn_high_s32): Likewise.
11836         (vqmovn_high_s64): Likewise.
11837         (vqmovn_high_u16): Likewise.
11838         (vqmovn_high_u32): Likewise.
11839         (vqmovn_high_u64): Likewise.
11840         (vqmovun_high_s16): Likewise.
11841         (vqmovun_high_s32): Likewise.
11842         (vqmovun_high_s64): Likewise.
11843         (vqrdmulh_n_s16): Likewise.
11844         (vqrdmulh_n_s32): Likewise.
11845         (vqrdmulhq_n_s16): Likewise.
11846         (vqrdmulhq_n_s32): Likewise.
11847         (vrsqrte_u32): Likewise.
11848         (vrsqrteq_u32): Likewise.
11849         (vtst_p8): Likewise.
11850         (vtst_p16): Likewise.
11851         (vtst_p64): Likewise.
11852         (vtstq_p8): Likewise.
11853         (vtstq_p16): Likewise.
11854         (vtstq_p64): Likewise.
11855         (vaddlv_s32): Likewise.
11856         (vaddlv_u32): Likewise.
11857         (vqtbl1_p8): Likewise.
11858         (vqtbl1_s8): Likewise.
11859         (vqtbl1_u8): Likewise.
11860         (vqtbl1q_p8): Likewise.
11861         (vqtbl1q_s8): Likewise.
11862         (vqtbl1q_u8): Likewise.
11863         (vqtbx1_s8): Likewise.
11864         (vqtbx1_u8): Likewise.
11865         (vqtbx1_p8): Likewise.
11866         (vqtbx1q_s8): Likewise.
11867         (vqtbx1q_u8): Likewise.
11868         (vqtbx1q_p8): Likewise.
11869         (vtbl1_s8): Likewise.
11870         (vtbl1_u8): Likewise.
11871         (vtbl1_p8): Likewise.
11872         (vtbl2_s8): Likewise.
11873         (vtbl2_u8): Likewise.
11874         (vtbl2_p8): Likewise.
11875         (vtbl3_s8): Likewise.
11876         (vtbl3_u8): Likewise.
11877         (vtbl3_p8): Likewise.
11878         (vtbl4_s8): Likewise.
11879         (vtbl4_u8): Likewise.
11880         (vtbl4_p8): Likewise.
11881         (vtbx2_s8): Likewise.
11882         (vtbx2_u8): Likewise.
11883         (vtbx2_p8): Likewise.
11884         (vld1_f32): Likewise.
11885         (vld1_f64): Likewise.
11886         (vld1_p8): Likewise.
11887         (vld1_p16): Likewise.
11888         (vld1_p64): Likewise.
11889         (vld1_s8): Likewise.
11890         (vld1_s16): Likewise.
11891         (vld1_s32): Likewise.
11892         (vld1_s64): Likewise.
11893         (vld1_u8): Likewise.
11894         (vld1_u16): Likewise.
11895         (vld1_u32): Likewise.
11896         (vld1_u64): Likewise.
11897         (vld1q_f32): Likewise.
11898         (vld1q_f64): Likewise.
11899         (vld1q_p8): Likewise.
11900         (vld1q_p16): Likewise.
11901         (vld1q_p64): Likewise.
11902         (vld1q_s8): Likewise.
11903         (vld1q_s16): Likewise.
11904         (vld1q_s32): Likewise.
11905         (vld1q_s64): Likewise.
11906         (vld1q_u8): Likewise.
11907         (vld1q_u16): Likewise.
11908         (vld1q_u32): Likewise.
11909         (vld1q_u64): Likewise.
11910         (vpmax_s8): Likewise.
11911         (vpmax_s16): Likewise.
11912         (vpmax_s32): Likewise.
11913         (vpmax_u8): Likewise.
11914         (vpmax_u16): Likewise.
11915         (vpmax_u32): Likewise.
11916         (vpmaxq_s8): Likewise.
11917         (vpmaxq_s16): Likewise.
11918         (vpmaxq_s32): Likewise.
11919         (vpmaxq_u8): Likewise.
11920         (vpmaxq_u16): Likewise.
11921         (vpmaxq_u32): Likewise.
11922         (vpmax_f32): Likewise.
11923         (vpmaxq_f32): Likewise.
11924         (vpmaxq_f64): Likewise.
11925         (vpmaxqd_f64): Likewise.
11926         (vpmaxs_f32): Likewise.
11927         (vpmaxnm_f32): Likewise.
11928         (vpmaxnmq_f32): Likewise.
11929         (vpmaxnmq_f64): Likewise.
11930         (vpmaxnmqd_f64): Likewise.
11931         (vpmaxnms_f32): Likewise.
11932         (vpmin_s8): Likewise.
11933         (vpmin_s16): Likewise.
11934         (vpmin_s32): Likewise.
11935         (vpmin_u8): Likewise.
11936         (vpmin_u16): Likewise.
11937         (vpmin_u32): Likewise.
11938         (vpminq_s8): Likewise.
11939         (vpminq_s16): Likewise.
11940         (vpminq_s32): Likewise.
11941         (vpminq_u8): Likewise.
11942         (vpminq_u16): Likewise.
11943         (vpminq_u32): Likewise.
11944         (vpmin_f32): Likewise.
11945         (vpminq_f32): Likewise.
11946         (vpminq_f64): Likewise.
11947         (vpminqd_f64): Likewise.
11948         (vpmins_f32): Likewise.
11949         (vpminnm_f32): Likewise.
11950         (vpminnmq_f32): Likewise.
11951         (vpminnmq_f64): Likewise.
11952         (vpminnmqd_f64): Likewise.
11953         (vpminnms_f32): Likewise.
11954         (vmla_f32): Likewise.
11955         (vmlaq_f32): Likewise.
11956         (vmlaq_f64): Likewise.
11957         (vmls_f32): Likewise.
11958         (vmlsq_f32): Likewise.
11959         (vmlsq_f64): Likewise.
11960         (vqtbl2_s8): Likewise.
11961         (vqtbl2_u8): Likewise.
11962         (vqtbl2_p8): Likewise.
11963         (vqtbl2q_s8): Likewise.
11964         (vqtbl2q_u8): Likewise.
11965         (vqtbl2q_p8): Likewise.
11966         (vqtbl3_s8): Likewise.
11967         (vqtbl3_u8): Likewise.
11968         (vqtbl3_p8): Likewise.
11969         (vqtbl3q_s8): Likewise.
11970         (vqtbl3q_u8): Likewise.
11971         (vqtbl3q_p8): Likewise.
11972         (vqtbl4_s8): Likewise.
11973         (vqtbl4_u8): Likewise.
11974         (vqtbl4_p8): Likewise.
11975         (vqtbl4q_s8): Likewise.
11976         (vqtbl4q_u8): Likewise.
11977         (vqtbl4q_p8): Likewise.
11978         (vqtbx2_s8): Likewise.
11979         (vqtbx2_u8): Likewise.
11980         (vqtbx2_p8): Likewise.
11981         (vqtbx2q_s8): Likewise.
11982         (vqtbx2q_u8): Likewise.
11983         (vqtbx2q_p8): Likewise.
11984         (vqtbx3_s8): Likewise.
11985         (vqtbx3_u8): Likewise.
11986         (vqtbx3_p8): Likewise.
11987         (vqtbx3q_s8): Likewise.
11988         (vqtbx3q_u8): Likewise.
11989         (vqtbx3q_p8): Likewise.
11990         (vqtbx4_s8): Likewise.
11991         (vqtbx4_u8): Likewise.
11992         (vqtbx4_p8): Likewise.
11993         (vqtbx4q_s8): Likewise.
11994         (vqtbx4q_u8): Likewise.
11995         (vqtbx4q_p8): Likewise.
11996         (vrev16_p8): Likewise.
11997         (vrev16_s8): Likewise.
11998         (vrev16_u8): Likewise.
11999         (vrev16q_p8): Likewise.
12000         (vrev16q_s8): Likewise.
12001         (vrev16q_u8): Likewise.
12002         (vrev32_p8): Likewise.
12003         (vrev32_p16): Likewise.
12004         (vrev32_s8): Likewise.
12005         (vrev32_s16): Likewise.
12006         (vrev32_u8): Likewise.
12007         (vrev32_u16): Likewise.
12008         (vrev32q_p8): Likewise.
12009         (vrev32q_p16): Likewise.
12010         (vrev32q_s8): Likewise.
12011         (vrev32q_s16): Likewise.
12012         (vrev32q_u8): Likewise.
12013         (vrev32q_u16): Likewise.
12014         (vrev64_f32): Likewise.
12015         (vrev64_p8): Likewise.
12016         (vrev64_p16): Likewise.
12017         (vrev64_s8): Likewise.
12018         (vrev64_s16): Likewise.
12019         (vrev64_s32): Likewise.
12020         (vrev64_u8): Likewise.
12021         (vrev64_u16): Likewise.
12022         (vrev64_u32): Likewise.
12023         (vrev64q_f32): Likewise.
12024         (vrev64q_p8): Likewise.
12025         (vrev64q_p16): Likewise.
12026         (vrev64q_s8): Likewise.
12027         (vrev64q_s16): Likewise.
12028         (vrev64q_s32): Likewise.
12029         (vrev64q_u8): Likewise.
12030         (vrev64q_u16): Likewise.
12031         (vrev64q_u32): Likewise.
12032         (vsha1cq_u32): Likewise.
12033         (vsha1mq_u32): Likewise.
12034         (vsha1pq_u32): Likewise.
12035         (vsha1h_u32): Likewise.
12036         (vsha1su0q_u32): Likewise.
12037         (vsha1su1q_u32): Likewise.
12038         (vsha256hq_u32): Likewise.
12039         (vsha256h2q_u32): Likewise.
12040         (vsha256su0q_u32): Likewise.
12041         (vsha256su1q_u32): Likewise.
12042         (vmull_p64): Likewise.
12043         (vmull_high_p64): Likewise.
12044         (vsqrt_f32): Likewise.
12045         (vsqrtq_f32): Likewise.
12046         (vsqrt_f64): Likewise.
12047         (vsqrtq_f64): Likewise.
12048         (vst1_f32): Likewise.
12049         (vst1_f64): Likewise.
12050         (vst1_p8): Likewise.
12051         (vst1_p16): Likewise.
12052         (vst1_p64): Likewise.
12053         (vst1_s8): Likewise.
12054         (vst1_s16): Likewise.
12055         (vst1_s32): Likewise.
12056         (vst1_s64): Likewise.
12057         (vst1_u8): Likewise.
12058         (vst1_u16): Likewise.
12059         (vst1_u32): Likewise.
12060         (vst1_u64): Likewise.
12061         (vst1q_f32): Likewise.
12062         (vst1q_f64): Likewise.
12063         (vst1q_p8): Likewise.
12064         (vst1q_p16): Likewise.
12065         (vst1q_p64): Likewise.
12066         (vst1q_s8): Likewise.
12067         (vst1q_s16): Likewise.
12068         (vst1q_s32): Likewise.
12069         (vst1q_s64): Likewise.
12070         (vst1q_u8): Likewise.
12071         (vst1q_u16): Likewise.
12072         (vst1q_u32): Likewise.
12073         (vst1q_u64): Likewise.
12074         (vst1_s64_x2): Likewise.
12075         (vst1_u64_x2): Likewise.
12076         (vst1_f64_x2): Likewise.
12077         (vst1_s8_x2): Likewise.
12078         (vst1_p8_x2): Likewise.
12079         (vst1_s16_x2): Likewise.
12080         (vst1_p16_x2): Likewise.
12081         (vst1_s32_x2): Likewise.
12082         (vst1_u8_x2): Likewise.
12083         (vst1_u16_x2): Likewise.
12084         (vst1_u32_x2): Likewise.
12085         (vst1_f16_x2): Likewise.
12086         (vst1_f32_x2): Likewise.
12087         (vst1_p64_x2): Likewise.
12088         (vst1q_s8_x2): Likewise.
12089         (vst1q_p8_x2): Likewise.
12090         (vst1q_s16_x2): Likewise.
12091         (vst1q_p16_x2): Likewise.
12092         (vst1q_s32_x2): Likewise.
12093         (vst1q_s64_x2): Likewise.
12094         (vst1q_u8_x2): Likewise.
12095         (vst1q_u16_x2): Likewise.
12096         (vst1q_u32_x2): Likewise.
12097         (vst1q_u64_x2): Likewise.
12098         (vst1q_f16_x2): Likewise.
12099         (vst1q_f32_x2): Likewise.
12100         (vst1q_f64_x2): Likewise.
12101         (vst1q_p64_x2): Likewise.
12102         (vst1_s64_x3): Likewise.
12103         (vst1_u64_x3): Likewise.
12104         (vst1_f64_x3): Likewise.
12105         (vst1_s8_x3): Likewise.
12106         (vst1_p8_x3): Likewise.
12107         (vst1_s16_x3): Likewise.
12108         (vst1_p16_x3): Likewise.
12109         (vst1_s32_x3): Likewise.
12110         (vst1_u8_x3): Likewise.
12111         (vst1_u16_x3): Likewise.
12112         (vst1_u32_x3): Likewise.
12113         (vst1_f16_x3): Likewise.
12114         (vst1_f32_x3): Likewise.
12115         (vst1_p64_x3): Likewise.
12116         (vst1q_s8_x3): Likewise.
12117         (vst1q_p8_x3): Likewise.
12118         (vst1q_s16_x3): Likewise.
12119         (vst1q_p16_x3): Likewise.
12120         (vst1q_s32_x3): Likewise.
12121         (vst1q_s64_x3): Likewise.
12122         (vst1q_u8_x3): Likewise.
12123         (vst1q_u16_x3): Likewise.
12124         (vst1q_u32_x3): Likewise.
12125         (vst1q_u64_x3): Likewise.
12126         (vst1q_f16_x3): Likewise.
12127         (vst1q_f32_x3): Likewise.
12128         (vst1q_f64_x3): Likewise.
12129         (vst1q_p64_x3): Likewise.
12130         (vst2_s64): Likewise.
12131         (vst2_u64): Likewise.
12132         (vst2_f64): Likewise.
12133         (vst2_s8): Likewise.
12134         (vst2_p8): Likewise.
12135         (vst2_s16): Likewise.
12136         (vst2_p16): Likewise.
12137         (vst2_s32): Likewise.
12138         (vst2_u8): Likewise.
12139         (vst2_u16): Likewise.
12140         (vst2_u32): Likewise.
12141         (vst2_f16): Likewise.
12142         (vst2_f32): Likewise.
12143         (vst2_p64): Likewise.
12144         (vst2q_s8): Likewise.
12145         (vst2q_p8): Likewise.
12146         (vst2q_s16): Likewise.
12147         (vst2q_p16): Likewise.
12148         (vst2q_s32): Likewise.
12149         (vst2q_s64): Likewise.
12150         (vst2q_u8): Likewise.
12151         (vst2q_u16): Likewise.
12152         (vst2q_u32): Likewise.
12153         (vst2q_u64): Likewise.
12154         (vst2q_f16): Likewise.
12155         (vst2q_f32): Likewise.
12156         (vst2q_f64): Likewise.
12157         (vst2q_p64): Likewise.
12158         (vst3_s64): Likewise.
12159         (vst3_u64): Likewise.
12160         (vst3_f64): Likewise.
12161         (vst3_s8): Likewise.
12162         (vst3_p8): Likewise.
12163         (vst3_s16): Likewise.
12164         (vst3_p16): Likewise.
12165         (vst3_s32): Likewise.
12166         (vst3_u8): Likewise.
12167         (vst3_u16): Likewise.
12168         (vst3_u32): Likewise.
12169         (vst3_f16): Likewise.
12170         (vst3_f32): Likewise.
12171         (vst3_p64): Likewise.
12172         (vst3q_s8): Likewise.
12173         (vst3q_p8): Likewise.
12174         (vst3q_s16): Likewise.
12175         (vst3q_p16): Likewise.
12176         (vst3q_s32): Likewise.
12177         (vst3q_s64): Likewise.
12178         (vst3q_u8): Likewise.
12179         (vst3q_u16): Likewise.
12180         (vst3q_u32): Likewise.
12181         (vst3q_u64): Likewise.
12182         (vst3q_f16): Likewise.
12183         (vst3q_f32): Likewise.
12184         (vst3q_f64): Likewise.
12185         (vst3q_p64): Likewise.
12186         (vst4_s64): Likewise.
12187         (vst4_u64): Likewise.
12188         (vst4_f64): Likewise.
12189         (vst4_s8): Likewise.
12190         (vst4_p8): Likewise.
12191         (vst4_s16): Likewise.
12192         (vst4_p16): Likewise.
12193         (vst4_s32): Likewise.
12194         (vst4_u8): Likewise.
12195         (vst4_u16): Likewise.
12196         (vst4_u32): Likewise.
12197         (vst4_f16): Likewise.
12198         (vst4_f32): Likewise.
12199         (vst4_p64): Likewise.
12200         (vst4q_s8): Likewise.
12201         (vst4q_p8): Likewise.
12202         (vst4q_s16): Likewise.
12203         (vst4q_p16): Likewise.
12204         (vst4q_s32): Likewise.
12205         (vst4q_s64): Likewise.
12206         (vst4q_u8): Likewise.
12207         (vst4q_u16): Likewise.
12208         (vst4q_u32): Likewise.
12209         (vst4q_u64): Likewise.
12210         (vst4q_f16): Likewise.
12211         (vst4q_f32): Likewise.
12212         (vst4q_f64): Likewise.
12213         (vst4q_p64): Likewise.
12214         (vtbx4_s8): Likewise.
12215         (vtbx4_u8): Likewise.
12216         (vtbx4_p8): Likewise.
12217         (vtrn_f32): Likewise.
12218         (vtrn_p8): Likewise.
12219         (vtrn_p16): Likewise.
12220         (vtrn_s8): Likewise.
12221         (vtrn_s16): Likewise.
12222         (vtrn_s32): Likewise.
12223         (vtrn_u8): Likewise.
12224         (vtrn_u16): Likewise.
12225         (vtrn_u32): Likewise.
12226         (vtrnq_f32): Likewise.
12227         (vtrnq_p8): Likewise.
12228         (vtrnq_p16): Likewise.
12229         (vtrnq_s8): Likewise.
12230         (vtrnq_s16): Likewise.
12231         (vtrnq_s32): Likewise.
12232         (vtrnq_u8): Likewise.
12233         (vtrnq_u16): Likewise.
12234         (vtrnq_u32): Likewise.
12235         (vrsqrte_f16): Likewise.
12236         (vrsqrteq_f16): Likewise.
12237         (vsqrt_f16): Likewise.
12238         (vsqrtq_f16): Likewise.
12239         (vabd_f16): Likewise.
12240         (vabdq_f16): Likewise.
12241         (vpadd_f16): Likewise.
12242         (vpaddq_f16): Likewise.
12243         (vpmax_f16): Likewise.
12244         (vpmaxq_f16): Likewise.
12245         (vpmaxnm_f16): Likewise.
12246         (vpmaxnmq_f16): Likewise.
12247         (vpmin_f16): Likewise.
12248         (vpminq_f16): Likewise.
12249         (vpminnm_f16): Likewise.
12250         (vpminnmq_f16): Likewise.
12251         (vrsqrts_f16): Likewise.
12252         (vrsqrtsq_f16): Likewise.
12254 2019-09-25  Richard Biener  <rguenther@suse.de>
12256         PR tree-optimization/91896
12257         * tree-vect-loop.c (vectorizable_reduction): The single
12258         def-use cycle optimization cannot apply when there's more
12259         than one pattern stmt involved.
12261 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
12263         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12264         the 'P' mode iterator, replacing the (removed) SI and DI variants.
12265         (reload_macho_picbase_<mode>): Likewise.
12267 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
12269         * config/rs6000/rs6000.md: Move darwin.md include until
12270         after the definition of the mode iterators.
12272 2019-09-23  Martin Sebor  <msebor@redhat.com>
12274         PR tree-optimization/91570
12275         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12276         non-constant minlen, maxlen and maxbound.
12278 2019-09-24  Richard Biener  <rguenther@suse.de>
12280         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12281         Rename to...
12282         (_stmt_vec_info::cond_reduc_code): ... this.
12283         (_stmt_vec_info::induc_cond_initial_val): Add.
12284         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12285         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12286         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12287         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12288         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12289         the reduction code.
12290         (vect_create_epilog_for_reduction): Drop special
12291         induction condition reduction params, pass in reduction code
12292         and simplify.
12293         (vectorizable_reduction): Perform condition reduction kind
12294         selection only at analysis time.  Adjust passing on state.
12296 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12298         * config/aarch64/aarch64.md (mov<mode>): Don't call
12299         aarch64_split_dimode_const_store on volatile MEM.
12301 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
12303         * config/aarch64/aarch64-option-extensions.def (fp16fml):
12304         Update hwcap string for fp16fml.
12306 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
12308         PR middle-end/91866
12309         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12310         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12312 2019-09-24  Martin Liska  <mliska@suse.cz>
12314         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12315         instead of if-elseif-elseif-...
12316         * gimple-expr.c (extract_ops_from_tree): Likewise.
12317         * gimple.c (get_gimple_rhs_num_ops): Likewise.
12318         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12320 2019-09-24  Martin Jambor  <mjambor@suse.cz>
12322         PR ipa/91831
12323         * ipa-param-manipulation.c (carry_over_param): Make a method of
12324         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
12325         in case of a context mismatch.
12326         (ipa_param_body_adjustments::common_initialization): Adjust call to
12327         carry_over_param.
12328         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12329         private method carry_over_param.
12331 2019-09-24  Martin Jambor  <mjambor@suse.cz>
12333         PR ipa/91832
12334         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12336 2019-09-24  Richard Biener  <rguenther@suse.de>
12338         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12339         base.
12341 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12343         * config/arm/t-arm (arm-builtins.o): Add dependency on
12344         arm_acle_builtins.def.
12346 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
12348         PR target/91823
12349         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12350         canonical CONST_INTs.  Use gen_rtvec.
12352 2019-09-23  Richard Biener  <rguenther@suse.de>
12354         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12355         avoid adjusting by + 0 or * 1.
12356         (vect_create_epilog_for_reduction): Get reduction code only
12357         when necessary.  Deal with adjustment_def only when necessary.
12359 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
12361         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12362         memmodel index.
12364 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12366         PR ipa/91835
12367         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12368         "ipa-sra".
12370 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
12372         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12373         code.  Merge code blocks with common conditionals. Use declared
12374         macro instead of a magic number for PIC level.
12376 2019-09-21  Martin Sebor  <msebor@redhat.com>
12378         PR middle-end/91830
12379         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12380         Simplify computation of the offset of the referenced subobject.
12382 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
12384         * config/darwin.c (machopic_legitimize_pic_address): Check
12385         for lra not reload.
12387 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
12389         * ira-conflicts.c (can_use_same_reg_p): New function.
12390         (process_reg_shuffles): Take an insn parameter.  Ignore cases
12391         in which input operand op_num could seemingly never be allocated
12392         to the same register as the destination.
12393         (add_insn_allocno_copies): Update call to process_reg_shuffles.
12395 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
12397         * simplify-rtx.c (neg_const_int): Replace with...
12398         (neg_poly_int_rtx): ...this new function.
12399         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12400         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12401         (simplify_plus_minus): Likewise for constant terms here.
12403 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
12405         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12406         HOST_WIDE_PRINT_UNSIGNED.
12408 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
12410         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12411         character.
12413 2019-09-20  Maya Rashish  <coypu@sdf.org>
12415         PR target/86811
12416         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12417         Define to speculation_safe_value_not_needed.
12419 2019-09-20  Richard Biener  <rguenther@suse.de>
12420             Uros Bizjak  <ubizjak@gmail.com>
12422         PR target/91814
12423         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12424         previous change.
12425         (general_scalar_chain::convert_op): Force not suitable memory
12426         operands to a register.
12428 2019-09-20  Richard Biener  <rguenther@suse.de>
12430         PR tree-optimization/91821
12431         * tree-vect-loop.c (check_reduction_path): Check we can compute
12432         reduc_idx.
12433         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12434         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12435         operands in canonical order.
12436         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12437         STMT_VINFO_REDUC_IDX.
12438         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12439         (STMT_VINFO_REDUC_IDX): Likewise.
12441 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
12443         PR target/91269
12444         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12446 2019-09-20  Richard Biener  <rguenther@suse.de>
12448         PR tree-optimization/91822
12449         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12450         parameter.
12451         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12452         for reduc_index in nested cycles, adjust vectorizable_condition
12453         calls.
12454         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12455         parameter.
12456         (vect_analyze_stmt): Adjust.
12457         (vect_transform_stmt): Likewise.
12459 2019-09-20  Richard Biener  <rguenther@suse.de>
12461         PR target/91767
12462         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12463         Ensure there's a sequence point between allocating the new register
12464         and passing a reference to a reg via regno_reg_rtx.
12466 2019-09-20  Martin Jambor  <mjambor@suse.cz>
12468         * coretypes.h (cgraph_edge): Declare.
12469         * ipa-param-manipulation.c: Rewrite.
12470         * ipa-param-manipulation.h: Likewise.
12471         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12472         (OBJS): Added ipa-sra.o.
12473         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12474         and ref_p, added fields param_adjustments and performed_splits.
12475         (struct cgraph_clone_info): Remove ags_to_skip and
12476         combined_args_to_skip, new field param_adjustments.
12477         (cgraph_node::create_clone): Changed parameters to use
12478         ipa_param_adjustments.
12479         (cgraph_node::create_virtual_clone): Likewise.
12480         (cgraph_node::create_virtual_clone_with_body): Likewise.
12481         (tree_function_versioning): Likewise.
12482         (cgraph_build_function_type_skip_args): Removed.
12483         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12484         using ipa_param_adjustments.
12485         (clone_of_p): Likewise.
12486         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12487         (build_function_decl_skip_args): Likewise.
12488         (duplicate_thunk_for_node): Adjust parameters using
12489         ipa_param_body_adjustments, copy param_adjustments instead of
12490         args_to_skip.
12491         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12492         (cgraph_node::create_virtual_clone): Likewise.
12493         (cgraph_node::create_version_clone_with_body): Likewise.
12494         (cgraph_materialize_clone): Likewise.
12495         (symbol_table::materialize_all_clones): Likewise.
12496         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12497         ipa_replace_map check.
12498         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12499         (initialize_node_lattices): Make aware that some parameters might have
12500         already been removed.
12501         (want_remove_some_param_p): New function.
12502         (create_specialized_node): Convert to using ipa_param_adjustments and
12503         deal with possibly pre-existing adjustments.
12504         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12505         (output_node_opt_summary): Do not stream removed fields.  Stream
12506         parameter adjustments instead of argumetns to skip.
12507         (input_node_opt_summary): Likewise.
12508         (input_node_opt_summary): Likewise.
12509         * lto-section-in.c (lto_section_name): Added ipa-sra section.
12510         * lto-streamer.h (lto_section_type): Likewise.
12511         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12512         param_body_adjs.
12513         (copy_decl_to_var): Declare.
12514         * tree-inline.c (update_clone_info): Do not remap old_tree.
12515         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12516         statements, walk all extra generated statements and remap their
12517         operands.
12518         (redirect_all_calls): Add killed SSA names to a hash set.
12519         (remap_ssa_name): Do not remap killed SSA names.
12520         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12521         half of functionality moved to ipa_param_body_adjustments.
12522         (copy_decl_to_var): Make exported.
12523         (copy_body): Destroy killed_new_ssa_names hash set.
12524         (expand_call_inline): Remap performed splits.
12525         (update_clone_info): Likewise.
12526         (tree_function_versioning): Simplify tree_map processing.  Updated to
12527         accept ipa_param_adjustments and use ipa_param_body_adjustments.
12528         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12529         for the new interface.
12530         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12531         (simd_clone_compute_base_data_type): Likewise.
12532         (simd_clone_init_simd_arrays): Adjust for the new interface.
12533         (simd_clone_adjust_argument_types): Likewise.
12534         (struct modify_stmt_info): Likewise.
12535         (ipa_simd_modify_stmt_ops): Likewise.
12536         (ipa_simd_modify_function_body): Likewise.
12537         (simd_clone_adjust): Likewise.
12538         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
12539         (type_internals_preclude_sra_p): Make public.
12540         * tree-sra.h: New file.
12541         * ipa-inline-transform.c (save_inline_function_body): Update to
12542         refelct new tree_function_versioning signature.
12543         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12544         ipa_param_adjustments to get current parameter indices.
12545         (ipcp_modif_dom_walker::before_dom_children): Likewise.
12546         (ipcp_update_bits): Likewise.
12547         (ipcp_update_vr): Likewise.
12548         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12549         * ipa-sra.c: New file.
12550         * multiple_target.c (create_target_clone): Update to reflet new type
12551         of create_version_clone_with_body.
12552         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12553         tree_function_versioning.
12554         (modify_function): Update to reflect new type of
12555         tree_function_versioning.
12556         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12557         * passes.def: Remove old IPA-SRA and add new one.
12558         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12559         (make_pass_ipa_sra): Declare.
12560         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
12561         ipa_sra_retvalues.
12562         * doc/invoke.texi (ipa-sra-max-replacements): New.
12564 2019-09-19  Martin Sebor  <msebor@redhat.com>
12566         PR middle-end/91631
12567         * builtins.c (component_size): Correct trailing array computation,
12568         rename to component_ref_size and move...
12569         (compute_objsize): Adjust.
12570         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12571         (builtin_access::strict): Do not consider memmove.
12572         (builtin_access::write_off): New function.
12573         (builtin_memref::builtin_memref): Initialize refsize.
12574         (builtin_memref::set_base_and_offset): Adjust refoff and compute
12575         refsize.
12576         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12577         Handle refsize.
12578         (builtin_access::builtin_access): Initialize dstoff to destination
12579         refeence offset here instead of in maybe_diag_overlap.  Adjust
12580         referencess even to unrelated objects.  Adjust sizrange of bounded
12581         string functions to reflect bound.  For strcat, adjust destination
12582         sizrange by that of source.
12583         (builtin_access::strcat_overlap):  Adjust offsets and sizes
12584         to reflect the increase in destination sizrange above.
12585         (builtin_access::overlap): Do not set dstoff here but instead
12586         in builtin_access::builtin_access.
12587         (check_bounds_or_overlap): Use builtin_access::write_off.
12588         (maybe_diag_access_bounds): Add argument.  Add informational notes.
12589         (dump_builtin_memref, dump_builtin_access): New functions.
12590         * tree.c (component_ref_size): ...to here.
12591         * tree.h (component_ref_size): Declare.
12592         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12593         nul in the size of the source string.
12595 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
12597         PR c/67224
12598         * doc/cpp.texi: Document support for extended characters in
12599         identifiers.
12600         * doc/cppopts.texi: Likewise.
12602 2019-09-19  Richard Biener  <rguenther@suse.de>
12604         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12605         (check_reduction_path): New overload having the path as result.
12606         (vect_is_simple_reduction): From the detected reduction
12607         path build a SLP reduction chain if possible.
12609 2019-09-19  Richard Biener  <rguenther@suse.de>
12611         PR target/91814
12612         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12613         Force operand to a register if it isn't nonimmediate_operand.
12615 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
12617         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12618         * config/arm/iterators.md (optab): Add and, ior, xor entries.
12619         (logical_op): Remove code attribute.
12620         (logical_OP): Likewise.
12622 2019-09-19  Martin Liska  <mliska@suse.cz>
12624         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12625         Use proper casting.
12627 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
12629         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12630         registers with %R.
12632         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12633         for NE comparison of TImode values.
12634         (aarch64_emit_load_exclusive): Add support for TImode.
12635         (aarch64_emit_store_exclusive): Likewise.
12636         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12637         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12638         Change iterator from ALLI to ALLI_TI.
12639         (@atomic_compare_and_swap<JUST_TI>): New.
12640         (@atomic_compare_and_swap<JUST_TI>_lse): New.
12641         (aarch64_load_exclusive_pair): New.
12642         (aarch64_store_exclusive_pair): New.
12643         * config/aarch64/iterators.md (JUST_TI): New.
12645         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12646         strong_zero_p for aarch64_track_speculation; unify some code paths;
12647         use aarch64_gen_compare_reg instead of open-coding.
12649         * config/aarch64/aarch64.opt (-moutline-atomics): New.
12650         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12651         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12652         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12653         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12654         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12655         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12656         (atomic_<atomic_op><ALLI>): Likewise.
12657         (atomic_fetch_<atomic_op><ALLI>): Likewise.
12658         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12659         * doc/invoke.texi: Document -moutline-atomics.
12661 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
12663         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12664         trivial predicate for condition branch.
12665         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12666         for switch case.
12667         (compute_bb_predicates): Update predicate based on post-dominating
12668         relationship.
12669         (analyze_function_body): Calculate post-dominating information.
12671 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
12673         * tree-vectorizer.h (vectorizable_condition): Take an int
12674         reduction index instead of a boolean flag.
12675         * tree-vect-stmts.c (vectorizable_condition): Likewise.
12676         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12677         reductions if the reduction accumulator is the "then" rather
12678         than the "else" value.
12679         (vect_analyze_stmt): Update call accordingly.
12680         (vect_transform_stmt): Likewise.
12681         * tree-vect-loop.c (vectorizable_reduction): Likewise,
12682         asserting that the index is > 0.
12684 2019-09-19  Martin Liska  <mliska@suse.cz>
12686         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12687         (sort_congruence_classes_by_decl_uid): Likewise.
12688         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12689         easier sorting.
12690         (sem_item_optimizer::merge_classes): Likewise.
12692 2019-09-19  Richard Biener  <rguenther@suse.de>
12694         PR tree-optimization/91812
12695         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12696         volatile loads.
12698 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
12700         * defaults.h (TARGET_UNIT): New macro.
12701         (target_unit): New type.
12702         * rtl.h (native_encode_rtx, native_decode_rtx)
12703         (native_decode_vector_rtx, subreg_size_lsb): Declare.
12704         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12705         * rtlanal.c (subreg_lsb_1): Delete.
12706         (subreg_size_lsb): New function.
12707         * simplify-rtx.c: Include rtx-vector-builder.h
12708         (simplify_immed_subreg): Delete.
12709         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12710         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12711         functions.
12712         (simplify_subreg): Use them.
12713         (test_vector_subregs_modes, test_vector_subregs_repeating)
12714         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12715         (test_vector_subregs): New functions.
12716         (test_vector_ops): Call test_vector_subregs for integer vector
12717         modes with at least 2 elements.
12719 2019-09-19  Richard Biener  <rguenther@suse.de>
12721         * tree-parloops.c (parloops_is_slp_reduction): Do not set
12722         LOOP_VINFO_OPERANDS_SWAPPED.
12723         (parloops_is_simple_reduction): Likewise.
12724         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12725         initialize operands_swapped.
12726         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12727         (vect_is_slp_reduction): Do not swap operands.
12728         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12729         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12731 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
12733         PR target/87007
12734         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12735         Add avx_partial_xmm_update.
12737 2019-09-18  Jim Wilson  <jimw@sifive.com>
12739         PR target/91683
12740         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12741         (riscv_move_integer): Likewise.
12742         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12743         riscv_move_integer arg.
12744         (riscv_legitimize_move): Likewise.
12745         (riscv_force_temporary): New parameter in_splitter.  Don't call
12746         force_reg if true.
12747         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12748         arg.
12749         (riscv_add_offset): Likewise.
12750         (riscv_split_symbol): New parameter in_splitter.  Pass to
12751         riscv_force_temporary.
12752         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12753         arg.
12754         (riscv_move_integer): New parameter in_splitter.  New local
12755         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
12756         in_splitter TRUE.
12757         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12758         riscv_split_symbol, and riscv_force_temporary args.
12759         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12760         riscv_move_integer arg.
12761         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12763 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12765         PR target/90878
12766         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12767         hard register store cost to 6.
12769 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12771         PR target/91446
12772         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12773         pseudo register store cost from 3 to 6 to make it the same as
12774         QImode and HImode.
12776 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12778         PR target/91738
12779         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12780         (one_cmpldi2): Likewise.
12781         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12782         of the constant parts is simple.
12783         * config/arm/iterators.md (LOGICAL): Add new code iterator.
12784         (logical_op): Add new code attribute.
12785         (logical_OP): Likewise.
12786         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12787         (arm_iordi_operand): Add predicate.
12788         (arm_xordi_operand): Add predicate.
12790 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12792         * config/arm/arm.md (maddsidi4): Remove expander.
12793         (mulsidi3adddi): Remove pattern.
12794         (mulsidi3adddi_v6): Likewise.
12795         (mulsidi3_nov6): Likewise.
12796         (mulsidi3_v6): Likewise.
12797         (umulsidi3): Remove expander.
12798         (umulsidi3_nov6): Remove pattern.
12799         (umulsidi3_v6): Likewise.
12800         (umulsidi3adddi): Likewise.
12801         (umulsidi3adddi_v6): Likewise.
12802         (<Us>mulsidi3): Add combined expander.
12803         (<Us>maddsidi4): Likewise.
12804         (<US>mull): Add combined umull and smull pattern.
12805         (<US>mlal): Likewise.
12806         * config/arm/iterators.md (Us): Add new iterator.
12808 2019-09-18  Richard Biener  <rguenther@suse.de>
12810         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12811         swapping.
12812         (vectorize_fold_left_reduction): Remove assert.
12813         (vectorizable_reduction): Also expect COND_EXPR non-reduction
12814         operand in position 2.  Remove assert.
12816 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12818         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12819         (smulsi3_highpart_nov6): Remove pattern.
12820         (smulsi3_highpart_v6): Likewise.
12821         (umulsi3_highpart): Likewise.
12822         (umulsi3_highpart_nov6): Likewise.
12823         (umulsi3_highpart_v6): Likewise.
12824         (<US>mull_high): Add new combined multiply pattern.
12826 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12828         * config/arm/arm.md (arm_mulsi3): Remove pattern.
12829         (arm_mulsi3_v6): Likewise.
12830         (mulsi3addsi_v6): Likewise.
12831         (mulsi3subsi): Likewise.
12832         (mul): Add new multiply pattern.
12833         (mla): Likewise.
12834         (mls): Likewise.
12836 2019-09-18  Richard Biener  <rguenther@suse.de>
12838         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12839         (parloops_valid_reduction_input_p): Copy from
12840         valid_reduction_input_p.
12841         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12842         (parloops_needs_fold_left_reduction_p): Copy from
12843         needs_fold_left_reduction_p.
12844         (parloops_is_simple_reduction): Copy from
12845         vect_is_simple_reduction.
12846         (parloops_force_simple_reduction): Copy from
12847         vect_force_simple_reduction.
12848         (gather_scalar_reductions): Adjust.
12849         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12850         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12852 2019-09-18  Richard Biener  <rguenther@suse.de>
12854         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12855         * tree-vect-loop.c (get_initial_def_for_reduction): Make
12856         static.
12857         (vect_create_epilog_for_reduction): Remove dead code.
12859 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12861         * varasm.c (assemble_real): Generate canonical const_ints.
12863 2019-09-18  Richard Biener  <rguenther@suse.de>
12865         PR lto/91763
12866         * lto-streamer-in.c (input_eh_regions): Move EH init to
12867         lto_materialize_function.
12868         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12869         Likewise.
12871 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12873         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12874         are INTEGER_CSTs.
12876 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12878         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12879         of checking specifically for INTEGER_CST.
12881 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12883         * stor-layout.c (compute_record_mode): Operate on poly_uint64
12884         sizes instead of uhwi sizes.
12886 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12888         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12889         (add_const_value_attribute): Handle CONST_POLY_INT.
12891 2019-09-18  Martin Liska  <mliska@suse.cz>
12893         * dbgcnt.def (store_merging): New counter.
12894         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12895         Use it in store merging.
12897 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12899         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12900         function.
12901         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12902         * config/arm/arm.c (arm_sched_variable_issue): New function.
12903         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12905 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12907         * config/arm/types.md (no_reservation): New reservation.
12908         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12909         no_insn here.
12910         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12911         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12912         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12913         * config/arm/arm1020e.md (1020alu_op): Likewise.
12914         * config/arm/arm1026ejs.md (alu_op): Likewise.
12915         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12916         * config/arm/arm926ejs.md (9_alu_op): Likewise.
12917         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12918         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12919         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12920         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12921         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12922         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12923         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12924         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12925         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12926         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12927         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12928         * config/arm/fa526.md (526_alu_op): Likewise.
12929         * config/arm/fa606te.md (606te_alu_op): Likewise.
12930         * config/arm/fa626te.md (626te_alu_op): Likewise.
12931         * config/arm/fa726te.md (726te_alu_op): Likewise.
12932         * config/arm/xgene1.md (xgene1_nop): Likewise.
12934 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12936         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12937         "no_insn" to "branch".
12939 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12941         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12943 2019-09-17  Richard Biener  <rguenther@suse.de>
12945         PR debug/91772
12946         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12947         was missing generate locations only once.
12949 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
12951         PR ipa/91089
12952         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12953         option.
12954         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12955         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12956         for switch default case using range analysis information.
12958 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
12960         PR target/91749
12961         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12962         mode attributed is supported by FDPIC.
12964 2019-09-17  Richard Biener  <rguenther@suse.de>
12966         PR tree-optimization/91790
12967         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12968         use the correct DR for setting up realignment.
12970 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12972         PR target/91719
12973         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12974         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12975         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12976         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12978 2019-09-16  Jason Merrill  <jason@redhat.com>
12980         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12982 2019-09-16  Martin Liska  <mliska@suse.cz>
12984         * gimple-fold.c (or_comparisons_1): Remove rules moved
12985         to ...
12986         * match.pd: ... here.
12988 2019-09-16  Martin Liska  <mliska@suse.cz>
12990         * gimple-fold.c (or_comparisons_1): Remove rules
12991         moved to ...
12992         * match.pd: ... here.
12994 2019-09-16  Martin Liska  <mliska@suse.cz>
12996         * genmatch.c (dt_node::append_simplify): Do not print
12997         warning when we have duplicate patterns belonging
12998         to a same simplify rule.
12999         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13000         (maybe_fold_comparisons_from_match_pd): Handle
13001         tcc_comparison as a results.
13002         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13004 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13005             Qi Feng  <ffengqi@linux.ibm.com>
13007         PR middle-end/88784
13008         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
13009         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
13010         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13011         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
13012         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
13013         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13014         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13015         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
13016         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
13017         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13018         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
13019         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
13021 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13022             Martin Liska  <mliska@suse.cz>
13024         * gimple-fold.c (and_comparisons_1): Add type as first
13025         argument.
13026         (and_var_with_comparison): Likewise.
13027         (and_var_with_comparison_1): Likewise.
13028         (or_comparisons_1): Likewise.
13029         (or_var_with_comparison): Likewise.
13030         (or_var_with_comparison_1): Likewise.
13031         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13032         (maybe_fold_or_comparisons): Likewise.
13033         (maybe_fold_comparisons_from_match_pd): New.
13034         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13035         (maybe_fold_or_comparisons): Likewise.
13036         * gimple.c (gimple_size): Make it public and add num_ops argument.
13037         (gimple_init): New function.
13038         (gimple_alloc): Call gimple_init.
13039         * gimple.h (gimple_size): New.
13040         (gimple_init): Likewise.
13041         * tree-if-conv.c (fold_or_predicates): Pass type.
13042         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13043         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13044         (optimize_vec_cond_expr): Likewise.
13045         (ovce_extract_ops): Return type of conditional expression.
13046         * tree-ssanames.c (init_ssa_name_imm_use): New.
13047         (make_ssa_name_fn): Use init_ssa_name_imm_use.
13048         * tree-ssanames.h (init_ssa_name_imm_use): New.
13050 2019-09-16  Richard Biener  <rguenther@suse.de>
13052         PR tree-optimization/91756
13053         PR tree-optimization/87132
13054         * tree-ssa-alias.h (enum translate_flags): New.
13055         (get_continuation_for_phi): Use it instead of simple bool flag.
13056         (walk_non_aliased_vuses): Likewise.
13057         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13058         (get_continuation_for_phi): When looking across backedges only
13059         disallow valueization.
13060         (walk_non_aliased_vuses): Adjust.
13061         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13062         if requested.
13064 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
13066         PR middle-end/80791
13067         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13068         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13069         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13070         * target.def (have_count_reg_decr_p): New hook.
13071         (doloop_cost_for_generic): Likewise.
13072         (doloop_cost_for_address): Likewise.
13073         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13074         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13075         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13076         * doc/tm.texi: Regenerate.
13077         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13078         addend.
13079         (record_group): Init doloop_p.
13080         (add_candidate_1): Add optional argument doloop, change the handlings
13081         accordingly.
13082         (add_candidate): Likewise.
13083         (generic_predict_doloop_p): Update attribute.
13084         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13085         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13086         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13087         MIN_EXPR.
13088         (get_computation_cost): Update for doloop IV cand extra cost.
13089         (determine_group_iv_cost_cond): Update for doloop IV cand.
13090         (determine_iv_cost): Likewise.
13091         (ivopts_estimate_reg_pressure): Likewise.
13092         (may_eliminate_iv): Update handlings for doloop IV cand.
13093         (add_iv_candidate_for_doloop): New function.
13094         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13095         (iv_ca_set_no_cp): Update for doloop IV cand.
13096         (iv_ca_set_cp): Likewise.
13097         (iv_ca_dump): Dump register cost.
13098         (find_doloop_use): New function.
13099         (analyze_and_mark_doloop_use): Likewise.
13100         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13102 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13104         PR middle-end/91708
13105         * cse.c (cse_insn): Do not replace anything with a
13106         MEM.
13108 2019-09-13  Ian Lance Taylor  <iant@golang.org>
13110         * doc/invoke.texi (Optimize Options): Fix typo.
13112 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13114         PR tree-optimization/89386
13115         * config/i386/sse.md (smulhrs<mode>3): New expander.
13116         (smulhrsv4hi3): Ditto.
13118 2019-09-12  Richard Biener  <rguenther@suse.de>
13120         PR tree-optimization/91750
13121         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13122         in the type of the evolution.
13124 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
13126         PR tree-optimization/89386
13127         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13128         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13129         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13130         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13131         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13132         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13133         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13134         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13135         (su, r): Handle the unspecs above.
13136         (bt): New int attribute.
13137         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13138         * internal-fn.c (first_commutative_argument): Commutativity info for
13139         above.
13140         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13141         (umulhrs_optab): New optabs.
13142         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13143         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13144         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13145         function.
13146         (vect_vect_recog_func_ptrs): Add it.
13148 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
13150         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13151         code.
13153 2019-09-11  Nathan Sidwell  <nathan@acm.org>
13155         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13156         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13158 2019-09-11  Richard Biener  <rguenther@suse.de>
13160         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13161         * lto-wrapper.c (merge_and_complain): Pick up -g.
13162         (append_compiler_options): Likewise.
13163         (run_gcc): Re-instantiate handling -g0 at link-time.
13164         * doc/invoke.texi (flto): Document debug info generation.
13166 2019-09-11  Richard Biener  <rguenther@suse.de>
13168         PR tree-optimization/90387
13169         * vr-values.c (vr_values::extract_range_basic): After inlining
13170         simplify non-constant __builtin_constant_p to false.
13172 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
13174         PR rtl-optimization/89795
13175         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13176         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13178 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
13180         PR tree-optimization/91723
13181         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13182         instead of pointer equality when checking if argument vectypes are
13183         the same.
13185         PR middle-end/91725
13186         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13187         of get_nonzero_bits, only call it for integral types.
13189 2019-09-11  Richard Biener  <rguenther@suse.de>
13191         Revert
13192         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
13194         * match.pd: Add flag_unsafe_math_optimizations check
13195         before deciding on the widest type in a binary math operation.
13197 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13199         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13200         and CALL_REALLY_USED_REGISTERS must be defined, and that
13201         CALL_REALLY_USED_REGISTERS is preferred.
13202         * doc/tm.texi: Regenerate.
13203         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13204         (call_really_used_regs): Likewise.
13205         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13206         CALL_REALLY_USED_REGISTERS are defined.
13207         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13208         initial value if defined.
13209         (initial_call_really_used_regs): Delete.
13210         (saved_call_really_used_regs): Likewise.
13211         (CALL_REALLY_USED_REGNO_P): Likewise.
13212         (init_reg_sets): Remove handling of call_really_used_regs.
13213         (save_register_info, restore_register_info, globalize_reg): Likewise.
13214         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
13215         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
13216         outside operand_reg_set.
13217         (fix_register): Don't change call_used_regs if
13218         CALL_REALLY_USED_REGISTERS is defined.
13219         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13220         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13221         instead of call_really_used_regs.
13222         (csky_conditional_register_usage): Remove the old handling of
13223         call_used_regs and change the handling of call_really_used_regs
13224         to use call_used_regs instead.
13225         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13226         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13227         making a register fixed.
13228         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13229         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13230         instead of call_really_used_regs.
13231         (m32r_conditional_register_usage): Don't set call_used_regs when
13232         making a register fixed.
13233         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13234         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13235         instead of call_really_used_regs.
13236         (mips_interrupt_extra_call_saved_reg_p): Likewise.
13237         (mips_cfun_call_saved_reg_p): Likewise.
13238         (mips_swap_registers): Remove the old handling of call_used_regs
13239         and change the handling of call_really_used_regs to use call_used_regs
13240         instead.
13241         (mips_conditional_register_usage): Likewise.
13242         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13243         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13244         instead of call_really_used_regs.
13245         (mn10300_get_live_callee_saved_regs): Likewise.
13246         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13247         (mn10300_conditional_register_usage): Don't set call_used_regs when
13248         making a register fixed.
13249         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13250         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13251         Remove the old handling of call_used_regs and change the handling
13252         of call_really_used_regs to use call_used_regs instead.
13253         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13254         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13255         instead of call_really_used_regs.
13256         (s390_register_info_gprtofpr, s390_register_info): Likewise.
13257         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13258         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13259         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13260         (s390_conditional_register_usage): Remove the old handling of
13261         call_used_regs and change the handling of call_really_used_regs
13262         to use call_used_regs instead.
13263         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13264         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13265         (sh_fix_range, reg_unused_after): Likewise.
13266         (sh_conditional_register_usage): Remove the old handling of
13267         call_used_regs and change the handling of call_really_used_regs
13268         to use call_used_regs instead.
13269         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13270         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13271         call_used_regs when making a register fixed.
13272         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13273         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13274         call_used_regs when making a register fixed.
13275         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13276         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13277         set call_used_regs when making a register fixed.
13278         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13279         * config/visium/visium.c (visium_conditional_register_usage): Remove
13280         the old handling of call_used_regs and change the handling of
13281         call_really_used_regs to use call_used_regs instead.
13283 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13285         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13286         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13287         * reginfo.c (call_used_regs): New macro.
13289 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13291         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13292         fixed_regs test.
13293         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13294         (bpf_expand_epilogue): Likewise.
13295         * config/c6x/c6x.c (c6x_save_reg): Likewise.
13296         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13297         (ft32_expand_epilogue): Likewise.
13298         * config/i386/i386.c (ix86_save_reg): Likewise.
13299         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13300         (moxie_expand_epilogue): Likewise.
13301         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13302         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13303         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13305 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13307         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13308         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13309         instead of testing call_used_regs directly.
13310         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13311         (aarch64_components_for_bb): Likewise.
13312         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13313         * config/arc/arc.c (arc_must_save_register): Likewise.
13314         (arc_epilogue_uses): Likewise.
13315         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13316         (legitimize_pic_address, callee_saved_reg_p): Likewise.
13317         (arm_compute_save_reg0_reg12_mask): Likewise.
13318         (arm_compute_save_core_reg_mask): Likewise.
13319         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13320         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13321         (cmse_nonsecure_entry_clear_before_return): Likewise.
13322         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13323         (arm_expand_epilogue): Likewise.
13324         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13325         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13326         (_reg_unused_after): Likewise.
13327         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13328         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13329         (add_to_reg, hwloop_optimize): Likewise.
13330         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13331         (bpf_expand_epilogue): Likewise.
13332         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13333         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13334         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13335         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13336         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13337         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13338         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13339         * config/frv/frv.c (frv_stack_info): Likewise.
13340         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13341         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13342         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13343         (move_callee_saved_registers): Likewise.
13344         * config/h8300/h8300.c (byte_reg): Likewise.
13345         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13346         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13347         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13348         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13349         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13350         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13351         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13352         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13353         * config/m32c/m32c.c (need_to_save): Likewise.
13354         * config/m68k/m68k.c (m68k_save_reg): Likewise.
13355         * config/mcore/mcore.c (calc_live_regs): Likewise.
13356         * config/microblaze/microblaze.c (microblaze_must_save_register):
13357         Likewise.
13358         * config/mmix/mmix.c (mmix_local_regno): Likewise.
13359         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13360         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13361         (mmix_expand_epilogue): Likewise.
13362         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13363         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13364         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13365         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13366         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13367         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13368         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13369         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13370         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13371         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13372         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13373         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13374         * config/rl78/rl78.c (need_to_save): Likewise.
13375         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13376         (rs6000_stack_info, generate_set_vrsave): Likewise.
13377         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13378         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13379         * config/rx/rx.c (rx_get_stack_layout): Likewise.
13380         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13381         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13382         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13383         (save_local_or_in_reg_p): Likewise.
13384         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13385         (xstormy16_epilogue_uses): Likewise.
13386         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13387         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13388         * config/v850/v850.c (compute_register_save_size): Likewise.
13389         * config/vax/vax.c (vax_expand_prologue): Likewise.
13390         * config/visium/visium.c (visium_save_reg_p): Likewise.
13391         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13392         * cselib.c (cselib_process_insn): Likewise.
13393         * df-scan.c (df_get_entry_block_def_set): Likewise.
13394         * function.c (aggregate_value_p): Likewise.
13395         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13396         * ira-lives.c (process_bb_node_lives): Likewise.
13397         * ira.c (do_reload): Likewise.
13398         * lra-lives.c (process_bb_lives): Likewise.
13399         * lra-remat.c (lra_remat): Likewise.
13400         * lra.c (lra): Likewise.
13401         * postreload.c (reload_combine_recognize_pattern): Likewise.
13402         (reload_cse_move2add): Likewise.
13403         * recog.c (peep2_find_free_register): Likewise.
13404         * regrename.c (check_new_reg_p): Likewise.
13405         * reload.c (find_equiv_reg): Likewise.
13406         * reload1.c (reload, find_reg): Likewise.
13407         * sel-sched.c (init_hard_regs_data): Likewise.
13409 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13411         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13412         regs_invalidated_by_call & ~fixed_reg_set instead of
13413         call_used_or_fixed_regs & ~fixed_reg_set.
13414         * config/sh/sh.c (output_stack_adjust): Likewise.
13416 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13418         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13419         (call_used_reg_set): Delete.
13420         (call_used_or_fixed_regs): New macro.
13421         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13422         of call_used_reg_set.
13423         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13424         instead of call_used_regs.
13425         (save_call_clobbered_regs): Likewise.
13426         * cfgcleanup.c (old_insns_match_p): Likewise.
13427         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13428         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13429         Likewise.
13430         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13431         * config/sh/sh.c (output_stack_adjust): Likewise.
13432         * final.c (collect_fn_hard_reg_usage): Likewise.
13433         * ira-build.c (ira_build): Likewise.
13434         * ira-color.c (calculate_saved_nregs): Likewise.
13435         (allocno_reload_assign, calculate_spill_cost): Likewise.
13436         * ira-conflicts.c (ira_build_conflicts): Likewise.
13437         * ira-costs.c (ira_tune_allocno_costs): Likewise.
13438         * ira-lives.c (process_bb_node_lives): Likewise.
13439         * ira.c (setup_reg_renumber): Likewise.
13440         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13441         * lra-constraints.c (need_for_call_save_p): Likewise.
13442         (need_for_split_p, inherit_in_ebb): Likewise.
13443         * lra-lives.c (process_bb_lives): Likewise.
13444         * lra-remat.c (call_used_input_regno_present_p): Likewise.
13445         * postreload.c (reload_combine): Likewise.
13446         * regrename.c (find_rename_reg): Likewise.
13447         * reload1.c (reload_as_needed): Likewise.
13448         * rtlanal.c (find_all_hard_reg_sets): Likewise.
13449         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13450         * shrink-wrap.c (requires_stack_frame_p): Likewise.
13452 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13454         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13455         (no_caller_save_reg_set): Delete.
13456         * caller-save.c (init_caller_save): Don't initialize it.
13457         * ira-conflicts.c (ira_build_conflicts): Calculate
13458         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13460 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13462         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13463         (target_hard_regs::x_savable_regs): New field.
13464         (call_fixed_reg_set): Delete.
13465         (savable_regs): New macro,
13466         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13467         (init_reg_sets_1): Likewise.  Initialize savable_regs.
13468         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13469         for all registers.  Set savable_regs instead of call_fixed_reg_set.
13470         (setup_save_areas, save_call_clobbered_regs): Replace uses of
13471         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13472         * config/sh/sh.c (output_stack_adjust): Likewise.
13474 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13476         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13477         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13478         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13480 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13482         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13483         * rtlanal.c (get_call_rtx_from): Likewise.
13484         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13485         than the pattern to get_call_rtx_from.
13486         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13487         an rtx_insn * instead of an rtx.
13488         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13490 2019-09-10  Martin Liska  <mliska@suse.cz>
13492         * common.opt: Use newly added WarnRemoved.
13493         * config/aarch64/aarch64.opt: Likewise.
13494         * config/arm/arm.opt: Likewise.
13495         * config/i386/i386.opt: Likewise.
13496         * config/ia64/ia64.opt: Likewise.
13497         * config/rs6000/rs6000.opt: Likewise.
13498         * doc/options.texi: Document WarnRemoved properly.
13499         * dwarf2out.c (gen_producer_string): Handle renamed
13500         OPT_SPECIAL_warn_removed.
13501         * lto-opts.c (lto_write_options): Likewise.
13502         * lto-wrapper.c (merge_and_complain): Likewise.
13503         * opts-common.c (decode_cmdline_option): Likewise.
13504         (prune_options): Likewise.
13505         (read_cmdline_option): Likewise.
13506         (control_warning_option): Likewise.
13507         * opts.c (print_filtered_help): Likewise.
13508         * optc-gen.awk: Parse for WarnRemoved and make usage
13509         of Deprecated an error.
13510         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13512 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
13514         * doc/install.texi: Fix syntax for html generation.
13516 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
13518         PR middle-end/91680
13519         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13520         the shift type to type.
13522 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13524         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13525         FDPIC mode.
13526         (stack_protect_combined_test_insn): Likewise.
13528 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13529             Mickaël Guêné <mickael.guene@st.com>
13531         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13532         * config/arm/arm.md (FDPIC_REGNUM): New constant.
13533         (load_tp_soft_fdpic): New pattern.
13534         (load_tp_soft): Disable in FDPIC mode.
13536 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13537             Mickaël Guêné <mickael.guene@st.com>
13539         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13540         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13541         (arm_call_tls_get_addr): Add FDPIC support.
13542         (legitimize_tls_address): Likewise.
13543         (arm_emit_tls_decoration): Likewise.
13545 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13546             Mickaël Guêné <mickael.guene@st.com>
13548         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13549         support.
13550         (arm_trampoline_init): Likewise.
13551         (arm_trampoline_adjust_address): Likewise.
13552         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13554 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13555             Mickaël Guêné <mickael.guene@st.com>
13557         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13558         (legitimize_pic_address): Enforce binding rules on function
13559         pointers in FDPIC mode.
13560         (arm_assemble_integer): Likewise.
13562 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13563             Mickaël Guêné <mickael.guene@st.com>
13565         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13566         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13567         FDPIC.
13569 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13570             Mickaël Guêné <mickael.guene@st.com>
13572         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13573         field.
13575 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13576             Mickaël Guêné <mickael.guene@st.com>
13578         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13579         in FDPIC mode.
13580         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13581         new function.
13582         * config/arm/arm.c (arm_option_override): Define pic register to
13583         FDPIC_REGNUM.
13584         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13585         have no decl or go through PLT.
13586         (calculate_pic_address_constant): New function.
13587         (legitimize_pic_address): Call calculate_pic_address_constant.
13588         (arm_load_pic_register): Handle TARGET_FDPIC.
13589         (arm_is_segment_info_known): New function.
13590         (arm_pic_static_addr): Add support for FDPIC.
13591         (arm_load_function_descriptor): New function.
13592         (arm_emit_call_insn): Add support for FDPIC.
13593         (arm_assemble_integer): Add support for FDPIC.
13594         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13595         Define. (FDPIC_REGNUM): New define.
13596         * config/arm/arm.md (call): Add support for FDPIC.
13597         (call_value): Likewise.
13598         (restore_pic_register_after_call): New pattern.
13599         (untyped_call): Disable if FDPIC.
13600         (untyped_return): Likewise.
13601         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13603 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13604             Mickaël Guêné <mickael.guene@st.com>
13606         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13607         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13608         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13609         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13610         (CC1_SPEC): Use FDPIC_CC1_SPEC.
13611         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13612         * config/arm/uclinuxfdpiceabi.h: New file.
13614 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13616         * config.gcc: Handle *-*-uclinuxfdpiceabi.
13618 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13619             Mickaël Guêné  <mickael.guene@st.com>
13621         * config/arm/arm.opt: Add -mfdpic option.
13622         * doc/invoke.texi: Add documentation for -mfdpic.
13624 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13626         * expmed.c (extract_bit_field): Update function comment
13627         regarding alt_rtl.
13628         * expr.c (expand_expr_real): Update function comment
13629         regarding alt_rtl.
13630         (expand_misaligned_mem_ref): New helper function.
13631         (expand_expr_real_2): Use expand_misaligned_mem_ref.
13632         Remove duplicate assignment to "base" at case MEM_REF.
13633         Remove a shadowed variable "unsignedp" at case VCE. 
13635 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13637         * regset.h (regs_invalidated_by_call_regset): Delete.
13638         (fixed_reg_set_regset): Likewise.
13639         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13640         (fixed_reg_set_regset, persistent_obstack): Likewise.
13641         (init_reg_sets_1, globalize_reg): Update accordingly.
13642         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13643         instead of a bitmap.
13644         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13645         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13646         instead of regs_invalidated_by_call_regset.
13647         (df_lr_confluence_n, df_md_confluence_n): Likewise.
13648         * df-scan.c (df_scan_start_dump): Likewise.
13649         * dse.c (copy_fixed_regs): Likewise.
13650         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13652 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13654         * array-traits.h: New file.
13655         * coretypes.h (array_traits, bitmap_view): New types.
13656         * bitmap.h: Include "array-traits.h"
13657         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13658         (base_bitmap_view, bitmap_view): New classes.
13659         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13660         * hard-reg-set.h: Include array-traits.h.
13661         (array_traits<HARD_REG_SET>): New struct.
13662         * regset.h (IOR_REG_SET_HRS): New macro.
13663         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13664         rather than iterating over each hard register.
13665         * sched-deps.c (sched_analyze_insn): Likewise.
13666         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13668 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13670         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13671         instead of a HARD_REG_SET *.
13672         * ira-build.c (ior_hard_reg_conflicts): Likewise.
13673         (ira_build): Update call accordingly.
13674         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13676 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13678         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13679         (HARD_REG_SET::operator!=): Likewise.
13680         (hard_reg_set_equal_p): Delete.
13681         * cfgcleanup.c (old_insns_match_p): Use == instead of
13682         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13683         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13684         (add_allocno_hard_regs_to_forest): Likewise.
13685         (setup_allocno_available_regs_num): Likewise.
13686         * ira.c (setup_pressure_classes): Likewise.
13687         (setup_allocno_and_important_classes): Likewise.
13688         (setup_reg_class_relations): Likewise.
13689         * lra-lives.c (process_bb_lives): Likewise.
13690         * reg-stack.c (change_stack, convert_regs_1): Likewise.
13692 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13694         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13695         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13696         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13697         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13698         Likewise.
13699         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13700         * ira.c (setup_reg_renumber): Likewise.
13701         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13702         * regrename.c (regrename_find_superclass): Likewise.
13703         * reload1.c (find_reg): Likewise.
13705 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13707         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13708         * caller-save.c (setup_save_areas): Use "&~" instead of
13709         AND_COMPL_HARD_REG_SET.
13710         (save_call_clobbered_regs): Likewise.
13711         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13712         Likewise.
13713         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13714         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13715         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13716         * config/mips/mips.c (mips_class_max_nregs): Likewise.
13717         (mips_conditional_register_usage): Likewise.
13718         * config/sh/sh.c (output_stack_adjust): Likewise.
13719         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13720         (setup_profitable_hard_regs): Likewise.
13721         (get_conflict_and_start_profitable_regs): Likewise.
13722         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13723         (ira_build_conflicts): Likewise.
13724         * ira-costs.c (restrict_cost_classes): Likewise.
13725         (setup_regno_cost_classes_by_aclass): Likewise.
13726         * ira-lives.c (process_bb_node_lives): Likewise.
13727         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13728         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13729         (setup_allocno_and_important_classes, setup_class_translate_array)
13730         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13731         Likewise.
13732         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13733         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13734         (process_alt_operands, inherit_in_ebb): Likewise.
13735         * lra-eliminations.c (update_reg_eliminate): Likewise.
13736         * lra-lives.c (process_bb_lives): Likewise.
13737         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13738         * resource.c (find_dead_or_set_registers): Likewise.
13739         (mark_target_live_regs): Likewise.
13740         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13741         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13742         (implicit_clobber_conflict_p): Likewise.
13743         * shrink-wrap.c (requires_stack_frame_p): Likewise.
13744         (try_shrink_wrapping): Likewise.
13746 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13748         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13749         (HARD_REG_SET::operator|=): Likewise.
13750         (IOR_HARD_REG_SET): Delete.
13751         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13752         IOR_HARD_REG_SET.
13753         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13754         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13755         * final.c (collect_fn_hard_reg_usage): Likewise.
13756         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13757         * ira-build.c (merge_hard_reg_conflicts): Likewise.
13758         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13759         (propagate_some_info_from_allocno): Likewise.
13760         (copy_info_to_removed_store_destinations): Likewise.
13761         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13762         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13763         (fast_allocation): Likewise.
13764         * ira-conflicts.c (ira_build_conflicts): Likewise.
13765         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13766         (process_bb_node_lives): Likewise.
13767         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13768         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13769         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13770         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13771         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13772         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13773         (process_bb_lives): Likewise.
13774         * lra-spills.c (assign_spill_hard_regs): Likewise.
13775         * postreload.c (reload_combine): Likewise.
13776         * reginfo.c (init_reg_sets_1): Likewise.
13777         * regrename.c (merge_overlapping_regs, find_rename_reg)
13778         (merge_chains): Likewise.
13779         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13780         (find_reload_regs, finish_spills, choose_reload_regs_init)
13781         (emit_reload_insns): Likewise.
13782         * reorg.c (redundant_insn): Likewise.
13783         * resource.c (find_dead_or_set_registers, mark_set_resources)
13784         (mark_target_live_regs): Likewise.
13785         * rtlanal.c (find_all_hard_reg_sets): Likewise.
13786         * sched-deps.c (sched_analyze_insn): Likewise.
13787         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13788         (find_best_reg_for_expr): Likewise.
13789         * shrink-wrap.c (try_shrink_wrapping): Likewise.
13791 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13793         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13794         (HARD_REG_SET::operator&): Likewise.
13795         (AND_HARD_REG_SET): Delete.
13796         * caller-save.c (setup_save_areas): Use "&" instead of
13797         AND_HARD_REG_SET.
13798         (save_call_clobbered_regs): Likewise.
13799         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13800         * config/m32c/m32c.c (reduce_class): Likewise.
13801         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13802         * final.c (get_call_reg_set_usage): Likewise.
13803         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13804         (setup_left_conflict_sizes_p): Likewise.
13805         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13806         (ira_build_conflicts): Likewise.
13807         * ira-costs.c (restrict_cost_classes): Likewise.
13808         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13809         (setup_reg_class_relations): Likewise.
13810         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13811         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13812         * resource.c (find_dead_or_set_registers): Likewise.
13813         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13815 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13817         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13818         (COMPL_HARD_REG_SET): Delete.
13819         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13820         of COMPL_HARD_REG_SET.
13821         (try_rename_operands): Likewise.
13822         * config/sh/sh.c (push_regs): Likewise.
13823         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13824         * lra-constraints.c (contains_reg_p): Likewise.
13825         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13827 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13829         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13830         * caller-save.c (save_call_clobbered_regs): Use assignment instead
13831         of COPY_HARD_REG_SET.
13832         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13833         (epiphany_conditional_register_usage): Likewise.
13834         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13835         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13836         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13837         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13838         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13839         * config/mips/mips.c (mips_class_max_nregs): Likewise.
13840         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13841         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13842         * config/sh/sh.c (output_stack_adjust): Likewise.
13843         * final.c (collect_fn_hard_reg_usage): Likewise.
13844         (get_call_reg_set_usage): Likewise.
13845         * ira-build.c (ira_create_object, remove_low_level_allocnos)
13846         (ira_flattening): Likewise.
13847         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13848         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13849         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13850         (ira_reassign_pseudos): Likewise.
13851         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13852         (ira_build_conflicts): Likewise.
13853         * ira-costs.c (restrict_cost_classes): Likewise.
13854         (setup_regno_cost_classes_by_aclass): Likewise.
13855         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13856         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13857         (setup_stack_reg_pressure_class, setup_pressure_classes)
13858         (setup_allocno_and_important_classes, setup_class_translate_array)
13859         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13860         (ira_setup_eliminable_regset): Likewise.
13861         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13862         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13863         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13864         (process_alt_operands, inherit_in_ebb): Likewise.
13865         * lra-lives.c (process_bb_lives): Likewise.
13866         * lra-spills.c (assign_spill_hard_regs): Likewise.
13867         * lra.c (lra): Likewise.
13868         * mode-switching.c (new_seginfo): Likewise.
13869         * postreload.c (reload_combine): Likewise.
13870         * reg-stack.c (straighten_stack): Likewise.
13871         * reginfo.c (save_register_info, restore_register_info): Likewise.
13872         (init_reg_sets_1, record_subregs_of_mode): Likewise
13873         * regrename.c (create_new_chain, rename_chains): Likewise.
13874         * reload1.c (order_regs_for_reload, find_reg): Likewise.
13875         (find_reload_regs): Likewise.
13876         * resource.c (find_dead_or_set_registers): Likewise.
13877         (mark_target_live_regs): Likewise.
13878         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13880 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13882         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13883         (note_pattern_stores): Declare.
13884         (note_stores): Take an rtx_insn *.
13885         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13886         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13887         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13888         (note_stores): Take an rtx_insn * as argument and process
13889         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
13890         (note_pattern_stores): ...this.
13891         (find_first_parameter_load): Pass the insn rather than
13892         its pattern to note_stores.
13893         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13894         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13895         (insert_one_insn): Likewise.
13896         * combine.c (combine_instructions): Likewise.
13897         (likely_spilled_retval_p): Likewise.
13898         (try_combine): Use note_pattern_stores instead of note_stores.
13899         (record_dead_and_set_regs): Pass the insn rather than its pattern
13900         to note_stores.
13901         (reg_dead_at_p): Likewise.
13902         * config/bfin/bfin.c (workaround_speculation): Likewise.
13903         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
13904         rather than an rtx.
13905         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13906         instead of note_stores.
13907         (frv_optimize_membar_local): Pass the insn rather than its pattern
13908         to note_stores.
13909         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13910         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13911         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13912         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13913         (mips_reorg_process_insns): Likewise.
13914         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13915         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
13916         rather than rtxes.
13917         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13918         its pattern to note_stores.
13919         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13920         of note_stores.
13921         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13922         the insn to note_stores.
13923         (prescan_insns_for_dce): Update call accordingly.
13924         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13925         to note_stores.
13926         * df-problems.c (can_move_insns_across): Likewise.
13927         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13928         * function.c (assign_parm_setup_reg): Likewise.
13929         * gcse-common.c (record_last_mem_set_info_common): Likewise.
13930         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13931         (single_set_gcse): Likewise.
13932         * ira.c (validate_equiv_mem): Likewise.
13933         (update_equiv_regs): Use note_pattern_stores rather than note_stores
13934         for no_equiv.
13935         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13936         pattern to note_stores.
13937         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13938         * loop-iv.c (simplify_using_initial_values): Likewise.
13939         * mode-switching.c (optimize_mode_switching): Likewise.
13940         * optabs.c (emit_libcall_block_1): Likewise.
13941         (expand_atomic_compare_and_swap): Likewise.
13942         * postreload-gcse.c (load_killed_in_block_p): Likewise.
13943         (record_opr_changes): Likewise.  Remove explicit handling of
13944         CALL_INSN_FUNCTION_USAGE.
13945         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13946         * regcprop.c (kill_clobbered_values): Likewise.
13947         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13948         to note_stores.
13949         * regrename.c (build_def_use): Likewise.
13950         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
13951         for mark_not_eliminable.
13952         (reload_as_needed): Pass the insn rather than its pattern
13953         to note_stores.
13954         (emit_output_reload_insns): Likewise.
13955         * resource.c (mark_target_live_regs): Likewise.
13956         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13957         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13958         instead of note_stores.
13959         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13960         its pattern to note_stores.
13961         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13962         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13964 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13966         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13967         than a #define.  Use a structure rather than an array as the
13968         fallback definition.  Remove special cases for low array sizes.
13969         (const_hard_reg_set): New typedef.
13970         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13971         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13972         (hard_reg_set_empty_p): Likewise.
13973         (SET_HARD_REG_BIT): Use a function rather than a macro to
13974         handle the case in which HARD_REG_SET is a structure.
13975         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13976         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13977         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13978         (IOR_COMPL_HARD_REG_SET): Likewise.
13979         (hard_reg_set_iterator::pset): Constify the pointer target.
13980         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13981         of a "const HARD_REG_SET".  Update the handling of non-integer
13982         HARD_REG_SETs.
13983         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13984         * reload.h: Likewise.
13985         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13986         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13987         of a "const HARD_REG_SET".
13988         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13989         (range_in_hard_reg_set_p): Likewise.
13990         * ira-costs.c (restrict_cost_classes): Likewise.
13991         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13992         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13993         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13994         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13995         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13996         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13997         take an unsigned int and open-code the HARD_REG_SET operations.
13999 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14001         * Makefile.in (OBJS): Remove bt-load.o.
14002         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14003         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14004         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14005         document that the option no longer does anything.
14006         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14007         * target.def (branch_target_register_class): Delete.
14008         (branch_target_register_callee_saved): Likewise.
14009         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14010         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14011         * doc/tm.texi: Regenerate.
14012         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14013         (make_pass_branch_target_load_optimize2): Likewise.
14014         * passes.def (pass_branch_target_load_optimize1): Likewise.
14015         (pass_branch_target_load_optimize2): Likewise.
14016         * targhooks.h (default_branch_target_register_class): Likewise.
14017         * targhooks.c (default_branch_target_register_class): Likewise.
14018         * opt-suggestions.c (test_completion_valid_options): Remove
14019         -fbtr-bb-exclusive from the list of test options.
14020         * bt-load.c: Remove.
14022 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
14024         * match.pd: Add flag_unsafe_math_optimizations check
14025         before deciding on the widest type in a binary math operation.
14027 2019-09-09  Martin Liska  <mliska@suse.cz>
14029         * config/i386/i386.opt: Update comment of removed
14030         options that are preserved only for backward
14031         compatibility.
14033 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
14035         PR target/87853
14036         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14037         instead of __v16qs.
14039         PR target/91704
14040         * config/i386/avxintrin.h (__v32qs): New typedef.
14041         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14042         instead of __v32qi.
14044 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14046         * doc/invoke.texi (Option Summary): Cover eBPF.
14047         (eBPF Options): New section.
14048         * doc/extend.texi (BPF Built-in Functions): Likewise.
14049         (BPF Kernel Helpers): Likewise.
14051 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14053         * config.gcc: Support for bpf-*-* targets.
14054         * common/config/bpf/bpf-common.c: New file.
14055         * config/bpf/t-bpf: Likewise.
14056         * config/bpf/predicates.md: Likewise.
14057         * config/bpf/constraints.md: Likewise.
14058         * config/bpf/bpf.opt: Likewise.
14059         * config/bpf/bpf.md: Likewise.
14060         * config/bpf/bpf.h: Likewise.
14061         * config/bpf/bpf.c: Likewise.
14062         * config/bpf/bpf-protos.h: Likewise.
14063         * config/bpf/bpf-opts.h: Likewise.
14064         * config/bpf/bpf-helpers.h: Likewise.
14065         * config/bpf/bpf-helpers.def: Likewise.
14067 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14069         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14070         indirect_calls.
14072 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14074         * opt-functions.awk (integer_range_info): Make sure values are in
14075         numeric context before operating with them.
14077 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
14079         * genemit.c (gen_split): Print the filename and line number where the
14080         splitter (or peephole2) was defined, to the dump file.
14082 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
14084         PR tree-optimization/91665
14085         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14086         incompatible with the type of PHI result.
14088 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14090         PR target/91684
14091         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14092         gen_unaligned_storedi for 4-byte aligned addresses.
14094 2019-09-06  Jim Wilson  <jimw@sifive.com>
14096         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14097         change.
14099 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14101         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14103 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14105         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14106         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14108 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14110         PR target/91654
14111         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14112         cost of SSE->integer and integer->SSE moves from 2 to 6.
14113         (core_cost): Ditto.
14115 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
14117         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14118         before testing TYPE_TRANSPARENT_AGGR.
14119         * calls.c (initialize_argument_information, load_register_parameters):
14120         Likewise.
14122 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
14124         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14125         high regs.
14126         (cmp_ior): Likewise.
14128 2019-09-06  Martin Liska  <mliska@suse.cz>
14130         * doc/match-and-simplify.texi: Separate tuples with ;.
14132 2019-09-06  Martin Liska  <mliska@suse.cz>
14134         PR c++/91125
14135         * Makefile.in: Remove tlink.o.
14136         * collect2.c (do_link): New function isolated
14137         from do_tlink.
14138         (main): Use.
14139         * collect2.h (do_tlink): Remove declaration of do_tlink.
14140         * doc/extend.texi: Remove documentation of -frepo.
14141         * doc/invoke.texi: Likewise.
14142         * doc/sourcebuild.texi: Remove cleanup-repo-files.
14143         * tlink.c: Remove.
14145 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14146             Jim Wilson  <jimw@sifive.com>
14148         PR target/91635
14149         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14150         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14151         paradoxical_subreg_p (operands[0]).
14152         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14153         use as intermediate value.
14155 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
14157         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14158         (sync_compare_and_swap<mode>_insn): Likewise.
14160 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14162         PR middle-end/91615
14163         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14164         without movmisalign optab.
14166 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14168         PR middle-end/91001
14169         PR middle-end/91105
14170         PR middle-end/91106
14171         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14172         types, use type of their first field instead of type of
14173         args[i].tree_value.
14175 2019-09-05  Richard Biener  <rguenther@suse.de>
14177         PR rtl-optimization/91656
14178         * postreload-gcse.c (record_last_mem_set_info): Revert addition
14179         of early out.
14181 2019-09-05  Richard Biener  <rguenther@suse.de>
14183         PR middle-end/90501
14184         * tree-inline.c (declare_return_variable): Mark the return
14185         slot as addressable after building an address of it.
14187 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
14189         * doc/install.texi: Update and clarify requirements to build GNAT.
14191 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
14193         PR middle-end/91577
14194         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14195         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14196         call to be in memory.
14197         (pass_expand::execute): Call discover_nonconstant_array_refs before
14198         setting currently_expanding_to_rtl.
14200 2019-09-04  Caroline Tice  <cmtice@google.com>
14202         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14203         specified together.
14205 2019-09-04  Marek Polacek  <polacek@redhat.com>
14207         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14209 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14211         PR target/32413
14212         * config/i386/i386.c (inline_secondary_memory_needed): Return true
14213         for QI and HImode moves between SSE and general registers.
14215 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14217         PR c/78736
14218         * doc/invoke.texi: Document -Wenum-conversion.
14220 2019-09-04  Richard Biener  <rguenther@suse.de>
14222         PR rtl-optimization/36262
14223         * postreload-gcse.c: Include intl.h and gcse.h.
14224         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14225         to avoid linear list walk.
14226         (record_last_mem_set_info): Gate off if not computing transparentness.
14227         (get_bb_avail_insn): If transparentness isn't computed give up
14228         early.
14229         (gcse_after_reload_main): Skip compute_transp and extended PRE
14230         if gcse_or_cprop_is_too_expensive says so.
14232 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14234         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14235         noinit section.
14236         (msp430_select_section): Handle decls with the "noinit" attribute with
14237         default_elf_select_section.
14238         Handle SECCAT_RODATA_MERGE_* section types with
14239         default_elf_select_section.
14240         Add comments about handling of unsupported section types.
14241         (msp430_section_type_flags): Remove handling of the noinit section.
14243 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14245         * config/msp430/msp430.c (msp430_attr): Remove warnings about
14246         conflicting msp430-specific attributes.
14247         (msp430_section_attr): Likewise.
14248         Add warnings about conflicts with generic "noinit" and "section"
14249         attributes.
14250         Fix grammar in -mlarge error message.
14251         (msp430_data_attr): Rename to msp430_persist_attr.
14252         Add warnings about conflicts with generic "noinit" and "section"
14253         attributes.
14254         Add warning for when variable is not initialized.
14255         Chain conditionals which prevent the attribute being added.
14256         (ATTR_EXCL): New helper.
14257         (attr_reent_exclusions): New exclusion table.
14258         (attr_naked_exclusions): Likewise.
14259         (attr_crit_exclusions): Likewise.
14260         (attr_lower_exclusions): Likewise.
14261         (attr_upper_exclusions): Likewise.
14262         (attr_either_exclusions): Likewise.
14263         (attr_persist_exclusions): Likewise.
14264         (msp430_attribute_table): Update with exclusion rules.
14265         (msp430_output_aligned_decl_common): Don't output common symbol if decl
14266         has a section.
14268 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14270         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14271         (msp430_handle_generic_attribute): New function.
14272         * doc/tm.texi: Regenerate.
14273         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14274         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14275         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14276         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14278 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
14280         PR tree-optimization/91504
14281         * match.pd: Add ((~a & b) ^a) --> (a | b).
14283 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
14285         PR target/91604
14286         * config/i386/i386-expand.c (split_double_mode): If there is more than
14287         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14288         already split matching MEM operand instead of calling adjust_address
14289         again.
14291 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
14293         * config.gcc: Obsolete spu target.  Remove references to spu.
14294         * configure.ac: Remove references to spu.
14295         * configure: Regenerate.
14296         * config/spu/: Remove directory.
14297         * common/config/spu/: Remove directory.
14299         * doc/extend.texi: Remove references to spu.
14300         * doc/invoke.texi: Likewise.
14301         * doc/md.texi: Likewise.
14302         * doc/sourcebuild.texi: Likewise.
14304 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14306         PR middle-end/91603
14307         PR middle-end/91612
14308         PR middle-end/91613
14309         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14310         and SSA_NAME referring to CONSTANT_P correctly.
14312 2019-09-03  Richard Biener  <rguenther@suse.de>
14314         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14315         (vn_nary_op_insert): Likewise.
14316         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14317         (vn_nary_op_lookup): Likewise.
14318         (vn_nary_op_insert): Likewise.
14320 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
14322         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14323         (*op0, 1) instead of XEXP (*op1, 0).
14325 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14327         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14328         (aarch64_fjcvtzs): New define_insn.
14329         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14330         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14331         Add AARCH64_JSCVT.
14332         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14333         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14334         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14335         __ARM_FEATURE_JCVT where appropriate.
14336         * config/aarch64/arm_acle.h (__jcvt): Define.
14338 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14340         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14341         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14342         (aarch64_<frintnzs_op><mode>): New define_insn.
14343         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14344         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14345         __ARM_FEATURE_FRINT when appropriate.
14346         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14347         frint32x, frint64z, frint64x.
14348         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14349         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14350         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14351         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14352         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14353         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14354         * config/aarch64/iterators.md (VSFDF): Define.
14355         (FRINTNZX): Likewise.
14356         (frintnzs_op): Likewise.
14358 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
14360         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14361         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14362         Cortex-A34.
14363         * config/aarch64/aarch64-tune.md: Regenerated.
14364         * doc/invoke.texi: Document the new processors.
14366 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14368         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14369         string.
14370         (ssbs): Likewise.
14371         (sve2): Likewise.
14372         (sve2-sm4): Likewise.
14373         (sveaes): Likewise.
14374         (svesha3): Likewise.
14375         (svebitperm): Likewise.
14377 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
14378             Richard Biener  <rguenther@suse.de>
14380         PR tree-optimization/91597
14381         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14382         BIT_AND_EXPR optimization for pointers, even if both operand
14383         ranges don't include NULL, the result can be NULL.
14385 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14387         PR middle-end/91605
14388         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14389         (non_mem_decl_p): ...this.
14390         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14391         (expand_assignment): Call mem_ref_referes_to_non_mem_p
14392         unconditionally as before.
14394 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
14396         PR target/91323
14397         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14398         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
14399         * tree.def (LTGT_EXPR): Likewise.
14400         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14402 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
14404         PR go/91617
14405         * fold-const.c (range_check_type): For enumeral and boolean
14406         type, pass 1 to type_for_size langhook instead of
14407         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
14408         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14409         (build_range_check): Don't call unsigned_type_for for pointer types.
14410         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14411         range_check_type result.
14413 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
14415         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14416         (replace_ref): Do not replace a chain of only two candidates which are
14417         valid memory references.
14419 2019-09-02  Martin Liska  <mliska@suse.cz>
14421         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14422         Bail out when we'll end up with the same number of clusters as
14423         at the beginning.
14424         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14425         (jump_table_cluster::can_be_handled): Remove the guard
14426         as it's already handled in ::is_enabled.  Allocate output
14427         after early bail out.
14429 2019-09-02  Martin Liska  <mliska@suse.cz>
14431         PR gcov-profile/91601
14432         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14433         (path_contains_zero_or_negative_cycle_arc): ... this and handle
14434         also negative edges.
14435         (circuit): Handle also negative edges as they can happen
14436         in some situations.
14438 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
14440         PR target/91472
14441         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14442         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14443         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14445 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
14447         PR middle-end/91623
14448         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14449         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14450         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14451         zero vector.
14453         PR lto/91572
14454         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14455         GIMPLE_ASM TREE_LIST operands.
14457 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
14459         * doc/generic.texi (Unary and Binary Expressions): Mark up
14460         an instance of TYPE_MIN.
14462 2019-08-31  Stafford Horne  <shorne@gmail.com>
14464         * config/or1k/constraints.md (t): New constraint.
14465         * config/or1k/or1k.h (GOT_REGS): New register class.
14466         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14468 2019-08-30  Jim Wilson  <jimw@sifive.com>
14470         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14471         and -fpic and -mplt then disable -msave-restore and warn.
14473 2019-08-30  Martin Sebor  <msebor@redhat.com>
14475         PR middle-end/91599
14476         * tree-ssa-strlen.c (handle_store): Use a fallback location if
14477         the statement doesn't have one.
14478         * gimple-pretty-print.c (percent_G_format): Same.
14480         PR middle-end/91584
14481         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14482         before using them to validate MEM_REF offset.
14484 2019-08-30  Marek Polacek  <polacek@redhat.com>
14486         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14488 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14490         * config/arm/arm.md (unaligned_loaddi,
14491         unaligned_storedi): New unspec insn patterns.
14492         * config/arm/neon.md (unaligned_storev8qi): Likewise.
14493         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14494         and unaligned_storedi for 4-byte aligned memory.
14495         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14496         4-byte aligned memory.
14498 2019-08-30  Martin Jambor  <mjambor@suse.cz>
14500         tree-optimization/91579
14501         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14502         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14503         appropriate.
14504         (arg_needs_copy_p): Removed.
14505         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14506         arg_needs_copy_p.
14507         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
14509 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14511         * config/i386/i386-features.c
14512         (general_scalar_chain::compute_convert_gain):
14513         Correct cost for double-word shifts.
14514         (general_scalar_to_vector_candidate_p): Reject count operands
14515         greater or equal to mode bitsize.
14517 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14519         * config/i386/i386.c (inline_secondary_memory_needed): Return true
14520         for moves between SSE and non-general registers and between
14521         mask and non-general registers.
14522         (ix86_register_move_cost): Remove stalled comment.
14524 2019-08-29  Richard Biener  <rguenther@suse.de>
14526         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14527         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14529 2019-08-29  Richard Biener  <rguenther@suse.de>
14531         PR bootstrap/91580
14532         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14533         Do not emit scalar copies for debug-insns, instead replace
14534         their uses with the reg copy used in the chain or reset them
14535         if there is a reaching definition outside of the chain as well.
14537 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
14539         PR target/91560
14540         * config/i386/i386-expand.c (expand_vec_perm_movs,
14541         expand_vec_perm_blend, expand_vec_perm_vpermil,
14542         expand_vec_perm_pshufb, expand_vec_perm_1,
14543         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14544         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14545         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14546         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14547         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14548         comments - replace ix86_expand_vec_perm_builtin_1 with
14549         ix86_expand_vec_perm_const_1.
14550         (expand_vec_perm2_vperm2f128_vblend): New function.
14551         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
14552         expand_vec_perm2_vperm2f128_vblend as last resort.
14553         (canonicalize_perm): Formatting fix.
14555         PR tree-optimization/91351
14556         * tree-cfg.c (generate_range_test): Use range_check_type instead of
14557         unsigned_type_for.
14558         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14559         range_check_type returns NULL.
14560         * tree-switch-conversion.c (switch_conversion::build_one_array):
14561         Use range_check_type instead of unsigned_type_for, don't perform
14562         linear opt if it returns NULL.
14563         (bit_test_cluster::find_bit_tests): Formatting fix.
14564         (bit_test_cluster::emit): Use range_check_type instead of
14565         unsigned_type_for.
14566         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14567         returns NULL.
14569 2019-08-29  Richard Biener  <rguenther@suse.de>
14571         PR tree-optimization/91568
14572         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14573         (vect_update_max_nunits): Add overload for poly_uint64.
14574         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14575         (vect_build_slp_tree): Record max_nunits into the subtree
14576         and merge it upwards.
14577         (vect_print_slp_tree): Print max_nunits.
14579 2019-08-28  Marek Polacek  <polacek@redhat.com>
14581         Implement P1152R4: Deprecating some uses of volatile.
14582         PR c++/91361
14583         * doc/invoke.texi: Document -Wvolatile.
14585 2019-08-28  Marek Polacek  <polacek@redhat.com>
14587         PR c++/91360 - Implement C++20 P1143R2: constinit.
14588         * doc/invoke.texi: Document -Wc++20-compat.
14590 2019-08-28  Martin Sebor  <msebor@redhat.com>
14592         PR tree-optimization/91457
14593         * builtins.c (component_size): New function.
14594         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14595         * builtins.h (compute_objsize): Add argument.
14596         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14597         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14598         (vrp_prop::check_mem_ref): Same.
14599         (vrp_prop::search_for_addr_array): Set no-warning bit.
14600         (check_array_bounds): Same.
14602 2019-08-28  Martin Sebor  <msebor@redhat.com>
14604         PR driver/80545
14605         * opts-common.c (option_enabled): Correct checking for language
14606         options.
14608 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14610         * config/i386/i386.c (ix86_register_move_cost): Do not
14611         limit the cost of moves to/from XMM register to minimum 8.
14613 2019-08-28  Martin Jambor  <mjambor@suse.cz>
14615         PR ipa/91468
14616         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14617         checking assert a normal assert to test it really is redundant.
14618         * ipa-prop.c (compute_complex_assign_jump_func): Removed
14619         redundant test.
14620         (update_jump_functions_after_inlining): Removed combining unary
14621         arithmetic operations with an ancestor jump function.
14622         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14623         instead of t.
14625 2019-08-28  Richard Biener  <rguenther@suse.de>
14627         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14628         add the MD problem.
14630 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14631             Richard Biener  <rguenther@suse.de>
14633         * expr.c (expand_assignment): Handle misaligned DECLs.
14634         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14635         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14636         too.
14637         (assign_parm_setup_stack): Allocate properly aligned stack slots.
14638         * varasm.c (build_constant_desc): Align constants of misaligned types.
14639         * config/arm/predicates.md (aligned_operand): New predicate.
14640         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14641         aligned_operand to check restrictions on memory addresses.
14642         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14643         * config/arm/vec-common.md (mov<VALL>): Likewise.
14645 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
14647         PR libgomp/91530
14648         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14649         V_128 iterator instead of VI_128.
14651 2019-08-28  Martin Liska  <mliska@suse.cz>
14653         PR tree-optimization/90970
14654         * builtins.c (check_access): Remove assignment to maxread
14655         as it hasn't been used since when it was introduced in r255755.
14657 2019-08-27  Martin Sebor  <msebor@redhat.com>
14659         PR tree-optimization/91567
14660         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14661         of unknown strings.
14662         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14663         to PTRDIFF_MAX - 2.
14665 2019-08-27  Jeff Law  <law@redhat.com>
14667         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14668         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14670 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14672         PR target/91528
14673         * config/i386/i386-features.c (convert_scalars_to_vector):
14674         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14675         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
14676         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
14677         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14679 2019-08-27  Richard Biener  <rguenther@suse.de>
14681         * config/i386/i386-features.h
14682         (general_scalar_chain::~general_scalar_chain): Add.
14683         (general_scalar_chain::insns_conv): New bitmap.
14684         (general_scalar_chain::n_sse_to_integer): New.
14685         (general_scalar_chain::n_integer_to_sse): Likewise.
14686         (general_scalar_chain::make_vector_copies): Adjust signature.
14687         * config/i386/i386-features.c
14688         (general_scalar_chain::general_scalar_chain): Outline,
14689         initialize new members.
14690         (general_scalar_chain::~general_scalar_chain): New.
14691         (general_scalar_chain::mark_dual_mode_def): Record insns
14692         we need to insert conversions at and count them.
14693         (general_scalar_chain::compute_convert_gain): Account
14694         for conversion instructions at chain boundary.
14695         (general_scalar_chain::make_vector_copies): Generate a single
14696         copy for a def by a specific insn.
14697         (general_scalar_chain::convert_registers): First populate
14698         defs_map, then make copies at out-of chain insns.
14700 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
14702         * config/arm/arm.md (stack_protect_set_insn): Add security-related
14703         comment.
14704         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14706 2019-08-27  Martin Liska  <mliska@suse.cz>
14708         * cgraph.c (cgraph_node::remove): Remove dead assignment before
14709         loop.
14710         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14711         Enclose in anonymous namespace.
14712         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14713         hard_register initialization in braces.
14714         * tree-vrp.h (value_range_base::supports_type_p): Return false
14715         for function with boolean return type.
14717 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14719         * config/i386/i386.c (emit_i387_cw_initialization)
14720         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14722 2019-08-26  Martin Sebor  <msebor@redhat.com>
14724         PR c++/83431
14725         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14726         (sprintf_dom_walker): Remove class.
14727         (get_int_range): Make argument const.
14728         (directive::fmtfunc, directive::set_precision): Same.
14729         (format_none): Same.
14730         (build_intmax_type_nodes): Same.
14731         (adjust_range_for_overflow): Same.
14732         (format_floating): Same.
14733         (format_character): Same.
14734         (format_string): Same.
14735         (format_plain): Same.
14736         (get_int_range): Cast away constness.
14737         (format_integer): Same.
14738         (get_string_length): Call get_range_strlen_dynamic.  Handle
14739         null lendata.maxbound.
14740         (should_warn_p): Adjust argument scope qualifier.
14741         (maybe_warn): Same.
14742         (format_directive): Same.
14743         (parse_directive): Same.
14744         (is_call_safe): Same.
14745         (try_substitute_return_value): Same.
14746         (sprintf_dom_walker::handle_printf_call): Rename...
14747         (handle_printf_call): ...to this.  Initialize target to host charmap
14748         here instead of in pass_sprintf_length::execute.
14749         (struct call_info): Make global.
14750         (sprintf_dom_walker::compute_format_length): Make global.
14751         (sprintf_dom_walker::handle_gimple_call): Same.
14752         * passes.def (pass_sprintf_length): Replace with pass_strlen.
14753         * print-rtl.c (print_pattern): Reduce the number of spaces to
14754         avoid -Wformat-truncation.
14755         * tree-pass.h (make_pass_warn_printf): New function.
14756         * tree-ssa-strlen.c (strlen_optimize): New variable.
14757         (get_string_length): Add comments.
14758         (get_range_strlen_dynamic): New function.
14759         (check_and_optimize_call): New function.
14760         (handle_integral_assign): New function.
14761         (strlen_check_and_optimize_stmt): Factor code out into
14762         strlen_check_and_optimize_call and handle_integral_assign.
14763         (strlen_dom_walker::evrp): New member.
14764         (strlen_dom_walker::before_dom_children): Use evrp member.
14765         (strlen_dom_walker::after_dom_children): Use evrp member.
14766         (printf_strlen_execute): New function.
14767         (pass_strlen::gate): Update to handle printf calls.
14768         (dump_strlen_info): New function.
14769         (pass_data_warn_printf): New variable.
14770         (pass_warn_printf): New class.
14771         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14772         (handle_printf_call): Same.
14773         * tree-vrp.c (value_range_base::type): Adjust assertion.
14774         * vr-values.c (vr_values::update_value_range): Use type of the first
14775         argument rather than the second.
14777 2019-08-26  Richard Biener  <rguenther@suse.de>
14779         * config/i386/i386-features.c (general_remove_non_convertible_regs):
14780         Remove.
14781         (convert_scalars_to_vector): Do not call it.
14783 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
14784             Uros Bizjak  <ubizjak@gmail.com>
14786         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14787         CASE_MATHFN_FLOATN for roundeven.
14788         * config/i386/i386.c (ix86_i387_mode_needed): Add case
14789         I387_ROUNDEVEN.
14790         (ix86_mode_needed): Likewise.
14791         (ix86_mode_after): Likewise.
14792         (ix86_mode_entry): Likewise.
14793         (ix86_mode_exit): Likewise.
14794         (ix86_emit_mode_set): Likewise.
14795         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14796         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14797         (ix86_entity): Add I387_ROUNDEVEN.
14798         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14799         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14800         (define_int_iterator): Likewise.
14801         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14802         (define_constant): Define ROUND_ROUNDEVEN mode.
14803         (define_attr): Add roundeven mode for i387_cw.
14804         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14805         * internal-fn.def (ROUNDEVEN): New builtin function.
14806         * optabs.def (roundeven_optab): New optab.
14808 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
14810         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14811         for ROUNDEVEN.
14812         * builtins.def: Added function definitions for roundeven function
14813         variants.
14814         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14815         function call.  Adjust condition for floor, ceil, trunc and round.
14816         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14817         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14818         (integer_valued_real_call_p): Added case for roundeven function.
14819         * real.c (is_even): New function. Returns true if real number is even,
14820         otherwise returns false.
14821         (is_halfway_below): New function. Returns true if real number is
14822         halfway between two integers, else return false.
14823         (real_roundeven): New function. Round real number to nearest integer,
14824         rounding halfway cases towards even.
14825         * real.h (real_value): Added descriptive comments.  Added function
14826         declaration for roundeven function.
14827         * doc/extend.texi (Other Builtins): List roundeven variants among
14828         functions which can be handled as builtins.
14830 2019-08-26  Richard Biener  <rguenther@suse.de>
14832         PR target/91522
14833         PR target/91527
14834         * config/i386/i386-features.h (general_scalar_chain::defs_map):
14835         New member.
14836         (general_scalar_chain::replace_with_subreg): Remove.
14837         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14838         (general_scalar_chain::convert_reg): Adjust signature.
14839         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14840         iterate over all defs of a reg.
14841         (general_scalar_chain::replace_with_subreg): Remove.
14842         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14843         (general_scalar_chain::make_vector_copies): Populate defs_map,
14844         place copy only after defs that are used as vectors in the chain.
14845         (general_scalar_chain::convert_reg): Emit a copy for a specific
14846         def in a specific instruction.
14847         (general_scalar_chain::convert_op): All reg uses are converted here.
14848         (general_scalar_chain::convert_insn): Emit copies for scalar
14849         uses of defs here.  Replace uses with the copies we created.
14850         Replace and convert the def.  Adjust REG_DEAD notes, remove
14851         REG_EQUIV/EQUAL notes.
14852         (general_scalar_chain::convert_registers): Only handle copies
14853         into the chain here.
14855 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
14857         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14859 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
14861         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14862         Add nop_convert case.
14863         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14864         Fold all statements if requested.
14865         * tree-ssa-propagate.h (class substitute_and_fold_engine):
14866         Allow to fold all statements.
14867         * tree-vrp.c (class vrp_folder):
14868         Let substitute_and_fold_engine fold all statements.
14870 2019-08-26  Richard Biener  <rguenther@suse.de>
14872         PR tree-optimization/91526
14873         * passes.def: Note that after late FRE we do TODO_update_address_taken.
14874         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14875         TODO_update_address_taken.
14877 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
14879         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14880         __STDC_HOSTED__.
14882 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
14884         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14885         machine mode for unspec_volatile operand.
14887 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
14889         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14890         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14891         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14892         (prefer_neon_for_64bits): Remove.
14893         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14894         (tune_params): Remove PREF_NEON_64_FALSE uses.
14895         (arm_option_override): Remove prefer_neon selection code.
14896         (arm_print_tune_info): Remove prefer_neon_for_64bits.
14897         * config/arm/arm-protos.h (tune_params): Remove
14898         prefer_neon_for_64bits.
14899         (prefer_neon_for_64bits): Remove.
14901 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
14903         PR pch/61250
14904         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14905         and issue any diagnostics needed before collecting the pre-PCH
14906         state.
14908 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
14910         PR middle-end/91283
14911         * common.opt (fexcess-precision=): Add Optimization flag.  Use
14912         flag_excess_precision variable instead of
14913         flag_excess_precision_cmdline.
14914         * flags.h (class target_flag_state): Remove x_flag_excess_precision
14915         member.
14916         (flag_excess_precision): Don't define.
14917         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14918         flag_excess_precision_cmdline.  Remove comment.
14919         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14920         and x_flag_excess_precision instead of
14921         frontend_set_flag_excess_precision_cmdline and
14922         x_flag_excess_precision_cmdline.
14923         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14924         x_flag_excess_precision_cmdline.
14925         * toplev.c (init_excess_precision): Remove.
14926         (lang_dependent_init_target): Don't call it.
14928 2019-08-23  Martin Liska  <mliska@suse.cz>
14930         * lto-wrapper.c (run_gcc): When setting jobserver
14931         set also parallel to 1.  This was done so before r273908.
14933 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
14935         * config/arm/arm-cpus.in (cortex-m35p): New entry.
14936         (cortex-a76ae): Likewise.
14937         (cortex-a77): Likewise
14938         * config/arm/arm-tables.opt: Regenerate.
14939         * config/arm/arm-tune.md: Likewise.
14940         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14941         cortex-a77 CPU options.
14943 2019-08-23  Martin Liska  <mliska@suse.cz>
14945         * profile.c (instrument_values): Do not set
14946         0 as last argument.
14947         * tree-profile.c (gimple_gen_interval_profiler): Remove
14948         last argument.
14949         (gimple_gen_pow2_profiler): Likewise.
14950         (gimple_gen_topn_values_profiler): Likewise.
14951         (gimple_gen_ic_profiler): Likewise.
14952         (gimple_gen_time_profiler): Likewise.
14953         (gimple_gen_average_profiler): Likewise.
14954         (gimple_gen_ior_profiler): Likewise.
14955         * value-prof.c (dump_histogram_value): Use default
14956         in switch statement instead of HIST_TYPE_MAX.
14957         (stream_in_histogram_value): Likewise.
14958         (gimple_duplicate_stmt_histograms): Do not
14959         use NULL for implicitly set arguments.
14960         (gimple_divmod_values_to_profile): Do not use
14961         reserve+quick_push.
14962         (gimple_indirect_call_to_profile): Likewise.
14963         (gimple_find_values_to_profile): Use implicit
14964         function call arguments.
14965         * value-prof.h (gimple_alloc_histogram_value):
14966         Set default values.
14967         (gimple_gen_interval_profiler): Remove last argument.
14968         (gimple_gen_pow2_profiler): Likewise.
14969         (gimple_gen_topn_values_profiler): Likewise.
14970         (gimple_gen_ic_profiler): Likewise.
14971         (gimple_gen_time_profiler): Likewise.
14972         (gimple_gen_average_profiler): Likewise.
14973         (gimple_gen_ior_profiler): Likewise.
14975 2019-08-22  Martin Sebor  <msebor@redhat.com>
14977         PR middle-end/91490
14978         * builtins.c (c_strlen): Rename argument and introduce new local.
14979         Set no-warning bit on original argument.
14980         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14981         Fold empty and zero constructors into empty strings.
14982         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14983         for missing initializers.
14984         * tree.c (build_string_literal): Handle optional argument.
14985         * tree.h (build_string_literal): Add defaulted argument.
14986         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14987         no-warning bit on original expression.
14989 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
14991         PR target/91481
14992         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14993         and UNSPEC_DARN_RAW.
14994         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14995         UNSPECV_DARN_RAW.
14996         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14997         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14998         (darn): Use an unspec_volatile, and UNSPECV_DARN.
15000 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
15002         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15003         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15004         * config/rs6000/rs6000.md (unspec): ... here.
15005         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15006         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15007         cmpeqb, *cmpeqb_internal): Delete, move to...
15008         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15009         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15010         cmpeqb, *cmpeqb_internal): ... here.
15012 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15014         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15015         intrinsics if __ARM_FP.
15016         Use __ARM_FEATURE_CRC32 ifdef guard.
15018 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15020         * config/arm/arm.md (neon_for_64bits): Remove.
15021         (avoid_neon_for_64bits): Remove.
15022         (arm_adddi3): Always split early.
15023         (arm_subdi3): Always split early.
15024         (negdi2): Remove Neon expansion.
15025         (split zero_extend): Split before reload.
15026         (split sign_extend): Split before reload.
15028 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15030         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15031         (qhs_extenddi_cstr): Likewise.
15032         * config/arm/arm.md (ashldi3): Always expand early.
15033         (ashlsi3): Likewise.
15034         (ashrsi3): Likewise.
15035         (zero_extend<mode>di2): Remove Neon variants.
15036         (extend<mode>di2): Likewise.
15037         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15038         (signed_shift_di3_neon): Likewise.
15039         (unsigned_shift_di3_neon): Likewise.
15040         (ashrdi3_neon_imm_noclobber): Likewise.
15041         (lshrdi3_neon_imm_noclobber): Likewise.
15042         (<shift>di3_neon): Likewise.
15043         (split extend): Remove DI extend split patterns.
15045 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15047         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15048         (split not): Add DImode not splitter.
15049         (anddi3): Remove pattern.
15050         (anddi3_insn): Likewise.
15051         (anddi_zesidi_di): Likewise.
15052         (anddi_sesdi_di): Likewise.
15053         (anddi_notdi_di): Likewise.
15054         (anddi_notzesidi_di): Likewise.
15055         (anddi_notsesidi_di): Likewise.
15056         (iordi3): Likewise.
15057         (iordi3_insn): Likewise.
15058         (iordi_zesidi_di): Likewise.
15059         (iordi_sesidi_di): Likewise.
15060         (xordi3): Likewise.
15061         (xordi3_insn): Likewise.
15062         (xordi_sesidi_di): Likewise.
15063         (xordi_zesidi_di): Likewise.
15064         (one_cmpldi2): Likewise.
15065         (one_cmpldi2_insn): Likewise.
15066         * config/arm/constraints.md: Remove De, Df, Dg constraints.
15067         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15068         alternative.
15069         (iwmmxt_xordi3): Likewise.
15070         (iwmmxt_anddi3): Likewise.
15071         * config/arm/neon.md (orndi3_neon): Remove pattern.
15072         (anddi_notdi_di): Likewise.
15073         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15074         (arm_iordi_operand_neon): Likewise.
15075         (arm_xordi_operand_neon): Likewise.
15076         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15077         (iordi_notzesidi_di): Likewise.
15078         (iordi_notdi_zesidi): Likewise.
15079         (iordi_notsesidi_di): Likewise.
15081 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
15083         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15084         insn.
15085         (iorsi3_compare0_scratch): Likewise.
15087 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
15089         * config/aarch64/aarch64-simd-builtins.def:
15090         (ld1x4): New.
15091         (st1x4): Likewise.
15092         * config/aarch64/aarch64-simd.md:
15093         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15094         (aarch64_st1x4<VALLDIF:mode>): Likewise.
15095         (aarch64_ld1_x4_<mode>): Likewise.
15096         (aarch64_st1_x4_<mode>): Likewise.
15097         * config/aarch64/arm_neon.h:
15098         (vld1_s8_x4): New function.
15099         (vld1q_s8_x4): Likewise.
15100         (vld1_s16_x4): Likewise.
15101         (vld1q_s16_x4): Likewise.
15102         (vld1_s32_x4): Likewise.
15103         (vld1q_s32_x4): Likewise.
15104         (vld1_u8_x4): Likewise.
15105         (vld1q_u8_x4): Likewise.
15106         (vld1_u16_x4): Likewise.
15107         (vld1q_u16_x4): Likewise.
15108         (vld1_u32_x4): Likewise.
15109         (vld1q_u32_x4): Likewise.
15110         (vld1_f16_x4): Likewise.
15111         (vld1q_f16_x4): Likewise.
15112         (vld1_f32_x4): Likewise.
15113         (vld1q_f32_x4): Likewise.
15114         (vld1_p8_x4): Likewise.
15115         (vld1q_p8_x4): Likewise.
15116         (vld1_p16_x4): Likewise.
15117         (vld1q_p16_x4): Likewise.
15118         (vld1_s64_x4): Likewise.
15119         (vld1_u64_x4): Likewise.
15120         (vld1_p64_x4): Likewise.
15121         (vld1q_s64_x4): Likewise.
15122         (vld1q_u64_x4): Likewise.
15123         (vld1q_p64_x4): Likewise.
15124         (vld1_f64_x4): Likewise.
15125         (vld1q_f64_x4): Likewise.
15126         (vst1_s8_x4): Likewise.
15127         (vst1q_s8_x4): Likewise.
15128         (vst1_s16_x4): Likewise.
15129         (vst1q_s16_x4): Likewise.
15130         (vst1_s32_x4): Likewise.
15131         (vst1q_s32_x4): Likewise.
15132         (vst1_u8_x4): Likewise.
15133         (vst1q_u8_x4): Likewise.
15134         (vst1_u16_x4): Likewise.
15135         (vst1q_u16_x4): Likewise.
15136         (vst1_u32_x4): Likewise.
15137         (vst1q_u32_x4): Likewise.
15138         (vst1_f16_x4): Likewise.
15139         (vst1q_f16_x4): Likewise.
15140         (vst1_f32_x4): Likewise.
15141         (vst1q_f32_x4): Likewise.
15142         (vst1_p8_x4): Likewise.
15143         (vst1q_p8_x4): Likewise.
15144         (vst1_p16_x4): Likewise.
15145         (vst1q_p16_x4): Likewise.
15146         (vst1_s64_x4): Likewise.
15147         (vst1_u64_x4): Likewise.
15148         (vst1_p64_x4): Likewise.
15149         (vst1q_s64_x4): Likewise.
15150         (vst1q_u64_x4): Likewise.
15151         (vst1q_p64_x4): Likewise.
15152         (vst1_f64_x4): Likewise.
15153         (vst1q_f64_x4): Likewise.
15155 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15157         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15159 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15160             Richard Sandiford  <richard.sandiford@arm.com>
15162         PR target/88839
15163         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15164         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15166 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15168         PR target/90724
15169         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15170         in reg if it fails aarch64_plus_operand predicate.
15172 2019-08-21  Richard Biener  <rguenther@suse.de>
15174         PR tree-optimization/91482
15175         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15176         BUILT_IN_ASSUME_ALIGNED calls.
15178 2019-08-21  Richard Biener  <rguenther@suse.de>
15180         PR target/91498
15181         PR target/91503
15182         * config/i386/i386-features.c
15183         (general_scalar_chain::make_vector_copies): Copy stack temporary
15184         rtx when using it multiple times.
15185         (general_scalar_chain::convert_reg): Likewise.
15187 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15189         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15191 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
15193         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15194         catch more redundant zero initialization cases.
15195         (dse_dom_walker::dse_optimize_stmt): Likewise.
15197 2019-08-20  Richard Biener  <rguenther@suse.de>
15199         PR lto/91307
15200         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15201         by collect2 when targetm.have_ctors_dtors which avoids dragging
15202         in temporary filenames from LTO input objects.
15204 2019-08-20  Richard Biener  <rguenther@suse.de>
15206         PR tree-optimization/37242
15207         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15208         to (T)a + (T)b if we know that a + b does not overflow.
15210 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
15212         PR rtl-optimization/91347
15213         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15214         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15216 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15218         * calls.h (function_arg_info): Add a pass_by_reference field,
15219         defaulting to false.
15220         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15221         when applying pass-by-reference semantics.
15222         (initialize_argument_information): Likewise.
15223         (emit_library_call_value_1): Likewise.
15224         * function.c (assign_parm_data_one): Remove passed_pointer field.
15225         (assign_parm_find_data_types): Don't set it.
15226         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15227         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15228         arg.pass_by_reference instead of passed_pointer.
15230 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15232         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15233         into a single function_arg_info, updating its fields when we
15234         apply pass-by-reference and promotion semantics.  Use the
15235         function_arg_info to track the mode rather than keeping it in
15236         a separate local variable.
15237         (initialize_argument_information): Likewise.  Base the final
15238         arg_to_skip on this new function_arg_info rather than creating
15239         a new one from scratch.
15241 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15243         * function.c (assign_parm_data_one): Replace passed_type,
15244         promoted_mode and named_arg with a function_arg_info field.
15245         (assign_parm_find_data_types): Remove local variables and
15246         assign directly to "data".  Make data->passed_mode shadow
15247         data->arg.mode until promotion, then assign the promoted
15248         mode to data->arg.mode.
15249         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15250         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15251         (assign_parm_remove_parallels, assign_parm_setup_block_p)
15252         (assign_parm_setup_block, assign_parm_setup_reg)
15253         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15254         arg.mode instead of promoted_mode, arg.type instead of passed_type
15255         and arg.named instead of named_arg.  Use data->arg for
15256         function_arg_info structures that had the field values passed_type,
15257         promoted_mode and named_arg.  Base other function_arg_infos on
15258         data->arg, changing the necessary properties.
15260 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15262         * calls.h (apply_pass_by_reference_rules): Declare.
15263         * calls.c (apply_pass_by_reference_rules): New function.
15264         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15265         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15266         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15267         * function.c (assign_parm_find_data_types): Likewise.
15268         * var-tracking.c (prepare_call_arguments): Likewise.
15270 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15272         * target.def (must_pass_in_stack): Take a function_arg_info instead
15273         of a mode and a type.
15274         * doc/tm.texi: Regenerate.
15275         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15276         instead of a mode and a type.
15277         (must_pass_in_stack_var_size_or_pad): Likewise.
15278         * calls.c (must_pass_in_stack_var_size): Likewise.
15279         (must_pass_in_stack_var_size_or_pad): Likewise.
15280         (initialize_argument_information): Update call to
15281         targetm.calls.must_pass_in_stack.
15282         (must_pass_va_arg_on_stack): Likewise.
15283         * function.c (assign_parm_find_entry_rtl): Likewise.
15284         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15285         * config/alpha/alpha.c (alpha_function_arg): Likewise.
15286         (alpha_function_arg_advance): Likewise.
15287         * config/cr16/cr16.c (cr16_function_arg): Likewise.
15288         (cr16_function_arg_advance): Likewise.
15289         * config/cris/cris.c (cris_pass_by_reference): Likewise.
15290         (cris_arg_partial_bytes): Likewise.
15291         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15292         * config/lm32/lm32.c (lm32_function_arg): Likewise.
15293         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15294         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15295         * config/mips/mips.c (mips_pass_by_reference): Likewise.
15296         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15297         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15298         * config/sh/sh.c (sh_pass_by_reference): Likewise.
15299         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15300         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15301         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15302         instead of a mode and a type.
15303         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15304         (fr30_num_arg_regs): Likewise.
15305         (fr30_setup_incoming_varargs): Update calls accordingly.
15306         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15307         (fr30_function_arg_advance): Likewise.
15308         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15309         instead of a mode and a type.
15310         * config/gcn/gcn.c (num_arg_regs): Likewise.
15311         (gcn_function_arg, gcn_function_arg_advance): Update calls to
15312         num_arg_regs and targetm.calls.must_pass_in_stack.
15313         (gcn_arg_partial_bytes): Likewise.
15314         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15315         function_arg_info instead of a mode and a type.
15316         (classify_argument): Update call accordingly.
15317         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15318         function_arg_info instead of a mode and a type.
15319         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15320         Likewise.
15321         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15322         (rs6000_parm_needs_stack): Update call accordingly.
15323         (setup_incoming_varargs): Likewise.
15325 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15327         * target.def (callee_copies): Take a function_arg_info instead
15328         of a mode, type and named flag.
15329         * doc/tm.texi: Regenerate.
15330         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15331         instead of a mode, type and named flag.
15332         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15333         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15334         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15335         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15336         instead of a mode, type and named flag.
15337         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15338         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15339         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15340         * calls.h (reference_callee_copied): Take a function_arg_info
15341         instead of a mode, type and named flag.
15342         * calls.c (reference_callee_copied): Likewise.
15343         (initialize_argument_information): Update call accordingly.
15344         (emit_library_call_value_1): Likewise.
15345         * function.c (gimplify_parameters): Likewise.
15346         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15347         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15348         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15349         * config/c6x/c6x.c (c6x_callee_copies): Delete.
15350         (TARGET_CALLEE_COPIES): Define to
15351         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15352         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15353         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15354         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15355         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15356         instead of a mode, type and named flag.
15357         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15358         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15359         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15360         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15361         * config/msp430/msp430.c (msp430_callee_copies): Delete.
15362         (TARGET_CALLEE_COPIES): Define to
15363         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15364         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15365         instead of a mode, type and named flag.
15366         * config/sh/sh.c (sh_callee_copies): Likewise.
15367         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15368         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15369         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15371 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15373         * target.def (function_arg_advance): Take a function_arg_info instead
15374         of a mode, type and named flag.
15375         * doc/tm.texi: Regenerate.
15376         * targhooks.h (default_function_arg_advance): Take a function_arg_info
15377         instead of a mode, type and named flag.
15378         * targhooks.c (default_function_arg_advance): Likewise.
15379         * calls.c (initialize_argument_information): Update call to
15380         targetm.calls.function_arg_advance.
15381         (emit_library_call_value_1): Likewise.
15382         * dse.c (get_call_args): Likewise.
15383         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15384         * function.c (assign_parms, gimplify_parameters): Likewise.
15385         * var-tracking.c (prepare_call_arguments): Likewise.
15386         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15387         function_arg_info instead of a mode, type and named flag.
15388         (aarch64_setup_incoming_varargs): Update call accordingly.
15389         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15390         function_arg_info instead of a mode, type and named flag.
15391         (alpha_setup_incoming_varargs): Update call accordingly.
15392         * config/arc/arc.c (arc_function_arg_advance): Take a
15393         function_arg_info instead of a mode, type and named flag.
15394         (arc_setup_incoming_varargs): Update call accordingly.
15395         * config/arm/arm.c (arm_function_arg_advance): Take a
15396         function_arg_info instead of a mode, type and named flag.
15397         (cmse_func_args_or_return_in_stack): Update call accordingly.
15398         (arm_function_ok_for_sibcall): Likewise.
15399         (cmse_nonsecure_call_clear_caller_saved): Likewise.
15400         * config/avr/avr.c (avr_function_arg_advance): Take a
15401         function_arg_info instead of a mode, type and named flag.
15402         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15403         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15404         (c6x_call_saved_register_used): Update call accordingly.
15405         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15406         function_arg_info instead of a mode, type and named flag.
15407         * config/cris/cris.c (cris_function_arg_advance): Likewise.
15408         * config/csky/csky.c (csky_function_arg_advance): Likewise.
15409         (csky_setup_incoming_varargs): Update call accordingly.
15410         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15411         function_arg_info instead of a mode, type and named flag.
15412         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15413         * config/frv/frv.c (frv_function_arg_advance): Likewise.
15414         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15415         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15416         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15417         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15418         (ix86_setup_incoming_varargs): Update call accordingly.
15419         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15420         function_arg_info instead of a mode, type and named flag.
15421         (ia64_setup_incoming_varargs): Update call accordingly.
15422         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15423         function_arg_info instead of a mode, type and named flag.
15424         (iq2000_expand_prologue): Update call accordingly.
15425         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15426         function_arg_info instead of a mode, type and named flag.
15427         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15428         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15429         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15430         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15431         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15432         Likewise.
15433         (microblaze_expand_prologue): Update call accordingly.
15434         * config/mips/mips.c (mips_function_arg_advance): Take a
15435         function_arg_info instead of a mode, type and named flag.
15436         (mips_setup_incoming_varargs): Update call accordingly.
15437         (mips_output_args_xfer): Likewise.
15438         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15439         function_arg_info instead of a mode, type and named flag.
15440         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15441         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15442         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15443         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15444         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15445         (nios2_setup_incoming_varargs): Update call accordingly.
15446         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15447         function_arg_info instead of a mode, type and named flag.
15448         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15449         * config/pa/pa.c (pa_function_arg_advance): Likewise.
15450         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15451         * config/pru/pru.c (pru_function_arg_advance): Likewise.
15452         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15453         (riscv_setup_incoming_varargs): Update call accordingly.
15454         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15455         function_arg_info instead of a mode, type and named flag.
15456         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15457         Likewise.
15458         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15459         (rs6000_parm_needs_stack): Update call accordingly.
15460         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15461         instead of a mode, type and named flag.
15462         * config/s390/s390.c (s390_function_arg_advance): Likewise.
15463         (s390_call_saved_register_used): Update call accordingly.
15464         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15465         instead of a mode, type and named flag.
15466         (sh_output_mi_thunk): Update call accordingly.
15467         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15468         function_arg_info instead of a mode, type and named flag.
15469         * config/spu/spu.c (spu_function_arg_advance): Likewise.
15470         (spu_setup_incoming_varargs): Update call accordingly.
15471         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15472         function_arg_info instead of a mode, type and named flag.
15473         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15474         (tilegx_setup_incoming_varargs): Update call accordingly.
15475         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15476         function_arg_info instead of a mode, type and named flag.
15477         (tilegx_setup_incoming_varargs): Update call accordingly.
15478         * config/v850/v850.c (v850_function_arg_advance): Take a
15479         function_arg_info instead of a mode, type and named flag.
15480         * config/vax/vax.c (vax_function_arg_advance): Likewise.
15481         * config/visium/visium.c (visium_function_arg_advance): Likewise.
15482         (visium_setup_incoming_varargs): Update call accordingly.
15483         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15484         function_arg_info instead of a mode, type and named flag.
15486 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15488         * target.def (function_arg, function_incoming_arg): Take a
15489         function_arg_info instead of a mode, tree and named flag.
15490         * doc/tm.texi: Regenerate.
15491         * targhooks.h (default_function_arg): Take a function_arg_info
15492         instead of a mode, tree and named flag.
15493         (default_function_incoming_arg): Likewise.
15494         * targhooks.c (default_function_arg): Likewise.
15495         (default_function_incoming_arg): Likewise.
15496         * calls.h (function_arg_info::end_marker_p): New function.
15497         (function_arg_info::end_marker): Likewise.
15498         * calls.c (prepare_call_address, initialize_argument_information)
15499         (expand_call, emit_library_call_value_1): Update calls to
15500         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15501         * dse.c: Include calls.h.
15502         (get_call_args): Update call to targetm.calls.function_arg.
15503         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15504         * var-tracking.c (prepare_call_arguments): Likewise.
15505         * function.c (assign_parm_find_entry_rtl): Update call to
15506         targetm.calls.function_incoming_arg.
15507         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15508         function_arg_info instead of a mode, tree and named flag.
15509         * config/alpha/alpha.c (alpha_function_arg): Likewise.
15510         * config/arc/arc.c (arc_function_arg): Likewise.
15511         * config/arm/arm.c (arm_function_arg): Likewise.
15512         (cmse_func_args_or_return_in_stack): Update call accordingly.
15513         (arm_function_ok_for_sibcall): Likewise.
15514         (cmse_nonsecure_call_clear_caller_saved): Likewise.
15515         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15516         instead of a mode, tree and named flag.
15517         * config/bfin/bfin.c (bfin_function_arg): Likewise.
15518         * config/c6x/c6x.c (c6x_function_arg): Likewise.
15519         (c6x_call_saved_register_used): Update call accordingly.
15520         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15521         instead of a mode, tree and named flag.
15522         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15523         (cris_function_arg_1): Likewise.
15524         * config/csky/csky.c (csky_function_arg): Likewise.
15525         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15526         * config/fr30/fr30.c (fr30_function_arg): Likewise.
15527         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15528         (frv_function_arg_1): Likewise.
15529         * config/ft32/ft32.c (ft32_function_arg): Likewise.
15530         * config/gcn/gcn.c (gcn_function_arg): Likewise.
15531         * config/h8300/h8300.c (h8300_function_arg): Likewise.
15532         * config/i386/i386.c (ix86_function_arg): Likewise.
15533         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15534         (ia64_function_arg_1): Likewise.
15535         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15536         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15537         accordingly.
15538         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15539         instead of a mode, tree and named flag.
15540         * config/m32c/m32c.c (m32c_function_arg): Likewise.
15541         * config/m32r/m32r.c (m32r_function_arg): Likewise.
15542         * config/m68k/m68k.c (m68k_function_arg): Likewise.
15543         * config/mcore/mcore.c (mcore_function_arg): Likewise.
15544         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15545         (microblaze_expand_prologue): Update call accordingly.
15546         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15547         instead of a mode, tree and named flag.
15548         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15549         (mmix_function_arg_1): Likewise.
15550         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15551         * config/moxie/moxie.c (moxie_function_arg): Likewise.
15552         * config/msp430/msp430.c (msp430_function_arg): Likewise.
15553         * config/nds32/nds32.c (nds32_function_arg): Likewise.
15554         * config/nios2/nios2.c (nios2_function_arg): Likewise.
15555         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15556         (nvptx_function_incoming_arg): Likewise.
15557         * config/or1k/or1k.c (or1k_function_arg): Likewise.
15558         * config/pa/pa.c (pa_function_arg): Likewise.
15559         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15560         * config/pru/pru.c (pru_function_arg): Likewise.
15561         * config/riscv/riscv.c (riscv_function_arg): Likewise.
15562         * config/rl78/rl78.c (rl78_function_arg): Likewise.
15563         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15564         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15565         (rs6000_parm_needs_stack): Update call accordingly.
15566         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15567         instead of a mode, tree and named flag.
15568         * config/s390/s390.c (s390_function_arg): Likewise.
15569         (s390_call_saved_register_used): Update call accordingly.
15570         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15571         instead of a mode, tree and named flag.
15572         (sh_output_mi_thunk): Update call accordingly.
15573         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15574         (sparc_function_incoming_arg): Take a function_arg_info instead of
15575         a mode, tree and named flag.
15576         * config/spu/spu.c (spu_function_arg): Likewise.
15577         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15578         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15579         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15580         * config/v850/v850.c (v850_function_arg): Likewise.
15581         * config/vax/vax.c (vax_function_arg): Likewise.
15582         * config/visium/visium.c (visium_function_arg): Likewise.
15583         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15584         (xtensa_function_incoming_arg): Likewise.
15586 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15588         * target.def (setup_incoming_varargs): Take a function_arg_info
15589         instead of a mode and tree.
15590         * doc/tm.texi: Regenerate.
15591         * targhooks.h (default_setup_incoming_varargs): Take a
15592         function_arg_info instead of a mode and tree.
15593         * targhooks.c (default_setup_incoming_varargs): Likewise.
15594         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15595         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15596         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15597         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15598         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15599         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15600         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15601         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15602         Likewise.
15603         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15604         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15605         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15606         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15607         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15608         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15609         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15610         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15611         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15612         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15613         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15614         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15615         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15616         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15617         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15618         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15619         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15620         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15621         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15622         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15623         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15624         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15625         * function.c (assign_parms_setup_varargs): Update call to
15626         targetm.calls.setup_incoming_varargs.
15628 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15630         * target.def (pass_by_reference): Take a function_arg_info instead
15631         of a mode, type and named flag.
15632         * doc/tm.texi: Regenerate.
15633         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15634         accordingly.
15635         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15636         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15637         function_arg_info instead of a mode, type and named flag.
15638         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15639         * calls.h (pass_by_reference): Take a function_arg_info instead of a
15640         mode, type and named flag.
15641         * calls.c (pass_by_reference): Likewise.
15642         (pass_va_arg_by_reference): Update call accordingly.
15643         (initialize_argument_information): Likewise.
15644         (emit_library_call_value_1): Likewise.
15645         * function.c (assign_parm_find_data_types): Likewise.
15646         * var-tracking.c (prepare_call_arguments): Likewise.
15647         * stor-layout.c: Include calls.h.
15648         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15649         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15650         function_arg_info instead of a mode, type and named flag.
15651         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15652         * config/arc/arc.c (arc_pass_by_reference): Likewise.
15653         * config/arm/arm.c (arm_pass_by_reference): Likewise.
15654         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15655         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15656         (c6x_call_saved_register_used): Update call to pass_by_reference.
15657         * config/cris/cris.c (cris_pass_by_reference): Take a
15658         function_arg_info instead of a mode, type and named flag.
15659         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15660         function_arg_info instead of a mode, type and named flag.
15661         (epiphany_arg_partial_bytes): Update call accordingly.
15662         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15663         function_arg_info instead of a mode, type and named flag.
15664         (ft32_arg_partial_bytes): Update call accordingly.
15665         * config/i386/i386.c (ix86_pass_by_reference): Take a
15666         function_arg_info instead of a mode, type and named flag.
15667         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15668         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15669         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15670         (m32r_return_in_memory): Update call accordingly.
15671         * config/mips/mips.c (mips_pass_by_reference): Take a
15672         function_arg_info instead of a mode, type and named flag.
15673         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15674         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15675         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15676         (moxie_arg_partial_bytes): Update call accordingly.
15677         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15678         function_arg_info instead of a mode, type and named flag.
15679         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15680         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15681         * config/pa/pa.c (pa_pass_by_reference): Likewise.
15682         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15683         (riscv_return_in_memory): Update call accordingly.
15684         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15685         function_arg_info instead of a mode, type and named flag.
15686         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15687         (rs6000_parm_needs_stack): Update call to pass_by_reference.
15688         * config/s390/s390.c (s390_pass_by_reference): Take a
15689         function_arg_info instead of a mode, type and named flag.
15690         (s390_call_saved_register_used): Update call accordingly.
15691         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15692         instead of a mode, type and named flag.
15693         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15694         * config/spu/spu.c (spu_pass_by_reference): Likewise.
15695         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15696         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15697         * config/v850/v850.c (v850_pass_by_reference): Likewise.
15698         * config/visium/visium.c (visium_pass_by_reference): Likewise.
15700 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15702         * target.def (arg_partial_bytes): Take a function_arg_info instead
15703         of a mode, type and named flag.
15704         * doc/tm.texi: Regenerate.
15705         * target.h (function_arg_info): Declare.
15706         * calls.h (function_arg_info): New class.
15707         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15708         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15709         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15710         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15711         * calls.c (initialize_argument_information): Update call to
15712         targetm.calls.partial_bytes.
15713         (emit_library_call_value_1): Likewise.
15714         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15715         * function.c (assign_parm_find_entry_rtl): Likewise.
15716         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15717         function_arg_info instead of a mode, type and named flag.
15718         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15719         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15720         (cmse_func_args_or_return_in_stack): Update accordingly.
15721         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15722         function_arg_info instead of a mode, type and named flag.
15723         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15724         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15725         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15726         * config/fr30/fr30.c: Include calls.h.
15727         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15728         type and named flag.
15729         * config/frv/frv.c: Include calls.h.
15730         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15731         type and named flag.
15732         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15733         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15734         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15735         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15736         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15737         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15738         * config/microblaze/microblaze.c (function_arg_partial_bytes):
15739         Likewise.
15740         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15741         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15742         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15743         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15744         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15745         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15746         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15747         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15748         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15749         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15750         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15751         (rs6000_parm_needs_stack): Update call accordingly.
15752         * config/sh/sh.c (sh_arg_partial_bytes): Take a
15753         function_arg_info instead of a mode, type and named flag.
15754         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15755         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15757 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15759         * calls.h (must_pass_va_arg_in_stack): Declare.
15760         * calls.c (must_pass_va_arg_in_stack): New function.
15761         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15762         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15763         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15764         Likewise.
15765         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15767 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15769         * calls.h (pass_va_arg_by_reference): Declare.
15770         * calls.c (pass_va_arg_by_reference): New function.
15771         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15772         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15773         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15774         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15775         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15776         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15777         (mips_gimplify_va_arg_expr): Likewise.
15778         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15779         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15780         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15781         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15782         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15783         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15784         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15785         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15786         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15787         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15788         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15790 2019-08-20  Richard Biener  <rguenther@suse.de>
15792         PR target/91498
15793         * config/i386/i386-features.c (general_scalar_chain::convert_op):
15794         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15795         (convert_scalars_to_vector): Add timode_p parameter and use it
15796         to guard TImode-only operation.
15797         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15798         (pass_stv::execute): Pass down timode_p.
15800 2019-08-20  Lili Cui  <lili.cui@intel.com>
15802         * common/config/i386/i386-common.c
15803         (processor_names): Add tigerlake and cooperlake.
15804         (processor_alias_table): Add tigerlake and cooperlake.
15805         * config.gcc: Add -march=tigerlake and cooperlake.
15806         * config/i386/driver-i386.c
15807         (host_detect_local_cpu): Detect tigerlake and cooperlake.
15808         Add "has_avx" to classify processor.
15809         * config/i386/i386-builtins.c (processor_model) :
15810         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15811         (arch_names_table): Add tigerlake and cooperlake.
15812         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15813         and PROCESSOR_COOPERLAKE.
15814         * config/i386/i386-c.c
15815         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15816         * config/i386/i386-options.c
15817         (m_TIGERLAKE): Define.
15818         (m_COOPERLAKE): Ditto.
15819         (m_CORE_AVX512): Ditto.
15820         (processor_cost_table): Add cascadelake.
15821         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15822         * config/i386/i386.h
15823         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15824         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15825         (PTA_MOVDIRI): Ditto.
15826         (PTA_MOVDIR64B): Ditto.
15827         (PTA_COOPERLAKE): Ditto.
15828         (PTA_TIGERLAKE): Ditto.
15829         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15830         * doc/extend.texi: Add tigerlake and cooperlake.
15831         * doc/invoke.texi: Add tigerlake and cooperlake.
15833 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
15835         * doc/install.texi (Specific, alpha): Remove note to use
15836         binutils 2.11.2 or later.
15838 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15840         PR middle-end/89544
15841         * function.c (assign_parm_find_stack_rtl): Use larger alignment
15842         when possible.
15844 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
15846         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15847         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15848         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15849         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15850         * config/aarch64/constraints.md (Dt): New constraint
15851         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15853 2019-08-19  Richard Biener  <rguenther@suse.de>
15855         PR tree-optimization/91403
15856         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15857         cases we can handle with tail-recursion...
15858         (follow_ssa_edge_expr): ... here.  Do so.
15860 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
15862         PR target/91441
15863         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15864         implemented for -fsanitize=kernel-address, and merge check logic
15865         with -fsanitize=address.
15867 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
15869         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15870         for cpu and machine.  Factor 64/32b builtins.
15872 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
15874         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15875         gone, point to sourceforge.net.
15877 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
15878         
15879         * doc/ux.texi (User Experience Guidelines): Update reference.
15881 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
15882         
15883         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15884         not LGPL".
15886 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
15888         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15889         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
15891 2019-08-16  Martin Sebor  <msebor@redhat.com>
15893         * tree.def (TYPE_SIZE): Clarify.
15894         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15896 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15898         PR tree-optimization/91109
15899         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15900         * lra.c (lra): Use lra_need_for_scratch_reg_p.
15901         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15903 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15905         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15906         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15907         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15908         (uavg<mode>3_ceil): New expander.
15909         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15910         mode iterator when creating CONST1_RTX.
15911         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15912         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15913         mode iterator for const1_operand predicate.
15915 2019-08-16  Richard Biener  <rguenther@suse.de>
15917         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15918         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15919         follow_ssa_edge.
15920         (follow_ssa_edge_in_condition_phi_branch): Likewise.
15921         (analyze_evolution_in_loop): Likewise.
15922         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15923         (follow_ssa_edge_expr): ... here.  Refactor code.
15925 2019-08-16  Richard Biener  <rguenther@suse.de>
15927         PR target/91469
15928         * config/i386/i386-features.c
15929         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15931 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15933         PR other/91255
15934         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15935         only if subst_name matches curr_attr string.
15937 2019-08-16  Richard Biener  <rguenther@suse.de>
15939         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15940         stmt at gsi_p, instead replace it with a NOP removed later.
15941         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15942         that became dead because of that.
15944 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
15946         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15947         for which we can't represent a range.
15948         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15949         set_varying.
15950         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15951         Set VR_UNDEFINED if type is not supported.
15952         * tree-ssanames.c (get_range_info): Pass type to set_varying.
15953         * tree-vrp.c (value_range_base::check): Assert that a varying has
15954         min/max set.
15955         (value_range_base::equal_p): Early bail for undefines.
15956         (value_range_base::set_varying): Accept a type.
15957         (value_range::set_varying): Same.
15958         (value_range_base::type): VARYING can have a type, while UNDEFINE
15959         is typeless.
15960         (value_range_base::dump): Print type for VARYING nodes.
15961         (value_range_base::set): Add type to VARYING.
15962         (extract_range_from_multiplicative_op): Pass type to set_varying.
15963         (extract_range_from_binary_expr): Same.
15964         (value_range_base::intersect_helper): Same.
15965         (value_range_base::union_helper): Same.
15966         (value_range_base::normalize_symbolics): Same.
15967         (determine_value_range_1): Same.
15968         * tree-vrp.h (class value_range_base): Add type to set_varying.
15969         Add prototype for dump(void).
15970         Add prototype for supports_type_p.
15971         (class value_range): Add type to set_varying.
15972         Add prototype for dump(void).
15973         * vr-values.c (set_value_range_to_truthvalue): Pass type to
15974         set_varying.
15975         (vr_values::get_lattice_entry): Set varying even if propagation
15976         finished.
15977         Pass type to set_varying.
15978         (vr_values::get_value_range): Remove vr_const_varying.
15979         Reallocate the lattice if needed.
15980         (vr_values::update_value_range): Pass type to set_varying.
15981         (vr_values::extract_range_for_var_from_comparison_expr): Same.
15982         (vr_values::extract_range_from_binary_expr): Same.
15983         (vr_values::extract_range_from_unary_expr): Same.
15984         (vr_values::extract_range_from_cond_expr): Same.
15985         (vr_values::check_for_binary_op_overflow): Same.
15986         (vr_values::extract_range_basic): Same.
15987         (vr_values::extract_range_from_assignment): Same.
15988         (vr_values::vr_values): Increase size of num_vr_values.
15989         (vr_values::extract_range_from_phi_node): Pass type to
15990         set_varying.
15992 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
15994         PR target/90878
15995         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15996         for costs of hard register moves.
15997         (ix86_register_move_cost): Likewise.
15998         * config/i386/i386.h (processor_costs): Move costs of hard
15999         register moves to hard_register.  Add int_load, int_store,
16000         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16001         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16002         for costs of RTL expressions.
16003         * config/i386/x86-tune-costs.h: Move costs of hard register
16004         moves to hard_register.  Duplicate int_load, int_store,
16005         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16006         sse_load, sse_store for costs of RTL expressions.
16008 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16010         * target.def (setup_incoming_vararg_bounds): Remove.
16011         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16012         * doc/tm.texi: Regenerate.
16013         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16014         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16015         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16016         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16018 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16020         MSP430: Fix lines over 80 characters long in
16021         config/msp430/*.{c,h} files
16023         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16024         specifier in string.
16025         (msp430_select_hwmult_lib): Split line more than 80 characters long.
16026         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16027         redundant old comment.
16028         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16029         Split line more than 80 characters long.
16030         * config/msp430/msp430.c (msp430_option_override): Likewise.
16031         (msp430_return_in_memory): Likewise.
16032         (msp430_gimplify_va_arg_expr): Likewise.
16033         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16034         (msp430_legitimate_constant): Likewise.
16035         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16036         (msp430_attr): Likewise.
16037         (msp430_data_attr): Likewise.
16038         (msp430_start_function): Likewise.
16039         (gen_prefix): Likewise.
16040         (msp430_init_sections): Likewise.
16041         (msp430_select_section): Likewise.
16042         (msp430_function_section): Likewise.
16043         (msp430_unique_section): Likewise.
16044         (msp430_output_aligned_decl_common): Likewise.
16045         (msp430_do_not_relax_short_jumps): Likewise.
16046         (msp430_init_builtins): Likewise.
16047         (msp430_expand_delay_cycles): Likewise.
16048         (msp430_expand_prologue): Likewise.
16049         (msp430_expand_epilogue): Likewise.
16050         (msp430_expand_helper): Likewise.
16051         (msp430_split_movsi): Likewise.
16052         (msp430_print_operand): Likewise.
16053         (msp430_return_addr_rtx): Likewise.
16054         (msp430x_extendhisi): Likewise.
16055         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16056         (ASM_SPEC): Likewise.
16057         Remove very obvious comments.
16058         (LIB_SPEC): Split line more than 80 characters long.
16059         (EH_RETURN_HANDLER_RTX): Likewise.
16060         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16062 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16064         MSP430: Fix whitespace errors and incorrect indentation in
16065         config/msp430/*.{c,h} files
16067         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16068         (msp430_select_hwmult_lib): Likewise.
16069         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16070         (msp430_extract_mcu_data): Likewise.
16071         (struct t_msp430_mcu_data): Likewise.
16072         * config/msp430/msp430.c (struct machine_function): Remove whitespace
16073         before left square bracket.
16074         (msp430_option_override): Fix indentation.
16075         (msp430_hard_regno_nregs_with_padding): Likewise.
16076         (msp430_initial_elimination_offset): Likewise.
16077         (msp430_special_register_convention_p): Remove whitespace before left
16078         square bracket and after exclamation mark.
16079         (msp430_evaluate_arg): Likewise.
16080         (msp430_callee_copies): Fix indentation.
16081         (msp430_gimplify_va_arg_expr): Likewise.
16082         (msp430_function_arg_advance): Remove whitespace before left square
16083         bracket.
16084         (reg_ok_for_addr): Likewise.
16085         (msp430_preserve_reg_p): Likewise.
16086         (msp430_compute_frame_info): Likewise.
16087         (msp430_asm_output_addr_const_extra): Add space between function name
16088         and open parenthesis.
16089         (has_section_name): Fix indentation.
16090         (msp430_attr): Remove trailing whitespace.
16091         (msp430_section_attr): Likewise.
16092         (msp430_data_attr): Likewise.
16093         (struct msp430_attribute_table): Fix comment and whitespace.
16094         (msp430_start_function): Remove whitespace before left square bracket.
16095         Add space between function name and open parenthesis.
16096         (msp430_select_section): Remove trailing whitespace.
16097         (msp430_section_type_flags): Remove trailing whitespace.
16098         (msp430_unique_section): Remove space before closing parenthesis.
16099         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16100         (msp430_builtins): Remove whitespace before left square bracket.
16101         (msp430_init_builtins): Fix indentation.
16102         (msp430_expand_prologue): Remove whitespace before left square bracket.
16103         Remove space before closing parenthesis.
16104         (msp430_expand_epilogue): Remove whitespace before left square bracket.
16105         (msp430_split_movsi): Remove space before closing parenthesis.
16106         (helper_function_name_mappings): Fix indentation.
16107         (msp430_use_f5_series_hwmult): Fix whitespace.
16108         (use_32bit_hwmult): Likewise.
16109         (msp430_no_hwmult): Likewise.
16110         (msp430_output_labelref): Remove whitespace before left square bracket.
16111         (msp430_print_operand_raw): Likewise.
16112         (msp430_print_operand_addr): Likewise.
16113         (msp430_print_operand): Add two spaces after '.' in comment.
16114         Fix trailing whitespace.
16115         (msp430x_extendhisi): Fix indentation.
16116         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16117         tab.
16118         (PC_REGNUM): Likewise.
16119         (STACK_POINTER_REGNUM): Likewise.
16120         (CC_REGNUM): Likewise.
16122 2019-08-15  Richard Biener  <rguenther@suse.de>
16124         PR target/91454
16125         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16126         helper.
16127         (general_scalar_chain::make_vector_copies): Use it.
16129 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16131         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16133 2019-08-15  Martin Liska  <mliska@suse.cz>
16135         * tree-ssa-dce.c (propagate_necessity): We can't reach now
16136         operators with no arguments.
16137         (eliminate_unnecessary_stmts): Likewise here.
16139 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16141         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16142         <case COMPARE>: Revert 2019-08-14 change.
16143         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
16144         for (TARGET_64BIT || mode != DImode).
16146 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
16148         * tree-vrp.c (value_range_base::set): Merge in code from
16149         value_range_base::set_and_canonicalize.
16150         Enforce canonicalization at set time.
16151         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16152         (value_range_base::set_undefined): Inline call to set().
16153         (value_range_base::set_varying): Same.
16154         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16155         (vrp_val_max): New argument handle_pointers.
16156         (vrp_val_min): Same.
16157         (ranges_from_anti_range): Same.
16158         (extract_range_into_wide_ints): Use tree argument instead of sign
16159         and precision.
16160         (extract_range_from_multiplicative_op): Take in tree type instead
16161         of precision and sign.  Adapt function for canonicalized ranges.
16162         (extract_range_from_binary_expr): Pass type to
16163         extract_range_from_multiplicative_op.
16164         Adapt for canonicalized ranges.
16165         (extract_range_from_unary_expr): Same.
16166         (value_range_base::intersect_helper): Adjust for canonicalized
16167         ranges.
16168         (value_range_base::union_helper): Same.
16169         (value_range_base::normalize_symbolics): New.
16170         * tree-vrp.h (class value_range_base): Remove
16171         set_and_canonicalize.
16172         New prototype for normalize_symbolics.
16173         (class value_range): Remove set_and_canonicalize.
16174         (vrp_val_min): Adjust prototype.
16175         (vrp_val_max): Same.
16176         * vr-values.c
16177         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
16178         instead of set_and_canonicalize.
16180 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16182         PR middle-end/91444
16183         * tree-vect-stmts.c (vectorizable_call): Check that the function
16184         is a BUILT_IN_MD function before passing it to
16185         targetm.vectorize.builtin_md_vectorized_function.
16187 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16189         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16190         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16191         (aarch64_select_early_remat_modes): Use it.
16193 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16195         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16196         16 for SVE predicates even if they are fixed-length.
16198 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16200         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16201         operand order match the MOV /Z alias.
16203 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16205         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16206         the vector pattern as an aarch64_svpattern argument.  Update the
16207         overloaded caller accordingly.
16208         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16209         (aarch64_output_sve_vector_inc_dec): Likewise.
16211 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16213         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16214         multiplication case, try to compute VG * (lowest set bit) directly
16215         rather than always basing the multiplication on VG.  Use
16216         expand_mult for the multiplication if we can.
16218 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16220         * config/aarch64/aarch64-protos.h
16221         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16222         (aarch64_sve_inc_dec_immediate_p): Rename to...
16223         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16224         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16225         (aarch64_output_sve_scalar_inc_dec): Declare.
16226         (aarch64_output_sve_inc_dec_immediate): Rename to...
16227         (aarch64_output_sve_vector_inc_dec): ...this.
16228         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16229         (aarch64_output_sve_scalar_inc_dec): New functions.
16230         (aarch64_output_sve_addvl_addpl): Remove the base and offset
16231         arguments.  Only handle true ADDVL and ADDPL instructions;
16232         don't emit an INC or DEC.
16233         (aarch64_sve_inc_dec_immediate_p): Rename to...
16234         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16235         (aarch64_output_sve_inc_dec_immediate): Rename to...
16236         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
16237         aarch64_sve_vector_inc_dec_immediate_p.
16238         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16239         (aarch64_sve_plus_immediate): New predicates.
16240         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16241         rather than aarch64_sve_addvl_addpl_immediate.
16242         (aarch64_sve_inc_dec_immediate): Rename to...
16243         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
16244         aarch64_sve_vector_inc_dec_immediate_p.
16245         (aarch64_sve_add_operand): Update accordingly.
16246         * config/aarch64/constraints.md (Uai): New constraint.
16247         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16248         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16249         operand into a register if it satisfies aarch64_sve_plus_immediate.
16250         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16251         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
16252         * config/aarch64/aarch64-sve.md (add<mode>3): Call
16253         aarch64_output_sve_vector_inc_dec instead of
16254         aarch64_output_sve_inc_dec_immediate.
16256 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16258         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16259         (UNSPEC_REVW): New constants.
16260         (elem_bits): New mode attribute.
16261         (SVE_INT_UNARY): New int iterator.
16262         (optab): Handle UNSPEC_REV[BHW].
16263         (sve_int_op): New int attribute.
16264         (min_elem_bits): Handle VNx16QI and the predicate modes.
16265         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16266         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16267         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16268         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16269         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16270         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16271         unspecs based on the total width of the reversed data.
16272         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
16273         reinterpret followed by a subreg on big-endian targets.
16275 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16276             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16278         * config/aarch64/aarch64-sve.md
16279         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16280         alternatives in which one of the inputs is in the same register
16281         as the output.
16283 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16285         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16286         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16288 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16290         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16291         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
16293 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16294             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16296         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16297         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16298         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16300 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16301             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16303         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16304         Add an alternative that uses reversed shifts.
16306 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16308         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16309         struct.
16311 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16313         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16314         a commutativity marker.
16316 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16317             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16319         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16320         (aarch64_prepare_sve_cond_int_fma): Declare.
16321         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16322         (aarch64_prepare_sve_int_fma): New functions.
16323         (aarch64_prepare_sve_cond_int_fma): Likewise.
16324         * config/aarch64/aarch64-sve.md
16325         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16326         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16327         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16328         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16329         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16330         (*madd<mode>): Rename to...
16331         (*fma<mode>4): ...this.
16332         (*msub<mode>): Rename to...
16333         (*fnma<mode>4): ...this.
16335 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16336             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16338         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16339         Print 2.0 naturally.
16340         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16341         * config/aarch64/predicates.md
16342         (aarch64_sve_float_negated_arith_immediate): New predicate,
16343         renamed from aarch64_sve_float_arith_with_sub_immediate.
16344         (aarch64_sve_float_arith_with_sub_immediate): Test for both
16345         positive and negative constants.
16346         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16347         or an aarch64_sve_float_arith_with_sub_immediate.
16348         * config/aarch64/constraints.md (vsN): Use
16349         aarch64_sve_float_negated_arith_immediate.
16350         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16351         iterator.
16352         (sve_pred_fp_rhs2_immediate): New int attribute.
16353         * config/aarch64/aarch64-sve.md
16354         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16355         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16356         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16357         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16358         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16359         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16361 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16362             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16364         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16365         (*aarch64_cond_abd<SVE_F:mode>_3)
16366         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16368 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16369             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16371         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16372         (*aarch64_cond_<su>abd<mode>_any): New patterns.
16374 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16375             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16377         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16378         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16379         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16380         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16381         optabs.
16382         * optabs.h (create_convert_operand_from): Expand comment.
16383         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16384         when mapping scalar rtxes to vector operands.
16385         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16386         ashiftrt and lshiftrt.
16387         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16388         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16389         (*cond_<optab><mode>_any_const): New patterns.
16391 2019-08-15  Martin Liska  <mliska@suse.cz>
16393         PR ipa/91438
16394         * cgraph.c (cgraph_node::remove): When setting
16395         n->origin = NULL for all nested functions, reset
16396         also next_nested.
16398 2019-08-15  Martin Liska  <mliska@suse.cz>
16400         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16401         and next_nested.
16403 2019-08-15  Martin Liska  <mliska@suse.cz>
16405         PR ipa/91404
16406         * passes.c (order): Remove.
16407         (uid_hash_t): Likewise).
16408         (remove_cgraph_node_from_order): Remove from set
16409         of pointers (cgraph_node *).
16410         (insert_cgraph_node_to_order): New.
16411         (duplicate_cgraph_node_to_order): New.
16412         (do_per_function_toporder): Register all 3 cgraph hooks.
16413         Skip removed_nodes now as we know about all of them.
16415 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16417         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16418         <case E_V8QImode>: Use vector_set path for
16419         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16420         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16421         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16423 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16425         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16427 2019-08-14  Martin Sebor  <msebor@redhat.com>
16429         PR tree-optimization/91294
16430         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16431         source length as exact.
16433 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
16435         * doc/extend.texi: Add "noinit" attribute documentation.
16436         * doc/sourcebuild.texi: Add noinit effective target documentation.
16437         * varasm.c (default_section_type_flags): Add support for "noinit"
16438         section.
16439         (default_elf_select_section): Add support for "noinit" attribute.
16440         * config/msp430/msp430.c (msp430_attribute_table): Remove
16441         "noinit" entry.
16443 2019-08-14  Richard Biener  <rguenther@suse.de>
16444             UroÅ¡ Bizjak  <ubizjak@gmail.com>
16446         PR target/91154
16447         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16448         mode arguments.
16449         (scalar_chain::smode): New member.
16450         (scalar_chain::vmode): Likewise.
16451         (dimode_scalar_chain): Rename to...
16452         (general_scalar_chain): ... this.
16453         (general_scalar_chain::general_scalar_chain): Take mode arguments.
16454         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16455         base with TImode and V1TImode.
16456         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16457         (general_scalar_chain::vector_const_cost): Adjust for SImode
16458         chains.
16459         (general_scalar_chain::compute_convert_gain): Likewise.  Add
16460         {S,U}{MIN,MAX} support.
16461         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16462         (general_scalar_chain::make_vector_copies): Likewise.  Handle
16463         non-DImode chains appropriately.
16464         (general_scalar_chain::convert_reg): Likewise.
16465         (general_scalar_chain::convert_op): Likewise.
16466         (general_scalar_chain::convert_insn): Likewise.  Add
16467         fatal_insn_not_found if the result is not recognized.
16468         (convertible_comparison_p): Pass in the scalar mode and use that.
16469         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
16470         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
16471         (scalar_to_vector_candidate_p): Remove by inlining into single
16472         caller.
16473         (general_remove_non_convertible_regs): Rename from
16474         dimode_remove_non_convertible_regs.
16475         (remove_non_convertible_regs): Remove by inlining into single caller.
16476         (convert_scalars_to_vector): Handle SImode and DImode chains
16477         in addition to TImode chains.
16478         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16479         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16480         (*<maxmin>di3_doubleword): Likewise.
16482 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16483             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16485         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16486         (*cond_bic<mode>_any): New patterns.
16488 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16490         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16491         take the equivalent mask, as well as a bit count.
16492         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16493         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16494         (aarch64_sve_pred_and_operand): New predicates.
16495         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16496         code attribute.
16497         * config/aarch64/aarch64-sve.md
16498         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16499         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16501 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16503         * config/aarch64/aarch64-sve.md
16504         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16505         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16506         New patterns.
16508 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16509             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16511         * config/aarch64/aarch64-sve.md
16512         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16513         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16515 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16516             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16518         * config/aarch64/aarch64-sve.md
16519         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16520         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16522 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16524         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16525         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16526         New pattern.
16528 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16529             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16531         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16533 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16534             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16536         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16537         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16538         (aarch64_print_operand): Add support for %I.
16539         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16540         Bitcast floating-point constants to the corresponding integer constant.
16541         (aarch64_float_const_representable_p): Handle vectors as well
16542         as scalars.
16543         (aarch64_expand_sve_vcond): Make sure that the operands are valid
16544         for the new vcond_mask_<mode><vpred> expander.
16545         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16546         test aarch64_float_const_representable_p.
16547         (aarch64_sve_reg_or_dup_imm): New predicate.
16548         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16549         gen_vcond_mask_<mode><vpred> instead of
16550         gen_aarch64_sve_dup<mode>_const.
16551         (vcond_mask_<mode><vpred>): Turn into a define_expand that
16552         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16553         for operands 1 and 2 respectively.  Force operand 2 into a
16554         register if operand 1 is a register.  Fold old define_insn...
16555         (aarch64_sve_dup<mode>_const): ...and this define_insn...
16556         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
16557         floating-point constants that can be moved as integers.  Add
16558         alternatives for MOV /M and FMOV /M.
16559         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16560         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16561         1 and 2 respectively.
16562         * config/aarch64/constraints.md (Ufc): Handle vectors as well
16563         as scalars.
16564         (vss): New constraint.
16566 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16568         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16569         (aarch64_sve_float_maxmin_operand): New predicates.
16570         * config/aarch64/constraints.md (vsB): New constraint.
16571         (vsM): Fix typo.
16572         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16573         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16574         UNSPEC_COND_FMINNM.
16575         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16576         Use aarch64_sve_float_maxmin_operand for operand 2.
16577         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16578         Add alternatives for the constant forms.
16580 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16582         * config/aarch64/constraints.md (vsb): New constraint.
16583         (vsm): Generalize description.
16584         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16585         iterator.
16586         (sve_imm_con): Handle smax, smin, umax and umin.
16587         (sve_imm_prefix): New code attribute.
16588         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16589         (aarch64_sve_vsb_operand): New predicates.
16590         (aarch64_sve_mul_immediate): Rename to...
16591         (aarch64_sve_vsm_immediate): ...this.
16592         (aarch64_sve_mul_operand): Rename to...
16593         (aarch64_sve_vsm_operand): ...this.
16594         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16595         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16596         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16597         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16598         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16599         add movprfx support for the immediate alternatives.
16600         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16601         of the above.
16602         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16603         for operand 3.
16605 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16607         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16608         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16609         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16611 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16613         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16614         (optab, sve_int_op): Handle them.
16615         * config/aarch64/aarch64-sve.md: Expand comment.
16617 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16619         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16620         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16621         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16623 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16625         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16626         (aarch64_expand_sve_const_pred_trn): New functions.
16627         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16628         use the above functions when the parameter is true.
16629         (aarch64_expand_sve_const_pred): Update call accordingly.
16630         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16631         Rename to...
16632         (@aarch64_sve_<perm_insn><mode>): ...this.
16634 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16636         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16637         Declare.
16638         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16639         (aarch64_sve_emit_int_cmp): New functions.
16640         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16641         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16642         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16643         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16644         (UNSPEC_PRED_Z): New unspec.
16645         (set_clobber_cc_nzc): Delete.
16646         * config/aarch64/aarch64-sve.md: Add a block comment about
16647         UNSPEC_PRED_Z.
16648         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16649         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16650         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
16651         UNSPEC_MERGE_PTRUE.
16652         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16653         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
16654         check for compatible predicates.
16655         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16656         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16657         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
16658         comparisons above.
16660 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16662         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16663         * config/aarch64/aarch64-sve.md: Add a section describing it.
16664         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16665         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16666         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16667         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16668         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16669         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16670         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16671         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16672         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16673         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16674         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16675         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16676         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16677         (aarch64_evpc_rev_local): Update accordingly.
16679 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16681         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16682         iterators.
16683         (SVE_BHSI, SVE_SDI): Tweak comment.
16684         (SVE_HSDI): Likewise.  Fix definition.
16685         (SVE_SDF): New mode iterator.
16686         (elem_bits): New mode attribute.
16687         (SVE_COND_FCVT): New int iterator.
16688         * config/aarch64/aarch64-sve.md
16689         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16690         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16691         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16692         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16693         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16694         ...these new patterns.
16695         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16696         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16697         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16698         Merge into...
16699         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16700         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16701         ...these new patterns.
16702         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16703         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16704         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16705         ...this new pattern.
16706         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16707         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16708         ...this new pattern.
16709         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16711 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16713         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16714         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16715         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16716         unspecs.
16717         (optab, su): Handle them.
16718         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16719         * config/aarch64/aarch64-sve.md
16720         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16721         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16722         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16723         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16724         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16725         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16726         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16727         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16728         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16729         FIXUORS.
16730         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16731         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16732         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16733         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16734         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16735         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16736         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16737         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16738         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16739         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16740         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16741         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16742         of UNSPEC_FLOAT_CONVERT.
16743         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16744         aarch64_sve_extend<mode><Vwide>2.
16746 2019-08-14  Richard Biener  <rguenther@suse.de>
16748         PR target/91154
16749         * config/i386/i386-features.c
16750         (dimode_scalar_chain::compute_convert_gain): Compute and dump
16751         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
16752         ix86_cost->sse_op for vector instruction costs.
16754 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16756         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16757         (cmp_op): Handle it.
16758         (SVE_COND_FP_CMP): Rename to...
16759         (SVE_COND_FP_CMP_I0): ...this.
16760         (SVE_FP_CMP): Remove.
16761         * config/aarch64/aarch64-sve.md
16762         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16763         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16764         using unspecs to represent the comparison.
16765         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16766         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16767         accordingly.
16768         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16769         (aarch64_unspec_cond_code): Move after integer code.  Handle
16770         UNORDERED.
16771         (aarch64_emit_sve_predicated_cond): Replace with...
16772         (aarch64_emit_sve_fp_cond): ...this new function.
16773         (aarch64_emit_sve_or_conds): Replace with...
16774         (aarch64_emit_sve_or_fp_conds): ...this new function.
16775         (aarch64_emit_sve_inverted_cond): Replace with...
16776         (aarch64_emit_sve_invert_fp_cond): ...this new function.
16777         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16779 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16781         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16782         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16783         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16784         SVE_HSD instead of SVE_SD.
16786 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16787             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16789         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16790         iterator.
16791         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16792         attributes.
16793         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16794         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16795         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16796         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16797         (*div<SVE_F:mode>3): Generalize to...
16798         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16800 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16801             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16803         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16804         constants.
16805         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16806         predicate.
16807         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16808         Declare.
16809         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16810         function.
16811         * config/aarch64/aarch64-sve.md: Add a block comment about the
16812         handling of predicated FP operations.
16813         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16814         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16815         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16816         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16817         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16818         operand.
16819         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16820         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16821         operand.
16822         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16823         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16824         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16825         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16826         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16827         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16828         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16829         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16830         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16831         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16832         strictness operands.  Use aarch64_sve_pred_dominates_p to check
16833         whether the predicate on the conditional operation is suitable
16834         for merging.  Split patterns into the canonical equal-predicate form.
16835         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16836         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16838 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16839             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16841         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16842         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16843         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16844         rtx codes.
16845         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16846         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16847         unspecs.
16849 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16850             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16852         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16853         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
16854         actually has, rather than relying on REG_EQUAL notes.
16855         Make the insn operand order match the SVE operand order.
16856         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16857         the SVE operand order.
16859 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16861         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16862         (aarch64_emit_set_immediate): Likewise.
16863         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16864         (aarch64_pfalse_reg): Likewise.
16865         (aarch64_convert_sve_data_to_pred): New function.
16866         (aarch64_sve_move_pred_via_while): Take an optional target register
16867         and the required register mode.
16868         (aarch64_expand_sve_const_pred_1): New function.
16869         (aarch64_expand_sve_const_pred): Likewise.
16870         (aarch64_expand_mov_immediate): Build an all-true predicate
16871         if the significant bits of the immediate are all true.  Use
16872         aarch64_expand_sve_const_pred for all compile-time predicate constants.
16873         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16874         before register allocation.
16875         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16876         a VNx16BI PTRUE when splitting the memory alternative.
16877         (vec_duplicate<mode>): Update accordingly.
16878         (*pred_cmp<cmp_op><mode>): Rename to...
16879         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16881 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16883         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16884         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16885         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16886         (UNSPEC_PTEST): New unspec.
16887         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16888         * config/aarch64/iterators.md (data_bytes): New mode attribute.
16889         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16890         * config/aarch64/aarch64-sve.md: Add a new section describing the
16891         handling of UNSPEC_PTEST.
16892         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16893         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16894         (ptest_ptrue<mode>): Replace with...
16895         (aarch64_ptest<mode>): ...this new pattern.
16896         (cbranch<mode>4): Update after above changes.
16897         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16898         UNSPEC_PTEST_PTRUE.
16899         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16900         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16901         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16903 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
16905         PR lto/91287
16906         * builtins.c (builtin_with_linkage_p): New function.
16907         * builtins.h (builtin_with_linkage_p): New function.
16908         * symtab.c (write_symbol): Remove redundant assert.
16909         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16910         Remove FIXME and use builtin_with_linkage_p.
16912 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16914         PR middle-end/91421
16915         * tree-core.h (function_decl::function_code): Change type to
16916         unsigned int.
16917         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16918         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16919         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16920         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
16921         is BUILT_IN_NORMAL.
16922         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16923         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16924         (fndecl_built_in_p): Change the type of the "name" argument to
16925         unsigned int.
16926         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16927         after check for DECL_BUILT_IN_CLASS.
16928         * cgraphclones.c (build_function_decl_skip_args): Use
16929         set_decl_built_in_function.
16930         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16931         * ipa-split.c (split_function): Likewise.
16932         * langhooks.c (add_builtin_function_common): Likewise.
16933         * omp-simd-clone.c (simd_clone_create): Likewise.
16934         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16935         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16936         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16937         DECL_FUNCTION_CODE.
16938         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16939         instead of DECL_FUNCTION_CODE.
16940         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16941         instead of DECL_FUNCTION_CODE.
16942         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16943         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16944         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
16945         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16946         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16947         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16948         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16949         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16950         (alpha_gimple_fold_builtin): Likewise.
16951         * config/arc/arc.c (arc_expand_builtin): Likewise.
16952         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16953         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16954         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16955         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16956         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16957         * config/frv/frv.c (frv_expand_builtin): Likewise.
16958         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16959         (gcn_expand_builtin): Likewise.
16960         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16961         (fold_builtin_cpu): Likewise.
16962         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16963         * config/i386/i386.c (ix86_fold_builtin): Likewise.
16964         (ix86_gimple_fold_builtin): Likewise.
16965         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16966         (ia64_expand_builtin): Likewise.
16967         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16968         * config/mips/mips.c (mips_expand_builtin): Likewise.
16969         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16970         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16971         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16972         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16973         * config/pa/pa.c (pa_expand_builtin): Likewise.
16974         * config/pru/pru.c (pru_expand_builtin): Likewise.
16975         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16976         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16977         Likewise.
16978         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16979         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16980         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16981         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16982         (rs6000_builtin_reciprocal): Likewise.
16983         * config/rx/rx.c (rx_expand_builtin): Likewise.
16984         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16985         * config/s390/s390.c (s390_expand_builtin): Likewise.
16986         * config/sh/sh.c (sh_expand_builtin): Likewise.
16987         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16988         (sparc_fold_builtin): Likewise.
16989         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16990         * config/spu/spu.c (spu_expand_builtin): Likewise.
16991         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16992         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16993         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16994         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16995         (xtensa_expand_builtin): Likewise.
16997 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16999         PR middle-end/91421
17000         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17001         before the DECL_FUNCTION_CODE.
17002         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17003         to check for a BUILT_IN_ALLOCA call.
17004         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17005         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
17006         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17007         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17008         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17009         for BUILT_IN_NORMAL functions.
17010         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17011         test for BUILT_IN_TM_ABORT.
17012         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17013         to check for a BUILT_IN_STACK_RESTORE call.
17014         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17015         * tree-ssa-threadedge.c
17016         (record_temporary_equivalences_from_stmts_at_dest): Check for a
17017         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17018         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17019         test for a BUILT_IN_NORMAL call instead of a negative test for
17020         an internal function call.
17022 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17024         * tree.h (build_vector_a_then_b): Declare.
17025         * tree.c (build_vector_a_then_b): New function.
17026         * fold-const-call.c (fold_while_ult): Likewise.
17027         (fold_const_call): Use it to handle IFN_WHILE_ULT.
17028         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17029         (aarch64_svpattern): New enum.
17030         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17031         constants through aarch64_expand_mov_immediate.
17032         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17033         than general_operand as the predicate for operand 1.
17034         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17035         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17036         insn_type.
17037         (simd_immediate_info::simd_immediate_info): New overload that
17038         takes a scalar_int_mode and an svpattern.
17039         (simd_immediate_info::u): Add a "pattern" field.
17040         (svpattern_token): New function.
17041         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17042         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17043         (aarch64_sve_move_pred_via_while): New functions.
17044         (aarch64_expand_mov_immediate): Try using
17045         aarch64_sve_move_pred_via_while for predicates that contain N ones
17046         followed by M zeros but that do not correspond to a VLnnn pattern.
17047         (aarch64_sve_pred_valid_immediate): New function.
17048         (aarch64_simd_valid_immediate): Use it instead of dealing directly
17049         with PTRUE and PFALSE.
17050         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17051         forms.
17053 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17055         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17056         flag.
17057         (darwin_override_options): Likewise.
17058         * config/darwin.h: Likewise.
17059         * config/darwin.opt: Likewise.
17060         * config/i386/i386.c (output_pic_addr_const): Likewise.
17061         * config/rs6000/darwin.h: Likewise.
17062         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17063         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17064         ... this TARGET_MACHO_SYMBOL_STUBS.
17065         (FUNCTION_PROFILER):Likewise.
17066         * config/i386/i386.h: Likewise.
17068 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17070         * config/i386/i386-expand.c (ix86_expand_vector_extract)
17071         <case E_V2SImode>: Use vec_extr path for
17072         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17073         <case E_V8QImode>: Ditto.
17074         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17075         Use SWI48 mode iterator.  Use %k to output operand 0.
17076         (*mmx_pextrw): New insn pattern.
17077         (*mmx_pextrb): Ditto.
17078         (*mmx_pextrb_zext): Ditto.
17080 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
17082         * target.def (libc_has_function, libc_has_fast_function): Improve
17083         documentation strings.
17084         * doc/tm.texi: Regenerate.
17086 2019-08-13  Caroline Tice  <cmtice@google.com>
17088         PR other/91396
17089         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17090         vtv_end.o or vtv_end_preinit.o files if !static.
17092 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17094         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17096 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17098         * rtlanal.c (tablejump_casesi_pattern): New function, to
17099         determine if a tablejump insn is a casesi dispatcher. Extracted
17100         from patch_jump_insn.
17101         * rtl.h (tablejump_casesi_pattern): Declare.
17102         * cfgrtl.c (patch_jump_insn): Use it.
17103         * dwarf2cfi.c (create_trace_edges): Use it.
17105 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17107         PR target/81800
17108         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17109         operand is larger than a long int.
17111 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17113         * machmode.h (opt_mode::else_mode): New function.
17114         (opt_mode::else_blk): Use it.
17115         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17116         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17117         (aarch64_gen_stepped_int_parallel): Likewise.
17118         (aarch64_stepped_int_parallel_p): Likewise.
17119         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17120         argument.
17121         * config/aarch64/aarch64.c
17122         (aarch64_expand_sve_widened_duplicate): Delete.
17123         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17124         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17125         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17126         argument.  Use early returns in the !CONST_INT_P handling.
17127         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17128         than handling some inline.
17129         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17130         from...
17131         (aarch64_simd_container_mode): ...here.
17132         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17133         (aarch64_sve_ld1rq_operand_p): New functions.
17134         * config/aarch64/predicates.md (descending_int_parallel)
17135         (aarch64_sve_ld1rq_operand): New predicates.
17136         * config/aarch64/constraints.md (UtQ): New constraint.
17137         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17138         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17139         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17140         (@aarch64_sve_reinterpret<mode>): New expander.
17141         (*aarch64_sve_reinterpret<mode>): New pattern.
17142         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17143         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17144         (*sve_ld1rq<Vesize>): Replace with...
17145         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17147 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17149         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17150         16:12.
17152 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17154         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17155         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17156         (msp430_check_path_for_devices): New.
17157         (parse_devices_csv_1): New.
17158         (parse_devices_csv): New.
17159         (msp430_extract_mcu_data): Try to find devices.csv and search for the
17160         MCU data in devices.csv before using the hard-coded data.
17161         Warn if devices.csv isn't found and the MCU wasn't found in the
17162         hard-coded data either.
17163         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17164         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17165         Search for devices.csv on -I and -L paths.
17166         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17167         msp430_set_driver_var.
17168         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17169         -mdevices-csv-loc=.
17170         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17171         searched for devices.csv.
17172         (mwarn-devices-csv): Document option.
17174 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17176         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17177         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17178         Use a single Dn alternative instead of separate Dz and Dm
17179         alternatives.  Use aarch64_output_sve_move_immediate.
17180         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17181         function.
17182         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17183         for predicates too.
17184         (aarch64_output_sve_mov_immediate): Handle predicate modes.
17185         (aarch64_output_ptrue): Delete.
17187 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17189         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17190         INDEX.
17191         (simd_immediate_info::value, simd_immediate_info::step)
17192         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17193         with...
17194         (simd_immediate_info::u): ...this new union.
17195         (simd_immediate_info::simd_immediate_info): Update accordingly.
17196         (aarch64_output_simd_mov_immediate): Likewise.
17197         (aarch64_output_sve_mov_immediate): Likewise.
17199 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17201         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17202         extra_gcc_objs.
17203         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17204         (msp430_select_cpu): New spec function.
17205         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17206         MCU data.
17207         * config/msp430/msp430-devices.c: New file.
17208         * config/msp430/msp430-devices.h: New file.
17209         * config/msp430/msp430.c: Remove msp430_mcu_data.
17210         (msp430_option_override): Use msp430_extract_mcu_data to extract
17211         MCU data.
17212         (msp430_use_f5_series_hwmult): Likewise.
17213         (use_32bit_hwmult): Likewise.
17214         (msp430_no_hwmult): Likewise.
17215         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17216         assembler.
17217         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17218         and -mcpu option.
17219         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17220         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17221         Remove hard-coded MCU multilib data.
17223 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17225         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17226         based on the mode instead of testing properties of it.
17228 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17230         * doc/md.texi: Document the x and y constraints for AArch64.
17231         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17232         (FP_LO8_REGS): New reg_class.
17233         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17234         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17235         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17236         * config/aarch64/predicates.md (aarch64_simd_register): Use
17237         FP_REGNUM_P instead of checking the classes manually.
17238         * config/aarch64/constraints.md (y): New constraint.
17240 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17242         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17243         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17244         * config/aarch64/aarch64-simd.md
17245         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17246         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17247         from the asm template.
17248         * config/aarch64/aarch64-sve.md
17249         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17250         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17251         from the asm template.
17252         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17253         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17254         from the asm template.
17255         * config/aarch64/aarch64-simd-builtins.def: Update comment.
17257 2019-08-13  Martin Liska  <mliska@suse.cz>
17259         * value-prof.c (gimple_ic_transform): Add new line.
17260         Print details with MSG_NOTE.
17262 2019-08-13  Martin Liska  <mliska@suse.cz>
17264         * doc/invoke.texi: Document automatic detection of jobserver.
17265         * lto-wrapper.c (run_gcc): Detect jobserver always.
17267 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17269         * config/i386/i386-expand.c (ix86_expand_vector_set)
17270         <case E_V2SImode>: Use vec_merge path for
17271         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17272         <case E_V8QImode>: Ditto.
17273         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17274         (*mmx_pinsrb): Ditto.
17276 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
17278         PR target/83250
17279         PR target/91340
17280         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17281         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17282         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17283         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17284         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17286 2019-08-12  Richard Biener  <rguenther@suse.de>
17288         PR lto/91375
17289         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17290         flag_devirtualize.
17292 2019-08-12  Richard Biener  <rguenther@suse.de>
17294         PR driver/91130
17295         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17296         lang_mask option, always use CL_DRIVER.
17297         (get_options_from_collect_gcc_options): Adjust.
17298         (find_and_merge_options): Likewise.
17299         (run_gcc): Likewise.
17301 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17303         * ipa-predicate.c (add_condition): Restore inverted test.
17305 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
17307         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17308         (enum omp_clause_device_type_kind): New enum.
17309         (struct tree_omp_clause): Add subcode.device_type_kind.
17310         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17311         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17312         for device_type clause.
17313         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17314         * tree-pretty-print.c (dump_omp_clause): Likewise.
17316         PR target/91408
17317         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17318         vector_operand.
17320 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
17322         * reload1.c (finish_spills): Do not check ira_conflicts_p when
17323         handling spilled pseudos.
17325 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
17327         PR target/91386
17328         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17329         to preserve the contents of the original insns.
17331 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
17333         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17334         (addsi3_compare_op2): Likewise.
17336 2019-08-09  Martin Liska  <mliska@suse.cz>
17338         * alias.c (alias_ptr_types_compatible_p): Strengten
17339         type comparison in LTO mode.
17341 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
17343         PR middle-end/90313
17344         * tree-tailcall.c (find_tail_calls): Reject calls that might
17345         read from an escaped RESULT_DECL.
17347 2019-08-09  Martin Liska  <mliska@suse.cz>
17349         * doc/invoke.texi: Document the option value.
17350         * lto-wrapper.c (run_gcc): Set auto_parallel
17351         only with -flto=auto.
17353 2019-08-09  Martin Liska  <mliska@suse.cz>
17355         * opts.c (common_handle_option): Error for an invalid argument
17356         to -flto=.
17358 2019-08-09  Martin Liska  <mliska@suse.cz>
17360         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17361         use dump_printf to report optimization.
17362         (sem_variable::merge): Likwise.
17363         (sem_item_optimizer::merge_classes): Use dump_printf to report
17364         ICF hits.
17366 2019-08-09  Martin Liska  <mliska@suse.cz>
17368         * value-prof.c (gimple_divmod_fixed_value_transform):
17369         Use dump_printf_loc.
17370         (gimple_mod_pow2_value_transform): Likewise.
17371         (gimple_mod_subtract_transform): Likewise.
17372         (init_node_map): Likewise.
17373         (gimple_ic_transform): Likewise.
17374         (gimple_stringops_transform): Likewise.
17376 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
17378         * doc/extend.texi: Add const qualifier to ld intrinsics.
17380 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17382         * config/rs6000/dfp.md (D64_D128): Rename to ...
17383         (DDTD): ... this, throughout.
17384         (dfp_suffix): Rename to ...
17385         (q): ... this, throughout.
17387 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17389         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17390         (dfp_suffix): Ditto.
17391         (adddd3, addtd3): Merge to ...
17392         (add<mode>3 for D64_D128): ... this.
17393         (subdd3, subtd3): Merge to ...
17394         (sub<mode>3 for D64_D128): ... this.
17395         (muldd3, multd3): Merge to ...
17396         (mul<mode>3 for D64_D128): ... this.
17397         (divdd3, divtd3): Merge to ...
17398         (div<mode>3 for D64_D128): ... this.
17399         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17400         (*cmp<mode>_internal1 for D64_D128): ... this.
17401         (ftruncdd2, ftrunctd2): Merge to ...
17402         (ftrunc<mode>2 for D64_D128): ... this.
17403         (fixdddi2, fixtddi2): Merge to ...
17404         (fix<mode>di2 for D64_D128): ... this.
17406 2019-08-08  Jim Wilson  <jimw@sifive.com>
17408         PR target/91229
17409         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17410         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
17411         Pass into recursive call.
17412         (riscv_flatten_aggregate_argument): New arg.  Pass to
17413         riscv_flatten_aggregate_field.
17414         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
17415         riscv_flatten_aggregate_argument twice, with false and true as last
17416         arg.  Process result twice.  Compare results and warn if different.
17417         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17419 2019-08-08  Martin Liska  <mliska@suse.cz>
17421         PR bootstrap/91352
17422         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17423         * lto-wrapper.c (jobserver_active_p): Likewise.
17425 2019-08-08  Martin Liska  <mliska@suse.cz>
17427         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17428         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17429         (create_version_clone_with_body): Likewise.
17431 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
17433         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17434         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17435         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17436         GOVD_EXPLICIT flags.
17437         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17438         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17439         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17440         call install_var_field with mask 11 instead of 3.
17441         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17442         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17444 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17446         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17447         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17449 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17451         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17452         MOVPRFX alternatives.  Make the GPR alternatives more expensive
17453         than the FPR ones.
17455 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17457         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17458         Disparage the GPR alternative relative to the FPR one.
17459         Fix handling of 8-bit and 16-bit FPR values.
17461 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17463         * config/aarch64/iterators.md (BITWISEV): Delete.
17464         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17465         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17466         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17467         UNSPEC_FMINNMV, UNSPEC_FMINV.
17468         (bit_reduc_op): Delete.
17469         (sve_int_op): New int attribute.
17470         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17471         UNSPEC_FMINNMV, UNSPEC_FMINV.
17472         * config/aarch64/aarch64-sve.md
17473         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17474         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17475         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17476         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17477         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17478         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17479         new patterns.
17480         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17481         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17482         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17483         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17484         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17485         new patterns.
17487 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17489         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17490         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17491         (fms<mode>4, *fms<mode>4): Replace with...
17492         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17493         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17494         Use unspecs instead of rtx codes.
17495         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17496         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17498 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17500         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17501         int iterator.
17502         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17503         * config/aarch64/aarch64-sve.md
17504         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17505         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17506         use a single unspec for the rhs.
17507         (*<su><maxmin><mode>3): Delete.
17508         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17510 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17512         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17513         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17514         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17515         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17516         (optab, sve_fp_op): Handle them.
17517         (SVE_FP_UNARY): Delete.
17518         (optab): Remove sqrt entry.
17519         (sve_fp_op): Remove neg, abs and sqrt entries.
17520         (SVE_COND_FP_UNARY): New int iterator.
17521         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17522         (*<frint_pattern><mode>2): Delete.
17523         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17524         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17525         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17526         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17528 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17530         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17532 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17534         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17535         (UNSPEC_COND_FADD): ...this.
17536         (UNSPEC_COND_SUB): Rename to...
17537         (UNSPEC_COND_FSUB): ...this.
17538         (UNSPEC_COND_MUL): Rename to...
17539         (UNSPEC_COND_FMUL): ...this.
17540         (UNSPEC_COND_DIV): Rename to...
17541         (UNSPEC_COND_FDIV): ...this.
17542         (UNSPEC_COND_MAX): Rename to...
17543         (UNSPEC_COND_FMAXNM): ...this.
17544         (UNSPEC_COND_MIN): Rename to...
17545         (UNSPEC_COND_FMINNM): ...this.
17546         (UNSPEC_COND_LT): Rename to...
17547         (UNSPEC_COND_FCMLT): ...this.
17548         (UNSPEC_COND_LE): Rename to...
17549         (UNSPEC_COND_FCMLE): ...this.
17550         (UNSPEC_COND_EQ): Rename to...
17551         (UNSPEC_COND_FCMEQ): ...this.
17552         (UNSPEC_COND_NE): Rename to...
17553         (UNSPEC_COND_FCMNE): ...this.
17554         (UNSPEC_COND_GE): Rename to...
17555         (UNSPEC_COND_FCMGE): ...this.
17556         (UNSPEC_COND_GT): Rename to...
17557         (UNSPEC_COND_FCMGT): ...this.
17558         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17559         (sve_fp_op_rev): Update accordingly.
17560         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17562 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17564         * config/aarch64/aarch64-sve.md: Reorganize contents and add
17565         banner comments.
17566         * config/aarch64/check-sve-md.awk: New file.
17567         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17568         (insn-conditions.md): Depend on it.
17570 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17572         PR target/91385
17573         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17574         (*negsi2_cmpz_zext): Ditto.
17576 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17578         * config/aarch64/iterators.md (commutative): Remove.
17580 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
17582         PR driver/91130
17583         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17584         processing COLLECT_GCC_OPTIONS.
17585         (run_gcc): Likewise.
17587 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17589         PR tree-optimization/91109
17590         * lra-remat.c (update_scratch_ops): Remove assignment of the
17591         hard register.
17593 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17595         * data-streamer.h (streamer_write_poly_uint64): Declare.
17596         (streamer_read_poly_uint64): Likewise.
17597         * data-streamer-in.c (streamer_read_poly_uint64): New function.
17598         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17599         * ipa-predicate.h (condition::size): Turn into a poly_int64.
17600         (add_condition): Take a poly_int64 size.
17601         * ipa-predicate.c (add_condition): Likewise.
17602         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17603         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17604         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17605         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17606         condition::size as a poly_int64.
17607         (unmodified_parm_1): Take a poly_int64 size pointer.
17608         (unmodified_parm): Likewise.
17609         (unmodified_parm_or_parm_agg_item): Likewise.
17610         (set_cond_stmt_execution_predicate): Update accordingly.
17611         (set_switch_stmt_execution_predicate): Likewise.
17612         (will_be_nonconstant_expr_predicate): Likewise.
17613         (will_be_nonconstant_predicate): Likewise.
17614         (inline_read_section): Stream condition::size as a poly_int.
17615         (ipa_fn_summary_write): Likewise.
17617 2019-08-07  Martin Liska  <mliska@suse.cz>
17619         * fold-const.c (twoval_comparison_p): Replace int
17620         with bool as a return type.
17621         (simple_operand_p): Likewise.
17622         (operand_equal_p): Replace int with bool as a return type.
17623         * fold-const.h (operand_equal_p): Likewise.
17625 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
17627         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17628         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17629         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17630         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17631         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17632         * tree-pretty-print.c (dump_omp_clause): Likewise.
17633         * tree-nested.c (convert_nonlocal_omp_clauses,
17634         convert_local_omp_clauses): Likewise.
17635         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17636         Likewise.
17637         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17638         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17639         clause with array or reference to array types, no matter what type
17640         except for reference it has.
17642 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
17644         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17646 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
17648         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17649         (arch_canonicalize): Support rv32g and rv64g and fix error
17650         handling.
17652 2019-08-06  Martin Liska  <mliska@suse.cz>
17654         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17655         and DECL_IS_OPERATOR_DELETE_P.
17657 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
17659         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17660         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
17661         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17662         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17663         (gimplify_omp_for): Don't do C++ random access iterator clause
17664         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
17665         don't predetermine the artificial iterator in case of C++ random
17666         access iterators as lastprivate, but private.  For OMP_LOOP, force
17667         bind expr around simd body and force for_pre_body before the
17668         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17669         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17670         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17671         diff var of C++ random access iterators.  Handle
17672         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17673         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17674         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17675         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17676         * omp-low.c (lower_rec_input_clauses): For
17677         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17678         variables instead of default constructing them.
17679         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17680         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17681         is_taskloop_ctx check from the assert to the guarding condition.
17683 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
17685         * config/riscv/multilib-generator: (canonical_order): New.
17686         (arch_canonicalize): Dito.
17687         Apply arch_canonicalize for alts.
17689 2019-08-05  Martin Sebor  <msebor@redhat.com>
17691         * doc/extend.texi (Common Variable Attributes): Document alias
17692         attribute.
17694 2019-08-05  Marek Polacek  <polacek@redhat.com>
17696         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17697         * doc/invoke.texi: Document -Wcomma-subscript.
17699 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17701         * tree-core.h (tree_function_decl): Make function_code an
17702         independent field.  Group the remaining bitfields into bytes
17703         and move decl_type so that it contines to be at a byte boundary.
17704         Leave 12 bits for future expansion.
17706 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17708         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17709         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17710         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17711         IFN_MASK_STORE.
17713 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17715         * gimple.h (gimple_move_vops): Declare.
17716         * gimple.c (gimple_move_vops): New function
17717         * gimple-fold.c (replace_call_with_call_and_fold)
17718         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17719         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17720         (gimple_fold_call): Use it.
17721         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17722         * tree-call-cdce.c (use_internal_fn): Likewise.
17723         * tree-if-conv.c (predicate_load_or_store): Likewise.
17724         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17725         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17726         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17727         (update_call_from_tree): Likewise.
17728         * tree-vect-stmts.c (vectorizable_load): Likewise.
17729         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17731 2019-08-05  Martin Liska  <mliska@suse.cz>
17733         PR c++/91334
17734         * tree-ssa-dce.c (propagate_necessity): Handle new operators
17735         with not arguments.
17736         (eliminate_unnecessary_stmts): Likewise.
17738 2019-08-05  Richard Biener  <rguenther@suse.de>
17740         PR middle-end/91169
17741         * fold-const.c (get_array_ctor_element_at_index): Create
17742         offset_ints according to the sign of the index type and treat
17743         that as signed if it is obviously so.
17745 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
17747         PR target/91341
17748         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17749         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17750         _mm256_storeu2_m128i): New function.
17752 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
17754         * config/riscv/riscv.c (riscv_promote_function_mode): New.
17755         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17757 2019-08-05  Alan Modra  <amodra@gmail.com>
17759         PR target/91349
17760         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17761         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17763 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
17765         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17766         bug that was fixed in Tcl 8.6.1.
17768 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
17770         * config/rs6000/future.md: New file.
17771         * config/rs6000/rs6000.md: Include future.md.
17772         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17774 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17776         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17777         check to use targetm.slow_unaligned_access instead.
17779         * function.c (assign_param_data_one): Remove unused data members.
17781 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
17783         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17784         build_distinct_type_copy.
17785         (simd_clone_adjust_argument_types): Ditto.
17786         (simd_clone_adjust): Call build_distinct_type_copy here.
17787         (expand_simd_clones): Ditto.
17789 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17791         PR target/91201
17792         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17794 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
17796         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17797         from 'const void *'.
17798         (sort_locs_in_loop_postorder_cmp): Likewise.
17800 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
17802         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17803         (hot-bb-count-ws-permille): Likewise.
17804         (hot-bb-frequency-fraction): Likewise.
17805         (unlikely-bb-count-fraction): Likewise.
17806         * params.def (hot-bb-count-fraction): Rework description.
17807         (hot-bb-count-ws-permille): Likewise.
17808         (hot-bb-frequency-fraction): Likewise.
17809         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
17810         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17812 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17814         PR target/91323
17815         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17816         Return false.
17818 2019-08-02  Richard Biener  <rguenther@suse.de>
17820         * vec.h (vec::sort): Add gcc_qsort_r support.
17821         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17822         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17823         to gcc_qsort_r style callback.
17824         (sort_locs_in_loop_postorder_cmp): Likewise.
17825         (analyze_memory_references): Use gcc_sort_r interfaces.
17826         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17828 2019-08-02  Martin Liska  <mliska@suse.cz>
17830         PR lto/91313
17831         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17832         to detect working job server.
17833         (driver::detect_jobserver): Test whether jobserver
17834         is active from GCC driver. That will prevent situation where
17835         GCC is invoked from a LD plugin and the linker already uses
17836         file descriptors suggested by make.  That leads to a wrong
17837         detection.
17838         * gcc.h (driver): Add detect_jobserver.
17839         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17840         not scanning for --jobserver-auth prefix.
17842 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
17844         PR tree-optimization/91201
17845         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17846         V16QImode extraction without sse4.1 try to use V4SImode lowpart
17847         extraction.
17849 2019-08-01  Martin Sebor  <msebor@redhat.com>
17851         PR c++/90947
17852         * tree.c (type_initializer_zero_p): Define.
17853         * tree.h (type_initializer_zero_p): New function.
17855 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
17857         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17859 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
17861         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17862         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
17863         * predict.c (maybe_hot_count_p): Likewise.
17864         (maybe_hot_bb_p): Tweak comment.
17865         (maybe_hot_edge_p): Likewise.
17866         (probably_never_executed): Likewise.  Minor tweak.
17867         (probably_never_executed_bb_p): Likewise.
17868         (unlikely_executed_edge_p): Likewise.
17869         (probably_never_executed_edge_p): Likewise.
17870         (optimize_function_for_size_p): Likewise.
17871         (optimize_function_for_speed_p): Likewise.
17872         (function_optimization_type): Likewise.
17873         (optimize_bb_for_size_p): Likewise.
17874         (optimize_bb_for_speed_p): Likewise.
17875         (bb_optimization_type): Likewise.
17876         (optimize_edge_for_size_p): Likewise.
17877         (optimize_edge_for_speed_p): Likewise.
17878         (optimize_insn_for_size_p): Likewise.
17879         (optimize_insn_for_speed_p): Likewise.
17880         (optimize_loop_for_size_p): Likewise.
17881         (optimize_loop_for_speed_p): Likewise.
17882         (optimize_loop_nest_for_speed_p): Likewise.
17883         (optimize_loop_nest_for_size_p): Likewise.
17884         (predictable_edge_p): Likewise.
17885         (handle_missing_profiles): Minor tweak.
17887 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
17889         * config/rs6000/predicates.md (pcrel_external_address): Update
17890         comment.
17892 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17894         PR target/85693
17895         * config/i386/mmx.md (usadv8qi): New expander.
17897 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
17899         PR c++/90590
17900         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17901         with reserved names that are in a system header.
17903 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17905         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17906         (*vec_extractv2si_0_zext_sse4): New insn pattern.
17907         (*vec_extractv2si_0_zext): Ditto.
17908         (*vec_extractv2si_1): Add (rm,x) alternative.
17909         (*vec_extractv2si_1_zext): New insn pattern.
17910         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17911         insn constraint.
17913 2019-08-01  Richard Biener  <rguenther@suse.de>
17915         * domwalk.c (bb_postorder): Remove static variable.
17916         (cmp_bb_postorder): Adjust.
17917         (sort_bbs_postorder): Adjust and use gcc_sort_r.
17918         (dom_walker::walk): Adjust.
17920 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
17922         * sort.cc (sort_r_ctx): New struct.
17923         (reorder23): Make templated on context type.
17924         (reorder45): Ditto.
17925         (cmp1): Ditto.  Adjust signature.
17926         (netsort): Ditto.
17927         (mergesort): Ditto.
17928         [CHECKING_P] (cmp2to3): New static function.  Use it...
17929         (gcc_qsort) [CHECKING_P]: ...here.
17930         (gcc_sort_r): New function.
17931         * system.h (sort_r_cmp_fn): New function typedef.
17932         (qsort_chk): Adjust signature.
17933         (gcc_sort_r): Declare.
17934         * vec.c (qsort_chk_error): Adjust.
17935         (qsort_chk): Adjust.
17937 2019-08-01  Richard Biener  <rguenther@suse.de>
17939         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17940         (compute_antic): Localize it here.
17942 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
17944         * common/config/riscv/riscv-common.c: Check -march string ends
17945         with null.
17947 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
17949         * ipa-devirt.c (type_warning_cmp): Make static.
17950         (decl_warning_cmp): Ditto.
17952 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
17954         PR target/91050
17955         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17956         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17957         use of deleted rs6000_dejagnu_cpu_index variable.
17958         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17959         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17960         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17961         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17962         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17963         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17965 2019-07-31  Richard Biener  <rguenther@suse.de>
17967         PR tree-optimization/91280
17968         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17969         Decompose MEM_REF manually for offset handling.
17971 2019-07-31  Richard Biener  <rguenther@suse.de>
17973         PR tree-optimization/91293
17974         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17975         of reduction stmts.
17977 2019-07-31  Matt Thomas  <matt@3am-software.com>
17978             Nick Hudson  <nick@nthcliff.demon.co.uk>
17979             Matthew Green  <mrg@eterna.com.au>
17980             Maya Rashish  <coypu@sdf.org>
17982         * config.gcc (hppa*-*-netbsd*): New target.
17983         * config/pa/pa-netbsd.h: New file.
17984         * config/pa/pa32-netbsd.h: New file.
17986 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
17988         PR tree-optimization/91201
17989         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17991 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
17993         * config/gcn/gcn-valu.md
17994         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17995         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17996         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17997         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17998         struct ilist. Add nops for delayeduse insns.
17999         * config/gcn/gcn.md (delayeduse): New attribute.
18000         (*movbi): Remove s_waitcnt from stores.
18001         (*mov<mode>_insn): Likewise.
18002         (*movti_insn): Likewise. Add delayeduse attribute.
18003         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18004         (atomic_store<mode>): Remove or adjust s_waitcnt.
18006 2019-07-31  Richard Biener  <rguenther@suse.de>
18008         * vr-values.h (vr_values::swap_vr_value): New.
18009         (vr_values::free_value_range): likewise.
18010         * vr-values.c (vr_values::swap_vr_value): Implement.
18011         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18012         Do not return a range or take a var.
18013         (evrp_range_analyzer::stack): Change back to recording a non-const
18014         value_range *.
18015         * gimple-ssa-evrp-analyze.c
18016         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18017         value-range.
18018         (evrp_range_analyzer::pop_to_marker): Adjust.
18019         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18020         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
18021         no longer needed value-range.
18023 2019-07-31  Martin Liska  <mliska@suse.cz>
18025         * tree-ssa-dce.c (propagate_necessity): Delete operator can
18026         have size and (or) alignment as 2nd and later arguments.
18027         Mark all of them as necessary.
18029 2019-07-31  Richard Biener  <rguenther@suse.de>
18031         PR tree-optimization/91178
18032         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18033         Use tail-recursion.
18035 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18037         PR tree-optimization/91201
18038         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18039         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18040         TARGET_AVX512F.
18041         (reduc_plus_scal_<mode>): Improve formatting by introducing
18042         a temporary.
18044 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
18046         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18047         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18048         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18049         (aarch64_init_tme_builtins): New.
18050         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18051         (aarch64_expand_builtin_tme): New.
18052         (aarch64_expand_builtin): Handle TME builtins.
18053         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18054         __ARM_FEATURE_TME when enabled.
18055         * config/aarch64/aarch64-option-extensions.def: Add "tme".
18056         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18057         (TARGET_TME): New.
18058         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18059         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18060         UNSPECV_TCANCEL.
18061         (tstart, ttest, tcommit, tcancel): New instructions.
18062         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18063         (__tcancel, __ttest): New.
18064         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18065         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18066         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18067         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18068         * config/arm/types.md: Add new tme type attr.
18069         * doc/invoke.texi: Document "tme".
18071 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
18073         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18074         warn_unused_result attribute.
18075         (cmse_check_address_range): Add warn_unused_result attribute.
18077 2019-07-31  Richard Biener  <rguenther@suse.de>
18079         PR tree-optimization/91257
18080         * tree-vrp.c (union_ranges): Unify equality and less tests
18081         by using compare_values.  Re-order cheap tests first.
18083 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18085         PR middle-end/91301
18086         * gimplify.c (gimplify_omp_for): If for class iterator on
18087         distribute parallel for there is no data sharing clause
18088         on inner_for_stmt, look for private clause on combined
18089         parallel too and if found, move it to inner_for_stmt.
18091 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
18093         * lra-int.h (lra_operand_data): Remove early_clobber field.
18094         (lra_insn_reg): Likewise.
18095         * lra.c (debug_operand_data): Update accordingly.
18096         (setup_operand_alternative): Likewise.
18097         (new_insn_reg): Likewise.  Remove early_clobber parameter.
18098         (collect_non_operand_hard_regs): Update call accordingly.
18099         Don't assign to lra_insn_reg::early_clobber.
18100         (add_regs_to_insn_regno_info): Remove early_clobber parameter
18101         and update calls to new_insn_reg.
18102         (lra_update_insn_regno_info): Update calls accordingly.
18103         * lra-constraints.c (update_and_check_small_class_inputs): Take the
18104         alternative number as a parameter and test whether the operand
18105         is earlyclobbered in that particular alternative.
18106         (process_alt_operands): Update call accordingly.  Use per-alternative
18107         checks for earyclobber here too.
18108         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18109         against zero for IRA_UNKNOWN_ALT.
18111 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18113         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18115 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
18117         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18118         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18120 2019-07-30  Martin Liska  <mliska@suse.cz>
18122         PR ipa/89330
18123         * cgraph.c (cgraph_edge::make_direct): Use
18124         edge->indirect_unknown_callee as edge->resolve_speculation can
18125         deallocate edge which is this pointer.
18127 2019-07-30  Richard Biener  <rguenther@suse.de>
18129         PR tree-optimization/91257
18130         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18132 2019-07-30  Martin Liska  <mliska@suse.cz>
18134         * doc/invoke.texi: Document new behavior.
18135         * lto-wrapper.c (cpuset_popcount): New function
18136         is a copy of libgomp/config/linux/proc.c.
18137         (init_num_threads): Likewise.
18138         (run_gcc): Automatically detect core count for -flto.
18139         (jobserver_active_p): New function.
18141 2019-07-30  Richard Biener  <rguenther@suse.de>
18143         PR tree-optimization/91257
18144         * bitmap.h (bitmap_ior_into_and_free): Declare.
18145         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18146         whether to add the unliked element to the freelist.
18147         (bitmap_list_insert_element_after): Add defaulted param for
18148         an already allocated element.
18149         (bitmap_ior_into_and_free): New function.
18150         * tree-ssa-structalias.c (condense_visit): Reduce the
18151         ponts-to and edge bitmaps of the SCC members in a
18152         logarithmic fashion rather than all to one.
18154 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18156         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18157         parameter.  When nonnull, make sure that the addition or subtraction
18158         has the same condition.
18159         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18160         for CFN_COND_MUL too.
18162 2019-07-30  Richard Biener  <rguenther@suse.de>
18164         PR tree-optimization/91291
18165         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18166         constant values.
18168 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
18170         PR middle-end/91216
18171         * omp-low.c (global_nonaddressable_vars): New variable.
18172         (use_pointer_for_field): For global decls, if they are non-addressable,
18173         remember it in the global_nonaddressable_vars bitmap, if they are
18174         addressable and in the global_nonaddressable_vars bitmap, ignore their
18175         TREE_ADDRESSABLE bit.
18176         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18177         vars in global_nonaddressable_vars bitmap.
18178         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18180         PR target/91150
18181         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18182         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
18183         comparison to unsigned HOST_WIDE_INT before shifting it left.
18185 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18187         * config/i386/i386.md (movstrict<mode>): Use register_operand
18188         predicate for operand 0.  Add expander condition.  Assert that
18189         operand 0 is a SUBREG RTX.
18190         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18191         Update operand constraints and insn condition.
18192         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18193         (zero_extendqihi2_and): Do not call gen_movstrictqi.
18194         (*setcc_qi_slp): Use register_operand predicate for operand 0.
18195         Update operand 0 constraints.
18196         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18198 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18200         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18201         when -m{code,data}-region are used without -mlarge.
18202         * config/msp430/msp430.c (msp430_option_override): Error when a
18203         non-default code or data region is used without -mlarge.
18204         (msp430_section_attr): Emit a warning and do not add upper/lower/either
18205         attributes when they are used without -mlarge.
18207 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18209         PR target/70320
18210         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18212 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18214         PR middle-end/91242
18215         * wide-int.h (generic_wide_int::sext_elt): New function.
18216         * inchash.h (hash::add_wide_int): Use it instead of elt.
18218 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18220         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18221         CODE_FOR_arm_##.
18222         * config/arm/arm.md (<crc_variant>): Rename to...
18223         (arm_<crc_variant>): ... This.
18224         (<cdp>): Rename to...
18225         (arm_<cdp>): ... This.
18226         (<ldc>): Rename to...
18227         (arm_<ldc>): ... This.
18228         (<stc>): Rename to...
18229         (arm_<stc>): ... This.
18230         (<mcr>): Rename to...
18231         (arm_<mcr>): ... This.
18232         (<mrc>): Rename to...
18233         (arm_<mrc>): ... This.
18234         (<mcrr>): Rename to...
18235         (arm_<mcrr>): ... This.
18236         (<mrrc>): Rename to...
18237         (arm_<mrrc>): ... This.
18239 2019-07-29  Richard Biener  <rguenther@suse.de>
18241         PR tree-optimization/91257
18242         * tree-ssa-sccvn.h (struct vn_avail): New.
18243         (struct vn_ssa_aux): Add avail member.
18244         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18245         member, add m_avail_freelist one.
18246         (rpo_elim::~rpo_elim): Remove.
18247         (rpo_elim::eliminate_avail): Adjust to new avail tracking
18248         data structure.
18249         (rpo_elim::eliminate_push_avail): Likewise.
18250         (do_unwind): Likewise.
18251         (do_rpo_vn): Likewise.
18253 2019-07-29  Richard Biener  <rguenther@suse.de>
18255         PR tree-optimization/91257
18256         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18257         most cases, instead call compare_values which handles the
18258         symbolic ranges we handle specially.
18259         (compare_values_warnv): Do not call operand_less_p but open-code
18260         the effective fold calls.  Avoid converting so much.
18262 2019-07-29  Martin Liska  <mliska@suse.cz>
18264         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18265         remove LHS of operator new call.  It's handled latter.
18267 2019-07-29  Richard Biener  <rguenther@suse.de>
18269         PR tree-optimization/91267
18270         * vr-values.c (vr_values::update_value_range): Add early return
18271         for effectively VARYING lattice entry.
18273 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18275         PR debug/86638
18276         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18277         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18278         necessary if keep_all_vdefs_p is true.
18279         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18280         that keep_all_vdefs_p is false.
18281         (mark_all_reaching_defs_necessary): Likewise.
18282         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18284 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18286         * common.opt (Og): Change the initial value of flag_dse to 0.
18287         * opts.c (default_options_table): Move OPT_ftree_dse from
18288         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
18289         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
18290         entry before the OPT_ftree_sra entry.
18291         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18292         of flags disabled by Og.
18294 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18296         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18297         variables for -Og.
18299 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18301         * doc/sourcebuild.texi (check-function-bodies): Document.
18303 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18305         * simplify-rtx.c (simplify_const_unary_operation): Fold a
18306         VEC_DUPLICATE of a fixed-length vector even if the result
18307         is variable-length.  Likewise fold a duplicate of a
18308         variable-length vector if the variable-length vector is
18309         itself a duplicate of a fixed-length sequence.
18310         (test_vector_ops_duplicate): Test more cases.
18312 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18314         * vector-builder.h (vector_builder): Add a shape template parameter.
18315         (vector_builder::new_unary_operation): New function, generalizing
18316         the old tree_vector_builder function.
18317         (vector_builder::new_binary_operation): Likewise.
18318         (vector_builder::binary_encoded_nelts): Likewise.
18319         * int-vector-builder.h (int_vector_builder): Update template
18320         parameters to vector_builder.
18321         (int_vector_builder::shape_nelts): New function.
18322         * rtx-vector-builder.h (rtx_vector_builder): Update template
18323         parameters to vector_builder.
18324         (rtx_vector_builder::shape_nelts): New function.
18325         (rtx_vector_builder::nelts_of): Likewise.
18326         (rtx_vector_builder::npatterns_of): Likewise.
18327         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18328         * tree-vector-builder.h (tree_vector_builder): Update template
18329         parameters to vector_builder.
18330         (tree_vector_builder::shape_nelts): New function.
18331         (tree_vector_builder::nelts_of): Likewise.
18332         (tree_vector_builder::npatterns_of): Likewise.
18333         (tree_vector_builder::nelts_per_pattern_of): Likewise.
18334         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18335         (tree_vector_builder::new_binary_operation): Delete.
18336         (tree_vector_builder::binary_encoded_nelts): Likewise.
18337         * simplify-rtx.c: Include rtx-vector-builder.h.
18338         (distributes_over_addition_p): New function.
18339         (simplify_const_unary_operation)
18340         (simplify_const_binary_operation): Generalize handling of vector
18341         constants to include variable-length vectors.
18342         (test_vector_ops_series): Add more tests.
18344 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
18346         PR lto/91222
18347         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18348         than INDENTIFIER_POINTER.
18350 2019-07-28  Martin Liska  <mliska@suse.cz>
18352         PR ipa/89330
18353         * cgraph.c (symbol_table::create_edge): Always allocate
18354         a cgraph_edge.
18355         (symbol_table::free_edge): Store summary_id to
18356         edge_released_summary_ids if != -1;
18357         * cgraph.h (NEXT_FREE_NODE): Remove.
18358         (SET_NEXT_FREE_NODE): Likewise.
18359         (NEXT_FREE_EDGE): Likewise.
18360         (symbol_table::release_symbol): Store summary_id to
18361         cgraph_released_summary_ids if != -1;
18362         (symbol_table::allocate_cgraph_symbol): Always allocate
18363         a cgraph_node.
18365 2019-07-28  Alan Modra  <amodra@gmail.com>
18367         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18368         gen_sibcall.
18370 2019-07-28  Alan Modra  <amodra@gmail.com>
18372         PR target/91135
18373         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18374         define.
18375         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18376         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18377         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18379 2019-07-28  Alan Modra  <amodra@gmail.com>
18381         PR target/91050
18382         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18383         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18384         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18385         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18386         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18387         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18388         in asm_default spec.
18389         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18390         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18392 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
18394         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18396 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
18398         PR target/89517
18399         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18400         * config/aarch64/aarch64-option-extensions.def: Add new comments
18401         and restore easier to read options.
18403 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
18405         * convert.c (convert_to_real_1): Move part of conversion code...
18406         * match.pd: ...To here.
18408 2019-07-26  Martin Jambor  <mjambor@suse.cz>
18410         PR ipa/89330
18411         * ipa-inline-transform.c (check_speculations_1): New function.
18412         (push_all_edges_in_set_to_vec): Likewise.
18413         (check_speculations): Use check_speculations_1, new parameter
18414         new_edges.
18415         (inline_call): Pass new_edges to check_speculations.
18416         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18417         NULL.
18418         (speculation_useful_p): Early return true if edge is inlined, remove
18419         later checks for inline_failed.
18421 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
18423         PR rtl-optimization/91223
18424         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18425         matching with INOUT operand.
18427 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18429         * stmt.c (expand_case): Try to narrow the index type if it's larger
18430         than a word.  Tidy up.
18432 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18434         * cif-code.def (NEVER_CALL): New code.
18435         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18436         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18438 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
18440         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18441         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18443 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18445         * ipa-devirt.c (add_type_duplicate): Fix return value.
18447 2019-07-25  Richard Biener  <rguenther@suse.de>
18449         * tree-vrp.c (extract_range_from_multiplicative_op): Add
18450         type parameter and use it instead of guessing expression
18451         type from the first operand.
18452         (extract_range_from_binary_expr): Pass expr_type down.
18454 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18456         * config/arm/arm.md (SATrev): Change to code attribute.
18457         (*satsi_<SAT:code>): Adjust for the above.
18458         (*satsi_<SAT:code>_shift): Likewise.
18460 2019-07-25  Richard Biener  <rguenther@suse.de>
18462         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18463         Make value_range * temporary const.
18464         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18465         Likewise.
18466         (evrp_range_analyzer::record_ranges_from_): Likewise.
18467         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18468         deal with having recorded a const one.
18469         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18470         Return a const value_range *.
18471         (evrp_range_analyzer::pop_value_range): Likewise.
18472         (evrp_range_analyzer::stack): Record const value_range *s.
18473         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18474         Adjust.
18475         * gimple-ssa-sprintf.c (get_int_range): Likewise.
18476         (format_integer): Likewise.
18477         (sprintf_dom_walker::handle_gimple_call): Likewise.
18478         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18479         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18480         (vrp_prop::get_value_range): Adjust.
18481         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18482         modifying the lattice in-place.
18483         (vrp_prop::visit_stmt): Likewise.
18484         * vr-values.c (vr_values::get_lattice_entry): New private method.
18485         (vr_values::get_value_range): Wrap it and return a const
18486         value_range *.
18487         (vr_values::set_def_to_varying): New.
18488         (vr_values::set_defs_to_varying): Use it.
18489         (vr_values::update_value_range): Likewise.
18490         (vr_values::vrp_stmt_computes_nonzero): Adjust.
18491         (values::op_with_constant_singleton_va): Likewise.
18492         (vr_values::extract_range_for_var_from_co): Likewise.
18493         (vr_values::extract_range_from_ssa_name): Likewise.
18494         (vr_values::extract_range_from_cond_expr): Likewise.
18495         (vr_values::extract_range_basic): Likewise.
18496         (compare_ranges): Take const value_range *, adjust.
18497         (compare_range_with_value): Likewise.
18498         (vrp_valueize): Adjust.
18499         (vrp_valueize_1): Likewise.
18500         (vr_values::get_vr_for_comparison): Return a const value_range *.
18501         (vr_values::compare_name_with_value): Adjust.
18502         (vr_values::compare_names): Likewise.
18503         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18504         Likewise.
18505         (vr_values::vrp_evaluate_conditional): Likewise.
18506         (find_case_label_ranges): Take a const value_range *.
18507         (vr_values::vrp_visit_switch_stmt): Adjust.
18508         (vr_values::extract_range_from_phi_node): Likewise.
18509         (vr_values::simplify_div_or_mod_using_ran): Likewise.
18510         (vr_values::simplify_abs_using_ranges): Likewise.
18511         (test_for_singularity): Take a const value_range *.
18512         (range_fits_type_p): Likewise.
18513         (vr_values::simplify_cond_using_ranges_1): Adjust.
18514         (vr_values::simplify_cond_using_ranges_2): Likewise.
18515         (vr_values::simplify_switch_using_ranges): Likewise.
18516         (vr_values::simplify_float_conversion_usi): Likewise.
18517         (vr_values::two_valued_val_range_p): Likewise.
18518         * vr-values.h (vr_values::get_value_range): Return a const
18519         value_range *.
18520         (vr_values::set_def_to_varying): New.
18521         (vr_values::get_lattice_entry): New private method.
18522         (vr_values::get_vr_for_comparison): Return a const value_range *.
18524 2019-07-25  Martin Liska  <mliska@suse.cz>
18525             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
18527         PR c++/23383
18528         * common.opt: Add -fallocation-dce
18529         * gimple.c (gimple_call_operator_delete_p): New.
18530         * gimple.h (gimple_call_operator_delete_p): Likewise.
18531         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18532         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18533         DECL_IS_OPERATOR_DELETE_P.
18534         (mark_all_reaching_defs_necessary_1): Likewise.
18535         (propagate_necessity): Likewise.
18536         (eliminate_unnecessary_stmts): Handle
18537         gimple_call_operator_delete_p.
18538         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18539         Add packing of OPERATOR_DELETE.
18540         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18541         Similarly here.
18542         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18543         (DECL_SET_IS_OPERATOR_DELETE): New.
18544         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18546 2019-07-25  Martin Liska  <mliska@suse.cz>
18548         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18549         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18550         * coverage.c (coverage_begin_function): Likewise.
18551         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18552         * gimple.c (gimple_call_nonnull_result_p): Likewise.
18553         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18554         (sem_item::hash_referenced_symbol_properties): Likewise.
18555         * lto-streamer-out.c (hash_tree): Likewise.
18556         * predict.c (expr_expected_value_1): Likewise.
18557         * tree-inline.c (expand_call_inline): Likewise.
18558         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18559         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18560         * tree-core.h (enum function_decl_type): New enum.
18561         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18562         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18563         (set_function_decl_type): Likewise.
18564         (DECL_IS_OPERATOR_NEW_P): New.
18565         (DECL_SET_IS_OPERATOR_NEW): Likewise.
18566         (DECL_LAMBDA_FUNCTION): Likewise.
18567         (DECL_LAMBDA_FUNCTION_P): Likewise.
18568         (DECL_IS_OPERATOR_NEW): Remove.
18569         (DECL_SET_LAMBDA_FUNCTION): Likewise.
18571 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
18573         * ipa-profile.c (get_most_common_single_value): Use
18574         get_nth_most_common_value.
18575         * profile.c (sort_hist_value): New function.
18576         (compute_value_histograms): Call sort_hist_value to sort the
18577         values after loading from disk.
18578         * value-prof.c (get_most_common_single_value): Rename to ...
18579         get_nth_most_common_value.  Add input params n, return
18580         the n_th value and count.
18581         (gimple_divmod_fixed_value_transform): Use
18582         get_nth_most_common_value.
18583         (gimple_ic_transform): Likewise.
18584         (gimple_stringops_transform): Likewise.
18585         * value-prof.h (get_most_common_single_value): Add input params
18586         n, default to 0.
18588 2019-07-25  Richard Biener  <rguenther@suse.de>
18590         PR tree-optimization/91236
18591         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18592         size of CONSTRUCTOR write.  Fix buffer size we pass to
18593         native_encode_expr.
18595 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18597         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18598         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18599         r273773.
18601 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18603         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18604         explicitly disabled with --disable-initfini-array.
18606 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18608         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18609         if-exists.
18611 2019-07-24  Martin Sebor  <msebor@redhat.com>
18613         PR tree-optimization/91183
18614         PR tree-optimization/86688
18615         * builtins.c (compute_objsize): Handle MEM_REF.
18616         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18617         (get_min_string_length): Remove.
18618         (count_nonzero_bytes): New function.
18619         (handle_char_store): Rename...
18620         (handle_store): to this.  Handle multibyte stores via integer types.
18621         (strlen_check_and_optimize_stmt): Adjust conditional and the called
18622         function name.
18624 2019-07-24  Martin Sebor  <msebor@redhat.com>
18626         PR driver/80545
18627         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18628         (diagnostic_report_diagnostic): Same.
18629         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18630         (diagnostic_context::lang_mask): New data member.
18631         * ipa-pure-const.c (suggest_attribute): Use
18632         lang_hooks.option_lang_mask ().
18633         * opts-common.c (option_enabled): Handle new argument.
18634         (get_option_state): Pass an additional argument.
18635         * opts.c (print_filtered_help): Print supported languages for
18636         unsupported options.  Adjust printing of current state.
18637         * opts.h (option_enabled): Add argument.
18638         * toplev.c (print_switch_values): Use lang_mask.
18639         (general_init): Set global_dc->lang_mask.
18641 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
18643         PR bootstrap/87030
18644         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18646 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
18648         * cgraphunit.c (symbol_table::compile): Start and stop
18649         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18650         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18652 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
18654         * gimplify.c (flag_instrument_functions_exclude_p): Include
18655         namespace/class information in the printable name.
18656         * opts.c (add_comma_separated_to_vector): Add NUL terminator
18657         to tokens entered into the vector.
18659 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
18661         * tree-nested.c (build_simple_mem_ref_notrap): New function.
18662         (get_static_chain): Call it instead of build_simple_mem_ref.
18663         (get_frame_field): Likewise.
18664         (get_nonlocal_debug_decl): Likewise.
18665         (convert_nonlocal_reference_op): Likewise.
18667 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
18669         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18670         declaration.
18671         (arc_compute_frame_size): Millicode is disabled when compiling
18672         ISR.
18673         (arc_return_address_register): Likewise.
18674         (arc_compute_function_type): Likewise.
18675         (arc_compute_frame_size): Likewise.
18676         (secondary_reload_info): Likewise.
18677         (arc_get_unalign): Likewise.
18678         (arc_can_use_return_insn): Declare.
18679         * config/arc/arc.c (AUX_LP_START): Define
18680         (AUX_LP_END): Likewise.
18681         (arc_frame_info): Update gmask member to 64-bit datum.
18682         (GMASK_LEN): Update.
18683         (arc_compute_function_type): Make it static, move it forward.
18684         (arc_must_save_register): Update, consider the extra regs.
18685         (arc_compute_millicode_save_restore_regs): Update to use the 64
18686         bit gmask.
18687         (arc_compute_frame_size): Likewise.
18688         (arc_enter_leave_p): Likewise.
18689         (arc_save_callee_saves): Likewise.
18690         (arc_restore_callee_saves): Likewise.
18691         (arc_save_callee_enter): Likewise.
18692         (arc_restore_callee_leave): Likewise.
18693         (arc_save_callee_milli): Likewise.
18694         (arc_restore_callee_milli): Likewise.
18695         (arc_expand_prologue): Add new interrupt handling.
18696         (arc_return_address_register): Make it static, move it forward.
18697         (arc_expand_epilogue): Add new interrupt handling.
18698         (arc_get_unalign): Delete.
18699         (arc_epilogue_uses): Make sure we do not remove the extra
18700         saved/restored registers when interrupt.
18701         (arc_can_use_return_insn): New function.
18702         (push_reg): Likewise.
18703         (pop_reg): Likewise.
18704         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18705         procedures.
18706         (arc_restore_callee_saves): Likewise, but restoring.
18707         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18708         (R33_REG): Likewise.
18709         (R34_REG): Likewise.
18710         (R35_REG): Likewise.
18711         (R36_REG): Likewise.
18712         (R37_REG): Likewise.
18713         (R38_REG): Likewise.
18714         (R39_REG): Likewise.
18715         (R45_REG): Likewise.
18716         (R46_REG): Likewise.
18717         (R47_REG): Likewise.
18718         (R48_REG): Likewise.
18719         (R49_REG): Likewise.
18720         (R50_REG): Likewise.
18721         (R51_REG): Likewise.
18722         (R52_REG): Likewise.
18723         (R53_REG): Likewise.
18724         (R54_REG): Likewise.
18725         (R55_REG): Likewise.
18726         (R56_REG): Likewise.
18727         (R58_REG): Likewise.
18728         (type): Add rtie attribute.
18729         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18730         (movsi_insn): Accept moves to lp_count.
18731         (rtie): Update pattern.
18732         (simple_return): Simplify it, don't use this pattern as a return
18733         from an interrupt.
18734         (arc600_rtie): New pattern.
18735         (p_return_i): Clean up.
18736         (return): Likewise.
18737         * config/arc/builtins.def (rtie): Only available for non ARC6xx
18738         family CPUs.
18739         * config/arc/predicates.md (move_src_operand): Consider lp_count
18740         as a register.
18742 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
18744         * config/s390/predicates.md (addv_const_operand): New predicate.
18745         * config/s390/s390-modes.def (CCO): New condition code mode.
18746         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18747         (s390_branch_condition_mask): Likewise.
18748         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18749         ("mulv<mode>4"): New expanders.
18750         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18751         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18752         pattern definitions.
18754 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18756         PR middle-end/91166
18757         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18758         (define_predicates): Add entry for uniform_vector_p.
18759         (vec_same_elem_p): New match pattern.
18761 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
18763         PR bootstrap/87030
18764         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18765         * config/i386/darwin32-biarch.h .. to here.
18766         * config/i386/darwin64-biarch.h: Adjust comments.
18767         * config/rs6000/darwin32-biarch.h: Likewise.
18768         * config/rs6000/darwin64-biarch.h: Likewise.
18769         * config.gcc: Missed commit from r273746
18770         (*-*-darwin*): Don't include CPU t-darwin here.
18771         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18772         an error message if i686-darwin configuration is attempted for
18773         Darwin >= 18.
18775 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
18777         PR bootstrap/87030
18778         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18779         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18780         an error message if i686-darwin configuration is attempted for
18781         Darwin >= 18.
18782         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18783         (powerpc-*-darwin*): Use biarch files where needed.
18784         (powerpc64-*-darwin*): Likewise.
18785         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18786         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18787         arch case.
18788         * config/i386/darwin32-biarch.h: New.
18789         * config/i386/darwin64.h: Rename.
18790         * config/i386/darwin64-biarch.h: To this.
18791         * config/i386/t-darwin: Rename.
18792         * config/i386/t-darwin32-biarch: To this.
18793         * config/i386/t-darwin64: Rename.
18794         * config/i386/t-darwin64-biarch: To this.
18795         * config/rs6000/darwin32-biarch.h: New.
18796         * config/rs6000/darwin64.h: Rename.
18797         * config/rs6000/darwin64-biarch.h: To this.
18798         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18799         arch case.
18800         * config/rs6000/t-darwin8: Rename.
18801         * config/rs6000/t-darwin32-biarch: To this.
18802         * config/rs6000/t-darwin64 Rename.
18803         * config/rs6000/t-darwin64-biarch: To this.
18805 2019-07-23  Martin Sebor  <msebor@redhat.com>
18807         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18809 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
18811         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18812         (rh): New alias for it.
18814 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
18816         * gdbhooks.py: Pass replace=True to
18817         gdb.printing.register_pretty_printer.
18819 2019-07-23  Richard Biener  <rguenther@suse.de>
18821         PR debug/91231
18822         * lto-streamer-in.c (input_function): Drop inline-entry markers
18823         that ended up with an unknown location block.
18825 2019-07-23  Richard Biener  <rguenther@suse.de>
18827         PR tree-optimization/83518
18828         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18829         init from a constant even when partial defs are already recorded.
18831 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18833         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18834         * config/i386/znver1.md: Enable patterns for znver2 and add store
18835         variants which use extra AGU unit.
18837 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18839         * config/i386/i386-options.c (ix86_option_override_internal): Default
18840         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18841         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18842         for ZNVER2.
18844 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18846         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18847         (znver2_costs): Update 256 bit SSE costs and multiplication.
18849 2019-07-23  Jan Beulich  <jbeulich@suse.com>
18851         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18852         Require only AVX512F.
18853         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
18854         alternative expanding to vpternlog.
18856 2019-07-23  Martin Liska  <mliska@suse.cz>
18858         * dwarf2out.c (gen_producer_string): Canonize -flto=N
18859         to -flto in dwarf producer string.
18861 2019-07-23  Richard Biener  <rguenther@suse.de>
18863         * tree-cfg.c (label_for_bb): Remove global var.
18864         (main_block_label): Take label_for_bb as argument.
18865         (cleanup_dead_labels_eh): Likewise, adjust.
18866         (cleanup_dead_labels): Adjust.
18868 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
18870         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18871         Configurations): Add documentation for __builtin_mtfsf.
18873 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
18875         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18876         * config/riscv/riscv.c (riscv_constant_alignment): Use
18877         riscv_align_data_type.
18878         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18879         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18880         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18881         * config/riscv/riscv.opt (malign-data): New.
18882         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18884 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
18886         * cgraph.c (dump_graphviz): New function.
18887         * cgraph.h (dump_graphviz): New function.
18888         * symtab.c (dump_graphviz): New function.
18890 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
18892         * config/aarch64/aarch64-simd.md
18893         (*aarch64_simd_sra<mode>): New.
18894         * config/aarch64/iterators.md
18895         (SHIFTRT): New iterator.
18896         (sra_op): New attribute.
18898 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18900         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18901         callee-saved regs R4->R10 in an interrupt function that calls another
18902         function.
18904 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
18906         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18907         (_mm_blendv_epi8): New.
18909 2019-07-22  Richard Biener  <rguenther@suse.de>
18911         PR tree-optimization/91221
18912         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18913         restrict partial-def handling of empty constructors and
18914         memset to refs with known offset.
18916 2019-07-22  Jan Beulich  <jbeulich@suse.com>
18918         * config/i386/sse.md (ternlogsuffix): New.
18919         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18920         AVX512F is in use.
18921         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18923 2019-07-22  Martin Liska  <mliska@suse.cz>
18925         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18926         comment.
18927         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18929 2019-07-22  Martin Liska  <mliska@suse.cz>
18931         * lto-section-in.c (lto_get_section_data):
18932         Use new function get_compression.
18933         * lto-streamer-out.c (produce_lto_section): Use
18934         set_compression to encode compression algorithm.
18935         * lto-streamer.h (struct lto_section): Do not
18936         use bitfields in the format.
18938 2019-07-22  Martin Liska  <mliska@suse.cz>
18940         PR driver/91172
18941         * opts-common.c (decode_cmdline_option): Decode
18942         argument of -Werror and check it for a wrong language.
18943         * opts-global.c (complain_wrong_lang): Remove such case.
18945 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
18947         * config/arc/arc.c (prepare_move_operands): Always use an
18948         intermediate register when storing a TLS symbols.
18950 2019-07-22  Stafford Horne  <shorne@gmail.com>
18952         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18953         force_reg.
18955 2019-07-22  Stafford Horne  <shorne@gmail.com>
18957         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18958         and munordered-float validations.
18959         * config/or1k/constraints.md (d): New register constraint.
18960         * config/or1k/predicates.md (fp_comparison_operator): New.
18961         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18962         operands.
18963         (or1k_expand_compare): Normalize unordered comparisons.
18964         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18965         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18966         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18967         * config/or1k/or1k.md (type): Add fpu.
18968         (fpu): New instruction reservation.
18969         (F, f, fr, fi, FI, FOP, fop): New.
18970         (<fop><F:mode>3): New ALU instruction definition.
18971         (float<fi><F:mode>2): New conversion instruction definition.
18972         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18973         (fpcmpcc): New code iterator.
18974         (*sf_fp_insn): New instruction definition.
18975         (cstore<F:mode>4): New expand definition.
18976         (cbranch<F:mode>4): New expand definition.
18977         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18978         munordered-float): New options.
18979         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18980         munordered-float.
18982 2019-07-22  Stafford Horne  <shorne@gmail.com>
18984         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18985         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18986         documenation to be more clear.
18987         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18988         more clear.
18989         * config/or1k/or1k.opt (mrori): New option.
18990         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18991         msfimm, mshftimm): Rewrite documentation to be more clear.
18992         * config/or1k/or1k.md (insn_support): Add ror and rori.
18993         (enabled): Add conditions for ror and rori.
18994         (rotrsi3): Replace condition for shftimm with ror and rori.
18996 2019-07-22  Stafford Horne  <shorne@gmail.com>
18998         PR target/90363
18999         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19000         (extend<mode>si2): Update predicate.
19001         * config/or1k/predicates.md (volatile_mem_operand): New.
19002         (reg_or_mem_operand): New.
19004 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
19006         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19007         * config/rs6000/rs6000-call.c: ... to here.
19009 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19011         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19012         memory.
19014 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19016         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19018 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19020         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19022 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19024         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19025         (any_memory_operand): New predicate.
19026         (reg_or_mem_operand): Use it.
19028 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19030         PR target/91204
19031         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19033 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
19035         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19036         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19038 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19040         * tree.def (OMP_LOOP): New tree code.
19041         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19042         (enum omp_clause_bind_kind): New enum.
19043         (struct tree_omp_clause): Add subcode.bind_kind.
19044         * tree.h (OMP_LOOP_CHECK): Rename to ...
19045         (OMP_LOOPING_CHECK): ... this.
19046         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19047         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19048         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19049         (OMP_CLAUSE_BIND_KIND): Define.
19050         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19051         bind clause entries.
19052         (walk_tree_1): Handle OMP_CLAUSE_BIND.
19053         * tree-pretty-print.c (dump_omp_clause): Likewise.
19054         (dump_generic_node): Handle OMP_LOOP.
19055         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19056         (in_omp_construct): New variable.
19057         (is_gimple_stmt): Handle OMP_LOOP.
19058         (gimplify_scan_omp_clauses): For lastprivate don't set
19059         check_non_private if code == OMP_LOOP.  For reduction clause
19060         on OMP_LOOP combined with parallel or teams propagate as shared
19061         on the combined construct.  Handle OMP_CLAUSE_BIND.
19062         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19063         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19064         for constructs from a loop construct to gimplify_scan_omp_clauses.
19065         Don't predetermine iterator linear on OMP_SIMD from loop construct.
19066         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19067         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19068         to match the implicit ORT_TARGET construct around whole body.
19069         Temporarily clear in_omp_construct when processing body.
19070         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
19071         etc. temporarily set in_omp_construct when processing body.
19072         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19073         * omp-low.c (struct omp_context): Add loop_p.
19074         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19075         in that the original var might be private.
19076         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19077         (check_omp_nesting_restrictions): Adjust nesting restrictions for
19078         addition of loop construct.
19079         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19081         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19082         lastprivate non-addressable iterator of a collapse(1) simd.
19084 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
19086         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19087         as in rs6000.c.
19089 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
19091         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19092         refer to default conditions.  Warn for the 'y' spec which is ignored
19093         by current linkers.
19095 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
19097         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19098         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19099         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19100         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19101         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19102         init_cumulative_args, rs6000_promote_function_mode,
19103         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19104         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19105         rs6000_function_arg_boundary, rs6000_parm_offset,
19106         rs6000_parm_start, rs6000_arg_size,
19107         rs6000_darwin64_record_arg_advance_flush,
19108         rs6000_darwin64_record_arg_advance_recurse,
19109         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19110         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19111         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19112         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19113         rs6000_finish_function_arg, rs6000_function_arg,
19114         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19115         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19116         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19117         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19118         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19119         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19120         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19121         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19122         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19123         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19124         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19125         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19126         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19127         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19128         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19129         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19130         get_element_number, altivec_expand_vec_set_builtin,
19131         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19132         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19133         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19134         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19135         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19136         rs6000_expand_builtin, rs6000_vector_type,
19137         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19138         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19139         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19140         to rs6000-call.c.
19141         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19142         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19143         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19144         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19145         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19146         init_cumulative_args, rs6000_promote_function_mode,
19147         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19148         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19149         rs6000_function_arg_boundary, rs6000_parm_offset,
19150         rs6000_parm_start, rs6000_arg_size,
19151         rs6000_darwin64_record_arg_advance_flush,
19152         rs6000_darwin64_record_arg_advance_recurse,
19153         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19154         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19155         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19156         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19157         rs6000_finish_function_arg, rs6000_function_arg,
19158         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19159         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19160         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19161         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19162         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19163         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19164         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19165         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19166         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19167         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19168         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19169         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19170         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19171         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19172         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19173         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19174         get_element_number, altivec_expand_vec_set_builtin,
19175         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19176         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19177         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19178         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19179         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19180         rs6000_expand_builtin, rs6000_vector_type,
19181         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19182         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19183         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19184         to here from rs6000.c.
19185         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19186         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19187         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19188         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19189         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19190         rs6000_return_in_memory, rs6000_return_in_msb,
19191         rs6000_pass_by_reference, setup_incoming_varargs,
19192         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19193         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19194         rs6000_function_arg_padding, rs6000_function_arg,
19195         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19196         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19197         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19198         rs6000_passes_long_double, rs6000_passes_vector,
19199         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19200         altivec_builtin_mask_for_load) Add declarations.
19201         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19202         * config/config.gcc: Add new source file rs6000-call.c to garbage
19203         collector and extra_objs.
19205 2019-07-19  Jeff Law  <law@redhat.com>
19207         PR tree-optimization/86061
19208         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19209         strncpy.  Drop some trivial dead code.
19210         (maybe_trim_memstar_call): Handle strncpy.
19212 2019-07-19  Richard Biener  <rguenther@suse.de>
19214         PR tree-optimization/91211
19215         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19216         memset encoding size.
19218 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19220         PR target/91204
19221         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19223 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
19225         PR ipa/91194
19226         * ipa-inline.c (recursive_inlining): Fix limits check.
19228 2019-07-19  Richard Biener  <rguenther@suse.de>
19230         PR tree-optimization/91200
19231         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19232         no PHI nodes in middle-bb.
19234 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
19236         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19237         to +sve-bitperm.
19238         * config/aarch64/aarch64-option-extensions.def: Likewise.
19240 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
19242         PR middle-end/91190
19243         * function.c (insert_temp_slot_address): Store into the hash table
19244         a copy of address to avoid RTL sharing issues.
19246 2019-07-19  Richard Biener  <rguenther@suse.de>
19248         PR tree-optimization/91207
19249         Revert
19250         2019-07-17  Richard Biener  <rguenther@suse.de>
19252         PR tree-optimization/91178
19253         * tree-vect-stmts.c (get_group_load_store_type): For SLP
19254         loads with a gap larger than the vector size always use
19255         VMAT_STRIDED_SLP.
19256         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19257         avoid loading vectors that are only contained in the gap
19258         and thus are not needed.
19260 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19262         * config/i386/i386.md (*addqi_2_slp): Remove.
19263         (*<code>qi_2_slp): Ditto.
19265 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
19267         * config/rs6000/predicates.md (prefixed_mem_operand): Call
19268         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19269         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19270         Rename function from rs6000_prefixed_address.
19271         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19272         TARGET_HAS_TOC.
19273         (TARGET_TOC): Likewise.
19274         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19275         rs6000.h.
19276         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19277         TARGET_HAS_TOC.
19278         (TARGET_TOC): Likewise.
19279         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19280         rs6000.h.
19281         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19282         TARGET_HAS_TOC.
19283         (TARGET_TOC): Likewise.
19284         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19285         check to require -mcmodel=medium for pc-relative addressing.
19286         (create_TOC_reference): Add assertion for TARGET_TOC.
19287         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19288         TARGET_NO_TOC.
19289         (rs6000_emit_move): Likewise.
19290         (TOC_alias_set): Rename TOC alias set static variable from 'set'
19291         to 'TOC_alias_set'.
19292         (get_TOC_alias_set): Likewise.
19293         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19294         TARGET_NO_TOC.
19295         (rs6000_can_eliminate): Likewise.
19296         (rs6000_prefixed_address_mode_p): Rename function from
19297         rs6000_prefixed_address.
19298         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19299         TARGET_HAS_TOC and not pc-relative.
19300         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19301         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19302         TARGET_HAS_TOC.
19303         (TARGET_TOC): Likewise.
19304         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19305         rs6000.h.
19307 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19309         PR target/91188
19310         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19311         for operand 0.  Do not use (match_dup) to match operand 1 with
19312         operand 0.  Add check in insn constraint that either input operand
19313         matches operand 0.  Use SWI12 mode iterator to also handle
19314         HImode operands.
19315         (*and<mode>_1_slp): Ditto.
19316         (*<code>qi_1_slp): Ditto.
19317         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19318         Do not use (match_dup) to match operand 1 with operand 0.  Add
19319         check in insn constraint that operand 1 matches operand 0.
19320         Use SWI12 mode iterator to also handle HImode operands.
19321         (*ashl<mode>3_1_slp): Ditto.
19322         (*<shift_insn><mode>3_1_slp): Ditto.
19323         (*<rotate_insn><mode>3_1_slp): Ditto.
19325 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
19327         * config/arm/arm-builtins.c
19328         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19329         (arm_expand_unop_builtin): Likewise.
19330         * config/arm/crypto.md
19331         (crypto_sha1h): Convert from define_insn to define_expand.
19332         (crypto_<crypto_pattern>): Likewise.
19333         (crypto_sha1h_lb): New define_insn.
19334         (crypto_<crypto_pattern>_lb): Likewise.
19336 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
19338         PR target/90317
19339         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19340         (vsha1cq_u32): Likewise.
19341         (vsha1pq_u32): Likewise.
19342         (vsha1mq_u32): Likewise.
19343         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19344         vec select.
19345         (crypto_sha1c): Correct vec select.
19346         (crypto_sha1m): Likewise.
19347         (crypto_sha1p): Likewise.
19349 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
19351         * config/arm/predicates.md (arm_borrow_operation): New predicate.
19352         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19353         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19354         (subdi_zesidi_zesidi): Likewise.
19355         (negdi2_compare, negdi2_insn): Likewise.
19356         (negdi_extensidi): Likewise.
19357         (negdi_zero_extendsidi): Likewise.
19358         (arm_cmpdi_insn): Likewise.
19359         (subsi3_carryin): Use arm_borrow_operation.
19360         (subsi3_carryin_const): Likewise.
19361         (subsi3_carryin_const0): Likewise.
19362         (subsi3_carryin_compare): Likewise.
19363         (subsi3_carryin_compare_const): Likewise.
19364         (subsi3_carryin_compare_const0): Likewise.
19365         (subsi3_carryin_shift): Likewise.
19366         (rsbsi3_carryin_shift): Likewise.
19367         (negsi2_carryin_compare): Likewise.
19369 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
19371         PR tree-optimization/91137
19372         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19373         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19374         Init, use and fini the above new field.
19375         (determine_base_object_1): New function.
19376         (determine_base_object): Reimplement using walk_tree.
19378 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
19380         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19381         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19382         CLEANUP_FORCE_FAST_DCE is set.
19383         * ifcvt.c (rest_of_handle_if_conversion): Pass
19384         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19385         if-conversion succeeded.
19387 2019-07-18  Richard Biener  <rguenther@suse.de>
19389         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19390         branches to make code less indented.
19392 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
19394         PR middle-end/81824
19395         * attribs.c (decls_mismatched_attributes): Simplify the logic
19396         that avoids duplicates and false positives.
19398 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
19400         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19401         data into data section when generating PIC code.
19402         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19403         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19404         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
19405         return 2 for SOM and 0 for other targets.
19407 2019-07-17  Jeff Law  <law@redhat.com>
19409         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19410         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
19411         avoid unexpected switch statement fallthru.
19413 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19415         * config/i386/i386.md (*add<dwi>3_doubleword):
19416         Remove redundant constraints.
19417         (*add<mode>_1): Ditto.
19418         (*addhi_1): Ditto.
19419         (*addqi_1): Ditto.
19420         (*addqi_1_slp): Ditto.
19421         (*add<mode>_2): Ditto.
19422         (*addv<mode>4): Ditto.
19423         (*sub<dwi>3_doubleword): Ditto.
19424         (*sub<mode>_1): Ditto.
19425         (*subqi_1_slp): Ditto.
19426         (*sub<mode>_2): Ditto.
19427         (*subv<mode>4): Ditto.
19428         (*sub<mode>_3): Ditto.
19429         (@add<mode>3_carry): Ditto.
19430         (@sub<mode>3_carry): Ditto.
19431         (*add<mode>3_cc_overflow_1): Ditto.
19432         (*add<mode>3_zext_cc_overflow_2): Ditto.
19433         (*anddi_1): Ditto.
19434         (*and<mode>_1): Ditto.
19435         (*andqi_1): Ditto.
19436         (*andqi_1_slp): Ditto.
19437         (*anddi_2): Ditto.
19438         (*andqi_2_maybe_si): Ditto.
19439         (*and<mode>_2): Ditto.
19440         (*andqi_2_slp): Ditto.
19441         (*<code><mode>_1): Ditto.
19442         (*<code>qi_1): Ditto.
19443         (*<code>qi_1_slp): Ditto.
19444         (*<code><mode>_2): Ditto.
19445         (*<code>qi_2_slp): Ditto.
19447 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
19449         * alias.c (record_component_aliases): Do not simplify pointed-to
19450         types of ODR types.
19452 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19454         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19455         partial reg stall on alternative 2.
19457 2019-07-17  Richard Biener  <rguenther@suse.de>
19459         PR tree-optimization/91178
19460         * tree-ssa.c (release_defs_bitset): Iterate from higher to
19461         lower SSA names to avoid quadratic behavior in the common case.
19462         * tree-data-ref.c (split_constant_offset): Add limit argument
19463         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19464         (split_constant_offset_1): Add limit argument and use it to
19465         limit SSA def walking.  Optimize the common plus/minus case.
19467 2019-07-17  Richard Biener  <rguenther@suse.de>
19469         PR tree-optimization/91178
19470         * tree-vect-stmts.c (get_group_load_store_type): For SLP
19471         loads with a gap larger than the vector size always use
19472         VMAT_STRIDED_SLP.
19473         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19474         avoid loading vectors that are only contained in the gap
19475         and thus are not needed.
19477 2019-07-17  Richard Biener  <rguenther@suse.de>
19479         PR tree-optimization/91180
19480         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19481         computation for memset partial defs.
19483 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
19485         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19486         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19487         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19488         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19489         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19490         * omp-grid.c (grid_process_grid_body,
19491         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19492         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19493         == GF_OMP_FOR_KIND_SIMD.
19494         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19495         check_omp_nesting_restrictions, scan_omp_1_stmt,
19496         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19497         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19498         omp_find_scan): Likewise.
19499         * omp-expand.c (expand_omp_for): Likewise.
19500         * omp-general.c (omp_extract_for_data): Likewise.
19502         PR tree-optimization/91157
19503         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19504         a vector boolean with scalar mode.
19505         (expand_vector_condition): Handle first operand being a vector boolean
19506         with scalar mode.
19507         (expand_vector_operations_1): For comparisons, don't bail out early
19508         if the return type is vector boolean with scalar mode, but comparison
19509         operand type is not.
19511 2019-07-17  Richard Biener  <rguenther@suse.de>
19513         PR tree-optimization/91181
19514         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19515         IFN_LOADs as calls.
19517 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19519         * config/i386/i386.md (*testdi_1): Match CCZmode for
19520         constants that might have the SImode sign bit set.
19521         (*testqi_1_maybe_si): Remove "!" constraint modifier.
19522         Use correct constraints for pentium pairing.
19523         (*test<mode>_1): Ditto.
19525 2019-07-16  Jeff Law  <law@redhat.com>
19527         PR rtl-optimization/91173
19528         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19529         SSA_NAME with a constant value, fold its value into the offset
19530         and clear the base before calling gen_addr_rtx.
19532 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
19534         PR rtl-optimization/91164
19535         * dse.c (rest_of_handle_dse): If dead edges have been purged,
19536         invalidate dominance info.
19538 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19540         * read-md.h (md_reader::record_potential_iterator_use): Add a
19541         file_location parameter.
19542         * read-rtl.c (attribute_use::loc): New field.
19543         (map_attr_string): Take a file_location parameter.  Report cases
19544         in which attributes map to multiple distinct values.
19545         (apply_attribute_uses): Update call accordingly.
19546         (md_reader::handle_overloaded_name): Likewise.
19547         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
19548         nonnull strings.
19549         (record_attribute_use): Take a file_location parameter.
19550         Initialize attribute_use::loc.
19551         (md_reader::record_potential_iterator_use): Take a file_location
19552         parameter.  Update call to record_attribute_use.
19553         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19554         (rtx_reader::read_rtx_code): Likewise.
19555         (rtx_reader::read_rtx_operand): Likewise.  Record a location
19556         for implicitly-expanded empty strings.
19558 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19560         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19561         Use file_location instead of separate fields.
19562         (md_reader::set_md_ptr_loc): Take a file_location instead of a
19563         separate filename and line number.
19564         * read-md.c (ptr_loc): As above.
19565         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19566         (md_reader::fprint_md_ptr_loc): Likewise.
19567         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
19568         instead of a separate filename and line number.
19569         (md_reader::read_string): Update call accordingly.
19571 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19573         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19574         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19575         leaving the choice between SFDF and P implicit.
19576         (*mov<mode>_update2): Likewise.
19577         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19578         rather than leaving the choice betweem IBM128 and GPR implicit.
19579         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19580         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19581         QHSI implicit.
19582         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19583         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19584         * config/rs6000/vsx.md
19585         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19586         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19587         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19588         and VSX_EXTRACT_I implicit.
19590 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19592         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19593         Explicitly use <MOVEP1:MODE> for the mode attribute.
19595 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
19597         PR bootstrap/91176
19598         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19600 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
19602         PR target/91050
19603         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19604         .machine directive.
19606 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19608         * config/i386/i386.md (@test<mode>_ccno_1):
19609         Rename from test<mode>_ccno_1.
19610         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
19611         (*testqi_1_maybe_si): Remove modrm attribute.
19612         (*test<mode>_1): Ditto.
19613         * config/i386/i386-expand.c (ix86_split_idivmod): Use
19614         gen_test_ccno_1 and gen_extend_insn.
19616 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
19618         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19619         to 0.
19621 2019-07-15  Richard Biener  <rguenther@suse.de>
19623         PR middle-end/91162
19624         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19625         node make sure to replace all uses with something valid.
19627 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
19629         PR tree-optimization/88497
19630         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19631         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19632         function undistribute_bitref_for_vector.
19633         (undistribute_bitref_for_vector): New function.
19634         (cleanup_vinfo_map): Likewise.
19635         (sort_by_mach_mode): Likewise.
19637 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19639         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19640         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19641         and testdi_ccno_1 using SWI48 mode attribute.
19642         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19643         x86_64_szext_general_operand.
19644         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19645         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19646         instead of genera_operand mode attribute.
19648 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
19650         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19651         fopen and fclose to their respective types.
19652         (DotFn.invoke): Ditto.
19654 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
19656         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19657         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19658         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19659         (array_index_predicate): Remove.
19660         (analyze_function_body): Account cost for variable ofsetted array
19661         indexing.
19662         (estimate_node_size_and_time): Do not compute array index hint.
19663         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19664         (inline_read_section): Do not read array index hint.
19665         (ipa_fn_summary_write): Do not write array index hint.
19666         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19667         * ipa-cp.c (hint_time_bonus): Remove.
19668         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19669         (ipa_fnsummary): Remove array_index.
19670         * ipa-inline.c (want_inline_small_function_p): Do not use
19671         array_index.
19672         (edge_badness): Likewise.
19673         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19675 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
19677         PR target/91148
19678         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19679         superfluous "builtin function" phrasing.
19681 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
19683         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19684         Break out from ...
19685         (aliasing_component_refs_walk): Break out from ...
19686         (aliasing_component_refs_p): ... here.
19688 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
19690         PR target/91148
19691         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19692         "builtin function" phrasing.
19694 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19696         PR target/90723
19697         * recog.h (temporary_volatile_ok): New class.
19698         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19699         volatile_ok temporarily to true using temporary_volatile_ok.
19700         * expr.c (emit_block_move_via_cpymem): Likewise.
19701         * optabs.c (maybe_legitimize_operand): Likewise.
19703 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
19705         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19706         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19707         uses inside of order(concurrent) constructs.
19708         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19709         OMP_CLAUSE_ORDER is seen.
19710         * omp-low.c (struct omp_context): Add order_concurrent member.
19711         (scan_sharing_clauses): Set ctx->order_concurrent if
19712         OMP_CLAUSE_ORDER is seen.
19713         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19714         of simd order(concurrent).  Diagnose constructs not allowed inside of
19715         for order(concurrent).
19716         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19717         complaining about static double setjmp (double); or class static
19718         methods or non-global namespace setjmps.
19719         (omp_runtime_api_call): New function.
19720         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19721         order(concurrent) loops.
19723 2019-07-12  Martin Sebor  <msebor@redhat.com>
19725         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19726         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19727         * tree-vrp.c (vrp_prop::check_mem_ref): Use
19728         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19730 2019-07-12  Jan Hubicka  <jh@suse.cz>
19732         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19733         (indirect_refs_may_alias_p): ... here.
19734         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19735         mem refs in the access paths.
19737 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
19739         PR tree-optimization/89430
19740         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19741         store elimination for local variable without address escape.
19743 2019-07-12  Jeff Law  <law@redhat.com>
19745         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19746         for the ".far" section.
19748 2019-07-12  Richard Biener  <rguenther@suse.de>
19750         PR tree-optimization/91145
19751         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19752         chain check.
19754 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
19756         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19757         rather than this_state as the lowering context for the ELSE
19758         seq in a GIMPLE_EH_ELSE.
19760 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19762         * vector-builder.h (vector_builder::elt): Allow already-supplied
19763         elements to be read back before building is complete.
19765 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
19767         PR rtl-optimization/91136
19768         * df-core.c (ACCESSING REFS): Fix typos in comment.
19769         * resource.c (mark_target_live_reg): Add artificial defs that occur at
19770         the beginning of the block to the initial set of live registers.
19772 2019-07-12  Richard Biener  <rguenther@suse.de>
19774         * fold-const.h (get_array_ctor_element_at_index): Adjust.
19775         * fold-const.c (get_array_ctor_element_at_index): Add
19776         ctor_idx output parameter informing the caller where in
19777         the constructor the element was (not) found.  Add early exit
19778         for when the ctor is sorted.
19779         * gimple-fold.c (fold_array_ctor_reference): Support constant
19780         folding across multiple array elements.
19782 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
19784         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19785         doesn't have location, set the current location to the function's end.
19787 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19789         * config/aarch64/aarch64.md (*compare_condjump<mode>)
19790         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19791         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19792         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19793         * config/aarch64/aarch64-simd.md
19794         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19795         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19796         * config/aarch64/aarch64-sve.md
19797         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19798         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19800 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19802         * doc/md.texi: Document that @ patterns can have different
19803         numbers of operands.
19804         * genemit.c (handle_overloaded_gen): Handle this case.
19805         * genopinit.c (handle_overloaded_gen): Likewise.
19806         * gensupport.c (replace_operands_with_dups): Iterate over
19807         the new rtx's format rather than the old one's.
19809 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
19811         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19812         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19813         order clause entries.
19814         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19815         * tree-pretty-print.c (dump_omp_clause): Likewise.
19816         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19817         Likewise.
19818         * omp-low.c (scan_sharing_clauses): Likewise.
19819         * tree-nested.c (convert_nonlocal_omp_clauses,
19820         convert_local_omp_clauses): Likewise.
19822 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
19824         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19825         fallthrough target of current basic block isn't the placed
19826         right next.
19828 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
19830         PR target/90980
19831         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19832         (_mm512_storeu_epi64): Likewise.
19833         (_mm512_loadu_epi32): Likewise.
19834         (_mm512_storeu_epi32): Likewise.
19835         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19836         (_mm_storeu_epi64): Likewise.
19837         (_mm256_storeu_epi32): Likewise.
19838         (_mm_storeu_epi32): Likewise.
19840 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
19842         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19844 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
19846         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19847         Handle Modula-2.
19849 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
19851         PR target/91124
19852         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19853         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
19854         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19855         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19856         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
19857         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19858         define_insns.
19859         (ufix_truncv2dfv2si2<mask_name>): Change into ...
19860         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
19861         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19862         define_insns.
19863         (sse2_cvttpd2dq<mask_name>): Change into ...
19864         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
19865         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19866         (*sse2_cvtpd2dq<mask_name>): Change into ...
19867         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
19868         Add "C" constraint to const0_operand.
19869         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19870         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19871         changes.
19873         PR target/91124
19874         * config/i386/i386-builtin-types.def
19875         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19876         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19877         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19878         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19879         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19880         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19881         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19882         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19883         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19884         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19885         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19886         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19887         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19888         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19889         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19890         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19891         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19892         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19893         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19894         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19895         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19896         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19897         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19898         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19899         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19900         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19901         __builtin_ia32_vpdpbusd_v4si_maskz,
19902         __builtin_ia32_vpdpbusds_v16si_mask,
19903         __builtin_ia32_vpdpbusds_v16si_maskz,
19904         __builtin_ia32_vpdpbusds_v8si_mask,
19905         __builtin_ia32_vpdpbusds_v8si_maskz,
19906         __builtin_ia32_vpdpbusds_v4si_mask,
19907         __builtin_ia32_vpdpbusds_v4si_maskz,
19908         __builtin_ia32_vpdpwssd_v16si_mask,
19909         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19910         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19911         __builtin_ia32_vpdpwssd_v4si_maskz,
19912         __builtin_ia32_vpdpwssds_v16si_mask,
19913         __builtin_ia32_vpdpwssds_v16si_maskz,
19914         __builtin_ia32_vpdpwssds_v8si_mask,
19915         __builtin_ia32_vpdpwssds_v8si_maskz,
19916         __builtin_ia32_vpdpwssds_v4si_mask,
19917         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19918         suffixed types rather than *_INT.
19919         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19920         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19921         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19922         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19923         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19924         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19926 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
19928         * tree-vrp.c (intersect_ranges): If we know the intersection is
19929         empty, there is no need to conservatively add anything else to
19930         the set.
19932 2019-07-11  Richard Biener  <rguenther@suse.de>
19934         PR middle-end/91131
19935         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19936         when the object is volatile and we have not cleared it even though
19937         there are no nonzero elements.
19939 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
19941         * config/rs6000/predicates.md (cint34_operand): Update
19942         SIGNED_34BIT_OFFSET_P call.
19943         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19944         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19945         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19946         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19947         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19948         argument.
19949         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19950         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19951         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19952         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19953         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19955 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
19957         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19958         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19959         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19960         (DEF_MIN_OSX_VERSION): New.
19962 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
19964         * fold-const.c (fold_relational_const): Fix folding of
19965         vector-to-scalar NE_EXPRs.
19966         (test_vector_folding): Add more tests.
19968 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
19970         PR target/91060
19971         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19972         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19973         (vec_setv2di_internal): Reexpress as...
19974         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19975         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19976         rather than gen_neon_vset_lane<mode>.
19978 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
19980         PR target/91102
19981         * lra-constraints.c (process_alt_operands): Don't match user
19982         defined regs only if they are early clobbers.
19984 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
19986         * wide-int.h (wi::lshift): Reject negative values for the fast path.
19988 2019-07-10  Richard Biener  <rguenther@suse.de>
19990         PR tree-optimization/91126
19991         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19992         native encoding offset for BYTES_BIG_ENDIAN.
19993         (vn_reference_lookup_3): Likewise.
19995 2019-07-10  Richard Biener  <rguenther@suse.de>
19997         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19998         LHS whenever possible.
20000 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
20002         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20003         from ...; work also on duplicated types.
20004         (nonoverlapping_component_refs_since_match): ... here
20005         (ncr_type_uid): Break out from ...
20006         (ncr_compar): ... here; look for TYPE_UID of canonical type if
20007         available.
20008         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20009         the types and nonoverlapping_component_refs_p_1 to disambiguate.
20011 2019-07-09  Martin Sebor  <msebor@redhat.com>
20013         PR tree-optimization/90989
20014         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20015         optimization to just single character stores.
20017 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
20019         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20020         Swap operands only once.
20022 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
20024         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20025         for both call instructions.
20027 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
20029         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20030         rather than GET_MODE_BITSIZE to better handle partial integer modes.
20032 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
20034         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20035         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20036         function from rs6000-logue.c back to rs6000.c.
20037         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20039 2019-07-09  Martin Sebor  <msebor@redhat.com>
20041         PR c++/61339
20042         * auto-profile.c: Change class-key of PODs to struct and others
20043         to class.
20044         * basic-block.h: Same.
20045         * bitmap.c (bitmap_alloc): Same.
20046         * bitmap.h: Same.
20047         * builtins.c (expand_builtin_prefetch): Same.
20048         (expand_builtin_interclass_mathfn): Same.
20049         (expand_builtin_strlen): Same.
20050         (expand_builtin_mempcpy_args): Same.
20051         (expand_cmpstr): Same.
20052         (expand_builtin___clear_cache): Same.
20053         (expand_ifn_atomic_bit_test_and): Same.
20054         (expand_builtin_thread_pointer): Same.
20055         (expand_builtin_set_thread_pointer): Same.
20056         * caller-save.c (setup_save_areas): Same.
20057         (replace_reg_with_saved_mem): Same.
20058         (insert_restore): Same.
20059         (insert_save): Same.
20060         (add_used_regs): Same.
20061         * cfg.c (get_bb_copy): Same.
20062         (set_loop_copy): Same.
20063         * cfg.h: Same.
20064         * cfganal.h: Same.
20065         * cfgexpand.c (alloc_stack_frame_space): Same.
20066         (add_stack_var): Same.
20067         (add_stack_var_conflict): Same.
20068         (add_scope_conflicts_1): Same.
20069         (update_alias_info_with_stack_vars): Same.
20070         (expand_used_vars): Same.
20071         * cfghooks.c (redirect_edge_and_branch_force): Same.
20072         (delete_basic_block): Same.
20073         (split_edge): Same.
20074         (make_forwarder_block): Same.
20075         (force_nonfallthru): Same.
20076         (duplicate_block): Same.
20077         (lv_flush_pending_stmts): Same.
20078         * cfghooks.h: Same.
20079         * cfgloop.c (flow_loops_cfg_dump): Same.
20080         (flow_loop_nested_p): Same.
20081         (superloop_at_depth): Same.
20082         (get_loop_latch_edges): Same.
20083         (flow_loop_dump): Same.
20084         (flow_loops_dump): Same.
20085         (flow_loops_free): Same.
20086         (flow_loop_nodes_find): Same.
20087         (establish_preds): Same.
20088         (flow_loop_tree_node_add): Same.
20089         (flow_loop_tree_node_remove): Same.
20090         (flow_loops_find): Same.
20091         (find_subloop_latch_edge_by_profile): Same.
20092         (find_subloop_latch_edge_by_ivs): Same.
20093         (mfb_redirect_edges_in_set): Same.
20094         (form_subloop): Same.
20095         (merge_latch_edges): Same.
20096         (disambiguate_multiple_latches): Same.
20097         (disambiguate_loops_with_multiple_latches): Same.
20098         (flow_bb_inside_loop_p): Same.
20099         (glb_enum_p): Same.
20100         (get_loop_body_with_size): Same.
20101         (get_loop_body): Same.
20102         (fill_sons_in_loop): Same.
20103         (get_loop_body_in_dom_order): Same.
20104         (get_loop_body_in_custom_order): Same.
20105         (release_recorded_exits): Same.
20106         (get_loop_exit_edges): Same.
20107         (num_loop_branches): Same.
20108         (remove_bb_from_loops): Same.
20109         (find_common_loop): Same.
20110         (delete_loop): Same.
20111         (cancel_loop): Same.
20112         (verify_loop_structure): Same.
20113         (loop_preheader_edge): Same.
20114         (loop_exit_edge_p): Same.
20115         (single_exit): Same.
20116         (loop_exits_to_bb_p): Same.
20117         (loop_exits_from_bb_p): Same.
20118         (get_loop_location): Same.
20119         (record_niter_bound): Same.
20120         (get_estimated_loop_iterations_int): Same.
20121         (max_stmt_executions_int): Same.
20122         (likely_max_stmt_executions_int): Same.
20123         (get_estimated_loop_iterations): Same.
20124         (get_max_loop_iterations): Same.
20125         (get_max_loop_iterations_int): Same.
20126         (get_likely_max_loop_iterations): Same.
20127         * cfgloop.h (simple_loop_desc): Same.
20128         (get_loop): Same.
20129         (loop_depth): Same.
20130         (loop_outer): Same.
20131         (loop_iterator::next): Same.
20132         (loop_outermost): Same.
20133         * cfgloopanal.c (mark_irreducible_loops): Same.
20134         (num_loop_insns): Same.
20135         (average_num_loop_insns): Same.
20136         (expected_loop_iterations_unbounded): Same.
20137         (expected_loop_iterations): Same.
20138         (mark_loop_exit_edges): Same.
20139         (single_likely_exit): Same.
20140         * cfgloopmanip.c (fix_bb_placement): Same.
20141         (fix_bb_placements): Same.
20142         (remove_path): Same.
20143         (place_new_loop): Same.
20144         (add_loop): Same.
20145         (scale_loop_frequencies): Same.
20146         (scale_loop_profile): Same.
20147         (create_empty_if_region_on_edge): Same.
20148         (create_empty_loop_on_edge): Same.
20149         (loopify): Same.
20150         (unloop): Same.
20151         (fix_loop_placements): Same.
20152         (copy_loop_info): Same.
20153         (duplicate_loop): Same.
20154         (duplicate_subloops): Same.
20155         (loop_redirect_edge): Same.
20156         (can_duplicate_loop_p): Same.
20157         (duplicate_loop_to_header_edge): Same.
20158         (mfb_keep_just): Same.
20159         (has_preds_from_loop): Same.
20160         (create_preheader): Same.
20161         (create_preheaders): Same.
20162         (lv_adjust_loop_entry_edge): Same.
20163         (loop_version): Same.
20164         * cfgloopmanip.h: Same.
20165         * cgraph.h: Same.
20166         * cgraphbuild.c: Same.
20167         * combine.c (make_extraction): Same.
20168         * config/i386/i386-features.c: Same.
20169         * config/i386/i386-features.h: Same.
20170         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20171         (ix86_emit_outlined_ms2sysv_restore): Same.
20172         (ix86_noce_conversion_profitable_p): Same.
20173         (ix86_init_cost): Same.
20174         (ix86_simd_clone_usable): Same.
20175         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20176         Wstruct-not-pod.
20177         * coretypes.h: Same.
20178         * data-streamer-in.c (string_for_index): Change class-key of PODs
20179         to struct and others to class.
20180         (streamer_read_indexed_string): Same.
20181         (streamer_read_string): Same.
20182         (bp_unpack_indexed_string): Same.
20183         (bp_unpack_string): Same.
20184         (streamer_read_uhwi): Same.
20185         (streamer_read_hwi): Same.
20186         (streamer_read_gcov_count): Same.
20187         (streamer_read_wide_int): Same.
20188         * data-streamer.h (streamer_write_bitpack): Same.
20189         (bp_unpack_value): Same.
20190         (streamer_write_char_stream): Same.
20191         (streamer_write_hwi_in_range): Same.
20192         (streamer_write_record_start): Same.
20193         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20194         (add_cross_iteration_register_deps): Same.
20195         (build_intra_loop_deps): Same.
20196         * df-core.c (df_analyze): Same.
20197         (loop_post_order_compute): Same.
20198         (loop_inverted_post_order_compute): Same.
20199         * df-problems.c (df_rd_alloc): Same.
20200         (df_rd_simulate_one_insn): Same.
20201         (df_rd_local_compute): Same.
20202         (df_rd_init_solution): Same.
20203         (df_rd_confluence_n): Same.
20204         (df_rd_transfer_function): Same.
20205         (df_rd_free): Same.
20206         (df_rd_dump_defs_set): Same.
20207         (df_rd_top_dump): Same.
20208         (df_lr_alloc): Same.
20209         (df_lr_reset): Same.
20210         (df_lr_local_compute): Same.
20211         (df_lr_init): Same.
20212         (df_lr_confluence_n): Same.
20213         (df_lr_free): Same.
20214         (df_lr_top_dump): Same.
20215         (df_lr_verify_transfer_functions): Same.
20216         (df_live_alloc): Same.
20217         (df_live_reset): Same.
20218         (df_live_init): Same.
20219         (df_live_confluence_n): Same.
20220         (df_live_finalize): Same.
20221         (df_live_free): Same.
20222         (df_live_top_dump): Same.
20223         (df_live_verify_transfer_functions): Same.
20224         (df_mir_alloc): Same.
20225         (df_mir_reset): Same.
20226         (df_mir_init): Same.
20227         (df_mir_confluence_n): Same.
20228         (df_mir_free): Same.
20229         (df_mir_top_dump): Same.
20230         (df_word_lr_alloc): Same.
20231         (df_word_lr_reset): Same.
20232         (df_word_lr_init): Same.
20233         (df_word_lr_confluence_n): Same.
20234         (df_word_lr_free): Same.
20235         (df_word_lr_top_dump): Same.
20236         (df_md_alloc): Same.
20237         (df_md_simulate_one_insn): Same.
20238         (df_md_reset): Same.
20239         (df_md_init): Same.
20240         (df_md_free): Same.
20241         (df_md_top_dump): Same.
20242         * df-scan.c (df_insn_delete): Same.
20243         (df_insn_rescan): Same.
20244         (df_notes_rescan): Same.
20245         (df_sort_and_compress_mws): Same.
20246         (df_install_mws): Same.
20247         (df_refs_add_to_chains): Same.
20248         (df_ref_create_structure): Same.
20249         (df_ref_record): Same.
20250         (df_def_record_1): Same.
20251         (df_find_hard_reg_defs): Same.
20252         (df_uses_record): Same.
20253         (df_get_conditional_uses): Same.
20254         (df_get_call_refs): Same.
20255         (df_recompute_luids): Same.
20256         (df_get_entry_block_def_set): Same.
20257         (df_entry_block_defs_collect): Same.
20258         (df_get_exit_block_use_set): Same.
20259         (df_exit_block_uses_collect): Same.
20260         (df_mws_verify): Same.
20261         (df_bb_verify): Same.
20262         * df.h (df_scan_get_bb_info): Same.
20263         * doc/tm.texi: Same.
20264         * dse.c (record_store): Same.
20265         * dumpfile.h: Same.
20266         * emit-rtl.c (const_fixed_hasher::equal): Same.
20267         (set_mem_attributes_minus_bitpos): Same.
20268         (change_address): Same.
20269         (adjust_address_1): Same.
20270         (offset_address): Same.
20271         * emit-rtl.h: Same.
20272         * except.c (dw2_build_landing_pads): Same.
20273         (sjlj_emit_dispatch_table): Same.
20274         * explow.c (allocate_dynamic_stack_space): Same.
20275         (emit_stack_probe): Same.
20276         (probe_stack_range): Same.
20277         * expmed.c (store_bit_field_using_insv): Same.
20278         (store_bit_field_1): Same.
20279         (store_integral_bit_field): Same.
20280         (extract_bit_field_using_extv): Same.
20281         (extract_bit_field_1): Same.
20282         (emit_cstore): Same.
20283         * expr.c (emit_block_move_via_cpymem): Same.
20284         (expand_cmpstrn_or_cmpmem): Same.
20285         (set_storage_via_setmem): Same.
20286         (emit_single_push_insn_1): Same.
20287         (expand_assignment): Same.
20288         (store_constructor): Same.
20289         (expand_expr_real_2): Same.
20290         (expand_expr_real_1): Same.
20291         (try_casesi): Same.
20292         * flags.h: Same.
20293         * function.c (try_fit_stack_local): Same.
20294         (assign_stack_local_1): Same.
20295         (assign_stack_local): Same.
20296         (cut_slot_from_list): Same.
20297         (insert_slot_to_list): Same.
20298         (max_slot_level): Same.
20299         (move_slot_to_level): Same.
20300         (temp_address_hasher::equal): Same.
20301         (remove_unused_temp_slot_addresses): Same.
20302         (assign_temp): Same.
20303         (combine_temp_slots): Same.
20304         (update_temp_slot_address): Same.
20305         (preserve_temp_slots): Same.
20306         * function.h: Same.
20307         * fwprop.c: Same.
20308         * gcc-rich-location.h: Same.
20309         * gcov.c: Same.
20310         * genattrtab.c (check_attr_test): Same.
20311         (check_attr_value): Same.
20312         (convert_set_attr_alternative): Same.
20313         (convert_set_attr): Same.
20314         (check_defs): Same.
20315         (copy_boolean): Same.
20316         (get_attr_value): Same.
20317         (expand_delays): Same.
20318         (make_length_attrs): Same.
20319         (min_fn): Same.
20320         (make_alternative_compare): Same.
20321         (simplify_test_exp): Same.
20322         (tests_attr_p): Same.
20323         (get_attr_order): Same.
20324         (clear_struct_flag): Same.
20325         (gen_attr): Same.
20326         (compares_alternatives_p): Same.
20327         (gen_insn): Same.
20328         (gen_delay): Same.
20329         (find_attrs_to_cache): Same.
20330         (write_test_expr): Same.
20331         (walk_attr_value): Same.
20332         (write_attr_get): Same.
20333         (eliminate_known_true): Same.
20334         (write_insn_cases): Same.
20335         (write_attr_case): Same.
20336         (write_attr_valueq): Same.
20337         (write_attr_value): Same.
20338         (write_dummy_eligible_delay): Same.
20339         (next_comma_elt): Same.
20340         (find_attr): Same.
20341         (make_internal_attr): Same.
20342         (copy_rtx_unchanging): Same.
20343         (gen_insn_reserv): Same.
20344         (check_tune_attr): Same.
20345         (make_automaton_attrs): Same.
20346         (handle_arg): Same.
20347         * genextract.c (gen_insn): Same.
20348         (VEC_char_to_string): Same.
20349         * genmatch.c (print_operand): Same.
20350         (lower): Same.
20351         (parser::parse_operation): Same.
20352         (parser::parse_capture): Same.
20353         (parser::parse_c_expr): Same.
20354         (parser::parse_simplify): Same.
20355         (main): Same.
20356         * genoutput.c (output_operand_data): Same.
20357         (output_get_insn_name): Same.
20358         (compare_operands): Same.
20359         (place_operands): Same.
20360         (process_template): Same.
20361         (validate_insn_alternatives): Same.
20362         (validate_insn_operands): Same.
20363         (gen_expand): Same.
20364         (note_constraint): Same.
20365         * genpreds.c (write_one_predicate_function): Same.
20366         (add_constraint): Same.
20367         (process_define_register_constraint): Same.
20368         (write_lookup_constraint_1): Same.
20369         (write_lookup_constraint_array): Same.
20370         (write_insn_constraint_len): Same.
20371         (write_reg_class_for_constraint_1): Same.
20372         (write_constraint_satisfied_p_array): Same.
20373         * genrecog.c (optimize_subroutine_group): Same.
20374         * gensupport.c (process_define_predicate): Same.
20375         (queue_pattern): Same.
20376         (remove_from_queue): Same.
20377         (process_rtx): Same.
20378         (is_predicable): Same.
20379         (change_subst_attribute): Same.
20380         (subst_pattern_match): Same.
20381         (alter_constraints): Same.
20382         (alter_attrs_for_insn): Same.
20383         (shift_output_template): Same.
20384         (alter_output_for_subst_insn): Same.
20385         (process_one_cond_exec): Same.
20386         (subst_dup): Same.
20387         (process_define_cond_exec): Same.
20388         (mnemonic_htab_callback): Same.
20389         (gen_mnemonic_attr): Same.
20390         (read_md_rtx): Same.
20391         * ggc-page.c: Same.
20392         * gimple-loop-interchange.cc (dump_reduction): Same.
20393         (dump_induction): Same.
20394         (loop_cand::~loop_cand): Same.
20395         (free_data_refs_with_aux): Same.
20396         (tree_loop_interchange::interchange_loops): Same.
20397         (tree_loop_interchange::map_inductions_to_loop): Same.
20398         (tree_loop_interchange::move_code_to_inner_loop): Same.
20399         (compute_access_stride): Same.
20400         (compute_access_strides): Same.
20401         (proper_loop_form_for_interchange): Same.
20402         (tree_loop_interchange_compute_ddrs): Same.
20403         (prune_datarefs_not_in_loop): Same.
20404         (prepare_data_references): Same.
20405         (pass_linterchange::execute): Same.
20406         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20407         (unroll_jam_possible_p): Same.
20408         (fuse_loops): Same.
20409         (adjust_unroll_factor): Same.
20410         (tree_loop_unroll_and_jam): Same.
20411         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20412         (loop_versioning::expensive_stmt_p): Same.
20413         (loop_versioning::version_for_unity): Same.
20414         (loop_versioning::dump_inner_likelihood): Same.
20415         (loop_versioning::find_per_loop_multiplication): Same.
20416         (loop_versioning::analyze_term_using_scevs): Same.
20417         (loop_versioning::record_address_fragment): Same.
20418         (loop_versioning::analyze_expr): Same.
20419         (loop_versioning::analyze_blocks): Same.
20420         (loop_versioning::prune_conditions): Same.
20421         (loop_versioning::merge_loop_info): Same.
20422         (loop_versioning::add_loop_to_queue): Same.
20423         (loop_versioning::decide_whether_loop_is_versionable): Same.
20424         (loop_versioning::make_versioning_decisions): Same.
20425         (loop_versioning::implement_versioning_decisions): Same.
20426         * gimple-ssa-evrp-analyze.c
20427         (evrp_range_analyzer::record_ranges_from_phis): Same.
20428         * gimple-ssa-store-merging.c (split_store::split_store): Same.
20429         (count_multiple_uses): Same.
20430         (split_group): Same.
20431         (imm_store_chain_info::output_merged_store): Same.
20432         (pass_store_merging::process_store): Same.
20433         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20434         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20435         (is_max): Same.
20436         (alloca_call_type): Same.
20437         (pass_walloca::execute): Same.
20438         * gimple-streamer-in.c (input_phi): Same.
20439         (input_gimple_stmt): Same.
20440         * gimple-streamer.h: Same.
20441         * godump.c (go_force_record_alignment): Same.
20442         (go_format_type): Same.
20443         (go_output_type): Same.
20444         (go_output_fndecl): Same.
20445         (go_output_typedef): Same.
20446         (keyword_hash_init): Same.
20447         (find_dummy_types): Same.
20448         * graph.c (draw_cfg_nodes_no_loops): Same.
20449         (draw_cfg_nodes_for_loop): Same.
20450         * hard-reg-set.h (hard_reg_set_iter_next): Same.
20451         * hsa-brig.c: Same.
20452         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20453         * hsa-dump.c (dump_hsa_cfun): Same.
20454         * hsa-gen.c (gen_function_def_parameters): Same.
20455         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20456         * input.c (dump_line_table_statistics): Same.
20457         (test_lexer): Same.
20458         * input.h: Same.
20459         * internal-fn.c (get_multi_vector_move): Same.
20460         (expand_load_lanes_optab_fn): Same.
20461         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20462         (expand_GOMP_SIMT_EXIT): Same.
20463         (expand_GOMP_SIMT_LAST_LANE): Same.
20464         (expand_GOMP_SIMT_ORDERED_PRED): Same.
20465         (expand_GOMP_SIMT_VOTE_ANY): Same.
20466         (expand_GOMP_SIMT_XCHG_BFLY): Same.
20467         (expand_GOMP_SIMT_XCHG_IDX): Same.
20468         (expand_addsub_overflow): Same.
20469         (expand_neg_overflow): Same.
20470         (expand_mul_overflow): Same.
20471         (expand_call_mem_ref): Same.
20472         (expand_mask_load_optab_fn): Same.
20473         (expand_scatter_store_optab_fn): Same.
20474         (expand_gather_load_optab_fn): Same.
20475         * ipa-cp.c (ipa_get_parm_lattices): Same.
20476         (print_all_lattices): Same.
20477         (ignore_edge_p): Same.
20478         (build_toporder_info): Same.
20479         (free_toporder_info): Same.
20480         (push_node_to_stack): Same.
20481         (ipcp_lattice<valtype>::set_contains_variable): Same.
20482         (set_agg_lats_to_bottom): Same.
20483         (ipcp_bits_lattice::meet_with): Same.
20484         (set_single_call_flag): Same.
20485         (initialize_node_lattices): Same.
20486         (ipa_get_jf_ancestor_result): Same.
20487         (ipcp_verify_propagated_values): Same.
20488         (propagate_scalar_across_jump_function): Same.
20489         (propagate_context_across_jump_function): Same.
20490         (propagate_bits_across_jump_function): Same.
20491         (ipa_vr_operation_and_type_effects): Same.
20492         (propagate_vr_across_jump_function): Same.
20493         (set_check_aggs_by_ref): Same.
20494         (set_chain_of_aglats_contains_variable): Same.
20495         (merge_aggregate_lattices): Same.
20496         (agg_pass_through_permissible_p): Same.
20497         (propagate_aggs_across_jump_function): Same.
20498         (call_passes_through_thunk_p): Same.
20499         (propagate_constants_across_call): Same.
20500         (devirtualization_time_bonus): Same.
20501         (good_cloning_opportunity_p): Same.
20502         (context_independent_aggregate_values): Same.
20503         (gather_context_independent_values): Same.
20504         (perform_estimation_of_a_value): Same.
20505         (estimate_local_effects): Same.
20506         (value_topo_info<valtype>::add_val): Same.
20507         (add_all_node_vals_to_toposort): Same.
20508         (value_topo_info<valtype>::propagate_effects): Same.
20509         (ipcp_propagate_stage): Same.
20510         (ipcp_discover_new_direct_edges): Same.
20511         (same_node_or_its_all_contexts_clone_p): Same.
20512         (cgraph_edge_brings_value_p): Same.
20513         (gather_edges_for_value): Same.
20514         (create_specialized_node): Same.
20515         (find_more_scalar_values_for_callers_subset): Same.
20516         (find_more_contexts_for_caller_subset): Same.
20517         (copy_plats_to_inter): Same.
20518         (intersect_aggregates_with_edge): Same.
20519         (find_aggregate_values_for_callers_subset): Same.
20520         (cgraph_edge_brings_all_agg_vals_for_node): Same.
20521         (decide_about_value): Same.
20522         (decide_whether_version_node): Same.
20523         (spread_undeadness): Same.
20524         (identify_dead_nodes): Same.
20525         (ipcp_store_vr_results): Same.
20526         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20527         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20528         (redirect_to_unreachable): Same.
20529         (edge_set_predicate): Same.
20530         (evaluate_conditions_for_known_args): Same.
20531         (evaluate_properties_for_edge): Same.
20532         (ipa_fn_summary_t::duplicate): Same.
20533         (ipa_call_summary_t::duplicate): Same.
20534         (dump_ipa_call_summary): Same.
20535         (ipa_dump_fn_summary): Same.
20536         (eliminated_by_inlining_prob): Same.
20537         (set_cond_stmt_execution_predicate): Same.
20538         (set_switch_stmt_execution_predicate): Same.
20539         (compute_bb_predicates): Same.
20540         (will_be_nonconstant_expr_predicate): Same.
20541         (phi_result_unknown_predicate): Same.
20542         (analyze_function_body): Same.
20543         (compute_fn_summary): Same.
20544         (estimate_edge_devirt_benefit): Same.
20545         (estimate_edge_size_and_time): Same.
20546         (estimate_calls_size_and_time): Same.
20547         (estimate_node_size_and_time): Same.
20548         (remap_edge_change_prob): Same.
20549         (remap_edge_summaries): Same.
20550         (ipa_merge_fn_summary_after_inlining): Same.
20551         (ipa_fn_summary_generate): Same.
20552         (inline_read_section): Same.
20553         (ipa_fn_summary_read): Same.
20554         (ipa_fn_summary_write): Same.
20555         * ipa-fnsummary.h: Same.
20556         * ipa-hsa.c (ipa_hsa_read_section): Same.
20557         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20558         * ipa-icf.c (sem_function::param_used_p): Same.
20559         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20560         * ipa-inline.c (edge_badness): Same.
20561         (inline_small_functions): Same.
20562         * ipa-polymorphic-call.c
20563         (ipa_polymorphic_call_context::stream_out): Same.
20564         * ipa-predicate.c (predicate::remap_after_duplication): Same.
20565         (predicate::remap_after_inlining): Same.
20566         (predicate::stream_out): Same.
20567         * ipa-predicate.h: Same.
20568         * ipa-profile.c (ipa_profile_read_summary): Same.
20569         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20570         (count_formal_params): Same.
20571         (ipa_dump_param): Same.
20572         (ipa_alloc_node_params): Same.
20573         (ipa_print_node_jump_functions_for_edge): Same.
20574         (ipa_print_node_jump_functions): Same.
20575         (ipa_load_from_parm_agg): Same.
20576         (get_ancestor_addr_info): Same.
20577         (ipa_compute_jump_functions_for_edge): Same.
20578         (ipa_analyze_virtual_call_uses): Same.
20579         (ipa_analyze_stmt_uses): Same.
20580         (ipa_analyze_params_uses_in_bb): Same.
20581         (update_jump_functions_after_inlining): Same.
20582         (try_decrement_rdesc_refcount): Same.
20583         (ipa_impossible_devirt_target): Same.
20584         (update_indirect_edges_after_inlining): Same.
20585         (combine_controlled_uses_counters): Same.
20586         (ipa_edge_args_sum_t::duplicate): Same.
20587         (ipa_write_jump_function): Same.
20588         (ipa_write_indirect_edge_info): Same.
20589         (ipa_write_node_info): Same.
20590         (ipa_read_edge_info): Same.
20591         (ipa_prop_read_section): Same.
20592         (read_replacements_section): Same.
20593         * ipa-prop.h (ipa_get_param_count): Same.
20594         (ipa_get_param): Same.
20595         (ipa_get_type): Same.
20596         (ipa_get_param_move_cost): Same.
20597         (ipa_set_param_used): Same.
20598         (ipa_get_controlled_uses): Same.
20599         (ipa_set_controlled_uses): Same.
20600         (ipa_get_cs_argument_count): Same.
20601         * ipa-pure-const.c (analyze_function): Same.
20602         (pure_const_read_summary): Same.
20603         * ipa-ref.h: Same.
20604         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20605         * ipa-split.c (test_nonssa_use): Same.
20606         (dump_split_point): Same.
20607         (dominated_by_forbidden): Same.
20608         (split_part_set_ssa_name_p): Same.
20609         (find_split_points): Same.
20610         * ira-build.c (finish_loop_tree_nodes): Same.
20611         (low_pressure_loop_node_p): Same.
20612         * ira-color.c (ira_reuse_stack_slot): Same.
20613         * ira-int.h: Same.
20614         * ira.c (setup_reg_equiv): Same.
20615         (print_insn_chain): Same.
20616         (ira): Same.
20617         * loop-doloop.c (doloop_condition_get): Same.
20618         (add_test): Same.
20619         (record_reg_sets): Same.
20620         (doloop_optimize): Same.
20621         * loop-init.c (loop_optimizer_init): Same.
20622         (fix_loop_structure): Same.
20623         * loop-invariant.c (merge_identical_invariants): Same.
20624         (compute_always_reached): Same.
20625         (find_exits): Same.
20626         (may_assign_reg_p): Same.
20627         (find_invariants_bb): Same.
20628         (find_invariants_body): Same.
20629         (replace_uses): Same.
20630         (can_move_invariant_reg): Same.
20631         (free_inv_motion_data): Same.
20632         (move_single_loop_invariants): Same.
20633         (change_pressure): Same.
20634         (mark_ref_regs): Same.
20635         (calculate_loop_reg_pressure): Same.
20636         * loop-iv.c (biv_entry_hasher::equal): Same.
20637         (iv_extend_to_rtx_code): Same.
20638         (check_iv_ref_table_size): Same.
20639         (clear_iv_info): Same.
20640         (latch_dominating_def): Same.
20641         (iv_get_reaching_def): Same.
20642         (iv_constant): Same.
20643         (iv_subreg): Same.
20644         (iv_extend): Same.
20645         (iv_neg): Same.
20646         (iv_add): Same.
20647         (iv_mult): Same.
20648         (get_biv_step): Same.
20649         (record_iv): Same.
20650         (analyzed_for_bivness_p): Same.
20651         (record_biv): Same.
20652         (iv_analyze_biv): Same.
20653         (iv_analyze_expr): Same.
20654         (iv_analyze_def): Same.
20655         (iv_analyze_op): Same.
20656         (iv_analyze): Same.
20657         (iv_analyze_result): Same.
20658         (biv_p): Same.
20659         (eliminate_implied_conditions): Same.
20660         (simplify_using_initial_values): Same.
20661         (shorten_into_mode): Same.
20662         (canonicalize_iv_subregs): Same.
20663         (determine_max_iter): Same.
20664         (check_simple_exit): Same.
20665         (find_simple_exit): Same.
20666         (get_simple_loop_desc): Same.
20667         * loop-unroll.c (report_unroll): Same.
20668         (decide_unrolling): Same.
20669         (unroll_loops): Same.
20670         (loop_exit_at_end_p): Same.
20671         (decide_unroll_constant_iterations): Same.
20672         (unroll_loop_constant_iterations): Same.
20673         (compare_and_jump_seq): Same.
20674         (unroll_loop_runtime_iterations): Same.
20675         (decide_unroll_stupid): Same.
20676         (unroll_loop_stupid): Same.
20677         (referenced_in_one_insn_in_loop_p): Same.
20678         (reset_debug_uses_in_loop): Same.
20679         (analyze_iv_to_split_insn): Same.
20680         * lra-eliminations.c (lra_debug_elim_table): Same.
20681         (setup_can_eliminate): Same.
20682         (form_sum): Same.
20683         (lra_get_elimination_hard_regno): Same.
20684         (lra_eliminate_regs_1): Same.
20685         (eliminate_regs_in_insn): Same.
20686         (update_reg_eliminate): Same.
20687         (init_elimination): Same.
20688         (lra_eliminate): Same.
20689         * lra-int.h: Same.
20690         * lra-lives.c (initiate_live_solver): Same.
20691         * lra-remat.c (create_remat_bb_data): Same.
20692         * lra-spills.c (lra_spill): Same.
20693         * lra.c (lra_set_insn_recog_data): Same.
20694         (lra_set_used_insn_alternative_by_uid): Same.
20695         (init_reg_info): Same.
20696         (expand_reg_info): Same.
20697         * lto-cgraph.c (output_symtab): Same.
20698         (read_identifier): Same.
20699         (get_alias_symbol): Same.
20700         (input_node): Same.
20701         (input_varpool_node): Same.
20702         (input_ref): Same.
20703         (input_edge): Same.
20704         (input_cgraph_1): Same.
20705         (input_refs): Same.
20706         (input_symtab): Same.
20707         (input_offload_tables): Same.
20708         (output_cgraph_opt_summary): Same.
20709         (input_edge_opt_summary): Same.
20710         (input_cgraph_opt_section): Same.
20711         * lto-section-in.c (lto_free_raw_section_data): Same.
20712         (lto_create_simple_input_block): Same.
20713         (lto_free_function_in_decl_state_for_node): Same.
20714         * lto-streamer-in.c (lto_tag_check_set): Same.
20715         (lto_location_cache::revert_location_cache): Same.
20716         (lto_location_cache::input_location): Same.
20717         (lto_input_location): Same.
20718         (stream_input_location_now): Same.
20719         (lto_input_tree_ref): Same.
20720         (lto_input_eh_catch_list): Same.
20721         (input_eh_region): Same.
20722         (lto_init_eh): Same.
20723         (make_new_block): Same.
20724         (input_cfg): Same.
20725         (fixup_call_stmt_edges): Same.
20726         (input_struct_function_base): Same.
20727         (input_function): Same.
20728         (lto_read_body_or_constructor): Same.
20729         (lto_read_tree_1): Same.
20730         (lto_read_tree): Same.
20731         (lto_input_scc): Same.
20732         (lto_input_tree_1): Same.
20733         (lto_input_toplevel_asms): Same.
20734         (lto_input_mode_table): Same.
20735         (lto_reader_init): Same.
20736         (lto_data_in_create): Same.
20737         * lto-streamer-out.c (output_cfg): Same.
20738         * lto-streamer.h: Same.
20739         * modulo-sched.c (duplicate_insns_of_cycles): Same.
20740         (generate_prolog_epilog): Same.
20741         (mark_loop_unsched): Same.
20742         (dump_insn_location): Same.
20743         (loop_canon_p): Same.
20744         (sms_schedule): Same.
20745         * omp-expand.c (expand_omp_for_ordered_loops): Same.
20746         (expand_omp_for_generic): Same.
20747         (expand_omp_for_static_nochunk): Same.
20748         (expand_omp_for_static_chunk): Same.
20749         (expand_omp_simd): Same.
20750         (expand_omp_taskloop_for_inner): Same.
20751         (expand_oacc_for): Same.
20752         (expand_omp_atomic_pipeline): Same.
20753         (mark_loops_in_oacc_kernels_region): Same.
20754         * omp-offload.c (oacc_xform_loop): Same.
20755         * omp-simd-clone.c (simd_clone_adjust): Same.
20756         * optabs-query.c (get_traditional_extraction_insn): Same.
20757         * optabs.c (expand_vector_broadcast): Same.
20758         (expand_binop_directly): Same.
20759         (expand_twoval_unop): Same.
20760         (expand_twoval_binop): Same.
20761         (expand_unop_direct): Same.
20762         (emit_indirect_jump): Same.
20763         (emit_conditional_move): Same.
20764         (emit_conditional_neg_or_complement): Same.
20765         (emit_conditional_add): Same.
20766         (vector_compare_rtx): Same.
20767         (expand_vec_perm_1): Same.
20768         (expand_vec_perm_const): Same.
20769         (expand_vec_cond_expr): Same.
20770         (expand_vec_series_expr): Same.
20771         (maybe_emit_atomic_exchange): Same.
20772         (maybe_emit_sync_lock_test_and_set): Same.
20773         (expand_atomic_compare_and_swap): Same.
20774         (expand_atomic_load): Same.
20775         (expand_atomic_store): Same.
20776         (maybe_emit_op): Same.
20777         (valid_multiword_target_p): Same.
20778         (create_integer_operand): Same.
20779         (maybe_legitimize_operand_same_code): Same.
20780         (maybe_legitimize_operand): Same.
20781         (create_convert_operand_from_type): Same.
20782         (can_reuse_operands_p): Same.
20783         (maybe_legitimize_operands): Same.
20784         (maybe_gen_insn): Same.
20785         (maybe_expand_insn): Same.
20786         (maybe_expand_jump_insn): Same.
20787         (expand_insn): Same.
20788         * optabs.h (create_expand_operand): Same.
20789         (create_fixed_operand): Same.
20790         (create_output_operand): Same.
20791         (create_input_operand): Same.
20792         (create_convert_operand_to): Same.
20793         (create_convert_operand_from): Same.
20794         * optinfo.h: Same.
20795         * poly-int.h: Same.
20796         * predict.c (optimize_insn_for_speed_p): Same.
20797         (optimize_loop_for_size_p): Same.
20798         (optimize_loop_for_speed_p): Same.
20799         (optimize_loop_nest_for_speed_p): Same.
20800         (get_base_value): Same.
20801         (predicted_by_loop_heuristics_p): Same.
20802         (predict_extra_loop_exits): Same.
20803         (predict_loops): Same.
20804         (predict_paths_for_bb): Same.
20805         (predict_paths_leading_to): Same.
20806         (propagate_freq): Same.
20807         (pass_profile::execute): Same.
20808         * predict.h: Same.
20809         * profile-count.c (profile_count::differs_from_p): Same.
20810         (profile_probability::differs_lot_from_p): Same.
20811         * profile-count.h: Same.
20812         * profile.c (branch_prob): Same.
20813         * regrename.c (free_chain_data): Same.
20814         (mark_conflict): Same.
20815         (create_new_chain): Same.
20816         (merge_overlapping_regs): Same.
20817         (init_rename_info): Same.
20818         (merge_chains): Same.
20819         (regrename_analyze): Same.
20820         (regrename_do_replace): Same.
20821         (scan_rtx_reg): Same.
20822         (record_out_operands): Same.
20823         (build_def_use): Same.
20824         * regrename.h: Same.
20825         * reload.h: Same.
20826         * reload1.c (init_reload): Same.
20827         (maybe_fix_stack_asms): Same.
20828         (copy_reloads): Same.
20829         (count_pseudo): Same.
20830         (count_spilled_pseudo): Same.
20831         (find_reg): Same.
20832         (find_reload_regs): Same.
20833         (select_reload_regs): Same.
20834         (spill_hard_reg): Same.
20835         (fixup_eh_region_note): Same.
20836         (set_reload_reg): Same.
20837         (allocate_reload_reg): Same.
20838         (compute_reload_subreg_offset): Same.
20839         (reload_adjust_reg_for_icode): Same.
20840         (emit_input_reload_insns): Same.
20841         (emit_output_reload_insns): Same.
20842         (do_input_reload): Same.
20843         (inherit_piecemeal_p): Same.
20844         * rtl.h: Same.
20845         * sanopt.c (maybe_get_dominating_check): Same.
20846         (maybe_optimize_ubsan_ptr_ifn): Same.
20847         (can_remove_asan_check): Same.
20848         (maybe_optimize_asan_check_ifn): Same.
20849         (sanopt_optimize_walker): Same.
20850         * sched-deps.c (add_dependence_list): Same.
20851         (chain_to_prev_insn): Same.
20852         (add_insn_mem_dependence): Same.
20853         (create_insn_reg_set): Same.
20854         (maybe_extend_reg_info_p): Same.
20855         (sched_analyze_reg): Same.
20856         (sched_analyze_1): Same.
20857         (get_implicit_reg_pending_clobbers): Same.
20858         (chain_to_prev_insn_p): Same.
20859         (deps_analyze_insn): Same.
20860         (deps_start_bb): Same.
20861         (sched_free_deps): Same.
20862         (init_deps): Same.
20863         (init_deps_reg_last): Same.
20864         (free_deps): Same.
20865         * sched-ebb.c: Same.
20866         * sched-int.h: Same.
20867         * sched-rgn.c (add_branch_dependences): Same.
20868         (concat_insn_mem_list): Same.
20869         (deps_join): Same.
20870         (sched_rgn_compute_dependencies): Same.
20871         * sel-sched-ir.c (reset_target_context): Same.
20872         (copy_deps_context): Same.
20873         (init_id_from_df): Same.
20874         (has_dependence_p): Same.
20875         (change_loops_latches): Same.
20876         (bb_top_order_comparator): Same.
20877         (make_region_from_loop_preheader): Same.
20878         (sel_init_pipelining): Same.
20879         (get_loop_nest_for_rgn): Same.
20880         (make_regions_from_the_rest): Same.
20881         (sel_is_loop_preheader_p): Same.
20882         * sel-sched-ir.h (inner_loop_header_p): Same.
20883         (get_all_loop_exits): Same.
20884         * selftest.h: Same.
20885         * sese.c (sese_build_liveouts): Same.
20886         (sese_insert_phis_for_liveouts): Same.
20887         * sese.h (defined_in_sese_p): Same.
20888         * sreal.c (sreal::stream_out): Same.
20889         * sreal.h: Same.
20890         * streamer-hooks.h: Same.
20891         * target-globals.c (save_target_globals): Same.
20892         * target-globals.h: Same.
20893         * target.def: Same.
20894         * target.h: Same.
20895         * targhooks.c (default_has_ifunc_p): Same.
20896         (default_empty_mask_is_expensive): Same.
20897         (default_init_cost): Same.
20898         * targhooks.h: Same.
20899         * toplev.c: Same.
20900         * tree-affine.c (aff_combination_mult): Same.
20901         (aff_combination_expand): Same.
20902         (aff_combination_constant_multiple_p): Same.
20903         * tree-affine.h: Same.
20904         * tree-cfg.c (build_gimple_cfg): Same.
20905         (replace_loop_annotate_in_block): Same.
20906         (replace_uses_by): Same.
20907         (remove_bb): Same.
20908         (dump_cfg_stats): Same.
20909         (gimple_duplicate_sese_region): Same.
20910         (gimple_duplicate_sese_tail): Same.
20911         (move_block_to_fn): Same.
20912         (replace_block_vars_by_duplicates): Same.
20913         (move_sese_region_to_fn): Same.
20914         (print_loops_bb): Same.
20915         (print_loop): Same.
20916         (print_loops): Same.
20917         (debug): Same.
20918         (debug_loops): Same.
20919         * tree-cfg.h: Same.
20920         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20921         (chrec_fold_multiply_poly_poly): Same.
20922         (chrec_evaluate): Same.
20923         (chrec_component_in_loop_num): Same.
20924         (reset_evolution_in_loop): Same.
20925         (is_multivariate_chrec): Same.
20926         (chrec_contains_symbols): Same.
20927         (nb_vars_in_chrec): Same.
20928         (chrec_convert_1): Same.
20929         (chrec_convert_aggressive): Same.
20930         * tree-chrec.h: Same.
20931         * tree-core.h: Same.
20932         * tree-data-ref.c (dump_data_dependence_relation): Same.
20933         (canonicalize_base_object_address): Same.
20934         (data_ref_compare_tree): Same.
20935         (prune_runtime_alias_test_list): Same.
20936         (get_segment_min_max): Same.
20937         (create_intersect_range_checks): Same.
20938         (conflict_fn_no_dependence): Same.
20939         (object_address_invariant_in_loop_p): Same.
20940         (analyze_ziv_subscript): Same.
20941         (analyze_siv_subscript_cst_affine): Same.
20942         (analyze_miv_subscript): Same.
20943         (analyze_overlapping_iterations): Same.
20944         (build_classic_dist_vector_1): Same.
20945         (add_other_self_distances): Same.
20946         (same_access_functions): Same.
20947         (build_classic_dir_vector): Same.
20948         (subscript_dependence_tester_1): Same.
20949         (subscript_dependence_tester): Same.
20950         (access_functions_are_affine_or_constant_p): Same.
20951         (get_references_in_stmt): Same.
20952         (loop_nest_has_data_refs): Same.
20953         (graphite_find_data_references_in_stmt): Same.
20954         (find_data_references_in_bb): Same.
20955         (get_base_for_alignment): Same.
20956         (find_loop_nest_1): Same.
20957         (find_loop_nest): Same.
20958         * tree-data-ref.h (dr_alignment): Same.
20959         (ddr_dependence_level): Same.
20960         * tree-if-conv.c (fold_build_cond_expr): Same.
20961         (add_to_predicate_list): Same.
20962         (add_to_dst_predicate_list): Same.
20963         (phi_convertible_by_degenerating_args): Same.
20964         (idx_within_array_bound): Same.
20965         (all_preds_critical_p): Same.
20966         (pred_blocks_visited_p): Same.
20967         (predicate_bbs): Same.
20968         (build_region): Same.
20969         (if_convertible_loop_p_1): Same.
20970         (is_cond_scalar_reduction): Same.
20971         (predicate_scalar_phi): Same.
20972         (remove_conditions_and_labels): Same.
20973         (combine_blocks): Same.
20974         (version_loop_for_if_conversion): Same.
20975         (versionable_outer_loop_p): Same.
20976         (ifcvt_local_dce): Same.
20977         (tree_if_conversion): Same.
20978         (pass_if_conversion::gate): Same.
20979         * tree-if-conv.h: Same.
20980         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20981         * tree-loop-distribution.c (bb_top_order_cmp): Same.
20982         (free_rdg): Same.
20983         (stmt_has_scalar_dependences_outside_loop): Same.
20984         (copy_loop_before): Same.
20985         (create_bb_after_loop): Same.
20986         (const_with_all_bytes_same): Same.
20987         (generate_memset_builtin): Same.
20988         (generate_memcpy_builtin): Same.
20989         (destroy_loop): Same.
20990         (build_rdg_partition_for_vertex): Same.
20991         (compute_access_range): Same.
20992         (data_ref_segment_size): Same.
20993         (latch_dominated_by_data_ref): Same.
20994         (compute_alias_check_pairs): Same.
20995         (fuse_memset_builtins): Same.
20996         (finalize_partitions): Same.
20997         (find_seed_stmts_for_distribution): Same.
20998         (prepare_perfect_loop_nest): Same.
20999         * tree-parloops.c (lambda_transform_legal_p): Same.
21000         (loop_parallel_p): Same.
21001         (reduc_stmt_res): Same.
21002         (add_field_for_name): Same.
21003         (create_call_for_reduction_1): Same.
21004         (replace_uses_in_bb_by): Same.
21005         (transform_to_exit_first_loop_alt): Same.
21006         (try_transform_to_exit_first_loop_alt): Same.
21007         (transform_to_exit_first_loop): Same.
21008         (num_phis): Same.
21009         (gen_parallel_loop): Same.
21010         (gather_scalar_reductions): Same.
21011         (get_omp_data_i_param): Same.
21012         (try_create_reduction_list): Same.
21013         (oacc_entry_exit_single_gang): Same.
21014         (parallelize_loops): Same.
21015         * tree-pass.h: Same.
21016         * tree-predcom.c (determine_offset): Same.
21017         (last_always_executed_block): Same.
21018         (split_data_refs_to_components): Same.
21019         (suitable_component_p): Same.
21020         (valid_initializer_p): Same.
21021         (find_looparound_phi): Same.
21022         (insert_looparound_copy): Same.
21023         (add_looparound_copies): Same.
21024         (determine_roots_comp): Same.
21025         (predcom_tmp_var): Same.
21026         (initialize_root_vars): Same.
21027         (initialize_root_vars_store_elim_1): Same.
21028         (initialize_root_vars_store_elim_2): Same.
21029         (finalize_eliminated_stores): Same.
21030         (initialize_root_vars_lm): Same.
21031         (remove_stmt): Same.
21032         (determine_unroll_factor): Same.
21033         (execute_pred_commoning_cbck): Same.
21034         (base_names_in_chain_on): Same.
21035         (combine_chains): Same.
21036         (pcom_stmt_dominates_stmt_p): Same.
21037         (try_combine_chains): Same.
21038         (prepare_initializers_chain_store_elim): Same.
21039         (prepare_initializers_chain): Same.
21040         (prepare_initializers): Same.
21041         (prepare_finalizers_chain): Same.
21042         (prepare_finalizers): Same.
21043         (insert_init_seqs): Same.
21044         * tree-scalar-evolution.c (loop_phi_node_p): Same.
21045         (compute_overall_effect_of_inner_loop): Same.
21046         (add_to_evolution_1): Same.
21047         (add_to_evolution): Same.
21048         (follow_ssa_edge_binary): Same.
21049         (follow_ssa_edge_expr): Same.
21050         (backedge_phi_arg_p): Same.
21051         (follow_ssa_edge_in_condition_phi_branch): Same.
21052         (follow_ssa_edge_in_condition_phi): Same.
21053         (follow_ssa_edge_inner_loop_phi): Same.
21054         (follow_ssa_edge): Same.
21055         (analyze_evolution_in_loop): Same.
21056         (analyze_initial_condition): Same.
21057         (interpret_loop_phi): Same.
21058         (interpret_condition_phi): Same.
21059         (interpret_rhs_expr): Same.
21060         (interpret_expr): Same.
21061         (interpret_gimple_assign): Same.
21062         (analyze_scalar_evolution_1): Same.
21063         (analyze_scalar_evolution): Same.
21064         (analyze_scalar_evolution_for_address_of): Same.
21065         (get_instantiated_value_entry): Same.
21066         (loop_closed_phi_def): Same.
21067         (instantiate_scev_name): Same.
21068         (instantiate_scev_poly): Same.
21069         (instantiate_scev_binary): Same.
21070         (instantiate_scev_convert): Same.
21071         (instantiate_scev_not): Same.
21072         (instantiate_scev_r): Same.
21073         (instantiate_scev): Same.
21074         (resolve_mixers): Same.
21075         (initialize_scalar_evolutions_analyzer): Same.
21076         (scev_reset_htab): Same.
21077         (scev_reset): Same.
21078         (derive_simple_iv_with_niters): Same.
21079         (simple_iv_with_niters): Same.
21080         (expression_expensive_p): Same.
21081         (final_value_replacement_loop): Same.
21082         * tree-scalar-evolution.h (block_before_loop): Same.
21083         * tree-ssa-address.h: Same.
21084         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21085         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21086         (record_edge_info): Same.
21087         * tree-ssa-live.c (var_map_base_fini): Same.
21088         (remove_unused_locals): Same.
21089         * tree-ssa-live.h: Same.
21090         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21091         (pass_ch_vect::execute): Same.
21092         (pass_ch::process_loop_p): Same.
21093         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21094         (movement_possibility): Same.
21095         (outermost_invariant_loop): Same.
21096         (stmt_cost): Same.
21097         (determine_max_movement): Same.
21098         (invariantness_dom_walker::before_dom_children): Same.
21099         (move_computations): Same.
21100         (may_move_till): Same.
21101         (force_move_till_op): Same.
21102         (force_move_till): Same.
21103         (memref_free): Same.
21104         (record_mem_ref_loc): Same.
21105         (set_ref_stored_in_loop): Same.
21106         (mark_ref_stored): Same.
21107         (sort_bbs_in_loop_postorder_cmp): Same.
21108         (sort_locs_in_loop_postorder_cmp): Same.
21109         (analyze_memory_references): Same.
21110         (mem_refs_may_alias_p): Same.
21111         (find_ref_loc_in_loop_cmp): Same.
21112         (rewrite_mem_ref_loc::operator): Same.
21113         (first_mem_ref_loc_1::operator): Same.
21114         (sm_set_flag_if_changed::operator): Same.
21115         (execute_sm_if_changed_flag_set): Same.
21116         (execute_sm): Same.
21117         (hoist_memory_references): Same.
21118         (ref_always_accessed::operator): Same.
21119         (refs_independent_p): Same.
21120         (record_dep_loop): Same.
21121         (ref_indep_loop_p_1): Same.
21122         (ref_indep_loop_p): Same.
21123         (can_sm_ref_p): Same.
21124         (find_refs_for_sm): Same.
21125         (loop_suitable_for_sm): Same.
21126         (store_motion_loop): Same.
21127         (store_motion): Same.
21128         (fill_always_executed_in): Same.
21129         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21130         (estimated_unrolled_size): Same.
21131         (loop_edge_to_cancel): Same.
21132         (remove_exits_and_undefined_stmts): Same.
21133         (remove_redundant_iv_tests): Same.
21134         (unloop_loops): Same.
21135         (estimated_peeled_sequence_size): Same.
21136         (try_peel_loop): Same.
21137         (canonicalize_loop_induction_variables): Same.
21138         (canonicalize_induction_variables): Same.
21139         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21140         (name_info): Same.
21141         (stmt_after_inc_pos): Same.
21142         (contains_abnormal_ssa_name_p): Same.
21143         (niter_for_exit): Same.
21144         (find_bivs): Same.
21145         (mark_bivs): Same.
21146         (find_givs_in_bb): Same.
21147         (find_induction_variables): Same.
21148         (find_interesting_uses_cond): Same.
21149         (outermost_invariant_loop_for_expr): Same.
21150         (idx_find_step): Same.
21151         (add_candidate_1): Same.
21152         (add_iv_candidate_derived_from_uses): Same.
21153         (alloc_use_cost_map): Same.
21154         (prepare_decl_rtl): Same.
21155         (generic_predict_doloop_p): Same.
21156         (computation_cost): Same.
21157         (determine_common_wider_type): Same.
21158         (get_computation_aff_1): Same.
21159         (get_use_type): Same.
21160         (determine_group_iv_cost_address): Same.
21161         (iv_period): Same.
21162         (difference_cannot_overflow_p): Same.
21163         (may_eliminate_iv): Same.
21164         (determine_set_costs): Same.
21165         (cheaper_cost_pair): Same.
21166         (compare_cost_pair): Same.
21167         (iv_ca_cand_for_group): Same.
21168         (iv_ca_recount_cost): Same.
21169         (iv_ca_set_remove_invs): Same.
21170         (iv_ca_set_no_cp): Same.
21171         (iv_ca_set_add_invs): Same.
21172         (iv_ca_set_cp): Same.
21173         (iv_ca_add_group): Same.
21174         (iv_ca_cost): Same.
21175         (iv_ca_compare_deps): Same.
21176         (iv_ca_delta_reverse): Same.
21177         (iv_ca_delta_commit): Same.
21178         (iv_ca_cand_used_p): Same.
21179         (iv_ca_delta_free): Same.
21180         (iv_ca_new): Same.
21181         (iv_ca_free): Same.
21182         (iv_ca_dump): Same.
21183         (iv_ca_extend): Same.
21184         (iv_ca_narrow): Same.
21185         (iv_ca_prune): Same.
21186         (cheaper_cost_with_cand): Same.
21187         (iv_ca_replace): Same.
21188         (try_add_cand_for): Same.
21189         (get_initial_solution): Same.
21190         (try_improve_iv_set): Same.
21191         (find_optimal_iv_set_1): Same.
21192         (create_new_iv): Same.
21193         (rewrite_use_compare): Same.
21194         (remove_unused_ivs): Same.
21195         (determine_scaling_factor): Same.
21196         * tree-ssa-loop-ivopts.h: Same.
21197         * tree-ssa-loop-manip.c (create_iv): Same.
21198         (compute_live_loop_exits): Same.
21199         (add_exit_phi): Same.
21200         (add_exit_phis): Same.
21201         (find_uses_to_rename_use): Same.
21202         (find_uses_to_rename_def): Same.
21203         (find_uses_to_rename_in_loop): Same.
21204         (rewrite_into_loop_closed_ssa): Same.
21205         (check_loop_closed_ssa_bb): Same.
21206         (split_loop_exit_edge): Same.
21207         (ip_end_pos): Same.
21208         (ip_normal_pos): Same.
21209         (copy_phi_node_args): Same.
21210         (gimple_duplicate_loop_to_header_edge): Same.
21211         (can_unroll_loop_p): Same.
21212         (determine_exit_conditions): Same.
21213         (scale_dominated_blocks_in_loop): Same.
21214         (niter_for_unrolled_loop): Same.
21215         (tree_transform_and_unroll_loop): Same.
21216         (rewrite_all_phi_nodes_with_iv): Same.
21217         * tree-ssa-loop-manip.h: Same.
21218         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21219         (number_of_iterations_ne): Same.
21220         (assert_no_overflow_lt): Same.
21221         (assert_loop_rolls_lt): Same.
21222         (number_of_iterations_lt): Same.
21223         (adjust_cond_for_loop_until_wrap): Same.
21224         (tree_simplify_using_condition): Same.
21225         (simplify_using_initial_conditions): Same.
21226         (simplify_using_outer_evolutions): Same.
21227         (loop_only_exit_p): Same.
21228         (ssa_defined_by_minus_one_stmt_p): Same.
21229         (number_of_iterations_popcount): Same.
21230         (number_of_iterations_exit): Same.
21231         (find_loop_niter): Same.
21232         (finite_loop_p): Same.
21233         (chain_of_csts_start): Same.
21234         (get_val_for): Same.
21235         (loop_niter_by_eval): Same.
21236         (derive_constant_upper_bound_ops): Same.
21237         (do_warn_aggressive_loop_optimizations): Same.
21238         (record_estimate): Same.
21239         (get_cst_init_from_scev): Same.
21240         (record_nonwrapping_iv): Same.
21241         (idx_infer_loop_bounds): Same.
21242         (infer_loop_bounds_from_ref): Same.
21243         (infer_loop_bounds_from_array): Same.
21244         (infer_loop_bounds_from_pointer_arith): Same.
21245         (infer_loop_bounds_from_signedness): Same.
21246         (bound_index): Same.
21247         (discover_iteration_bound_by_body_walk): Same.
21248         (maybe_lower_iteration_bound): Same.
21249         (estimate_numbers_of_iterations): Same.
21250         (estimated_loop_iterations): Same.
21251         (estimated_loop_iterations_int): Same.
21252         (max_loop_iterations): Same.
21253         (max_loop_iterations_int): Same.
21254         (likely_max_loop_iterations): Same.
21255         (likely_max_loop_iterations_int): Same.
21256         (estimated_stmt_executions_int): Same.
21257         (max_stmt_executions): Same.
21258         (likely_max_stmt_executions): Same.
21259         (estimated_stmt_executions): Same.
21260         (stmt_dominates_stmt_p): Same.
21261         (nowrap_type_p): Same.
21262         (loop_exits_before_overflow): Same.
21263         (scev_var_range_cant_overflow): Same.
21264         (scev_probably_wraps_p): Same.
21265         (free_numbers_of_iterations_estimates): Same.
21266         * tree-ssa-loop-niter.h: Same.
21267         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21268         (idx_analyze_ref): Same.
21269         (analyze_ref): Same.
21270         (gather_memory_references_ref): Same.
21271         (mark_nontemporal_store): Same.
21272         (emit_mfence_after_loop): Same.
21273         (may_use_storent_in_loop_p): Same.
21274         (mark_nontemporal_stores): Same.
21275         (should_unroll_loop_p): Same.
21276         (volume_of_dist_vector): Same.
21277         (add_subscript_strides): Same.
21278         (self_reuse_distance): Same.
21279         (insn_to_prefetch_ratio_too_small_p): Same.
21280         * tree-ssa-loop-split.c (split_at_bb_p): Same.
21281         (patch_loop_exit): Same.
21282         (find_or_create_guard_phi): Same.
21283         (easy_exit_values): Same.
21284         (connect_loop_phis): Same.
21285         (connect_loops): Same.
21286         (compute_new_first_bound): Same.
21287         (split_loop): Same.
21288         (tree_ssa_split_loops): Same.
21289         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21290         (is_maybe_undefined): Same.
21291         (tree_may_unswitch_on): Same.
21292         (simplify_using_entry_checks): Same.
21293         (tree_unswitch_single_loop): Same.
21294         (tree_unswitch_loop): Same.
21295         (tree_unswitch_outer_loop): Same.
21296         (empty_bb_without_guard_p): Same.
21297         (used_outside_loop_p): Same.
21298         (get_vop_from_header): Same.
21299         (hoist_guard): Same.
21300         * tree-ssa-loop.c (gate_oacc_kernels): Same.
21301         (get_lsm_tmp_name): Same.
21302         * tree-ssa-loop.h: Same.
21303         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21304         (build_and_add_sum): Same.
21305         (no_side_effect_bb): Same.
21306         (get_ops): Same.
21307         (linearize_expr): Same.
21308         (should_break_up_subtract): Same.
21309         (linearize_expr_tree): Same.
21310         * tree-ssa-scopedtables.c: Same.
21311         * tree-ssa-scopedtables.h: Same.
21312         * tree-ssa-structalias.c (condense_visit): Same.
21313         (label_visit): Same.
21314         (dump_pred_graph): Same.
21315         (perform_var_substitution): Same.
21316         (move_complex_constraints): Same.
21317         (remove_preds_and_fake_succs): Same.
21318         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21319         (determine_bb_domination_status): Same.
21320         (duplicate_thread_path): Same.
21321         (thread_through_all_blocks): Same.
21322         * tree-ssa-threadupdate.h: Same.
21323         * tree-streamer-in.c (streamer_read_string_cst): Same.
21324         (input_identifier): Same.
21325         (unpack_ts_type_common_value_fields): Same.
21326         (unpack_ts_block_value_fields): Same.
21327         (unpack_ts_translation_unit_decl_value_fields): Same.
21328         (unpack_ts_omp_clause_value_fields): Same.
21329         (streamer_read_tree_bitfields): Same.
21330         (streamer_alloc_tree): Same.
21331         (lto_input_ts_common_tree_pointers): Same.
21332         (lto_input_ts_vector_tree_pointers): Same.
21333         (lto_input_ts_poly_tree_pointers): Same.
21334         (lto_input_ts_complex_tree_pointers): Same.
21335         (lto_input_ts_decl_minimal_tree_pointers): Same.
21336         (lto_input_ts_decl_common_tree_pointers): Same.
21337         (lto_input_ts_decl_non_common_tree_pointers): Same.
21338         (lto_input_ts_decl_with_vis_tree_pointers): Same.
21339         (lto_input_ts_field_decl_tree_pointers): Same.
21340         (lto_input_ts_function_decl_tree_pointers): Same.
21341         (lto_input_ts_type_common_tree_pointers): Same.
21342         (lto_input_ts_type_non_common_tree_pointers): Same.
21343         (lto_input_ts_list_tree_pointers): Same.
21344         (lto_input_ts_vec_tree_pointers): Same.
21345         (lto_input_ts_exp_tree_pointers): Same.
21346         (lto_input_ts_block_tree_pointers): Same.
21347         (lto_input_ts_binfo_tree_pointers): Same.
21348         (lto_input_ts_constructor_tree_pointers): Same.
21349         (lto_input_ts_omp_clause_tree_pointers): Same.
21350         (streamer_read_tree_body): Same.
21351         * tree-streamer.h: Same.
21352         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21353         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21354         (vect_analyze_possibly_independent_ddr): Same.
21355         (vect_analyze_data_ref_dependence): Same.
21356         (vect_compute_data_ref_alignment): Same.
21357         (vect_enhance_data_refs_alignment): Same.
21358         (vect_analyze_data_ref_access): Same.
21359         (vect_check_gather_scatter): Same.
21360         (vect_find_stmt_data_reference): Same.
21361         (vect_create_addr_base_for_vector_ref): Same.
21362         (vect_setup_realignment): Same.
21363         (vect_supportable_dr_alignment): Same.
21364         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21365         (adjust_phi_and_debug_stmts): Same.
21366         (vect_set_loop_mask): Same.
21367         (add_preheader_seq): Same.
21368         (vect_maybe_permute_loop_masks): Same.
21369         (vect_set_loop_masks_directly): Same.
21370         (vect_set_loop_condition_masked): Same.
21371         (vect_set_loop_condition_unmasked): Same.
21372         (slpeel_duplicate_current_defs_from_edges): Same.
21373         (slpeel_add_loop_guard): Same.
21374         (slpeel_can_duplicate_loop_p): Same.
21375         (create_lcssa_for_virtual_phi): Same.
21376         (iv_phi_p): Same.
21377         (vect_update_ivs_after_vectorizer): Same.
21378         (vect_gen_vector_loop_niters_mult_vf): Same.
21379         (slpeel_update_phi_nodes_for_loops): Same.
21380         (slpeel_update_phi_nodes_for_guard1): Same.
21381         (find_guard_arg): Same.
21382         (slpeel_update_phi_nodes_for_guard2): Same.
21383         (slpeel_update_phi_nodes_for_lcssa): Same.
21384         (vect_do_peeling): Same.
21385         (vect_create_cond_for_alias_checks): Same.
21386         (vect_loop_versioning): Same.
21387         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21388         (vect_inner_phi_in_double_reduction_p): Same.
21389         (vect_analyze_scalar_cycles_1): Same.
21390         (vect_fixup_scalar_cycles_with_patterns): Same.
21391         (vect_get_loop_niters): Same.
21392         (bb_in_loop_p): Same.
21393         (vect_get_max_nscalars_per_iter): Same.
21394         (vect_verify_full_masking): Same.
21395         (vect_compute_single_scalar_iteration_cost): Same.
21396         (vect_analyze_loop_form_1): Same.
21397         (vect_analyze_loop_form): Same.
21398         (vect_active_double_reduction_p): Same.
21399         (vect_analyze_loop_operations): Same.
21400         (neutral_op_for_slp_reduction): Same.
21401         (vect_is_simple_reduction): Same.
21402         (vect_model_reduction_cost): Same.
21403         (get_initial_def_for_reduction): Same.
21404         (get_initial_defs_for_reduction): Same.
21405         (vect_create_epilog_for_reduction): Same.
21406         (vectorize_fold_left_reduction): Same.
21407         (vectorizable_reduction): Same.
21408         (vectorizable_induction): Same.
21409         (vectorizable_live_operation): Same.
21410         (loop_niters_no_overflow): Same.
21411         (vect_get_loop_mask): Same.
21412         (vect_transform_loop_stmt): Same.
21413         (vect_transform_loop): Same.
21414         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21415         (vect_determine_precisions): Same.
21416         (vect_pattern_recog_1): Same.
21417         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21418         * tree-vect-stmts.c (stmt_vectype): Same.
21419         (process_use): Same.
21420         (vect_init_vector_1): Same.
21421         (vect_truncate_gather_scatter_offset): Same.
21422         (get_group_load_store_type): Same.
21423         (vect_build_gather_load_calls): Same.
21424         (vect_get_strided_load_store_ops): Same.
21425         (vectorizable_simd_clone_call): Same.
21426         (vectorizable_store): Same.
21427         (permute_vec_elements): Same.
21428         (vectorizable_load): Same.
21429         (vect_transform_stmt): Same.
21430         (supportable_widening_operation): Same.
21431         * tree-vectorizer.c (vec_info::replace_stmt): Same.
21432         (vec_info::free_stmt_vec_info): Same.
21433         (vect_free_loop_info_assumptions): Same.
21434         (vect_loop_vectorized_call): Same.
21435         (set_uid_loop_bbs): Same.
21436         (vectorize_loops): Same.
21437         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21438         * tree.c (add_tree_to_fld_list): Same.
21439         (fld_type_variant_equal_p): Same.
21440         (fld_decl_context): Same.
21441         (fld_incomplete_type_of): Same.
21442         (free_lang_data_in_binfo): Same.
21443         (need_assembler_name_p): Same.
21444         (find_decls_types_r): Same.
21445         (get_eh_types_for_runtime): Same.
21446         (find_decls_types_in_eh_region): Same.
21447         (find_decls_types_in_node): Same.
21448         (assign_assembler_name_if_needed): Same.
21449         * value-prof.c (stream_out_histogram_value): Same.
21450         * value-prof.h: Same.
21451         * var-tracking.c (use_narrower_mode): Same.
21452         (prepare_call_arguments): Same.
21453         (vt_expand_loc_callback): Same.
21454         (resolve_expansions_pending_recursion): Same.
21455         (vt_expand_loc): Same.
21456         * varasm.c (const_hash_1): Same.
21457         (compare_constant): Same.
21458         (tree_output_constant_def): Same.
21459         (simplify_subtraction): Same.
21460         (get_pool_constant): Same.
21461         (output_constant_pool_2): Same.
21462         (output_constant_pool_1): Same.
21463         (mark_constants_in_pattern): Same.
21464         (mark_constant_pool): Same.
21465         (get_section_anchor): Same.
21466         * vr-values.c (compare_range_with_value): Same.
21467         (vr_values::extract_range_from_phi_node): Same.
21468         * vr-values.h: Same.
21469         * web.c (unionfind_union): Same.
21470         * wide-int.h: Same.
21472 2019-07-09  Martin Sebor  <msebor@redhat.com>
21474         PR c++/61339
21475         * align.h: Change class-key from class to struct and vice versa
21476         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21477         * alloc-pool.h: Same.
21478         * asan.c (shadow_mem_size): Same.
21479         * auto-profile.c: Same.
21480         * basic-block.h: Same.
21481         * bitmap.h: Same.
21482         * cfgexpand.c (set_rtl): Same.
21483         (expand_one_stack_var_at): Same.
21484         * cfghooks.h: Same.
21485         * cfgloop.h: Same.
21486         * cgraph.h: Same.
21487         * config/i386/i386.h: Same.
21488         * df-problems.c (df_print_bb_index): Same.
21489         * df-scan.c: Same.
21490         * df.h (df_single_use): Same.
21491         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21492         (layout::annotation_line_showed_range_p): Same.
21493         (get_printed_columns): Same.
21494         (correction::ensure_terminated): Same.
21495         (line_corrections::~line_corrections): Same.
21496         * dojump.h: Same.
21497         * dse.c: Same.
21498         * dump-context.h: Same.
21499         * dumpfile.h: Same.
21500         * dwarf2out.c: Same.
21501         * edit-context.c: Same.
21502         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21503         * flags.h: Same.
21504         * function.c (assign_stack_local): Same.
21505         * function.h: Same.
21506         * gcc.c: Same.
21507         * gcov.c (block_info::block_info): Same.
21508         * genattrtab.c: Same.
21509         * genextract.c: Same.
21510         * genmatch.c (comparison_code_p): Same.
21511         (id_base::id_base): Same.
21512         (decision_tree::print): Same.
21513         * genoutput.c: Same.
21514         * genpreds.c (write_one_predicate_function): Same.
21515         * genrecog.c (validate_pattern): Same.
21516         (find_operand_positions): Same.
21517         (optimize_subroutine_group): Same.
21518         (merge_pattern_transition::merge_pattern_transition): Same.
21519         (merge_pattern_info::merge_pattern_info): Same.
21520         (merge_state_result::merge_state_result): Same.
21521         (merge_into_state): Same.
21522         * gensupport.c: Same.
21523         * gensupport.h: Same.
21524         * ggc-common.c (init_ggc_heuristics): Same.
21525         * ggc-tests.c (test_union): Same.
21526         * gimple-loop-interchange.cc (dump_induction): Same.
21527         * gimple-loop-versioning.cc: Same.
21528         * gimple-match.h (gimple_match_cond::any_else): Same.
21529         * gimple-ssa-backprop.c: Same.
21530         * gimple-ssa-sprintf.c: Same.
21531         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21532         Same.
21533         (store_immediate_info::store_immediate_info): Same.
21534         (merged_store_group::apply_stores): Same.
21535         (get_location_for_stmts): Same.
21536         * gimple-ssa-strength-reduction.c: Same.
21537         * gimple-ssa-warn-alloca.c: Same.
21538         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21539         * godump.c (go_type_decl): Same.
21540         * hash-map-tests.c (test_map_of_strings_to_int): Same.
21541         * hash-map.h: Same.
21542         * hash-set-tests.c (test_set_of_strings): Same.
21543         * hsa-brig.c: Same.
21544         * hsa-common.h: Same.
21545         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21546         * input.c (assert_loceq): Same.
21547         * input.h: Same.
21548         * ipa-cp.c: Same.
21549         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21550         * ipa-fnsummary.h: Same.
21551         * ipa-inline.h: Same.
21552         * ipa-prop.h: Same.
21553         * ipa-split.c (visit_bb): Same.
21554         * ira-int.h (minmax_set_iter_next): Same.
21555         * loop-invariant.c: Same.
21556         * loop-iv.c: Same.
21557         * lra-eliminations.c: Same.
21558         * lra-int.h: Same.
21559         * lra-lives.c (mark_regno_dead): Same.
21560         * lra-remat.c: Same.
21561         * lra-spills.c: Same.
21562         * lto-streamer.h: Same.
21563         * mem-stats.h: Same.
21564         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21565         * omp-low.c (omp_clause_aligned_alignment): Same.
21566         * optabs-query.h (get_vcond_eq_icode): Same.
21567         * optabs.h: Same.
21568         * opts.c (wrap_help): Same.
21569         * poly-int.h: Same.
21570         * predict.c (predict_paths_leading_to_edge): Same.
21571         * pretty-print.h: Same.
21572         * profile-count.h: Same.
21573         * read-md.h: Same.
21574         * read-rtl-function.c: Same.
21575         * ree.c: Same.
21576         * reginfo.c: Same.
21577         * regrename.c: Same.
21578         * regrename.h: Same.
21579         * reload.h: Same.
21580         * rtl-iter.h: Same.
21581         * rtl.h (costs_add_n_insns): Same.
21582         * sanopt.c: Same.
21583         * sched-int.h: Same.
21584         * sel-sched-ir.h: Same.
21585         * selftest.h: Same.
21586         * sese.h (vec_find): Same.
21587         * stmt.c: Same.
21588         * target-globals.h: Same.
21589         * tree-affine.c (aff_combination_find_elt): Same.
21590         * tree-affine.h: Same.
21591         * tree-data-ref.h: Same.
21592         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21593         * tree-predcom.c: Same.
21594         * tree-scalar-evolution.c (find_var_scev_info): Same.
21595         * tree-ssa-alias.h: Same.
21596         * tree-ssa-ccp.c: Same.
21597         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21598         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21599         (rewrite_mem_refs): Same.
21600         (execute_sm_if_changed): Same.
21601         (hoist_memory_references): Same.
21602         * tree-ssa-loop-ivopts.c (operator<=): Same.
21603         * tree-ssa-loop.h: Same.
21604         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21605         * tree-ssa-structalias.c: Same.
21606         * tree-switch-conversion.h (cluster::cluster): Same.
21607         (simple_cluster::simple_cluster): Same.
21608         * tree-vect-patterns.c (type_conversion_p): Same.
21609         * tree-vectorizer.c (dump_stmt_cost): Same.
21610         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21611         * tree.c (protected_set_expr_location): Same.
21612         * tree.h (desired_pro_or_demotion_p): Same.
21613         (fndecl_built_in_p): Same.
21614         * unique-ptr-tests.cc: Same.
21615         * var-tracking.c (delete_variable_part): Same.
21616         * varasm.c (assemble_real): Same.
21617         (tree_output_constant_def): Same.
21618         * vec.c: Same.
21619         * wide-int-bitmask.h: Same.
21620         * wide-int.h (decompose): Same.
21622 2019-07-09  Richard Biener  <rguenther@suse.de>
21624         PR tree-optimization/91114
21625         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21626         find a vector type isn't fatal.
21628 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
21630         * config/aarch64/aarch64-simd.md
21631         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21632         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21633         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21634         (*aarch64_crypto_aese_fused,
21635         *aarch64_crypto_aesd_fused): Update to new definition.
21636         * config/aarch64/aarch64.c
21637         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21639 2019-07-09  Richard Biener  <rguenther@suse.de>
21641         * gimple-match.h (gimple_match_op::resimplify): New.
21642         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21643         gimple_resimplify4, gimple_resimplify5): Remove.
21644         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21645         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21646         Make static.
21647         (gimple_match_op::resimplify): New.
21648         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21649         according to availability.  Use gimple_match_op::resimplify.
21651 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
21653         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21655 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
21657         * config/arm/crypto.md:
21658         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21659         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21660         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21661         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21662         * config/arm/arm.c
21663         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21664         * config/arm/aarch-common-protos.h
21665         (aarch_crypto_can_dual_issue): Remove.
21666         * config/arm/aarch-common.c
21667         (aarch_crypto_can_dual_issue): Likewise.
21668         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21669         * config/arm/cortex-a53.md: Likewise.
21670         * config/arm/cortex-a57.md: Likewise.
21671         * config/arm/iterators.md:
21672         (CRYPTO_BINARY): Redefine.
21673         (CRYPTO_UNARY): Removed.
21674         (CRYPTO_AES, CRYPTO_AESMC): New.
21676 2019-07-09  Richard Biener  <rguenther@suse.de>
21678         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21679         (vn_reference_lookup_3): If the main ref has no access path recorded
21680         but orig_ref has use it to do access-path based disambiguation.
21681         (vn_reference_lookup_pieces): Adjust.
21682         (vn_reference_lookup): Pass down original ref if we valueized.
21684 2019-07-09  Martin Liska  <mliska@suse.cz>
21686         * doc/extend.texi: Document influence on loop
21687         optimizers.
21689 2019-07-09  Martin Liska  <mliska@suse.cz>
21691         * lto-compress.c (lto_normalized_zstd_level): Do not use
21692         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21693         of libzstd.  One can use 0 as a default compression level.
21695 2019-07-09  Martin Liska  <mliska@suse.cz>
21697         * doc/invoke.texi: Add link from -fprofile-dir option.
21698         Use better wording for 'gcno filename'.
21700 2019-07-08  Martin Sebor  <msebor@redhat.com>
21702         PR middle-end/71924
21703         PR middle-end/90549
21704         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
21705         comment.
21706         (args_loc_t): New type.
21707         (args_loc_t, locmap_t): same.
21708         (diag_returned_locals): New function.
21709         (is_addr_local): Same.
21710         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21711         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21712         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21714 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
21716         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21717         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
21718         and casts in offset when different, both through gimple stmts
21719         and through trees.  Rewritten using loops to minimize code duplication
21720         for each operand.
21722 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21724         * emit-rtl.c (set_insn_locations): New function moved from...
21725         * function.c (set_insn_locations): ...here.
21726         * ira-emit.c (emit_moves): Propagate location of the first instruction
21727         to the inserted move instructions.
21728         * reg-stack.c (compensate_edge): Set the location if the sequence is
21729         inserted on the edge.
21730         * rtl.h (set_insn_locations): Declare.
21732 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
21734         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21735         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21736         .machine string.
21738 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
21740         PR rtl-optimization/88233
21741         * common.opt (fsplit-wide-types-early): New option.
21742         * common/config/rs6000/rs6000-common.c
21743         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21744         OPT_LEVELS_ALL.
21745         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21746         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21747         flag_split_wide_types_early.
21748         (pass_data_lower_subreg3): New.
21749         (pass_lower_subreg3): New.
21750         (make_pass_lower_subreg3): New.
21751         * passes.def (pass_lower_subreg2): Move after the loop passes.
21752         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21753         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21754         the pass pipeline; its previous place is taken by ...
21755         (make_pass_lower_subreg3): ... this.
21757 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
21759         * config/s390/s390.c (s390_shift_truncation_mask): Define.
21760         (TARGET_SHIFT_TRUNCATION_MASK): Define.
21762 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
21764         * config/s390/constraints.md: Add new jsc constraint.
21765         * config/s390/predicates.md: New predicates.
21766         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21767         * config/s390/s390.c (s390_valid_shift_count): New function.
21768         (print_shift_count_operand): Use s390_valid_shift_count.
21769         (print_operand): Likewise.
21770         * config/s390/s390.md: Use new predicate.
21771         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21772         * config/s390/vector.md: Use new predicate.
21774 2019-07-08  Andrew Waterman  <andrew@sifive.com>
21775             Jim Wilson  <jimw@sifive.com>
21777         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21778         bitsize instead of BITS_PER_WORD.
21780 2019-07-08  Martin Liska  <mliska@suse.cz>
21782         * collect2.c (defined): Revert to before r254460.
21783         (scan_prog_file): Revert to before r254460.
21785 2019-07-08  Richard Biener  <rguenther@suse.de>
21787         PR tree-optimization/83518
21788         * tree-ssa-sccvn.c: Include splay-tree.h.
21789         (struct pd_range, struct pd_data): New.
21790         (struct vn_walk_cb_data): Add data to track partial definitions.
21791         (vn_walk_cb_data::~vn_walk_cb_data): New.
21792         (vn_walk_cb_data::push_partial_def): New.
21793         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21794         (vn_reference_lookup_2): When partial defs are registered give up.
21795         (vn_reference_lookup_3): Track partial defs for memset and
21796         constructor zeroing and for defs from constants.
21798 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
21800         * doc/install.texi (bootstrap-Og): Document.
21802 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
21804         * config/riscv/pic.md (*local_pic_load_s<mode>)
21805         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21806         referenced by <mode>, giving...
21807         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21808         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21809         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21810         use <X:MODE> for the mode attribute.
21812 2019-07-07  Jeff Law  <law@redhat.com>
21814         PR tree-optimization/91090
21815         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21816         in handling of ranges to simplify switch statements.
21818 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
21820         * config/darwin.c (darwin_override_options): Make a final check on PIC
21821         options.
21823 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
21825         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21826         on for kernel code.
21828 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
21830         PR target/91068
21831         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21832         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21833         instead of matching them to "l" output operands.
21835 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
21837         * config/mips/mips.c (mips_split_move): Zero-initialize addr
21838         and check whether addr.reg is nonnull before using it.
21840 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
21842         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21843         ctx->for_simd_scan_phase simd copy the outer var to the privatized
21844         variable(s).  For conditional lastprivate look through outer
21845         GIMPLE_OMP_SCAN context.
21846         (lower_omp_1): For conditional lastprivate look through outer
21847         GIMPLE_OMP_SCAN context.
21849         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21850         member to combined_into_simd_safelen1.
21851         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21852         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
21853         clauses if ctx->combined_into_simd_safelen1 put statements after the
21854         predicate conditionalized block rather than into it.
21856 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21858         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21859         operand 1.
21860         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21861         Make the choice of <mode> explicit, giving...
21862         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21864 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21866         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21867         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21868         of .md attributes.
21869         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21870         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21871         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21872         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21873         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21874         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21875         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21876         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21877         (*avx512f_scatterdi<mode>): Likewise.
21878         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21880 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21882         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21883         specify the mode iterator referenced by <mode>, giving...
21884         (*push1_h8300hs_<QHI:mode>): ...this.
21886 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21888         * config/gcn/gcn-valu.md
21889         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21890         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21891         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
21892         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21893         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21894         but using the _exec comparison patterns.
21895         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21896         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21897         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
21898         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21899         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21900         but using the _exec comparison patterns.
21902 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21904         * config/arm/sync.md
21905         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21906         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21907         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21908         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
21909         <SIDI:cas_cmp_str>.
21911 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
21913         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21914         (maybe_lookup_ctx): Add forward declaration.
21915         (omp_find_scan): Likewise.  Walk into body of simd if composited
21916         with worksharing loop.
21917         (scan_omp_simd_scan): New function.
21918         (scan_omp_1_stmt): Call it.
21919         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21920         ctx->for_simd_scan_phase.
21921         (lower_rec_input_clauses): Do much less work for inscan reductions
21922         in ctx->for_simd_scan_phase is_simd regions.
21923         (lower_omp_scan): Set is_simd also on simd constructs composited
21924         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
21925         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
21926         emit their body after in simd constructs composited with worksharing
21927         loop.
21928         (lower_omp_for_scan): Handle worksharing loop composited with simd.
21930         * omp-low.c (omp_find_scan): Make static.
21931         (lower_omp_for_scan): Fix order of merge arguments in input phase of
21932         the second loop, var2 represents the first partial sum and so needs
21933         to go before rprivb[ivar].
21935 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
21937         * config/rs6000/rs6000-logue.c: Remove unused code.
21939 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
21941         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21943 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
21945         PR target/90712
21946         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21947         check with a frame laid out check.
21949 2019-07-05  Richard Biener  <rguenther@suse.de>
21951         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21952         when comparing against a store with possibly the same value.
21954 2019-07-05  Richard Biener  <rguenther@suse.de>
21956         PR tree-optimization/91091
21957         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21958         (walk_non_aliased_vuses): Likewise.
21959         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21960         (get_continuation_for_phi): New tbaa_p parameter and pass
21961         it down.
21962         (walk_non_aliased_vuses): Likewise.
21963         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21964         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21965         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21966         Likewise.
21967         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21968         (adjust_offsets_for_equal_base_address): New function.
21969         (vn_reference_lookup_3): Use it to catch more base equivalences.
21970         Handle and pass down tbaa_p flag.
21971         (vn_reference_lookup_pieces): Adjust.
21972         (vn_reference_lookup): Remove alias-set altering, instead pass
21973         down false as tbaa_p.
21975 2019-07-05  Richard Biener  <rguenther@suse.de>
21977         PR tree-optimization/91091
21978         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21979         accesses can happen with -fno-strict-aliasing.
21981 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
21983         * tree-ssa-alias.c (alias_stats): Add
21984         nonoverlapping_component_refs_since_match_p_must_overlap.
21985         (dump_alias_stats): Print it.
21986         (nonoverlapping_component_refs_since_match_p): Add early exit.
21987         (nonoverlapping_component_refs_p): Do not account early exit.
21989 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
21991         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21992         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21993         (emit_eh_dispatch): Delete.
21994         (lower_catch): Emit the eh_dispatch manually and set the location of
21995         the first catch statement onto it.
21996         (lower_eh_filter): Emit the eh_dispatch manually and set location.
21997         (lower_eh_dispatch): Propagate location.
21998         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21999         (eliminate_build): Likewise.
22001 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22003         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22004         phi nodes if possible.
22005         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22006         location info on the newly created statement.
22007         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22008         newly created increment if needed.
22010 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22012         PR middle-end/78884
22013         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22014         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22015         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22016         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22017         ctx->add_safelen1 is set.
22019         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22020         GOMP_loop_start at the start of second worksharing loop in a scan.
22021         For nowait, don't emit GOMP_loop_end_nowait at the end of first
22022         worksharing loop in a scan even if there are conditional lastprivates,
22023         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22025 2019-07-04  Jan Hubicka  <jh@suse.cz>
22027         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22028         Fix check for match in the ref walk.
22030 2019-07-04  Martin Liska  <mliska@suse.cz>
22032         * tree-ssa-loop-niter.c
22033         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22034         (estimate_numbers_of_iterations):
22035         Support __builtin_expect_with_probability for analysis
22036         of # of loop iterations.
22038 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
22040         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22041         * except.c: Likewise.
22042         * expr.c (expand_expr_real_1): Reject it.
22043         * gimplify.c (gimplify_expr): Gimplify it, within
22044         TRY_FINALLY_EXPR.
22045         * tree-dump.c (dequeue_and_dump): Dump it.
22046         * tree-pretty-print.c (dump_generic_node): Likewise.
22047         * tree.c (block_may_fallthru): Handle it.
22048         * tree.def (EH_ELSE_EXPR): Introduce it.
22049         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22050         with GIMPLE_EH_ELSE as try/finally/else.
22052 2019-07-04  Richard Biener  <rguenther@suse.de>
22054         PR ipa/91062
22055         * tree-pass.h (execute_all_ipa_transforms): Add a flag
22056         parameter whether to disable GC collection.
22057         * passes.c (execute_one_ipa_transform_pass): Likewise, and
22058         honor it.
22059         (execute_all_ipa_transforms): Likewise and pass it down.
22060         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22061         collection from applying IPA transforms.
22062         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22063         from applying IPA transforms.
22065 2019-07-04  Richard Biener  <rguenther@suse.de>
22067         PR tree-optimization/90911
22068         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22069         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22070         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22071         scalar_loop_scaling.
22072         (vect_transform_loop): Scale scalar loop profile if needed.
22073         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22074         the loop copy from if-conversion adjust edge probabilities
22075         and scale the vectorized loop body profile, queue the scalar
22076         profile for updating after peeling.
22078 2019-07-04  Jan Hubicka  <jh@suse.cz>
22080         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22081         parameters; return early for must-alias.
22082         (indirect_ref_may_alias_decl_p): Likewise; when establishing
22083         outer types match, try nonoverlapping_component_refs
22084         if must-alias is not obvious.
22085         (indirect_refs_may_alias_p): Likewise.
22086         (refs_may_alias_p_2): Likewise.
22088 2019-07-04  Richard Biener  <rguenther@suse.de>
22090         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22091         argument.
22092         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22093         globals into...
22094         (struct vn_walk_cb_data): New callback data struct.
22095         (vn_reference_lookup_2): Adjust.
22096         (vn_reference_lookup_3): Likewise.
22097         (vn_reference_lookup_pieces): Likewise.
22098         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22099         (visit_reference_op_load): Adjust.
22101 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22103         PR tree-optimization/91063
22104         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22105         stmt from stmts sequence before calling vect_init_vector_1.
22106         Formatting fix.
22108 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22110         PR target/88833
22111         * fwprop.c (reg_single_def_p): New function.
22112         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22113         (forward_propagate_into): New parameter reg_prop_only
22114         with default value false.
22115         Propagate def's src into loop only if SET_SRC and SET_DEST
22116         of def_set have single definitions.
22117         Likewise if reg_prop_only is set to true.
22118         (fwprop): New param fwprop_addr_p.
22119         Integrate fwprop_addr into fwprop.
22120         (fwprop_addr): Remove.
22121         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22122         to true.
22123         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22124         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22125         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22127 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22129         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22130         in worksharing loop scans.
22132         PR tree-optimization/91074
22133         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22134         temporary.
22136         PR rtl-optimization/90756
22137         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22138         for VECTOR_TYPE_P.
22140 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
22142         * config/aarch64/aarch64.md: Remove redundant constraints from
22143         define_expand but keep some patterns untouched if they are
22144         specially selected by TARGET_SECONDARY_RELOAD hook.
22145         * config/aarch64/aarch64-sve.md: Likewise.
22146         * config/aarch64/atomics.md: Remove redundant constraints from
22147         define_expand.
22148         * config/aarch64/aarch64-simd.md: Likewise.
22150 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22152         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22153         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22154         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22155         clauses.
22156         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22157         DARWIN_NOPIE_SPEC.
22159 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22161         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22162         (STARTFILE_SPEC): Split crt3 into a separate spec.
22163         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22164         (DARWIN_CRT2_SPEC): New.
22165         (DARWIN_CRT3_SPEC): New.
22166         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22167         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22168         (DARWIN_CRT3_SPEC): New.
22170 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
22172         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22173         Change the RTL attribute "length" from "4" to "*" to allow the
22174         length attribute to be adjusted automatically for prefixed load,
22175         store, and add immediate instructions.
22176         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22177         Likewise.
22178         (extendsi<mode>2, EXTSI iterator): Likewise.
22179         (movsi_internal1): Likewise.
22180         (movsi_from_sf): Likewise.
22181         (movdi_from_sf_zero_ext): Likewise.
22182         (mov<mode>_internal): Likewise.
22183         (movcc_internal1, QHI iterator): Likewise.
22184         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22185         (movsf_from_si): Likewise.
22186         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22187         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22188         (mov<mode>, FMOVE128 iterator): Likewise.
22189         (movdi_internal64): Likewise.
22190         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22191         Likewise.
22192         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22193         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22194         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22195         (vsx_splat_v4sf): Likewise.
22197 2019-07-03  Mark Wielaard  <mark@klomp.org>
22199         PR debug/90981
22200         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22201         DW_AT_addr_base if there is actually a .debug_addr section with
22202         addresses.
22203         (output_addr_table): Add DWARF5 table header generation here after
22204         checking there are actually any addresses from...
22205         (dwarf2out_finish): ...here.
22207 2019-07-03  Richard Biener  <rguenther@suse.de>
22209         PR middle-end/91069
22210         * match.pd (vec_perm -> bit_insert): Fix element read from
22211         first vector.
22213 2019-07-03  Martin Liska  <mliska@suse.cz>
22215         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22216         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22217         condition.
22218         * generic-match-head.c: Include dbgcnt.h.
22219         * gimple-match-head.c: Likewise.
22221 2019-07-03  Martin Liska  <mliska@suse.cz>
22223         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22224         (GCOV_COUNTER_V_TOPN): New.
22225         (GCOV_COUNTER_V_INDIR): Use _topn.
22226         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22227         (GCOV_TOPN_VALUES): New.
22228         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22229         (GCOV_TOPN_VALUES_COUNTERS): New.
22230         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22231         * tree-profile.c:
22232         (gimple_init_gcov_profiler): Rename variables from one_value
22233         to topn_values.
22234         (gimple_gen_one_value_profiler): Remove.
22235         (gimple_gen_topn_values_profiler): New function.
22236         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22237         names instead of SINGLE_VALUE.
22238         (stream_out_histogram_value): Likewise.
22239         (stream_in_histogram_value): Likewise.
22240         (get_most_common_single_value): Likewise.
22241         (gimple_divmod_fixed_value_transform): Likewise.
22242         (gimple_stringops_transform): Likewise.
22243         (gimple_divmod_values_to_profile): Likewise.
22244         (gimple_stringops_values_to_profile): Likewise.
22245         (gimple_find_values_to_profile): Likewise.
22246         * value-prof.h (enum hist_type): Rename to TOPN.
22247         (gimple_gen_one_value_profiler): Remove.
22248         (gimple_gen_topn_values_profiler): New.
22250 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
22252         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22253         if it has the DW_AT_data_member_location attribute.
22255 2019-07-03  Richard Biener  <rguenther@suse.de>
22257         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22258         dumping.
22260 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
22262         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22263         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22264         (tlsdesc_small_sve_<mode>): Likewise.
22266 2019-07-03  Martin Liska  <mliska@suse.cz>
22268         * Makefile.in: Define ZSTD_LIB.
22269         * common.opt: Adjust compression level
22270         to support also zstd levels.
22271         * config.in: Regenerate.
22272         * configure: Likewise.
22273         * configure.ac: Add --with-zstd and --with-zstd-include options
22274         and detect ZSTD.
22275         * doc/install.texi: Mention zstd dependency.
22276         * gcc.c: Print supported LTO compression algorithms.
22277         * lto-compress.c (lto_normalized_zstd_level): Likewise.
22278         (lto_compression_zstd): Likewise.
22279         (lto_uncompression_zstd): Likewise.
22280         (lto_end_compression): Dispatch in between zlib and zstd.
22281         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22282         (lto_uncompression_zlib): Make it static.
22283         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22284         * lto-section-in.c (lto_get_section_data): Pass info
22285         about used compression.
22286         * lto-streamer-out.c: By default use zstd when possible.
22287         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22288         (TV_IPA_LTO_COMPRESS): Likewise for compression.
22290 2019-07-03  Martin Liska  <mliska@suse.cz>
22292         * lto-section-in.c (lto_get_section_data): Add "lto" section.
22293         * lto-section-out.c (lto_destroy_simple_output_block): Never
22294         compress LTO_section_lto section.
22295         * lto-streamer-out.c (produce_asm): Do not set major_version
22296         and minor_version.
22297         (lto_output_toplevel_asms): Likewise.
22298         (produce_lto_section): New function.
22299         (lto_output): Call produce_lto_section.
22300         (lto_write_mode_table): Do not set major_version and
22301         minor_version.
22302         (produce_asm_for_decls): Likewise.
22303         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22304         type.
22305         (struct lto_header): Remove.
22306         (struct lto_section): New struct.
22307         (struct lto_simple_header): Do not inherit from lto_header.
22308         (struct lto_file_decl_data): Add lto_section_header field.
22310 2019-07-03  Martin Liska  <mliska@suse.cz>
22312         * lra-eliminations.c (eliminate_regs_in_insn): Remove
22313         dead assignemts.
22314         * reg-stack.c (check_asm_stack_operands): Likewise.
22315         * tree-ssa-structalias.c (create_function_info_for): Likewise.
22316         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22317         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22318         force_expand_binop.
22320 2019-07-03  Martin Liska  <mliska@suse.cz>
22322         PR tree-optimization/90892
22323         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22324         in string constants.
22326 2019-07-03  Martin Liska  <mliska@suse.cz>
22328         PR middle-end/90899
22329         * multiple_target.c (create_dispatcher_calls): Add to comdat
22330         group only if set for ifunc.
22332 2019-07-03  Martin Liska  <mliska@suse.cz>
22334         PR target/88056
22335         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22336         Define local_object_name in outer scope in order to handle
22337         use-after-scope issue.
22339 2019-07-03  Martin Liska  <mliska@suse.cz>
22341         * common.opt: Add fprofile-note.
22342         * coverage.c (coverage_init): Append the option
22343         to bbg_file_name.
22344         * doc/invoke.texi: Document -fprofile-note.
22346 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
22348         PR tree-optimization/91033
22349         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22350         vect_analyze_data_refs): Add bool * arguments.
22351         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22352         if failure is due to scatter/gather, set *fatal to false if non-NULL.
22353         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22354         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22355         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22356         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22357         vect_analyze_data_refs caller.
22359         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22360         clause.
22361         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22362         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22363         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22364         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22365         OMP_CLAUSE__SCANTEMP_ entry.
22366         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22367         * tree-pretty-print.c (dump_omp_clause): Likewise.
22368         * tree-nested.c (convert_nonlocal_omp_clauses,
22369         convert_local_omp_clauses): Likewise.
22370         * omp-general.h (struct omp_for_data): Add have_scantemp and
22371         have_nonctrl_scantemp members.
22372         * omp-general.c (omp_extract_for_data): Initialize them.
22373         * omp-low.c (struct omp_context): Add scan_exclusive member.
22374         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22375         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
22376         ctx->scan_exclusive.
22377         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22378         of !ctx->scan_inclusive.
22379         (lower_rec_input_clauses): Simplify gimplification of dtors using
22380         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22381         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22382         loops.  Don't add barrier for reduction_omp_orig_ref if
22383         ctx->scan_??xclusive.
22384         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22385         (lower_omp_scan): Use ctx->scan_exclusive instead
22386         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
22387         reductions.  Use new_vard != new_var instead of repeated
22388         omp_is_reference calls.
22389         (omp_find_scan, lower_omp_for_scan): New functions.
22390         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22391         inscan reductions.
22392         * omp-expand.c (expand_omp_scantemp_alloc): New function.
22393         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22394         and fd->have_scantemp.
22396         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22397         on worksharing loop propagate it as shared clause to containing
22398         combined parallel.
22400         * omp-expand.c (expand_omp_for_static_nochunk,
22401         expand_omp_for_static_chunk): For nowait worksharing loop with
22402         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22403         at the end.
22405 2019-07-02  qing zhao  <qing.zhao@oracle.com>
22407         PR preprocessor/90581
22408         * doc/cppopts.texi: Add document for -fmax-include-depth.
22409         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22411 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22413         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22414         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22415         (mmx_packssdw): Ditto.
22416         (mmx_punpckhbw): Ditto.
22417         (mmx_punpcklbw): Ditto.
22418         (mmx_punpckhwd): Ditto.
22419         (mmx_punpcklwd): Ditto.
22420         (mmx_punpckhdq): Ditto.
22421         (mmx_punpckldq): Ditto.
22422         (*vec_dupv4hi): Ditto.
22423         (*vec_dupv2si): Ditto.
22424         (mmx_pmovmskb): Ditto.
22425         * config/i386/sse.md (sse_cvtpi2ps): Use
22426         TARGET_SSE2 && SSE_REG_P in split condition.
22427         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22428         TARGET_SSSE3 && SSE_REGNO_P in split condition.
22429         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22430         (ssse3_pshufbv8qi3): Ditto.
22431         (ssse3_palignrdi): Ditto.
22433 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
22435         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22436         with inlined save and restore.
22438 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
22440         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22441         to be inserted on single successor edge of the entry block.  Then call
22442         commit_edge_insertions instead of inserting the instructions manually.
22443         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22444         RTL expansion and rebuild jump labels chain.
22446 2019-07-02  Richard Biener  <rguenther@suse.de>
22448         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22449         TI_CHREC_KNOWN.
22450         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22451         Define here.
22452         * tree.c (build_common_tree_nodes): Initialize them.
22453         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22454         Make declarations comments.
22455         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22456         chrec_known): Remove definitions.
22457         (initialize_scalar_evolutions_analyzer): Remove.
22458         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22459         * tree-streamer.c (preload_common_nodes): Do not preload
22460         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22462 2019-07-02  Jan Hubicka  <jh@suse.cz>
22464         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22465         sanity check.
22467 2019-07-02  Jan Hubicka  <jh@suse.cz>
22469         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22470         to ..
22471         (nonoverlapping_component_refs_since_match_p): ... this one;
22472         handle also non-decl bases; return -1 if search gave up.
22473         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22474         nonoverlapping_component_refs_of_decl_p_no_alias to
22475         nonoverlapping_component_refs_since_match_p_may_alias,
22476         nonoverlapping_component_refs_since_match_p_no_alias.
22477         (dump_alias_stats): Update dumping.
22478         (aliasing_matching_component_refs_p): Break out from ...;
22479         dispatch to nonoverlapping_component_refs_for_decl_p
22480         and nonoverlapping_component_refs_since_match_p.
22481         (aliasing_component_refs_p): ... here; call
22482         nonoverlapping_component_refs_p in scenarios where we can not
22483         precisely determine base match.
22484         (decl_refs_may_alias_p): Use
22485         nonoverlapping_component_refs_since_match_p.
22486         (indirect_ref_may_alias_decl_p): Do not call
22487         nonoverlapping_component_refs_p.
22488         (indirect_refs_may_alias_p): Likewise.
22490 2019-07-02  Jan Hubicka  <jh@suse.cz>
22492         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22493         to clobber of return value.
22495 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22497         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22498         for is_neon_type instructions that have not already been categorized.
22500 2019-07-02  Richard Biener  <rguenther@suse.de>
22502         PR tree-optimization/58483
22503         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22504         for MEM_REF base hashing.
22505         (equal_mem_array_ref_p): Likewise for base comparison.
22507 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22509         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22510         parameterized name.
22511         (signbit<mode>2): Use that name.  Simplify.
22513 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
22515         PR middle-end/66726
22516         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22517         Tune heuristic from PR71016 to allow MIN / MAX.
22519 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22521         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22522         parameterized name.
22523         (abs<mode>2): Use that name.  Simplify.
22525 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22527         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22528         parameterized name.
22529         (neg<mode>2): Use that name.  Simplify.
22531 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22533         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22534         name.
22535         (abs<mode>2): Use that name.  Simplify.
22537 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22539         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22540         name.
22541         (neg<mode>2): Use that name.  Simplify.
22543 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22545         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22546         ("enabled" attribute): Handle sse_noavx isa attribute.
22547         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22548         Use TARGET_SSE && SSE_REGNO_P in split condition.
22549         (*vec_dupv2sf): Ditto.
22551 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22553         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22554         name.
22555         (floatsi<mode>2): Use that name.  Simplify.
22557 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22559         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22560         parameterized name.
22561         (extenddf<mode>2_vsx): Make this a parameterized name.
22562         (extenddf<mode>2): Use those names.  Simplify.
22564 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22566         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22567         name.
22568         (eh_return): Use that name.  Simplify.
22570 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22572         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22573         (doloop_end): Use that name.  Simplify.
22575 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22577         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22578         parameterized name.
22579         (indirect_jump): Use that name.  Simplify.
22581 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22583         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22584         parameterized name.
22585         (abs<mode>2): Use that name.  Simplify.
22587 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22589         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22590         parameterized name.
22591         (fix_trunc<mode>si2): Use that name.  Simplify.
22593 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22595         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22596         (allocate_stack): Use that name.  Simplify.
22598 2019-07-01  Martin Sebor  <msebor@redhat.com>
22600         PR middle-end/90923
22601         * hash-map.h (hash_map::put): On insertion invoke element ctor.
22602         (hash_map::get_or_insert): Same.  Reformat comment.
22603         * hash-set.h (hash_set::add): On insertion invoke element ctor.
22604         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22605         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22606         * hash-table.h (hash_table::operator=): Prevent copy assignment.
22607          (hash_table::hash_table (const hash_table&)): Use copy ctor
22608          instead of assignment to copy elements.
22610 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
22611             John David Anglin  <danglin@gcc.gnu.org>
22613         PR target/90963
22614         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22615         using saved frame pointer.
22617 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
22619         PR middle-end/64242
22620         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22621         Add frame clobber and schedule blockage.
22623 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
22625         * doc/invoke.texi (Link Options): Further editorial changes to
22626         -flinker-output docs.
22628 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22630         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22631         Load both operands of a PLUS into registers separately.
22633 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
22635         * config/s390/vector.md: Fix shift count operand printing.
22637 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22639         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22641 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22643         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22644         Use recog_data to test for an output operand.
22646 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22648         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22649         exclude any others that are disparaged or that are bound to need
22650         a reload or spill.
22651         (ira_get_dup_out_num): Expand comment.
22653 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22655         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22656         constraint string for each operand/alternative combo.  Only handle
22657         '%' at the start of constraint strings, and look for it outside
22658         the main loop.
22660 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22662         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22663         alternative_mask instead of HARD_REG_SET to represent a
22664         bitmask of alternatives.
22665         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22666         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22668 2019-07-01  Martin Liska  <mliska@suse.cz>
22670         * edit-context.c (test_applying_fixits_unreadable_file): Do not
22671         use () for a constructor call.
22672         (test_applying_fixits_line_out_of_range): Likewise.
22673         * ggc-page.c (alloc_page): Use (void *) for %p printf format
22674         argument.
22675         (free_page): Likewise.
22677 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
22679         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22680         parameter names to match usage (no functional change).
22681         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22683 2019-07-01  Richard Biener  <rguenther@suse.de>
22685         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22686         pass parameter.
22687         (pass_fre::execute): Honor it.
22688         * passes.def: Adjust pass_fre invocations to allow iterating,
22689         add non-iterating pass_fre before late threading/dom.
22691 2019-07-01  Richard Biener  <rguenther@suse.de>
22693         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22694         TARGET_MEM_REF handling to also handle address-taken ones.
22696 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
22698         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22699         hardware attributes): Document avx512vp2intersect.
22701 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22703         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22704         (abs<mode>2): New expander.
22705         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22706         Use CODE_FOR_ssse3_absv8qi2.
22707         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22708         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22710 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22712         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22713         to sse, sse_noavx and avx.  Update all uses.
22715 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22717         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22718         (*mmx_<plusminus_insn><mode>3): Ditto.
22719         (*mmx_mulv4hi3"): Ditto.
22720         (*mmx_smulv4hi3_highpart): Ditto.
22721         (*mmx_umulv4hi3_highpart): Ditto.
22722         (*mmx_pmaddwd): Ditto.
22723         (*sse2_umulv1siv1di3): Ditto.
22724         (*mmx_<code>v4hi3): Ditto.
22725         (*mmx_<code>v8qi3): Ditto.
22726         (mmx_ashr<mode>3): Ditto.
22727         ("mmx_<shift_insn><mode>3): Ditto.
22728         (*mmx_eq<mode>3): Ditto.
22729         (mmx_gt<mode>3): Ditto.
22730         (mmx_andnot<mode>3): Ditto.
22731         (*mmx_<code><mode>3): Ditto.
22732         (*mmx_pinsrw): Ditto.
22733         (*mmx_pextrw): Ditto.
22734         (mmx_pshufw_1): Ditto.
22735         (*mmx_uavgv8qi3): Ditto.
22736         (*mmx_uavgv4hi3): Ditto.
22737         ("mmx_psadbw): Ditto.
22738         * config/i386/sse.md (sse_cvtps2pi): Ditto.
22739         (sse_cvttps2pi): Ditto.
22740         (ssse3_pmaddubsw): Ditto.
22741         (*ssse3_pmulhrswv4hi3): Ditto.
22742         (ssse3_psign<mode>3): Ditto.
22744 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
22746         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22747         adjustment for bit-fields to all aggregate types.
22749 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
22751         * config/rs6000/predicates.md (pcrel_address): Use
22752         SYMBOL_REF_LOCAL_P to determine if a label is local.
22753         (pcrel_external_address): New predicate.
22754         (non_prefixed_mem_operand): Delete, predicate not used.
22755         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22756         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22757         addressing.
22758         (SYMBOL_REF_PCREL_P): Likewise.
22760         PR target/91009
22761         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22762         alternative.
22763         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22764         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22765         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22767 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
22769         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22770         override on extra_headers.
22772 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
22774         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22775         * config/darwin-driver.c (darwin_default_min_version): Remove newline
22776         from warning.
22777         (darwin_driver_init): Likewise.
22779 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22781         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22782         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22783         Eliminate redundant alternative.
22785 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22787         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22788         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22789         Use vector_operand.
22791 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
22793         * config/arc/arc.c (arc_rtx_costs): All short instructions are
22794         having a lower cost regardless of the speed option.
22796 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22798         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22799         vector_operand plus, on both alternatives, "Bm" constraint.
22801 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
22803         * config/arm/arm.md: Remove redundant constraints from
22804         define_expand but leave reload_inm and reload_outm patterns
22805         untouched since they need special constraints to work.
22806         * config/arm/arm-fixed.md: Remove redundant constraints from
22807         define_expand.
22808         * config/arm/iwmmxt.md: Likewise.
22809         * config/arm/neon.md: Likewise.
22810         * config/arm/sync.md: Likewise.
22811         * config/arm/thumb1.md: Likewise.
22812         * config/arm/vec-common.md: Likewise.
22814 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
22816         * doc/install.texi: Document --disable-tm-clone-registry.
22818 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
22820         PR c++/91024
22821         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22822         statements.
22824         PR tree-optimization/91010
22825         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22826         return true.  Otherwise, don't call operand_equal_p if offset1 or
22827         offset2 is NULL and just return false.
22829 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22831         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22832         user-specified float mode choice for kernel mode code.
22834 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22836         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22837         spec.
22839 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22841         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22842         use longcall for 64b code.
22844 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
22846         * builtins.c (get_memory_rtx): Fix comment.
22847         * optabs.def (movmem_optab): Change to cpymem_optab.
22848         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22849         (emit_block_move_hints): Change movmem to cpymem.
22850         * defaults.h: Change movmem to cpymem.
22851         * targhooks.c (get_move_ratio): Change movmem to cpymem.
22852         (default_use_by_pieces_infrastructure_p): Ditto.
22853         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22854         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22855         to cpymem.
22856         * config/aarch64/aarch64.h: Change movmem to cpymem.
22857         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22858         * config/alpha/alpha.h: Change movmem to cpymem in comment.
22859         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22860         movmem to cpymem.
22861         * config/arc/arc-protos.h: Change movmem to cpymem.
22862         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22863         * config/arc/arc.h: Change movmem to cpymem in comment.
22864         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22865         * config/arm/arm-protos.h: Change movmem to cpymem in names.
22866         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22867         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22868         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22869         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22870         * config/avr/avr-protos.h: Change movmem to cpymem.
22871         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22872         avr_out_movmem): Change movmem to cpymem.
22873         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22874         Change movmem to cpymem.
22875         * config/bfin/bfin-protos.h: Change movmem to cpymem.
22876         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22877         Change movmem to cpymem.
22878         * config/bfin/bfin.h: Change movmem to cpymem in comment.
22879         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22880         * config/c6x/c6x-protos.h: Change movmem to cpymem.
22881         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22882         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22883         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22884         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22885         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22886         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22887         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22888         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22889         expand_small_cpymem_or_setmem,
22890         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22891         expand_set_or_cpymem_constant_prologue,
22892         ix86_expand_set_or_cpymem): Change movmem to cpymem.
22893         * config/i386/i386-protos.h: Change movmem to cpymem.
22894         * config/i386/i386.h: Change movmem to cpymem in comment.
22895         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22896         (setmem<mode>): Change expansion function name.
22897         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22898         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22899         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22900         * config/m32c/m32c-protos.h: Change movmem to cpymem.
22901         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22902         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22903         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22904         to cpymem.
22905         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22906         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22907         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22908         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22909         Change movmem to cpymem.
22910         * config/mips/mips.h: Change movmem to cpymem.
22911         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22912         * config/nds32/nds32-memory-manipulation.c
22913         (nds32_expand_movmemsi_loop_unknown_size,
22914         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22915         nds32_expand_movmemsi_unroll,
22916         nds32_expand_movmemsi): Change movmem to cpymem.
22917         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22918         * config/nds32/nds32-protos.h: Change movmem to cpymem.
22919         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22920         (pa_adjust_insn_length): Change call to compute_movmem_length.
22921         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22922         movmemdi, movmemdi_prereload,
22923         movmemdi_postreload): Change movmem to cpymem.
22924         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22925         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22926         * config/riscv/riscv.c: Change movmem to cpymem in comment.
22927         * config/riscv/riscv.h: Change movmem to cpymem.
22928         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22929         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22930         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22931         movmem to cpymem.
22932         * config/s390/s390-protos.h: Change movmem to cpymem.
22933         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22934         s390_expand_insv): Change movmem to cpymem.
22935         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22936         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22937         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22938         * config/sparc/sparc.h: Change movmem to cpymem in comment.
22939         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22940         for nonexistent function.
22941         * config/vax/vax.h: Change movmem to cpymem in comment.
22942         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22943         * config/visium/visium.h: Change movmem to cpymem in comment.
22944         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22945         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22946         * doc/md.texi: Change movmem to cpymem and update description to match.
22947         * doc/rtl.texi: Change movmem to cpymem.
22948         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22949         * doc/tm.texi: Regenerate.
22951 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
22953         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22954         -fvariable-expansion-in-unroller by default.
22955         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22956         default for Power.
22958 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
22960         Revert
22961         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
22962         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22964         * config.gcc(rs6000-*-*): Define target_gtfiles.
22966 2019-06-27  Jan Hubicka  <jh@suse.cz>
22968         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22969         (add_type_duplicate): When odr hash is not allocated, to nothing.
22970         (odr_based_tbaa_p): New function.
22971         (set_type_canonical_for_odr_type): New function.
22972         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22973         set_type_canonical_for_odr_type): New.
22974         * tree.c (gimple_canonical_types_compatible_p): ODR types with
22975         ODR based TBAA are not equivalent to non-ODR types.
22977 2019-06-27  Martin Liska  <mliska@suse.cz>
22979         PR tree-optimization/90974
22980         PR rtl-optimization/90975
22981         PR rtl-optimization/90976
22982         PR target/91016
22983         PR tree-optimization/91017
22984         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22985         unused tmp.
22986         * lra.c (lra_set_insn_recog_data): Remove a leftover from
22987         initial commit of IRA.
22988         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22989         of op0 and op1.
22990         * tree-vect-loop.c (vect_create_epilog_for_reduction):
22991         Remove unused mode1.
22992         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22993         to new_stmt_info.
22995 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
22997         PR target/90991
22998         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22999         instead of register_operand for operands[1], add m to its constraints
23000         if operands[2] uses "C" constraint.  Ensure in condition that if
23001         operands[2] is not 0, then operands[1] is not a MEM.  For last two
23002         alternatives, use unaligned loads instead of aligned if operands[1] is
23003         misaligned_operand.
23005 2019-06-27  Martin Liska  <mliska@suse.cz>
23007         * asan.c (asan_emit_allocas_unpoison): Remove obviously
23008         dead assignments.
23009         * bt-load.c (move_btr_def): Likewise.
23010         * builtins.c (expand_builtin_apply_args_1): Likewise.
23011         (expand_builtin_apply): Likewise.
23012         * cfgexpand.c (expand_asm_stmt): Likewise.
23013         (construct_init_block): Likewise.
23014         * cfghooks.c (verify_flow_info): Likewise.
23015         * cfgloopmanip.c (remove_path): Likewise.
23016         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23017         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23018         * combine.c (simplify_if_then_else): Likewise.
23019         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23020         (choose_basereg): Likewise.
23021         (ix86_expand_prologue): Likewise.
23022         (ix86_preferred_output_reload_class): Likewise.
23023         * cselib.c (cselib_record_sets): Likewise.
23024         * df-scan.c (df_scan_alloc): Likewise.
23025         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23026         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23027         * emit-rtl.c (try_split): Likewise.
23028         * graphite-scop-detection.c (assign_parameter_index_in_region):
23029         Likewise.
23030         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23031         * ira-color.c (setup_profitable_hard_regs): Likewise.
23032         * ira.c (rtx_moveable_p): Likewise.
23033         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23034         * read-rtl.c (read_subst_mapping): Likewise.
23035         * regrename.c (scan_rtx): Likewise.
23036         * reorg.c (fill_slots_from_thread): Likewise.
23037         * tree-inline.c (tree_function_versioning): Likewise.
23038         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23039         * tree-ssa-sink.c (statement_sink_location): Likewise.
23040         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23041         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23042         (vect_create_epilog_for_reduction): Likewise.
23043         * tree.c (build_nonstandard_integer_type): Likewise.
23045 2019-06-27  Richard Biener  <rguenther@suse.de>
23047         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23049 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
23051         PR tree-optimization/89772
23052         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23053         out-of-bound accesses checking.
23055 2019-06-27  Martin Liska  <mliska@suse.cz>
23057         PR tree-optimization/91014
23058         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23059         when LHS is NULL_TREE.
23061 2019-06-27  Martin Liska  <mliska@suse.cz>
23063         * symbol-summary.h (traverse): Pass
23064         argument a to the call of callback.
23065         (gt_ggc_mx): Mark arguments as unused.
23066         (gt_pch_nx): Likewise.
23068 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
23070         PR target/62147
23071         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23072         finiteness.
23074 2019-06-26  Jeff Law  <law@redhat.com>
23076         PR tree-optimization/90883
23077         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23078         (delete_dead_or_redundant_assignment): Likewise.
23080         PR tree-optimization/90883
23081         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23082         * tree-ssa-dse.c: Update various comments to distinguish between
23083         dead and redundant stores.
23084         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23085         (dse_optimize_redundant_stores): New function.
23086         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23087         Distinguish between dead and redundant calls in dump output.  All
23088         callers updated.
23089         (delete_dead_or_redundant_assignment): Similarly for assignments.
23090         (dse_optimize_stmt): Handle _CHK variants.  For statements which
23091         store 0 into multiple memory locations, try to prove a subsequent
23092         store is redundant.
23094 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23096         PR target/89021
23097         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23098         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23100 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23102         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23103         (branch_islands): New extern.
23104         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23105         * config/rs6000/rs6000.c: .. here.
23107 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23109         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23110         (powerpc*-*-*) ... to here.
23112 2019-06-26  Jeff Law  <law@redhat.com>
23114         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23115         memcpy, memmove and memset builtins.
23116         (maybe_trim_memstar_call): Likewise.
23118 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23120         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23122 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23124         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23126 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23128         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23129         declaration.
23130         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23131         "static".
23132         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23133         declaration.
23135 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23137         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23139 2019-06-26  Richard Biener  <rguenther@suse.de>
23141         PR ipa/90982
23142         * tree-inline.c (remap_ssa_name): Copy SSA range info.
23144 2019-06-26  Richard Biener  <rguenther@suse.de>
23146         * lto-streamer.h (lto_bitmap_alloc): Remove.
23147         (lto_bitmap_free): Likewise.
23148         * lto-streamer.c (lto_bitmap_alloc): Remove.
23149         (lto_bitmap_free): Likewise.
23150         (lto_obstack): Likewise.
23151         (lto_obstack_initialized): Likewise.
23152         * lto-streamer-out.c (lto_output): Use own obstack for local
23153         bitmap, free it consistently.
23155 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
23157         PR target/90991
23158         * config/i386/sse.md
23159         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23160         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23161         insns if operands[2] is misaligned_operand.
23163 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
23165         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23166         TARGET_POWERPC64.
23167         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23168         to GPR.
23170 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23172         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23174 2019-06-26  Martin Liska  <mliska@suse.cz>
23176         PR tree-optimization/90973
23177         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23178         epilogue_cost_vec instead of prologue_cost_vec for
23179         a epilogue cost.
23181 2019-06-26  Martin Liska  <mliska@suse.cz>
23183         * bb-reorder.c (connect_better_edge_p): Add missing else
23184         statement in the middle of if-else statements.
23186 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
23187             H.J. Lu  <hongjiu.lu@intel.com>
23188             Olga Makhotina  <olga.makhotina@intel.com>
23190         * common/config/i386/i386-common.c
23191         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23192         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23193         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23194         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23195         (ix86_handle_option): Handle -mavx512vp2intersect.
23196         * config/i386/avx512vp2intersectintrin.h: New.
23197         * config/i386/avx512vp2intersectvlintrin.h: New.
23198         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23199         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23200         AVX512VP2INTERSECT.
23201         * config/i386/i386-builtin-types.def: Add new types.
23202         * config/i386/i386-builtin.def: Add new builtins.
23203         * config/i386/i386-builtins.c: (enum processor_features): Add
23204         F_AVX512VP2INTERSECT.
23205         (static const _isa_names_table isa_names_table): Ditto.
23206         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23207         __AVX512VP2INTERSECT__.
23208         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23209         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23210         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23211         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23212         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23213         * config/i386/i386-options.c (ix86_target_string): Add
23214         -mavx512vp2intersect.
23215         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23216         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23217         P2HImode and P2QImode.
23218         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23219         number for P2QImode and P2HImode.
23220         (ix86_regmode_natural_size): New function.
23221         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23222         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23223         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23224         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23225         * config/i386/i386.opt: Add -mavx512vp2intersect.
23226         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23227         avx512vp2intersectvlintrin.h.
23228         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23229         (define_mode_iterator VI48_AVX512VP2VL): New.
23230         (avx512vp2intersect_2intersect<mode>,
23231         avx512vp2intersect_2intersectv16si): New define_insn patterns.
23232         * config.gcc: Add avx512vp2intersectvlintrin.h and
23233         avx512vp2intersectintrin.h to extra_headers.
23234         * doc/invoke.texi: Document -mavx512vp2intersect.
23236 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
23238         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23240 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
23242         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23243         savres_routine_syms, savres_routine_name, morestack_ref,
23244         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23245         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23246         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23247         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23248         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23249         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23250         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23251         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23252         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23253         get_stack_clash_protection_probe_interval,
23254         get_stack_clash_protection_guard_size,
23255         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23256         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23257         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23258         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23259         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23260         gen_frame_mem_offset, rs6000_savres_routine_name,
23261         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23262         ptr_regno_for_savres, rs6000_emit_savres_rtx,
23263         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23264         rs6000_global_entry_point_prologue_needed_p,
23265         rs6000_get_separate_components, rs6000_components_for_bb,
23266         rs6000_disqualify_components, rs6000_emit_prologue_components,
23267         rs6000_emit_epilogue_components, rs6000_set_handled_components,
23268         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23269         rs6000_output_savres_externs, rs6000_output_function_prologue,
23270         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23271         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23272         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23273         rs6000_output_function_epilogue, gen_add3_const,
23274         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23275         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23276         to rs6000-logue.c.
23277         (machine_function): Moved to rs6000.h.
23278         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23279         rs6000-internal.h.
23280         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23281         savres_routine_syms, savres_routine_name, morestack_ref,
23282         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23283         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23284         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23285         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23286         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23287         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23288         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23289         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23290         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23291         get_stack_clash_protection_probe_interval,
23292         get_stack_clash_protection_guard_size,
23293         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23294         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23295         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23296         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23297         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23298         gen_frame_mem_offset, rs6000_savres_routine_name,
23299         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23300         ptr_regno_for_savres, rs6000_emit_savres_rtx,
23301         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23302         rs6000_global_entry_point_prologue_needed_p,
23303         rs6000_get_separate_components, rs6000_components_for_bb,
23304         rs6000_disqualify_components, rs6000_emit_prologue_components,
23305         rs6000_emit_epilogue_components, rs6000_set_handled_components,
23306         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23307         rs6000_output_savres_externs, rs6000_output_function_prologue,
23308         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23309         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23310         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23311         rs6000_output_function_epilogue, gen_add3_const,
23312         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23313         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23314         to here from rs6000.c.
23315         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23316         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23317         quad_address_offset_p) Moved to here from rs6000.c.
23318         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23319         * config/config.gcc: Add new source file rs6000-logue.c to garbage
23320         collector.
23322 2019-06-25  Martin Liska  <mliska@suse.cz>
23324         * hash-table.c (hashtab_chk_error): Move here from ...
23325         * hash-table.h (hashtab_chk_error): ... here.
23327 2019-06-25  Martin Liska  <mliska@suse.cz>
23329         PR tree-optimization/90978
23330         * df-scan.c (df_update_entry_block_defs): Remove dead else
23331         branch.
23332         (df_update_exit_block_uses): Likewise.
23334 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
23335             Andrew Stubbs  <ams@codesourcery.com>
23337         * config.gcc (thread_file): Set to gcn for AMD GCN.
23338         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23339         (TARGET_EMUTLS_VAR_INIT): New hook.
23341 2019-06-25  Martin Jambor  <mjambor@suse.cz>
23343         PR ipa/90939
23344         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23346 2019-06-25  Richard Biener  <rguenther@suse.de>
23348         PR tree-optimization/90930
23349         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23350         into parallel form in the last pass instance.
23352 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
23354         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23355         (arc_legitimize_pic_address): Simplify and cleanup the function.
23356         (SYMBOLIC_CONST): Remove.
23357         (prepare_pic_move): Likewise.
23358         (prepare_move_operands): Handle complex mov cases here.
23359         (arc_legitimize_address_0): Remove call to
23360         arc_legitimize_pic_address.
23361         (arc_legitimize_address): Remove call to
23362         arc_legitimize_tls_address.
23363         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23364         (movhi_insn): Likewise.
23366 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
23368         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23369         PTRDIFF_TYPE.
23370         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23371         format of "__intN" types for UINTMAX_TYPE.
23372         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23373         format of "__intN" types for SIZETYPE.
23374         * tree.c (build_common_tree_nodes): Accept "__intN__"
23375         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23376         * doc/invoke.texi: Document that __intN__ disables pedantic
23377         warnings.
23379 2019-06-25  Jan Hubicka  <jh@suse.cz>
23381         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23382         base2_alias_set is non-zero before doing TBAA based disambiguation.
23384 2019-06-25  Martin Liska  <mliska@suse.cz>
23386         PR tree-optimization/90973
23387         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23388         of prologue and epilogue.
23390 2019-06-24  Jan Hubicka  <jh@suse.cz>
23392         * ipa-utils.h (type_with_linkage_p): Verify that type is
23393         CXX_ODR_P.
23394         (odr_type_p): Remove extra return.
23395         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23396         hash STRING_FLAG only for arrays and integers.
23397         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23398         Update analogously.
23399         * tree-streamer-out.c (pack_ts_type_common_value_fields):
23400         Likewise.
23401         * print-tree.c (print_node): Print cxx-odr-p
23402         and string-flag.
23403         * tree.c (need_assembler_name_p): Also check that type
23404         is CXX_ODR_TYPE_P
23405         (verify_type_variant): Update verification of SRING_FLAG;
23406         also check CXX_ODR_P.
23407         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23408         (TYPE_STRING_FLAG): Use it.
23409         (TYPE_CXX_ODR_P): New macro.
23410         * dwarf2out.c (gen_array_type_die): First check that type
23411         is an array and then test string flag.
23413 2019-06-24  Richard Biener  <rguenther@suse.de>
23415         PR tree-optimization/90972
23416         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23417         in common code, dealing with STRING_CST properly.
23419 2019-06-24  Richard Biener  <rguenther@suse.de>
23421         PR tree-optimization/90930
23422         PR tree-optimization/90316
23423         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23424         decrement of limit.
23426 2019-06-24  Martin Sebor  <msebor@redhat.com>
23428         * tree-pretty-print.h: Remove unnecessary punctuation characters
23429         from a diagnostic.
23430         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23432 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
23434         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23435         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23436         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23438 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
23440         * config/rs6000/darwin.h: Handle GCC target pragma.
23442 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
23444         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23446 2019-06-22  Jeff Law  <law@redhat.com>
23448         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23450 2019-06-22  Jan Hubicka  <jh@suse.cz>
23452         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23453         give up on bitfields; continue searching for different refs
23454         appearing later.
23456 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
23458         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23459         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23460         containing the offset as possible simd lane access.  Look through
23461         widening conversion.  Move the
23462         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23464 2019-06-21  Richard Biener  <rguenther@suse.de>
23466         PR tree-optimization/90930
23467         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23468         flag on new stmts to avoid re-processing them.
23470 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
23472         PR c++/90875 - added -Wswitch-outside-range option
23473         * doc/invoke.texi (Wswitch-outside-range): Document.
23475 2019-06-21  Jeff Law  <law@redhat.com>
23477         PR tree-optimization/90949
23478         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23479         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23481 2019-06-21  Richard Biener  <rguenther@suse.de>
23483         PR debug/90914
23484         * dwarf2out.c (prune_unused_types_walk): Always consider
23485         function-local extern declarations as used.
23487 2019-06-21  Richard Biener  <rguenther@suse.de>
23489         PR tree-optimization/90913
23490         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23491         the scalar variant of if-conversion versioning.
23493 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
23495         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23496         create another "omp scan inscan exclusive" array if
23497         !ctx->scan_inclusive.
23498         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23499         (lower_omp_scan): Likewise.
23500         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23501         2-bit bitfield for simd_lane_access_p member.
23502         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23503         aux == (void *)-4 as simd lane access.
23504         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
23505         comment with permutations to show the canonical permutation order.
23506         (vectorizable_scan_store): Handle exclusive scan.
23507         (vectorizable_store): Call vectorizable_scan_store even for
23508         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23510         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23511         "omp simd array" arrays with one byte elements.
23513 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23515         * config/alpha/alpha.md (@unaligned_store<mode>):
23516         Rename from unaligned_store<mode>.
23517         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23518         * config/alpha/sync.md (@load_locked_<mode>): Rename
23519         from load_locked_<mode>.
23520         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23521         (@atomic_compare_and_swap<mode>_1): Rename
23522         from atomic_compare_and_swap<mode>_1.
23523         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23524         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23525         Use gen_reload_in_aligned and gen_unaligned_store.
23526         (emit_load_locked): Remove.
23527         (emit_store_conditional): Ditto.
23528         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23529         (alpha_split_compare_and_swap): Ditto.
23530         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23531         (alpha_split_compare_and_swap_12): Use gen_load_locked
23532         and gen_store_conditional.
23533         (alpha_split_atomic_exchange): Ditto.
23534         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23535         (alpha_split_atomic_exchange_12): Use gen_load_locked
23536         and gen_store_conditional.
23538 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
23540         * config/aarch64/aarch64-errata.h: New file.
23541         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23542         (CA53_ERR_843419_SPEC): Delete.
23543         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23544         * config/aarch64/aarch64-linux.h: Likewise.
23545         * config/aarch64/aarch64-netbsd.h: Likewise.
23546         * config/aarch64/aarch64-freebsd.h: Likewise.
23548 2019-06-20  Marek Polacek  <polacek@redhat.com>
23550         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23552 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
23554         * config/rs6000/rs6000.md (isa attribute): Add support for
23555         for a future processor.
23557 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
23559         PR target/54855
23560         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23561         standard scalar operation pattern for V2DF.
23562         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23563         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23564         (*ieee_<ieee_maxmin><mode>3): Likewise.
23565         (vec_setv2df_0): Likewise.
23567 2019-06-20  Jan Hubicka  <jh@suse.cz>
23569         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23570         parameter; it has no use in gimple memory model.
23571         (indirect_ref_may_alias_decl_p): Update.
23573 2019-06-20  Martin Liska  <mliska@suse.cz>
23575         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23576         to 10.
23578 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
23580         * tree-vect-stmts.c (enum scan_store_kind): New type.
23581         (scan_store_can_perm_p): Change last argument from int * to
23582         vec<enum scan_store_kind> *, record precisely which permutations
23583         need whole vector left shift or that plus VEC_COND_EXPR.
23584         (vectorizable_scan_store): Adjust caller, use whole vector left shift
23585         and additional VEC_COND_EXPR only for those iterations that need it.
23587 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
23589         * config.gcc: Fix ARM --with-fpu checking and error message.
23591 2019-06-19  Marek Polacek  <polacek@redhat.com>
23593         PR c++/60364 - noreturn after first decl not diagnosed.
23594         * attribs.c (get_attribute_namespace): No longer static.
23595         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
23596         attributes.
23597         (attr_noreturn_exclusions): Make it extern.
23598         * attribs.h (get_attribute_namespace): Declare.
23599         * tree-inline.c (function_attribute_inlinable_p): Use
23600         get_attribute_name.
23602 2019-06-19  Martin Sebor  <msebor@redhat.com>
23604         PR tree-optimization/90626
23605         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23607         PR tree-optimization/90626
23608         * tree-ssa-strlen.c (strxcmp_unequal): New function.
23609         (handle_builtin_string_cmp): Call it.
23611 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
23613         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23614         and DARWIN_NOPIE_SPEC.
23615         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23616         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23617         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23618         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23619         (DARWIN_EXPORT_DYNAMIC): Delete.
23620         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23621         and pie options processing to  darwin.h.
23622         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23624 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
23626         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23627         in computing the number of options to be moved.
23629 2019-06-19  Maya Rashish  <coypu@sdf.org>
23631         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23632         (CLEAR_INSN_CACHE) Use it.
23634 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23636         * config/i386/i386.md (cmpstrnsi): Remove dead code.
23638 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
23640         PR middle-end/84521
23641         * builtins.c (expand_builtin_setjmp_setup): Save
23642         hard_frame_pointer_rtx.
23643         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23644         restore fp.
23645         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23646         non-local goto.
23647         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23648         elimination code.
23649         (remove_reg_equal_offset_note): Remove unused function.
23650         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23651         code.
23652         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23653         (arc_builtin_setjmp_frame_value): Remove function.
23654         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23655         (avr_builtin_setjmp_frame_value): Remove function.
23656         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23657         (ix86_builtin_setjmp_frame_value): Remove function.
23658         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23659         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23660         (sparc_builtin_setjmp_frame_value): Remove function.
23661         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23662         (vax_builtin_setjmp_frame_value): Remove function.
23663         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23664         pointer if has_nonlocal_label.
23666 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
23668         * doc/md.texi: Document vec_shl_<mode> pattern.
23669         * optabs.def (vec_shl_optab): New optab.
23670         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23671         argument, if == vec_shl_optab, check for left whole vector shift
23672         pattern rather than right shift.
23673         (expand_vec_perm_const): Add vec_shl_optab support.
23674         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23675         in the comment.
23676         * tree-vect-generic.c (lower_vec_perm): Support permutations which
23677         can be handled by vec_shl_optab.
23678         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23679         (check_scan_store): Use it.
23680         (vectorizable_scan_store): If target can't do normal permutations,
23681         try to use whole vector left shifts and if needed a VEC_COND_EXPR
23682         after it.
23683         * config/i386/sse.md (vec_shl_<mode>): New expander.
23685         * omp-low.c (lower_rec_input_clauses): Handle references properly
23686         in inscan clauses.
23687         (lower_omp_scan): Likewise.
23689 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
23691         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23692         mem_mode is BLKmode.
23694 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
23696         PR target/90922
23697         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23698         pointer adjustment for the case of no callee-saved registers and
23699         stack frame bigger than 128 bytes.
23701 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
23703         PR middle-end/90862
23704         * omp-low.c (check_omp_nesting_restrictions): Handle
23705         GF_OMP_TARGET_KIND_OACC_DECLARE.
23707 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23709         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23710         (@add<mode>3_carry): Rename from add<mode>3_carry.
23711         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23712         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23713         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23714         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23715         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23716         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23717         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23718         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23719         (cmpstrnsi): Use gen_cmp_1.
23720         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23721         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23722         (@umonitor_<mode>): Rename from umonitor_<mode>.
23723         * config/i386/i386-expand.c (ix86_expand_copysign):
23724         Use gen_copysign3_const and gen_copysign3_var.
23725         (ix86_expand_xorsign): Use gen_xorsign3_1.
23726         (ix86_expand_branch): Use gen_sub3_carry_ccc,
23727         gen_sub3_carry_ccgz and gen_cmp1.
23728         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23729         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23730         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23731         (ix86_split_lshr): Ditto.
23732         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23734 2019-06-18  Jason Merrill  <jason@redhat.com>
23736         * tree.c (build_constructor): Add MEM_STAT_DECL.
23738 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23740         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23741         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23742         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23743         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23744         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23745         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23746         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23747         Use CC_NZC instead of CC.
23748         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23749         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23750         (aarch64_print_operand): Handle E_CC_NZCmode.
23751         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23752         of gen_set_clobber_cc.
23754 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23756         * config/aarch64/aarch64-sve.md: Tabify file.
23758 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23760         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23761         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23762         * config/aarch64/aarch64-sve.md: Use it.
23764 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23766         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23767         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23768         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23769         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23770         (aarch64_expand_sve_vec_cmp_int): Use it.
23771         (aarch64_expand_sve_vec_cmp_float): Likewise.
23772         * config/aarch64/aarch64-sve.md: Likewise throughout.
23774 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23775             Kugan Vivekanandarajah  <kuganv@linaro.org>
23777         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23778         (*cond_<optab><mode>_z): Fold into...
23779         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
23780         operand 4 can be tied to operand 0 (either inherently or via RA).
23782 2019-06-18  Richard Biener  <rguenther@suse.de>
23784         PR debug/90900
23785         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23786         as if optimized away.
23788 2019-06-18  Tom de Vries  <tdevries@suse.de>
23790         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23791         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23792         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23793         Rename to ...
23794         (define_insn "@set_softstack_<mode>"): ... this.
23795         (define_insn "omp_simt_enter_<mode>"): Rename to ...
23796         (define_insn "@omp_simt_enter_<mode>"): ... this.
23797         (define_insn "omp_simt_exit_<mode>"): Rename to ...
23798         (define_insn "@omp_simt_exit_<mode>"): ... this.
23800 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23802         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23803         vf parameter.  Restore the previous iv step of nscalars_step,
23804         but give it iv_type rather than compare_type.  Tweak code order
23805         to match the comments.
23806         (vect_set_loop_condition_masked): Update accordingly.
23807         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23808         for iv_precision.  Tweak comment formatting.
23810 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
23812         * config/darwin.c: Strip trailing whitespace.
23814 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
23816         * config/darwin.c (darwin_emit_unwind_label): New default to false.
23817         (darwin_override_options): Set darwin_emit_unwind_label as needed.
23819 2019-06-18  Martin Jambor  <mjambor@suse.cz>
23821         PR ipa/90889
23822         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23823         caller does not have flag_ipa_cp set.
23825 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
23827         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23828         from "*fold_left_plus_<mode>", updated operands order.
23829         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23830         * internal-fn.c (mask_fold_left_direct): New define.
23831         (expand_mask_fold_left_optab_fn): Likewise.
23832         (direct_mask_fold_left_optab_supported_p): Likewise.
23833         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23834         * optabs.def (mask_fold_left_plus_optab): New optab.
23835         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23836         masked internal_fn for a reduction ifn.
23837         (vectorize_fold_left_reduction): Add support for masking reductions.
23839 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
23841         PR middle-end/80791
23842         * target.def (predict_doloop_p): New hook.
23843         * targhooks.h (default_predict_doloop_p): New declaration.
23844         * targhooks.c (default_predict_doloop_p): New function.
23845         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23846         * doc/tm.texi: Regenerate.
23847         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23848         (TARGET_PREDICT_DOLOOP_P): New macro.
23849         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23851 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
23853         * omp-low.c (struct omp_context): Add scan_inclusive field.
23854         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23855         if inclusive scan.
23856         (struct omplow_simd_context): Add lastlane member.
23857         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23858         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23859         1 or 2 argument.
23860         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23861         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23862         (lower_omp_scan): New function.
23863         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23864         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23865         check 3rd argument if present rather than 2nd.
23866         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23867         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23868         2-bit bitfield.
23869         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23870         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23871         than 2nd.
23872         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23873         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23874         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23875         init.
23876         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23877         IFN_GOMP_SIMD_LANE argument.
23878         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23879         encoded ->aux value.
23880         * tree-vect-stmts.c: Include attribs.h.
23881         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23882         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23883         functions.
23884         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23885         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23887 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23889         PR target/62055
23890         * config/i386/i386.md (*nabstf2_1): New insn pattern.
23891         (*nabs<mode>2_1): Ditto.
23892         (nabs sse-reg splitter): New splitter.
23893         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23895 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23897         PR bootstrap/90873.
23898         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23899         TMR index check.
23901 2019-06-17  Tom de Vries  <tdevries@suse.de>
23903         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23904         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23905         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23906         ...
23907         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
23908         match_operand 0.
23909         (define_insn "omp_simt_enter_insn"): Rename to ...
23910         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
23911         match_operand 0, 1 and 2, as well as the unspec_volatile result.
23912         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23913         gen_omp_simt_enter_si.
23914         (define_expand "omp_simt_exit"): New.
23915         (define_insn "omp_simt_exit"): Rename to ...
23916         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
23917         match_operand 0.
23919 2019-06-17  Matthew Green  <mrg@eterna.com.au>
23920             Maya Rashish  <coypu@sdf.org>
23922         * config.gcc (aarch64*-*-netbsd*): New target.
23923         * config/aarch64/aarch64-netbsd.h: New file.
23924         * config/aarch64/t-aarch64-netbsd: Likewise.
23926 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23928         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23929         the access path from base to first VIEW_CONVERT_EXPR or
23930         BIT_FIELD_REF.
23932 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23934         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23935         access path on BIT_FIELD_REFs.
23937 2019-06-17  Martin Liska  <mliska@suse.cz>
23939         PR ipa/90874
23940         * ipa-utils.h (odr_type_p): Remove dead code.
23942 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23944         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23945         alternative Solaris 11.4 format.
23946         * configure: Regenerate.
23948 2019-06-17  Tom de Vries  <tdevries@suse.de>
23950         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23951         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
23952         match_operand 0.
23953         (define_insn "call_value_insn"): Rename to ...
23954         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
23955         match_operand 0.
23956         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23957         DI.
23959 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
23961         PR middle-end/64242
23962         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
23963         frame clobbers and schedule block.
23964         (builtin_longjmp): Likewise.
23966 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
23968         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23969         describe how to perform MSPABI compliant 64-bit shift.
23970         * config/msp430/msp430.md (ashldi3): New define_expand.
23971         (ashrdi3): New define_expand.
23972         (lshrdi3): New define_expand.
23974 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
23976         * doc/sourcebuild.texi: Document new effective target keyword
23977         longlong64.
23979 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
23981         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23982         indirect_refs_may_alias_p): Revert accidental commits.
23984         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23985         at the end of structures.
23987 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
23989         * config/darwin.c (machopic_indirect_call_target): Use renamed
23990         darwin_picsymbol_stubs to decide on output.
23991         (darwin_override_options): Handle darwin_picsymbol_stubs.
23992         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23993         (LD64_VERSION): Revise default.
23994         * config/darwin.opt: (mpic-symbol-stubs): New option.
23995         (darwin_picsymbol_stubs): New variable.
23996         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23997         rename to TARGET_MACHO_PICSYM_STUBS.
23998         * config/i386/i386.c (output_pic_addr_const): Likewise.
23999         * config/i386/i386.h Likewise.
24000         * config/rs6000/darwin.h: Likewise.
24001         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24002         darwin_picsymbol_stubs.
24004 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
24006         * config/darwin.opt (prebind, noprebind, seglinkedit,
24007         noseglinkedit): Add RejectNegative.
24009 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
24011         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24012         in my previous patch.
24014 2019-06-16  Tom de Vries  <tdevries@suse.de>
24016         PR tree-optimization/89376
24017         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24019 2019-06-15  Maya Rashish  <coypu@sdf.org>
24021         * doc/invoke.texi (Spec Files): Update location of the
24022         Fortran spec file.
24024 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
24026         * doc/extend.texi (Common Function Attributes): Clarify
24027         no_sanitize.  Fix grammar.
24029 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
24031         * tree-ssa-alias.c (alias_stats): Add
24032         nonoverlapping_component_refs_p_may_alias,
24033         nonoverlapping_component_refs_p_no_alias,
24034         nonoverlapping_component_refs_of_decl_p_may_alias,
24035         nonoverlapping_component_refs_of_decl_p_no_alias.
24036         (dump_alias_stats): Dump them.
24037         (nonoverlapping_component_refs_of_decl_p): Add stats.
24038         (nonoverlapping_component_refs_p): Add stats; do not stop on first
24039         ARRAY_REF.
24041 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24043         * config/i386/i386.md (and<mode>3): Generate zero-extends for
24044         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24045         only.
24046         (*anddi3_doubleword): Split before reload. Merge with
24047         anddi->zext pre-reload splitter.
24048         (*andndi3_doubleword): Split before reload.
24049         (*<code>di3_doubleword): Ditto.
24050         (*one_cmpldi2_doubleword): Ditto.
24052 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
24054         PR middle-end/90779
24055         * gimplify.c: Include omp-offload.h and context.h.
24056         (gimplify_bind_expr): Add "omp declare target" attributes
24057         to static block scope variables inside of target region or target
24058         functions.
24060 2019-06-15  Tom de Vries  <tdevries@suse.de>
24062         PR tree-optimization/90009
24063         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24064         Return NULL if bb contains IFN_UNIQUE.
24066 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
24068         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24069         (un): New define_mode_attr.
24070         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24071         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
24072         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24073         merge into ...
24074         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
24076 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
24078         * config/darwin.opt: Add RejectNegative where needed, reorder
24079         and add minimal functional descriptions.
24081 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24083         PR rtl-optimization/90765
24084         * calls.c (update_stack_alignment_for_call): New function.
24085         (expand_call): Call update_stack_alignment_for_call when
24086         outgoing parameter is passed in the stack.
24087         (emit_library_call_value_1): Likewise.
24088         * function.c (locate_and_pad_parm): Don't update
24089         stack_alignment_needed and preferred_stack_boundary.
24091 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24093         PR target/90877
24094         * config/i386/i386-features.c
24095         (dimode_scalar_chain::compute_convert_gain): Replace
24096         mmxsse_to_integer with sse_to_integer.
24097         * config/i386/i386.c (ix86_register_move_cost): Verify that
24098         moves between MMX and non-MMX units require secondary memory.
24099         Correct costs of moves between SSE and integer units.
24100         * config/i386/i386.h (processor_costs): Rename cost of moving
24101         SSE register to integer to sse_to_integer.  Rename cost of
24103 2019-06-14  Matt Thomas  <matt@3am-software.com>
24104             Matthew Green  <mrg@eterna.com.au>
24105             Nick Hudson  <skrll@netbsd.org>
24106             Maya Rashish  <coypu@sdf.org>
24107             Richard Earnshaw  <rearnsha@arm.com>
24109         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24110         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24111         * config/arm/netbsd-eabi.h: New file.
24112         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24113         redefining.
24114         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24115         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24116         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24117         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24119 2019-06-14  Richard Biener  <rguenther@suse.de>
24121         * tree-loop-distribution.c (classify_partition): Return
24122         whether a reduction appeared in all partitions and do not
24123         stop builtin detection because of this.
24124         (distribute_loop): Sort a non-builtin partition last if
24125         there's a reduction in all partitions and make sure the
24126         partition prevailing as last is not a builtin.
24128 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
24130         PR ipa/90401
24131         * ipa-prop.c (add_to_agg_contents_list): New function.
24132         (clobber_by_agg_contents_list_p): Likewise.
24133         (extract_mem_content): Likewise.
24134         (get_place_in_agg_contents_list): Delete.
24135         (determine_known_aggregate_parts): Renamed from
24136         determine_locally_known_aggregate_parts.  New parameter
24137         aa_walk_budget_p.
24139 2019-06-13  Martin Sebor  <msebor@redhat.com>
24141         PR tree-optimization/90662
24142         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24143         to the same type.
24145 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
24147         PR bootstrap/90873
24148         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24149         dbase is not TARGET_MEM_REF.
24151 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24153         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24154         Update all uses.
24155         (and<mode>3): Use gen_extend_insn instead of indirect functions.
24156         Do not generate DImode extends for 32bit targets.
24157         (and->zext post-reload splitter): Use gen_extend_insn
24158         instead of indirect functions.
24159         (anddi->zext pre-reload splitter): New.
24160         (*zext<mode>_doubleword_and): Remove.
24161         (*zext<mode>_doubleword): Ditto.
24162         (*zextsi_doubleword): Dittto.
24164 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24166         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24167         Use gen_sub3_insn instead of indirect function.
24168         (ix86_expand_ashl_const): Use gen_add2_insn instead of
24169         indirect function.
24170         (ix86_adjust_counter): Ditto.
24172 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
24173             Lijia He  <helijia@linux.ibm.com>
24175         PR tree-optimization/77820
24176         * tree-ssa-threadedge.c
24177         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24178         function.
24179         (thread_across_edge): Add call to
24180         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24182 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
24184         * config/darwin-driver.c (validate_macosx_version_min): New.
24185         (darwin_default_min_version): Cleanup and validate supplied version.
24186         (darwin_driver_init): Likewise and push cleaned version into opts.
24188 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
24190         PR tree-optimization/90869
24191         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24192         converts in MEM_REF referencing decl rather than view converts
24193         from decl type to MEM_REF type.
24195 2019-06-13  Richard Biener  <rguenther@suse.de>
24197         PR tree-optimization/90856
24198         * tree-sra.c (build_ref_for_model): Only use
24199         build_reconstructed_reference when address-spaces are the same.
24201 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
24203         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24204         wrap ei variable name in the declaration in ()s.
24205         (nvptx_single): Actually use mode_label variable.  Formatting fix.
24207 2019-06-13  Richard Biener  <rguenther@suse.de>
24209         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24210         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24211         also return the condition stmt.
24212         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24213         loop we can version and version that, reusing the loop version
24214         created by if-conversion instead of versioning again.
24216 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
24218         * gimple-loop-versioning.cc (prune_loop_conditions): Use
24219         may_contain_p.
24220         * tree-vrp (value_range_base::may_contain_p): Call into
24221         value_inside_range.
24222         (value_inside_range): Make private inside value_range_base class.
24223         Take min/max from *this.
24224         (range_includes_p): Remove.
24225         * tree-vrp.h (value_range_base): Add value_inside_range.
24226         (range_includes_p): Remove.
24227         (range_includes_zero_p): Call may_contain_p.
24228         * vr-values.c (compare_range_with_value): Same.
24230 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
24232         * doc/extend.texi (ARC Function Attributes): Update info.
24234 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
24236         PR tree-optimization/89713
24237         * doc/invoke.texi (-ffinite-loops): Document new option.
24238         * common.opt (-ffinite-loops): New option.
24239         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24240         IFN_GOACC_LOOP calls as necessary.
24241         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24242         is finite.
24243         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24244         IFN_GOACC_LOOP call is not used.
24245         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24247 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24249         PR target/88838
24250         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24251         compare_type is not with Pmode size, we will create an IV with
24252         Pmode size with truncated use (i.e. converted to the correct type).
24253         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24254         (vect_iv_limit_for_full_masking): New. Factored out of
24255         vect_set_loop_condition_masked.
24256         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24257         (vect_iv_limit_for_full_masking): Declare.
24259 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24261         PR target/88834
24262         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24263         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24264         (get_alias_ptr_type_for_ptr_address): Likewise.
24265         (add_iv_candidate_for_use): Add scaled index candidate if useful.
24266         * tree-ssa-address.c (preferred_mem_scale_factor): New.
24267         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24268         allow_reg_index_p.
24270 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24272         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24274 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
24276         * common/config/pru/pru-common.c: New file.
24277         * config.gcc: Add PRU target.
24278         * config/pru/alu-zext.md: New file.
24279         * config/pru/constraints.md: New file.
24280         * config/pru/predicates.md: New file.
24281         * config/pru/pru-opts.h: New file.
24282         * config/pru/pru-passes.c: New file.
24283         * config/pru/pru-pragma.c: New file.
24284         * config/pru/pru-protos.h: New file.
24285         * config/pru/pru.c: New file.
24286         * config/pru/pru.h: New file.
24287         * config/pru/pru.md: New file.
24288         * config/pru/pru.opt: New file.
24289         * config/pru/t-pru: New file.
24290         * doc/extend.texi: Document PRU pragmas.
24291         * doc/invoke.texi: Document PRU-specific options.
24292         * doc/md.texi: Document PRU asm constraints.
24294 2019-06-12  Martin Sebor  <msebor@redhat.com>
24296         PR middle-end/90676
24297         * tree-pretty-print.c (dump_mem_ref): New function.  Include
24298         MEM_REF type in output when different size than operand.
24299         (dump_generic_node): Move code to dump_mem_ref and call it.
24301 2019-06-12  Martin Sebor  <msebor@redhat.com>
24303         PR tree-optimization/90662
24304         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24305         to arrays.
24307 2019-06-12  Tom de Vries  <tdevries@suse.de>
24309         PR tree-optimization/90009
24310         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24312 2019-06-12  Martin Liska  <mliska@suse.cz>
24314         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24315         the created map.
24316         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24317         * mem-stats.h (mem_alloc_description::mem_alloc_description):
24318         Do not sanitize created maps.
24320 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
24322         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24323         value_range::singleton_p.
24324         * tree-vrp.c (value_range_constant_singleton): Remove.
24325         * tree-vrp.h (value_range_constant_singleton): Remove.
24326         * vr-values.c (vr_values::singleton): Use
24327         value_range::singleton_p.
24329 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
24331         PR target/90811
24332         * cfgexpand.c (align_local_variable): Add really_expand argument,
24333         don't SET_DECL_ALIGN if it is false.
24334         (add_stack_var): Add really_expand argument, pass it through to
24335         align_local_variable.
24336         (expand_one_stack_var_1): Pass true as really_expand to
24337         align_local_variable.
24338         (expand_one_ssa_partition): Pass true as really_expand to
24339         add_stack_var.
24340         (expand_one_var): Pass really_expand through to add_stack_var.
24342 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
24344         * config/arm/iterators.md (VABAL): New int iterator.
24345         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24346         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24347         UNSPEC_VABAL_U values.
24349 2019-06-12  Martin Liska  <mliska@suse.cz>
24351         * value-prof.c (stream_out_histogram_value): Only first value
24352         can't be negative.
24354 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
24356         PR c/90760
24357         * symtab.c (symtab_node::set_section): Allow being called on aliases
24358         as long as they aren't analyzed yet.
24360 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
24362         * config/mips/mips.c (mips_final_postscan_insn): Modify call
24363         to `mips_set_text_contents_type' to indicate whether a
24364         non-debug insn follows.
24366 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
24368         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24369         enabling -mpcrel by default.
24370         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24371         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24372         that the test against -mcpu=future is done first.  Then test if
24373         -mprefixed-addr is on for -mpcrel.
24374         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24376 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
24378         PR target/90811
24379         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24380         instead of and.u%d.
24382 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
24384         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24386 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
24388         PR c++/90449 - add -Winaccessible-base option.
24389         * doc/invoke.texi (Winaccessible-base): Document.
24391 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
24393         PR tree-optimization/62041
24394         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24396 2019-06-11  Jason Merrill  <jason@redhat.com>
24398         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24399         * tree.c (get_tree_code_name): Likewise.
24400         * print-tree.c (print_node): Only briefly print a node with an
24401         invalid code.
24403 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
24405         PR bootstrap/90819
24406         * trans-mem.c (tm_memopt_compute_available): Add assertion
24407         that blocks is not empty.  Formatting fix.
24409 2019-06-11  Martin Liska  <mliska@suse.cz>
24411         PR c++/87847
24412         * hash-table.h: Extend create_gcc, add one parameter
24413         that is passed into hash_table::hash_table.
24415 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24417         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24418         New prototype.
24419         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24420         Emit clobber also for non-sse operations.
24421         (ix86_split_fp_absneg_operator): New function.
24422         * config/i386/i386.md (SSEMODEF): New mode iterator.
24423         (ssevecmodef): New mode attribute.
24424         (<code>tf2): Use absneg code iterator.
24425         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24426         Add three-operand AVX alternatives.
24427         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24428         Use absneg code iterator and X87MODEF mode iterator.
24429         (absneg fp_reg non-sse splitter): Call absneg code iterator
24430         and X87MODEF mode iterator.
24431         (absneg general_reg non-sse splitter): Use absneg code iterator
24432         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
24433         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
24434         code iterator.  Add three-operand AVX alternative.
24435         (absneg sse_reg splitter): Use absneg code iterator
24436         and SSEMODEF mode iterator.  Handle AVX operands.
24437         (absneg fp_reg splitter): Use absneg code iterator
24438         and MODEF mode iterator.
24439         (absneg general_reg splitter): Merge splitters using MODEF mode
24440         iterator.  Use absneg code iterator.  Call
24441         ix86_split_fp_absneg_operator.
24442         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24443         Do not enable for non-sse modes before reload.
24444         (CSGNMODE): Remove.
24445         (CSGNVMODE): Ditto.
24446         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24447         ssevecmodef mode attribute instaed of CSGNVMODE.
24448         (copysign<mode>3_const): Ditto.
24449         (copysign<mode>3_var): Ditto.
24450         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24451         Use absneg code iterator.  Simplify code using std::swap.
24452         * config/i386/predicates.md (absneg_operator): Remove.
24454 2019-06-10  Martin Sebor  <msebor@redhat.com>
24456         * gimple-fold.c (get_range_strlen): Update comment that didn't
24457         make it into r267503 or related commits.
24459 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
24461         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24462         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24464 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
24466         * tree.def (OMP_SCAN): New tree code.
24467         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24468         OMP_CLAUSE_EXCLUSIVE.
24469         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24470         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24471         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24472         OMP_CLAUSE_{IN,EX}CLUSIVE.
24473         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24474         * tree-nested.c (convert_nonlocal_reference_stmt,
24475         convert_local_reference_stmt, convert_gimple_call): Handle
24476         GIMPLE_OMP_SCAN.
24477         * tree-pretty-print.c (dump_omp_clause): Handle
24478         OMP_CLAUSE_{IN,EX}CLUSIVE.
24479         (dump_generic_node): Handle OMP_SCAN.
24480         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24481         * gimple.h (gomp_scan): New type.
24482         (is_a_helper <gomp_scan *>::test,
24483         is_a_helper <const gomp_scan *>::test): New templates.
24484         (gimple_build_omp_scan): Declare.
24485         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24486         gimple_omp_scan_set_clauses): New inline functions.
24487         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24488         * gimple.c (gimple_build_omp_scan): New function.
24489         (gimple_copy): Handle GIMPLE_OMP_SCAN.
24490         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24491         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24492         GIMPLE_OMP_TASKGROUP.
24493         (dump_gimple_omp_scan): New function.
24494         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24495         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24496         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24497         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24498         (is_gimple_stmt): Handle OMP_SCAN.
24499         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24500         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24501         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24502         mentioned in nested #pragma omp scan.  Handle
24503         OMP_CLAUSE_{IN,EX}CLUSIVE.
24504         (gimplify_expr): Handle OMP_SCAN.
24505         * omp-low.c (check_omp_nesting_restrictions): For parent context,
24506         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
24507         simd constructs.
24508         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24509         GIMPLE_OMP_SCAN.
24511 2019-06-10  Martin Liska  <mliska@suse.cz>
24513         * ipa-cp.c (ignore_edge_p): New function.
24514         (build_toporder_info): Use it.
24515         * ipa-inline.c (ignore_edge_p): New function.
24516         (inline_small_functions): Use it.
24517         * ipa-pure-const.c (ignore_edge_for_nothrow):
24518         Verify opt_for_fn for caller and callee.
24519         (ignore_edge_for_pure_const): Likewise.
24520         * ipa-reference.c (ignore_edge_p): Extend to check
24521         for opt_for_fn.
24522         * ipa-utils.c (searchc): Refactor.
24523         * ipa-utils.h: Fix coding style.
24525 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
24527         * config/arc/arc.c (arc_rtx_costs): Update costs.
24529 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
24531         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24532         (arc_split_ior): Likewise.
24533         (arc_check_mov_const): Likewise.
24534         (arc_split_mov_const): Likewise.
24535         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24536         (arc_rtx_costs): Replace check Crr with Cax constraint.
24537         (prepare_move_operands): Cleanup, remove unused code.
24538         (arc_split_ior): New function.
24539         (arc_check_ior_const): Likewise.
24540         (arc_split_mov_const): Likewise.
24541         (arc_check_mov_const): Likewise.
24542         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24543         in define_insn_and_split pattern.
24544         (iorsi3): Likewise.
24545         (mulsi3_v2): Add new matching variant.
24546         (andsi3_i): Cleanup pattern.
24547         (rotrsi3_cnt1): Update pattern.
24548         (rotrsi3_cnt8): New pattern.
24549         (ashlsi2_cnt8): Likewise.
24550         (ashlsi2_cnt16): Likewise.
24551         * config/arc/constraints.md (C0p): Update constraint.
24552         (Crr): Remove it.
24553         (C0x): New pattern.
24554         (Cax): New pattern.
24556 2019-06-10  Martin Liska  <mliska@suse.cz>
24558         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24559         Update coding style.
24560         (sem_item_optimizer::dump_cong_classes):
24561         Print how many items are in a non-singular class.  Improve
24562         coding style.
24564 2019-06-10  Martin Liska  <mliska@suse.cz>
24566         * value-prof.c (dump_histogram_value): Change dump format.
24567         (gimple_mod_subtract_transform): Remove legacy comment.
24569 2019-06-10  Martin Liska  <mliska@suse.cz>
24571         * value-prof.c (dump_histogram_value): Print histogram values
24572         only if present.
24574 2019-06-10  Martin Liska  <mliska@suse.cz>
24576         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24577         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24578         * ipa-profile.c (ipa_profile_generate_summary):
24579         Use get_most_common_single_value.
24580         * tree-profile.c (gimple_init_gcov_profiler):
24581         Instrument with __gcov_one_value_profiler_v2
24582         and __gcov_indirect_call_profiler_v4.
24583         * value-prof.c (dump_histogram_value):
24584         Print all values for HIST_TYPE_SINGLE_VALUE.
24585         (stream_out_histogram_value): Update assert for
24586         N values.
24587         (stream_in_histogram_value): Set number of
24588         counters for HIST_TYPE_SINGLE_VALUE.
24589         (get_most_common_single_value): New.
24590         (gimple_divmod_fixed_value_transform):
24591         Use get_most_common_single_value.
24592         (gimple_ic_transform): Likewise.
24593         (gimple_stringops_transform): Likewise.
24594         (gimple_find_values_to_profile): Set number
24595         of counters for HIST_TYPE_SINGLE_VALUE.
24596         * value-prof.h (get_most_common_single_value): New.
24598 2019-06-10  Martin Liska  <mliska@suse.cz>
24600         * hash-map.h: Pass default value to hash_table ctor.
24601         * hash-table.h: Add default value to call of a ctor.
24603 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
24605         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24606         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24608 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
24610         PR target/90751
24611         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24612         Call pa_output_function_label.
24613         (TARGET_ASM_FUNCTION_PROLOGUE): define.
24614         * config/pa/pa-protos.h (pa_output_function_label): Declare.
24615         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24616         to declaration.
24617         (pa_linux_output_function_prologue): Declare.
24618         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24619         (pa_output_function_label): New.
24620         (pa_output_function_prologue): Revise to use pa_output_function_label.
24621         (pa_linux_output_function_prologue): New.
24622         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24624 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
24626         * tree-vrp.h (value_range_base::intersect): New.
24627         (value_range::intersect_helper): Move from here...
24628         (value_range_base::intersect_helper): ...to here.
24629         * tree-vrp.c (value_range::intersect_helper): Rename to...
24630         (value_range_base::intersect_helper): ...this, and rewrite to
24631         return a value instead of modifying THIS in place.
24632         Also, move equivalence handling...
24633         (value_range::intersect): ...here, while calling intersect_helper.
24634         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24635         calling intersect.
24636         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24637         Same.
24638         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24640 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
24642         * Makefile.in (genprogerr): Add condmd.
24643         (genprog): Remove it here.
24645 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
24647         * doc/invoke.texi (AMD GCN Options): Add gfx906.
24649 2019-06-07  Richard Biener  <rguenther@suse.de>
24651         PR debug/90574
24652         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24653         that appear after user labels.
24655 2019-06-07  Martin Liska  <mliska@suse.cz>
24657         * cselib.c (cselib_init): Disable hash table
24658         sanitization.
24659         * hash-set.h: Pass new default argument to m_table.
24660         * hash-table.c: Add global variable with hash table
24661         sanitization limit.
24662         * hash-table.h (Allocator>::hash_table): Add new argument
24663         to ctor.
24664         (hashtab_chk_error): New.
24665         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24666         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24667         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24669 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
24671         * common.opt (flto-odr-type-merging): Ignore.
24672         * invoke.texi (-flto-odr-type-merging): Remove.
24673         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24674         (can_be_vtable_hashed_p): Remove.
24675         (hash_odr_vtable): Remove.
24676         (odr_vtable_hasher::hash): Remove.
24677         (types_same_for_odr): Remove.
24678         (types_odr_comparable): Remove.
24679         (odr_vtable_hasher::equal): Remove.
24680         (odr_vtable_hash_type, odr_vtable_hash): Remove.
24681         (add_type_duplicate): Do not synchronize vtable and name hashtables.
24682         (get_odr_type): Do not use vtable hash.
24683         (dump_odr_type): Remove commented out code.
24684         (build_type_inheritance_graph): Do not allocate vtable hash.
24685         (rebuild_type_inheritance_graph): Do not delete vtable hash.
24686         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24687         (odr_type_p): Likewise.
24688         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24689         test.
24691 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
24693         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24694         immediately after same_types_for_tbaa_p returns -1 and continue
24695         looking for possible exact match; if matching types are arrays
24696         watch for partial overlaps.
24697         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24698         (indirect_refs_may_alias_p): Do type based disambiguation first;
24699         update comment.
24701 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
24703         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24705 2019-06-07  Martin Liska  <mliska@suse.cz>
24707         * doc/invoke.texi: Remove param.
24708         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24709         Remove.
24710         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24711         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24712         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24713         * profile.c (instrument_values): Remove
24714         HIST_TYPE_INDIR_CALL_TOPN.
24715         * tree-profile.c (init_ic_make_global_vars):
24716         Always build __gcov_indirect_call only.
24717         (gimple_init_gcov_profiler): Remove usage
24718         of PARAM_INDIR_CALL_TOPN_PROFILE.
24719         (gimple_gen_ic_profiler): Likewise.
24720         * value-prof.c (dump_histogram_value): Likewise.
24721         (stream_in_histogram_value): Likewise.
24722         (gimple_indirect_call_to_profile): Likewise.
24723         (gimple_find_values_to_profile): Likewise.
24724         * value-prof.h (enum hist_type): Likewise.
24726 2019-06-07  Martin Liska  <mliska@suse.cz>
24728         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24729         function.
24731 2019-06-07  Martin Liska  <mliska@suse.cz>
24733         PR tree-optimization/78902
24734         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24735         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24736         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24737         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24738         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24739         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24740         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24741         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24742         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24743         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24744         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24745         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24746         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24747         New.
24748         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24749         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24750         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24751         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24752         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24753         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24754         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24755         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24756         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24757         warn_unused_result attribute.
24758         (BUILT_IN_STRDUP): Likewise.
24759         (BUILT_IN_STRNDUP): Likewise.
24760         (BUILT_IN_ALLOCA): Likewise.
24761         (BUILT_IN_CALLOC): Likewise.
24762         (BUILT_IN_MALLOC): Likewise.
24763         (BUILT_IN_REALLOC): Likewise.
24765 2019-06-06  Jim Wilson  <jimw@sifive.com>
24767         PR target/89955
24768         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24769         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24770         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24772 2019-06-06  Martin Sebor  <msebor@redhat.com>
24774         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24775         (handle_builtin_malloc): Remove trailing spaces.
24776         (handle_builtin_memset): Same.
24777         (handle_builtin_memcmp): Same.
24778         (compute_string_length): Same.
24779         (determine_min_objsize): Same.
24780         (handle_builtin_string_cmp): Same.
24781         (handle_char_store): Same.  Break up excessively long line.
24783 2019-06-06  Martin Jambor  <mjambor@suse.cz>
24785         * tree-sra.c (build_reconstructed_reference): Drop the alignment
24786         check.
24788 2019-06-06  Martin Jambor  <mjambor@suse.cz>
24790         * tree-sra.c (struct access): New field grp_same_access_path.
24791         (dump_access): Dump it.
24792         (build_reconstructed_reference): New function.
24793         (build_ref_for_model): Use it if possible.
24794         (path_comparable_for_same_access): New function.
24795         (same_access_path_p): Likewise.
24796         (sort_and_splice_var_accesses): Set the new flag.
24797         (analyze_access_subtree): Likewise.
24798         (propagate_subaccesses_across_link): Propagate zero value of the new
24799         flag down the access tree.
24801 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
24803         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24804         * config/gcn/gcn.opt (gpu_type): Add gfx906.
24805         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24806         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24807         Add gfx906.
24809 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24811         PR tree-optimization/90332
24812         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24813         Handle VALS containing two vectors.
24814         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24815         to...
24816         (@aarch64_combinez<mode>): ... This.
24817         (*aarch64_combinez_be<mode>): Rename to...
24818         (@aarch64_combinez_be<mode>): ... This.
24819         (vec_init<mode><Vhalf>): New define_expand.
24820         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24822 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24824         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24825         library functions only when not optimizing for size.
24826         (ashlsi3): Likewise.
24827         (ashrhi3): Likewise.
24828         (ashrsi3): Likewise.
24829         (lshrhi3): Likewise.
24830         (lshrsi3): Likewise.
24832 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
24834         PR rtl-optimization/88751
24835         * ira.c (ira): Use the number of the actually referenced registers
24836         when calculating the threshold.
24838 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
24840         * configure: Regenerate.
24842 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24844         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24845         register if it is in memory, so the shift can be emulated with a rotate
24846         instruction.
24847         (ashrhi3): Likewise.
24848         (lshrhi3): Likewise.
24850 2019-06-06  Martin Liska  <mliska@suse.cz>
24852         PR tree-optimization/87954
24853         * match.pd: Simplify mult where both arguments are 0 or 1.
24855 2019-06-06  Richard Biener  <rguenther@suse.de>
24857         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24858         put equivalences on UNDEFINED ranges.
24859         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24860         Make sure to drop defs of stmts added during simplification
24861         to VARYING.
24863 2019-06-06  Richard Biener  <rguenther@suse.de>
24865         * tree-ssa-structalias.c: Include tree-cfg.h.
24866         (make_heapvar): Do not make heap vars artificial.
24867         (find_func_aliases_for_builtin_call): Handle stack allocation
24868         functions.
24869         (find_func_aliases): Delay processing of simple enough returns
24870         in non-IPA mode.
24871         (set_uids_in_ptset): Adjust.
24872         (find_what_var_points_to): Likewise.
24873         (solve_constraints): Do not dump points-to sets here.
24874         (compute_points_to_sets): Post-process return statements,
24875         amending the escaped solution.  Dump points-to sets afterwards.
24876         (ipa_pta_execute): Dump points-to sets.
24878 2019-06-06  Martin Liska  <mliska@suse.cz>
24880         PR web/87933
24881         * doc/install.texi: Fix HTML headers and
24882         titles for 'Installing GCC' pages.
24884 2019-06-06  Martin Liska  <mliska@suse.cz>
24886         * ipa-icf-gimple.h (dump_message_1): Remove.
24887         (dump_message): Likewise.
24888         (return_false_with_message_1): Print also file.
24889         (return_false_with_msg): Likewise.
24890         (return_with_result): Likewise.
24891         (return_with_debug): Likewise.
24892         * ipa-icf.c (sem_function::equals_private): Remove call
24893         to dump_message.
24895 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
24897         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24898         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24899         memory operand for it.
24900         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24902 2019-06-05  Martin Sebor  <msebor@redhat.com>
24904         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24905         Adjust quoting and hyphenation.
24906         * convert.c (convert_to_real_1): Same.
24907         * gcc.c (driver_wrong_lang_callback): Same.
24908         (driver::handle_unrecognized_options): Same.
24909         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24910         * opts-common.c (cmdline_handle_error): Same.
24911         (read_cmdline_option): Same.
24912         * opts-global.c (complain_wrong_lang): Same.
24913         (print_ignored_options): Same.
24914         (handle_common_deferred_options): Same.
24915         * pretty-print.h: Same.
24916         * print-rtl.c (debug_bb_n_slim): Same.
24917         * sched-rgn.c (make_pass_sched_fusion): Same.
24918         * tree-cfg.c (verify_gimple_assign_unary): Same.
24919         (verify_gimple_label): Same.
24920         * tree-ssa-operands.c (verify_ssa_operands): Same.
24921         * varasm.c (do_assemble_alias): Same.
24922         (assemble_alias): Same.
24924 2019-06-05  Richard Henderson  <rth@twiddle.net>
24926         * config/alpha/alpha.c (direct_return): Move down after
24927         struct machine_function definition; use saved frame_size;
24928         return bool.
24929         (struct machine_function): Add sa_mask, sa_size, frame_size.
24930         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24931         (alpha_compute_frame_layout): ... new function.
24932         (TARGET_COMPUTE_FRAME_LAYOUT): New.
24933         (alpha_initial_elimination_offset): Use saved sa_size.
24934         (alpha_vms_initial_elimination_offset): Likewise.
24935         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24936         (alpha_expand_prologue): Use saved frame data.  Merge integer
24937         and fp register save loops.
24938         (alpha_expand_epilogue): Likewise.
24939         (alpha_start_function): Use saved frame data.
24940         * config/alpha/alpha-protos.h (direct_return): Update.
24941         (alpha_sa_size): Remove.
24943 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
24945         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24946         multiplication by a power-of-two value.
24947         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24948         and turn the modulo operation into a masking operation.
24950 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
24952         PR debug/90733
24953         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24954         with VOIDmode inner operands.
24956 2019-06-05  Richard Biener  <rguenther@suse.de>
24958         PR middle-end/90726
24959         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24960         turn an expression graph into a tree.
24962 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
24964         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24965         member.
24966         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24967         treat it like explicit monotonic schedule modifier.
24968         (expand_omp_for): Initialize has_lastprivate_conditional.
24969         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24970         schedule modifier.
24972         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24973         references, lookup in in hash map MEM_REF operand instead of the
24974         MEM_REF itself.
24975         (lower_omp_1): When looking for lastprivate conditional assignments,
24976         handle MEM_REFs with REFERENCE_TYPE operands.
24978         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24979         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24980         and references a VLA.  Handle references to non-VLAs if is_simd
24981         all privatization clauses like reductions.
24982         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24983         If omp_is_reference, use always omp simd arrays and set
24984         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24985         fails, emit reference initialization.
24987 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
24989         PR target/89803
24990         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24991         _mm_mask_fpclass_sd_mask): New intrinsics.
24992         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24993         * config/i386/i386-builtin.def
24994         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24995         New builtins.
24996         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24997         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24998         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24999         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25000         case QI_FTYPE_V2SF_INT): Ditto.
25001         * config/i386/sse.md
25002         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25003         Extended to insnstructions with mask operands.
25005 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25007         * config/rs6000/constraints.md (define_register_constraint "wp"):
25008         Delete.
25009         (define_register_constraint "wq"): Delete.
25010         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25011         (rs6000_init_hard_regno_mode_ok): Adjust.
25012         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25013         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25014         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25015         (define_mode_attr VSa): Delete.
25016         (define_mode_attr VSisa): New.
25017         (rest of file): Adjust.
25018         * doc/md.texi (Machine Constraints): Adjust.
25020 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25022         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25023         (define_attr "enabled"): Handle those new isa values.
25025 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25027         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25028         (define_mode_attr VSr5): Delete.
25029         (define_mode_attr VStype_sqrt): Delete.
25030         (define_mode_iterator VSX_SPDP): Delete.
25031         (define_mode_attr VS_spdp_res): Delete.
25032         (define_mode_attr VS_spdp_insn): Delete.
25033         (define_mode_attr VS_spdp_type): Delete.
25034         (*vsx_sqrt<mode>2): Adjust.
25035         (vsx_<VS_spdp_insn>): Delete, split to...
25036         (vsx_xscvdpsp): ... this.  New.  And...
25037         (vsx_xvcvspdp): ... this.  New.  And...
25038         (vsx_xvcvdpsp): ... this.  New.
25040 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25042         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25043         and V2DF.
25044         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25045         (rest of file): Adjust.
25047 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25049         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25050         (vsx_extract_<mode>_var): Ditto.
25052 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25054         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25055         with just "wa".
25057 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25059         * config/rs6000/constraints.md (define_register_constraint "ww"):
25060         Delete.
25061         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25062         (rs6000_init_hard_regno_mode_ok): Adjust.
25063         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25064         RS6000_CONSTRAINT_ww.
25065         * config/rs6000/rs6000.md: Adjust.
25066         * config/rs6000/vsx.md: Adjust.
25067         * doc/md.texi (Machine Constraints): Adjust.
25069 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25071         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25072         (define_mode_attr sd): New.
25073         (define_mode_attr s): New.
25074         (define_mode_attr Ftrad): Delete.
25075         (define_mode_attr Fvsx): Delete.
25076         (define_mode_attr Fs): Delete.
25077         (rest of file): Use the new mode attributes.
25078         * config.rs6000/vsx.md: Use the new mode attributes.
25080 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25082         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25083         with just "wa".
25085 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25087         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25088         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25089         used with VSX_B, VSX_D, or VSX_F, with just "wa".
25091 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
25093         PR target/78263
25094         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25095         C++ with strict ANSI requirements.
25097 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
25099         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25100         computations when step is 1.
25102 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25104         * config/rs6000/constraints.md (define_register_constraint "wf"):
25105         Delete.
25106         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25107         (rs6000_init_hard_regno_mode_ok): Adjust.
25108         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25109         RS6000_CONSTRAINT_wf.
25110         * config/rs6000/rs6000.md: Adjust.
25111         * config/rs6000/vsx.md: Adjust.
25112         * doc/md.texi (Machine Constraints): Adjust.
25114 2019-06-04  Andrew Pinski  <apinski@marvell.com>
25116         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25117         Fix ILP32 value.
25119 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25121         * config/rs6000/constraints.md (define_register_constraint "wd"):
25122         Delete.
25123         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25124         (rs6000_init_hard_regno_mode_ok): Adjust.
25125         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25126         RS6000_CONSTRAINT_wd.
25127         * config/rs6000/rs6000.md: Adjust.
25128         * config/rs6000/vsx.md: Adjust.
25129         * doc/md.texi (Machine Constraints): Adjust.
25131 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25133         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25134         (rest of file): Adjust.
25136 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25138         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25139         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25140         (vsx_splat_<mode>_reg): Adjust.
25142 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25144         * config/rs6000/constraints.md (define_register_constraint "ws"):
25145         Delete.
25146         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25147         (rs6000_init_hard_regno_mode_ok): Adjust.
25148         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25149         RS6000_CONSTRAINT_ws.
25150         * config/rs6000/rs6000.md: Adjust.
25151         * config/rs6000/vsx.md: Adjust.
25152         * doc/md.texi (Machine Constraints): Adjust.
25154 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25156         * config/rs6000/constraints.md (define_register_constraint "wv"):
25157         Delete.
25158         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25159         (rs6000_init_hard_regno_mode_ok): Adjust.
25160         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25161         RS6000_CONSTRAINT_wv.
25162         * config/rs6000/rs6000.md: Adjust.
25163         * config/rs6000/vsx.md: Adjust.
25164         * doc/md.texi (Machine Constraints): Adjust.
25166 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25168         * config/rs6000/constraints.md (define_register_constraint "wi"):
25169         Delete.
25170         (define_register_constraint "wt"): Delete.
25171         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25172         (rs6000_init_hard_regno_mode_ok): Adjust.
25173         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25174         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25175         * config/rs6000/rs6000.md: Adjust.
25176         * config/rs6000/vsx.md: Adjust.
25177         * doc/md.texi (Machine Constraints): Adjust.
25179 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25181         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25182         const.
25183         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25184         default_elf_asm_output_external.
25186 2019-06-04  Martin Liska  <mliska@suse.cz>
25188         * ipa-icf.c (INCLUDE_LIST): Remove.
25189         (sem_item_optimizer::execute): Remove call to init_wpa.
25190         * ipa-icf.h (init_wpa): Remove.
25192 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
25194         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25195         conditional on combined for simd.
25196         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25197         member.
25198         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25199         constructs, don't remove lastprivate_conditional_map, but instead set
25200         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25201         to parent construct temporaries.
25202         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25203         like !ctx->lastprivate_conditional_map.
25204         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25205         use up->outer context instead of up.
25206         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25207         gimple_omp_for_combined_p.
25208         (expand_omp_for_static_nochunk): Likewise.
25209         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25210         probably moved over into expand_omp_for_generic rather than being copied
25211         there.
25213 2019-06-04  Martin Liska  <mliska@suse.cz>
25215         * value-prof.c (dump_histogram_value): Fix typo.
25216         (gimple_mod_subtract_transform): Likewise.
25218 2019-06-04  Richard Biener  <rguenther@suse.de>
25220         PR middle-end/90726
25221         * tree-chrec.c (chrec_contains_symbols): Add to visited.
25222         (tree_contains_chrecs): Likewise.
25223         (chrec_contains_symbols_defined_in_loop): Move here and avoid
25224         exponential behaivor from ...
25225         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25226         ... here.
25227         (expression_expensive_p): Avoid exponential behavior and compute
25228         expanded size, rejecting any expansion.
25229         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25230         (idx_contains_abnormal_ssa_name_p): Likewise.
25231         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25232         (contains_abnormal_ssa_name_p): Simplify and use
25233         walk_tree_without_duplicates.
25235 2019-06-04  Richard Biener  <rguenther@suse.de>
25237         PR tree-optimization/90738
25238         Revert
25239         2019-06-03  Richard Biener  <rguenther@suse.de>
25241         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25242         full reference tree and record in ref->ref.
25243         (vn_reference_lookup_3): Pass in original ref to
25244         ao_ref_init_from_vn_reference.
25245         (vn_reference_lookup): Likewise.
25246         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25247         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25248         Handle non-decl bases in the original reference.
25250 2019-06-04  Martin Liska  <mliska@suse.cz>
25252         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25253         number of references.
25254         (sem_item_optimizer::do_congruence_step):
25255         (sem_item_optimizer::worklist_push): Dump how references
25256         a class has.
25257         (sem_item_optimizer::worklist_pop): Use heap.
25258         (sem_item_optimizer::process_cong_reduction): Likewise.
25259         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25261 2019-06-04  Martin Liska  <mliska@suse.cz>
25263         * ipa-icf.h (struct sem_usage_pair_hash): New.
25264         (sem_usage_pair_hash::hash): Likewise.
25265         (sem_usage_pair_hash::equal): Likewise.
25266         (struct sem_usage_hash): Likewise.
25267         * ipa-icf.c (sem_item::sem_item): Initialize
25268         referenced_by_count.
25269         (sem_item::add_reference): Register a reference
25270         in ref_map and not in target->usages.
25271         (sem_item::setup): Remove initialization of
25272         dead vectors.
25273         (sem_item::~sem_item): Remove usage of dead vectors.
25274         (sem_item::dump): Remove dump of references.
25275         (sem_item_optimizer::sem_item_optimizer): Initialize
25276         m_references.
25277         (sem_item_optimizer::read_section): Remove useless
25278         dump.
25279         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25280         (sem_item_optimizer::build_graph): Pass m_references
25281         to ::add_reference.
25282         (sem_item_optimizer::verify_classes): Remove usage of dead
25283         vectors.
25284         (sem_item_optimizer::traverse_congruence_split): Return true
25285         when a class is split.
25286         (sem_item_optimizer::do_congruence_step_for_index): Use
25287         hash_map for look up of (sem_item *, index). That brings
25288         significant speed up.
25289         (sem_item_optimizer::do_congruence_step): Return true
25290         when a split is done.
25291         (congruence_class::is_class_used): Use referenced_by_count.
25293 2019-06-04  Alan Modra  <amodra@gmail.com>
25295         PR target/90689
25296         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25297         error.
25299 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
25301         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25302         * config/rs6000/rs6000.c (direct_move_p): Adjust.
25303         (rs6000_secondary_reload_simple_move): Adjust.
25304         (rs6000_opt_masks): Neuter the "mfpgpr" option.
25305         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25306         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25307         comment.
25308         (power6x): Adjust.
25309         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25310         (floatunssi<mode>2_lfiwzx): Adjust.
25311         (fix_trunc<mode>si2_stfiwx): Adjust.
25312         (fixuns_trunc<mode>si2_stfiwx): Adjust.
25313         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25314         (mfpgpr): Mark as deprecated.
25315         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25316         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25317         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25319 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
25321         * config/rs6000/constraints.md (define_register_constraint "wg"):
25322         Delete.
25323         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25324         RS6000_CONSTRAINT_wg.
25325         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25326         (rs6000_init_hard_regno_mode_ok): Adjust.
25327         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25328         Delete "wg" alternatives.
25329         * doc/md.texi (Machine Constraints): Adjust.
25331 2019-06-03  Alan Modra  <amodra@gmail.com>
25333         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25334         (get_uncond_jump_length): Assert length less than INT_MAX and
25335         non-negative.
25337 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
25339         PR middle-end/64242
25340         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25341         block.
25342         (expand_builtin_nonlocal_goto): Likewise.
25344 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25346         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25347         (aarch64_asm_output_external): Declare.
25348         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25349         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25350         (aarch64_asm_output_alias): New.
25351         (aarch64_asm_output_external): New.
25352         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25353         (ASM_OUTPUT_EXTERNAL): Define.
25355 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
25356         * tree-vrp.h (value_range_base::nonzero_p): New.
25357         (value_range_base::set_nonnull): Rename to...
25358         (value_range_base::set_nonzero): ...this.
25359         (value_range_base::set_null): Rename to...
25360         (value_range_base::set_zero): ...this.
25361         (value_range::set_nonnull): Remove.
25362         (value_range::set_null): Remove.
25363         * tree-vrp.c (range_is_null): Remove.
25364         (range_is_nonnull): Remove.
25365         (extract_range_from_binary_expr): Use value_range_base::*zero_p
25366         instead of range_is_*null.
25367         (extract_range_from_unary_expr): Same.
25368         (value_range_base::set_nonnull): Rename to...
25369         (value_range_base::set_nonzero): ...this.
25370         (value_range::set_nonnull): Remove.
25371         (value_range_base::set_null): Rename to...
25372         (value_range_base::set_zero): ...this.
25373         (value_range::set_null): Remove.
25374         (extract_range_from_binary_expr): Rename set_*null uses to
25375         set_*zero.
25376         (extract_range_from_unary_expr): Same.
25377         (union_helper): Same.
25378         * vr-values.c (get_value_range): Use set_*zero instead of
25379         set_*null.
25380         (vr_values::extract_range_from_binary_expr): Same.
25381         (vr_values::extract_range_basic): Same.
25383 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
25385         PR driver/90684
25386         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25388 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25390         * config/aarch64/iterators.md (MAX_OPP): New code attr.
25391         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25392         Rename to...
25393         (aarch64_<su>abd<mode>_3): ... This.
25394         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25396 2019-06-03  Richard Biener  <rguenther@suse.de>
25398         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25399         full reference tree and record in ref->ref.
25400         (vn_reference_lookup_3): Pass in original ref to
25401         ao_ref_init_from_vn_reference.
25402         (vn_reference_lookup): Likewise.
25403         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25404         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25405         Handle non-decl bases in the original reference.
25407 2019-06-03  Martin Liska  <mliska@suse.cz>
25409         * doc/generic.texi: Remove Java Trees.
25411 2019-06-03  Martin Liska  <mliska@suse.cz>
25413         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25414         returns 0 when operands are equal.
25416 2019-06-03  Richard Biener  <rguenther@suse.de>
25418         PR tree-optimization/90716
25419         * tree-loop-distribution.c (destroy_loop): Process blocks in
25420         correct order.
25422 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25424         PR target/88837
25425         * vector-builder.h (vector_builder::count_dups): New method.
25426         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25427         Declare prototype.
25428         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25429         (vec_init<mode><Vel>): New pattern.
25430         * config/aarch64/aarch64.c (emit_insr): New function.
25431         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25432         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25433         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25434         (aarch64_sve_expand_vector_init): Define two overloaded functions.
25436 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25438         PR tree-optimization/90681
25439         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25440         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25441         special case for SLP, but fail on non-groupped loads.
25443 2019-06-03  Martin Liska  <mliska@suse.cz>
25445         * cfg.c (debug): Use TDF_DETAILS for debug and
25446         print edge info only once.
25448 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
25450         PR fortran/90539
25451         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25453 2019-06-01  Martin Sebor  <msebor@redhat.com>
25455         PR middle-end/90694
25456         * tree-pretty-print.c (dump_generic_node): Add parentheses.
25458 2019-05-31  Jan Hubicka  <jh@suse.cz>
25460         * alias.c: Include ipa-utils.h.
25461         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25462         * ipa-devirt.c (prevailing_odr_type): New.
25463         * ipa-utils.h (previaling_odr_type): Declare.
25465 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
25466             Hongtao Liu  <hongtao.liu@intel.com>
25468         PR target/89355
25469         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25470         NOTE_INSN_DELETED_LABEL check.
25472 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
25473             Robert Suchanek  <robert.suchanek@mips.com>
25475         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25476         and 3rd operands of the fmadd/fmsub/maddv builtin.
25478 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
25480         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25481         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25482         on OMP_SIMD if not nested inside of worksharing loop that also has
25483         lastprivate conditional clause for the same decl.
25484         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25485         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25486         on simd.
25487         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
25488         on simd construct.
25489         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25490         on simd construct.
25491         (lower_lastprivate_clauses): Likewise.
25492         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25493         calling lower_rec_input_clauses.
25494         (lower_omp_for): Likewise.
25495         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25496         clause on simd construct.
25497         * omp-expand.c (expand_omp_simd): Initialize cond_var if
25498         OMP_CLAUSE__CONDTEMP_ clause is present.
25500         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25501         ivar and lvar.
25503 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
25505         PR c/43673
25506         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25507         TEX_D32, TEX_D64 or TEX_D128.
25509 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
25511         * match.pd (~(vec?cst1:cst2)): New transformation.
25513 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
25515         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25516         ((size_t)(A /[ex] B) CMP C): New transformation.
25518 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
25520         * doc/md.texi: Document define_insn_and_rewrite.
25521         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25522         * gensupport.c (queue_elem): Update comment.
25523         (replace_operands_with_dups): New function.
25524         (gen_rewrite_sequence): Likewise.
25525         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25526         * read-rtl.c (apply_subst_iterator): Likewise.
25527         (add_condition_to_rtx, named_rtx_p): Likewise.
25528         (rtx_reader::read_rtx_operand): Likewise.
25529         * config/aarch64/aarch64-sve.md
25530         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25531         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25532         define_insn_and_rewrite.
25533         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25534         Remove separate define_split.
25536 2019-05-31  Jan Hubicka  <jh@suse.cz>
25538         * tree-ssa-alias.c (type_has_components_p): New function.
25539         (aliasing_component_refs_p): Use it.
25541 2019-05-31  Martin Liska  <mliska@suse.cz>
25543         * gdbhooks.py: Add const_tree to TreePrinter.
25545 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
25547         PR debug/86964
25548         * common.opt (feliminate-unused-debug-symbols): Enable by default.
25549         * doc/invoke.texi (Debugging Options): Document new default of
25550         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25552 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
25554         PR tree-optimization/90671
25555         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25556         template_block used to be empty on the first call, don't use
25557         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25558         seq with bb_seq and set it with set_bb_seq.
25560 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
25562         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25564 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25565             Michael Meissner  <meissner@linux.ibm.com>
25567         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25568         (prefixed_mem_operand): Likewise.
25569         (non_prefixed_mem_operand): Likewise.
25570         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25571         prototype.
25572         * config/rs6000/rs6000.c (print_operand_address): Handle
25573         PC-relative addresses.
25574         (mode_supports_prefixed_address_p): New function.
25575         (rs6000_prefixed_address): New function.
25576         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25577         (SYMBOL_REF_PCREL_P): Likewise.
25579 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
25581         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25582         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25583         (gimplify_omp_for): If worksharing loop with lastprivate conditional
25584         is nested inside of parallel region, add _condtemp_ clause to both.
25585         * tree-nested.c (convert_nonlocal_omp_clauses,
25586         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25587         assertion failure.
25588         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25589         member.
25590         * omp-general.c (omp_extract_for_data): Compute it.
25591         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25592         (lower_rec_input_clauses): Likewise.
25593         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25594         clause is already present, just add one further one after it.
25595         (lower_lastprivate_clauses): Handle cond_ptr with array type.
25596         (lower_send_shared_vars): Clear _condtemp_ vars.
25597         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25598         or section or taskgroup.
25599         * omp-expand.c (determine_parallel_type): Disallow combining only if
25600         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
25601         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25602         (expand_omp_for_generic, expand_omp_for_static_nochunk,
25603         expand_omp_for_static_chunk, expand_omp_for): Use
25604         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25605         determine if a special set of API routines are needed and if condtemp
25606         needs to be initialized, while always initialize cond_var if
25607         fd->lastprivate_conditional is non-zero.
25609 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25610             Michael Meissner  <meissner@linux.ibm.com>
25612         * config/rs6000/constraints.md (eI): New constraint.
25613         * config/rs6000/predicates.md (cint34_operand): New predicate.
25614         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25615         (SIGNED_34BIT_OFFSET_P): Likewise.
25616         * doc/md.texi (eI): Document constraint.
25618 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
25620         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25622 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25623             Michael Meissner  <meissner@linux.ibm.com>
25625         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25626         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25627         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25628         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25629         (OTHER_FUTURE_MASKS): Likewise.
25630         (POWERPC_MASKS): Likewise.
25631         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25632         specified without -mprefixed-addr or -mcpu=future.  Error if
25633         -mprefixed-addr is specified without -mcpu=future.
25634         (rs6000_opt_masks): Add entry for prefixed-addr.
25635         * rs6000.opt (mprefixed-addr): New option.
25637 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
25639         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25640         cfun->is_thunk check.
25642 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
25644         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25645         to length.
25647 2019-05-30  Martin Liska  <mliska@suse.cz>
25649         * gdbinit.in: Fix 'ptc' command.  Add trt
25650         that prints TREE_TYPE($).
25652 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
25653             Alan Modra  <amodra@gmail.com>
25655         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25656         calls here...
25657         (rs6000_indirect_call_template_1): ...and here.
25658         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
25659         plt16_ha, plt16_lo, mtctr indirect calls.  Use
25660         rs6000_pltseq_enum.
25661         (rs6000_decl_ok_for_sibcall): New function.
25662         (rs6000_function_ok_for_sibcall): Refactor.
25663         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25664         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25665         when pcrel.  Reorganize.
25666         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25667         * rs6000.h (rs6000_pltseq_enum): New enum.
25668         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25669         (*pltseq_tocsave): Use rs6000_pltseq_enum.
25670         (*pltseq_plt16_ha): Likewise.
25671         (*pltseq_plt16_lo): Likewise.
25672         (*pltseq_mtctr): Likewise.
25673         (*pltseq_plt_pcrel): New insn.
25674         (*call_local_aix): Handle @notoc calls.
25675         (*call_value_local_aix): Likewise.
25676         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25677         (*call_value_nonlocal_aix): Likewise.
25678         (*call_indirect_pcrel): New insn.
25679         (*call_value_indirect_pcrel): Likewise.
25681 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25683         * config/i386/sse.md (*save_multiple<mode>): Rename from
25684         save_multiple<mode>.
25685         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25686         (*restore_multiple_and_return<mode>): Rename from
25687         restore_multiple_and_return<mode>.
25688         (*restore_multiple_leave_return<mode>): Rename from
25689         restore_multiple_leave_return<mode>.
25691 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
25693         * config.gcc (rx-*-linux*): New target.
25694         * config/rx/elf.opt: New file.
25695         * config/rx/linux.h: Likewise.
25696         * config/rx/t-linux: Likewise.
25697         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25698         make it zero.
25699         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25700         (ASM_APP_OFF): Likewise.
25701         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25702         moved elsewhere.
25704 2019-05-29  Jan Hubicka  <jh@suse.cz>
25706         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25707         variants are pointer equivalent.
25709 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25711         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25712         * config/aarch64/aarch64-sve2.md: New file.
25713         (<u>avg<mode>3_floor): New pattern.
25714         (<u>avg<mode>3_ceil): Likewise.
25715         (*<sur>h<addsub><mode>): Likewise.
25716         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25717         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25719 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
25721         PR bootstrap/90543
25722         * optc-save-gen.awk: In cl_optimization_print, use correct condition
25723         for var_opt_string printing.  In cl_optimization_print_diff, print
25724         (null) instead of invoking undefined behavior if one of the
25725         var_opt_string pointers is NULL and use && instead of first || in the
25726         guarding condition.  For var_target_other options, handle const char *
25727         target variables similarly to const char * optimize node variables.
25729 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
25731         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25732         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25733         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25734         Add autib1716 and pacib1716 initialisation.
25735         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25736         for autib1716 and pacib1716.
25737         * config/aarch64/aarch64-protos.h (aarch64_key_type,
25738         aarch64_post_cfi_startproc): Define.
25739         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25740         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25741         aarch64_handle_pac_ret_protection): Set default sign key to A.
25742         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25743         aarch64_expand_prologue): Add check for b-key.
25744         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25745         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25746         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25747         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25748         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25749         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25750         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25751         * config/aarch64/aarch64.md (do_return): Add check for b-key.
25752         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25753         pauth_hint_num_a with pauth_hint_num.
25754         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25755         pauth_hint_num_a with pauth_hint_num.
25756         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25757         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25758         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25759         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25760         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25761         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25762         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25763         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25764         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25765         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25766         UNSPEC_AUTIA1716 respectively.
25767         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25768         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25769         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25770         * doc/invoke.texi (-mbranch-protection): Add b-key type.
25771         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25772         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25774 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
25776         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25777         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25778         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25779         explicit clause on combined parallel into implicit shared clause.
25780         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25781         and firstprivate if the decl has one too from combined parallel to
25782         the worksharing construct.
25784 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
25785             Michael Meissner  <meissner@linux.ibm.com>
25787         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25789 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
25791         * rtl.h (LABEL_REF_P): New #define.
25793 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
25795         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25797 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25799         * internal-fn.c: Marked mask_load_direct as vectorizable.
25800         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25801         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25802         combined even if masks different with allow_slp_p param.
25803         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25804         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25805         dissolve SLP-only vectorizable groups when SLP has been discarded.
25806         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25807         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25808         masks.
25809         (vect_build_slp_tree_1): Fixed comment typo.
25810         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25811         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25812         loads for SLP only.
25813         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25814         vectorizable.
25815         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25817 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25819         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25820         Remove obsolete use_thunk reference.
25821         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25822         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25823         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25824         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25825         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25826         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25827         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25828         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25829         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25831 2019-05-28  Nathan Sidwell  <nathan@acm.org>
25833         * tree.h (IDENTIFIER_ANON_P): New.
25834         (anon_aggrname_format, anon_aggname_p): Don't declare.
25835         (make_anon_name): Declare.
25836         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25837         (hash_tree): Likewise.
25838         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25839         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25840         (anon_cnt, make_anon_name): New.
25842 2019-05-28  Martin Liska  <mliska@suse.cz>
25844         PR other/90315
25845         * opts-global.c (decode_options): Print help for all
25846         help_option_arguments.
25847         * opts.c (print_help): Add new argument.
25848         (common_handle_option): Remember all values into
25849         help_option_arguments.
25850         * opts.h (print_help): Add new argument.
25852 2019-05-28  Martin Liska  <mliska@suse.cz>
25854         PR ipa/90555
25855         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25856         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25857         (func_checker::compare_bb): Call compare_loops.
25859 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
25861         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25862         on sections construct.
25863         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25864         construct.
25865         (lower_omp_sections): Handle lastprivate conditional.
25866         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25867         lastprivate_conditional_map.
25868         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25870         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25871         critical, taskgroup and section regions when looking for a region
25872         with non-NULL lastprivate_conditional_map.
25874 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25876         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25877         (*ix86_gen_sub3): Ditto.
25878         (*ix86_gen_sub3_carry): Ditto.
25879         (*ix86_gen_one_cmpl2): Ditto.
25880         (*ix86_gen_andsp): Ditto.
25881         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25882         (gen_and2_insn): New static function.
25883         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25884         Use gen_add3_insn instead of ix86_gen_add3.
25885         (ix86_expand_split_stack_prologue): Use gen_add2_insn
25886         instead of ix86_gen_add3.
25887         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25888         Use gen_sub3_insn instead of ix86_gen_sub3.
25889         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25890         instead of ix86_gen_add3.
25891         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25892         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
25893         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25894         * config/i386/i386-options.c (ix86_option_override_internal):
25895         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25896         ix86_gen_one_cmpl2 and ix86_gen_andsp.
25898 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25900         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25901         and DW_OP_GNU_const_index opcodes.
25903 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25905         * config/i386/i386.h (STACK_SIZE_MODE): Define.
25907 2019-05-27  Richard Biener  <rguenther@suse.de>
25909         PR tree-optimization/90637
25910         * tree-ssa-sink.c (statement_sink_location): Honor the
25911         computed sink location for single-uses.
25913 2019-05-27  Richard Biener  <rguenther@suse.de>
25915         PR middle-end/90610
25916         * match.pd (vec_perm): Avoid clobbering op0 when not generating
25917         a bit-insert.
25919 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25921         * config/i386/i386.md (@sub<mode>3_carry): Rename
25922         from sub<mode>3_carry.
25923         (@leave_<mode>): New expander.
25924         (*leave): Rename from leave.
25925         (*leave_rex64): Rename from leave_rex64.
25926         (@monitorx_<mode>): Rename from monitorx_<mode>.
25927         (@clzero_<mode>): Rename from clzero_<mode>.
25928         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25929         from sse3_monitor_<mode>.
25930         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25931         (*ix86_gen_leave): Ditto.
25932         (*ix86_gen_monitor): Ditto.
25933         (*ix86_gen_monitorx): Ditto.
25934         (*ix86_gen_clzero): Ditto.
25935         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25936         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25937         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25938         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25939         Use gen_sse3_monitor instead of ix86_gen_monitor.
25940         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25941         instead of ix86_gen_monitorx.
25942         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25943         instead of ix86_gen_clzero.
25944         * config/i386/i386-options.c (ix86_option_override_internal):
25945         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25946         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25948 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25950         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25951         Rename from tls_global_dynamic_64_<mode>.
25952         (@tls_local_dynamic_base_64_<mode>): Rename from
25953         tls_local_dynamic_base_64_<mode>.
25954         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25955         Remove indirect function.
25956         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25957         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25958         instead of ix86_gen_tls_global_dynamic_64.
25959         Use gen_tls_local_dynamic_base_64 instead of
25960         ix86_gen_tls_local_dynamic_base_64.
25961         * config/i386/i386-options.c (ix86_option_override_internal):
25962         Do not initialize ix86_gen_tls_global_dynamic_64 and
25963         ix86_gen_tls_local_dynamic_base_64.
25965 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25967         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25968         Rename from pro_epilogue_adjust_stack_<mode>_add.
25969         (@pro_epilogue_adjust_stack_sub_<mode>)
25970         Rename from pro_epilogue_adjust_stack_<mode>_sub.
25971         (@allocate_stack_worker_probe_<mode>):
25972         Rename from allocate_stack_worker_probe_<mode>.
25973         (allocate_stack): Use gen_allocate_stack_worker_probe.
25974         (probe_stack): Use gen_probe_stack_1.
25975         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25976         (@adjust_stack_and_probe_<mode>): Rename from
25977         adjust_stack_and_probe<mode>.
25978         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25979         (stack_protect_set): Use gen_stack_protect_set_1.
25980         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25981         (stack_protect_test): Use gen_stack_protect_test_1.
25982         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25983         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25984         Remove indirect function.
25985         (*ix86_gen_adjust_stack_and_probe): Ditto.
25986         (*ix86_gen_probe_stack_range): Ditto.
25987         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25988         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25989         (ix86_adjust_stack_and_probe_stack_clash): Use
25990         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25991         (ix86_adjust_stack_and_probe): Ditto.
25992         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25993         of ix86_gen_probe_stack_range.
25994         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25995         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25996         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25997         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
25998         CODE_FOR_stack_protect_test_{si,di}.
25999         * config/i386/i386-options.c (ix86_option_override_internal):
26000         Do not initialize ix86_gen_allocate_stack_worker,
26001         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26003 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
26005         * doc/invoke.texi (Link Options): Many editorial changes around
26006         -flinker-output.
26008 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26010         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26011         pre-Solaris 11 referene and most Studio compiler details.
26013 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
26015         PR target/90530
26016         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26017         DImode to SImode in floating-point registers on 64-bit target.
26018         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26019         register_operand in xmpyu patterns.
26021 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26023         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26024         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26025         OMP_CLAUSE__REDUCTEMP_.
26026         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26027         OMP_CLAUSE__CONDTEMP_.
26028         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26029         * tree-pretty-print.c (dump_omp_clause): Likewise.
26030         * tree-nested.c (convert_nonlocal_omp_clauses,
26031         convert_local_omp_clauses): Likewise.
26032         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26033         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
26034         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26035         on OMP_FOR.
26036         (gimplify_omp_for): Warn and disable conditional modifier from
26037         lastprivate on loop iterators.
26038         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26039         member.
26040         * omp-general.c (omp_extract_for_data): Initialize it.
26041         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26042         member.
26043         (delete_omp_context): Delete it.
26044         (lower_lastprivate_conditional_clauses): New function.
26045         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26046         handle lastprivate conditional clauses.
26047         (lower_reduction_clauses): Add CLIST argument, emit it into
26048         the critical section if any.
26049         (lower_omp_sections): Adjust lower_lastprivate_clauses and
26050         lower_reduction_clauses callers.
26051         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26052         to lower_lastprivate_clauses.
26053         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26054         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26055         clist into a critical section if not emitted there already by
26056         lower_reduction_clauses.
26057         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26058         callers.
26059         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26060         conditional variables.
26061         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26062         clause is present.
26063         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26064         expand_omp_for_static_chunk): Handle lastprivate conditional.
26065         (expand_omp_for): Handle fd.lastprivate_conditional like
26066         fd.have_reductemp.
26068 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26070         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26071         kernel does not exit cleanly.
26072         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26074 2019-05-24  Jason Merrill  <jason@redhat.com>
26076         Revert:
26077         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26079 2019-05-24  Richard Biener  <rguenther@suse.de>
26081         PR testsuite/90607
26082         * tree-loop-distribution.c (struct partition): Add location
26083         member.
26084         (partition_alloc): Initialize all fields.
26085         (generate_memset_builtin): Use the location recorded in the
26086         partition for the generated call.
26087         (generate_memcpy_builtin): Likewise.
26088         (classify_partition): Record the location of a single store
26089         as location for the partition.
26091 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26093         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26094         for lo-part.
26096 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
26098         PR target/90588
26099         * common/config/aarch64/aarch64-common.c
26100         (aarch64_rewrite_selected_cpu): Change local temporary variable
26101         type from unsigned long to uint64_t.
26102         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26103         aarch64_get_extension_string_for_isa_flags): Change declaration to
26104         match new definition by replacing unsigned long with uint64_t.
26106 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26108         PR target/90568
26109         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26110         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
26111         Handle stack_protect_test_<mode> codegen similarly to corresponding
26112         sub instruction.
26114 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
26116         * config/i386/darwin.h: Reject -mfentry*.
26117         * doc/sourcebuild.texi: Document mfentry target support.
26119 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26121         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26122         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
26123         false for PC-relative functions.
26124         (rs6000_output_function_prologue): Change called function name to
26125         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
26126         name,1" for PC-relative functions.
26127         (rs6000_elf_declare_function_name): Change called function name to
26128         rs6000_global_entry_point_prologue_needed_p.
26130 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26132         PR target/90552
26133         * config/i386/i386.c (gen_rtx_cost):
26134         Use ix86_tune_cost instead of ix86_cost.
26136 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26137             Michael Meissner  <meissner@linux.ibm.com>
26138             Segher Boessenkool  <segher@kernel.crashing.org>
26140         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26141         OPTION_MASK_PCREL.
26142         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26143         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26144         (rs6000_fndecl_pcrel_p): Likewise.
26145         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26146         error if -mpcrel is requested without -mcpu=future.
26147         (rs6000_opt_masks): Add entry for pcrel.
26148         (rs6000_fndecl_pcrel_p): New function.
26149         (rs6000_pcrel_p): Likewise.
26150         * config/rs6000/rs6000.opt (mpcrel): New option.
26151         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26153 2019-05-23  Jan Hubicka  <jh@suse.cz>
26154             Martin Liska  <mliska@suse.cz>
26156         PR tree-optimization/90576
26157         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26158         poly_int_tree_p.
26159         (aliasing_component_refs_p): Fix three way size compare conditional;
26160         give up earlier in case we can not decide on equivalence.
26162 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26163             Michael Meissner  <meissner@linux.ibm.com>
26164             Segher Boessenkool  <segher@kernel.crashing.org>
26166         * config.gcc: Add future cpu.
26167         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26168         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26169         #define.
26170         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26171         (RS6000_CPU): New instantiation for future cpu.
26172         * config/rs6000/rs6000-opts.h (enum processor_type): Add
26173         PROCESSOR_FUTURE.
26174         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26175         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26176         * config/rs6000/rs6000-tables.opt: Regenerate.
26177         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26178         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26179         (rs6000_machine_from_flags): Handle future cpu.
26180         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26181         PROCESSOR_POWER9 for now.
26182         (rs6000_adjust_cost): Likewise.
26183         (rs6000_issue_rate): Likewise.
26184         (rs6000_register_move_cost): Likewise.
26185         (rs6000_opt_masks): Add entry for future.
26186         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26187         (MASK_FUTURE): New #define.
26188         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26189         * config/rs6000/rs6000.opt (mfuture): New target option.
26190         * doc/invoke.texi (mcpu): Add future cpu.
26192 2019-05-23  Martin Liska  <mliska@suse.cz>
26194         PR c++/90587
26195         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26196         operation points to a temporary (pointed via tree_to_wide_ref)
26197         that is out of scope after the &.
26199 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
26201         PR c++/90592
26202         * doc/extend.texi (Function Names): Add missing word.
26204 2019-05-23  Richard Biener  <rguenther@suse.de>
26206         PR tree-optimization/88440
26207         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26208         at -O[2s]+.
26209         * tree-loop-distribution.c (generate_memset_builtin): Fold the
26210         generated call.
26211         (generate_memcpy_builtin): Likewise.
26212         (distribute_loop): Pass in whether to only distribute patterns.
26213         (prepare_perfect_loop_nest): Also allow size optimization.
26214         (pass_loop_distribution::execute): When optimizing a loop
26215         nest for size allow pattern replacement.
26217 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
26219         PR target/90568
26220         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26221         of xor.
26223 2019-05-23  Martin Liska  <mliska@suse.cz>
26225         PR sanitizer/90570
26226         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26227         expression similarly to gimplify_decl_expr.
26229 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26231         * cse.c (cse_dump_path): s/dump_file/f.
26233 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
26235         PR c++/90462
26236         * diagnostic-format-json.cc: Include "selftest.h".
26237         (json_from_expanded_location): Only add "file" key for non-NULL
26238         file strings.
26239         (json_from_location_range): Don't add "start" and "finish"
26240         children if they are UNKNOWN_LOCATION.
26241         (selftest::test_unknown_location): New selftest.
26242         (selftest::test_bad_endpoints): New selftest.
26243         (selftest::diagnostic_format_json_cc_tests): New function.
26244         * json.cc (json::object::get): New function.
26245         (selftest::test_object_get): New selftest.
26246         (selftest::json_cc_tests): Call it.
26247         * json.h (json::object::get): New decl.
26248         * selftest-run-tests.c (selftest::run_tests): Call
26249         selftest::diagnostic_format_json_cc_tests.
26250         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26251         decl.
26253 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
26254             Andrew Stubbs  <amd@codesourcery.com>
26256         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26257         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26258         (kernel): Rename to...
26259         (main_kernel): ... this.
26260         (load_image): Load _init_array and _fini_array kernels.
26261         (run): Add argument for kernel to run.
26262         (main): Run init_array_kernel before main_kernel, and
26263         fini_array_kernel after.
26264         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26265         amdgpu_hsa_kernel attribute on functions.
26266         (gcn_disable_constructors): Delete.
26267         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26268         * config/gcn/crt0.c (size_t): Define.
26269         (_init_array, _fini_array): New.
26270         (__preinit_array_start, __preinit_array_end,
26271         __init_array_start, __init_array_end,
26272         __fini_array_start, __fini_array_end): Declare weak references.
26274 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
26276         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26278 2019-05-22  Jason Merrill  <jason@redhat.com>
26280         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26282 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
26284         PR target/88483
26285         * config/i386/i386-options.c (ix86_init_machine_status): Set
26286         stack_frame_required to true.
26287         * config/i386/i386.c (ix86_get_frame_size): New function.
26288         (ix86_frame_pointer_required): Replace get_frame_size with
26289         ix86_get_frame_size.
26290         (ix86_compute_frame_layout): Likewise.
26291         (ix86_find_max_used_stack_alignment): Changed to void.  Set
26292         stack_frame_required.
26293         (ix86_finalize_stack_frame_flags): Always call
26294         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
26295         ix86_get_frame_size.
26296         * config/i386/i386.h (machine_function): Add stack_frame_required.
26298 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26300         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26302 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
26304         * common/config/aarch64/aarch64-common.c
26305         (struct aarch64_option_extension, struct processor_name_to_arch,
26306         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26307         aarch64_contains_opt,
26308         aarch64_get_extension_string_for_isa_flags): Change type of
26309         variables storing flags to uint64_t.
26310         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26311         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26312         * config/aarch64/aarch64.c (struct processor,
26313         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26314         aarch64_validate_march, aarch64_override_options,
26315         aarch64_option_print, aarch64_handle_attr_isa_flags,
26316         aarch64_declare_function_name, aarch64_start_file): Make flag
26317         variables uint64_t.
26318         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26319         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26320         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26321         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26322         * config/aarch64/driver-aarch64.c
26323         (struct aarch64_arch_extension, struct aarch64_core_data,
26324         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26325         flag variables uint64_t.
26326         * doc/invoke.texi: Add documentation for new arguments.
26328 2019-05-22  Richard Biener  <rguenther@suse.de>
26330         * alias.c (ao_ref_from_mem): Move stack-slot sharing
26331         rewrite ...
26332         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26334 2019-05-22  Martin Liska  <mliska@suse.cz>
26336         PR lto/90500
26337         * doc/extend.texi: Document the change.
26339 2019-05-22  Richard Biener  <rguenther@suse.de>
26341         PR tree-optimization/90450
26342         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26343         (mem_ref_hasher::equal): Check it.
26344         (mem_ref_alloc): Initialize it.
26345         (gather_mem_refs_stmt): Set it.
26347 2019-05-22  Richard Biener  <rguenther@suse.de>
26349         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26350         Add ABS_EXPR.
26351         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26352         as ABSU_EXPR.
26354 2019-05-22  Alan Modra  <amodra@gmail.com>
26356         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26357         (ASM_CPU_SPEC): Conditionally add -many.
26358         * config/rs6000/rs6000.c (rs6000_machine): New static var.
26359         (rs6000_machine_from_flags, emit_asm_machine): New functions..
26360         (rs6000_file_start): ..extracted from here, and modified to
26361         test all ISA bits.
26362         (rs6000_output_function_prologue): Emit .machine as necessary.
26364 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
26366         PR middle-end/90553
26367         * ira-lives.c (process_bb_node_lives): Consider defs
26368         for a call insn to be die before the call, not after.
26370         * function.c (assign_parm_setup_block): Raise alignment of
26371         stacked parameter only for STRICT_ALIGNMENT targets.
26373 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26375         * config/rs6000/constraints.md (define_register_constraint "wz"):
26376         Delete.
26377         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26378         RS6000_CONSTRAINT_wz.
26379         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26380         (rs6000_init_hard_regno_mode_ok): Adjust.
26381         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26382         * doc/md.texi (Machine Constraints): Adjust.
26384 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26386         * config/rs6000/constraints.md (define_register_constraint "wl"):
26387         Delete.
26388         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26389         RS6000_CONSTRAINT_wl.
26390         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26391         (rs6000_init_hard_regno_mode_ok): Adjust.
26392         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26393         * doc/md.texi (Machine Constraints): Adjust.
26395 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26397         * config/rs6000/constraints.md (define_register_constraint "wm"):
26398         Delete.
26399         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26400         RS6000_CONSTRAINT_wm.
26401         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26402         (rs6000_init_hard_regno_mode_ok): Adjust.
26403         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26404         * doc/md.texi (Machine Constraints): Adjust.
26406 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26408         * config/rs6000/constraints.md (define_register_constraint "wk"):
26409         Delete.
26410         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26411         RS6000_CONSTRAINT_wk.
26412         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26413         (rs6000_init_hard_regno_mode_ok): Adjust.
26414         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26415         * doc/md.texi (Machine Constraints): Adjust.
26417 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26419         * config/rs6000/constraints.md (define_register_constraint "wj"):
26420         Delete.
26421         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26422         RS6000_CONSTRAINT_wj.
26423         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26424         (rs6000_init_hard_regno_mode_ok): Adjust.
26425         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26426         (VS_64dm): Delete.
26427         * config/rs6000/vsx.md: Ditto.
26428         * doc/md.texi (Machine Constraints): Adjust.
26430 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
26432         * config/rs6000/constraints.md (define_register_constraint "wh"):
26433         Delete.
26434         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26435         RS6000_CONSTRAINT_wh.
26436         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26437         (rs6000_init_hard_regno_mode_ok): Adjust.
26438         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26439         * doc/md.texi (Machine Constraints): Adjust.
26441 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26443         PR target/90547
26444         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26445         Avoid calling gen_lowpart with CONST operand.
26447 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
26449         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26450         field template_last_to_copy.
26451         (ssa_create_duplicates): Set it, and use it.  Attempt to
26452         preserve more debug stmts.
26454 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26456         * config/i386/sse.md (VF1_AVX2): New mode iterator.
26457         (signbit<mode>2): New expander
26459 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
26461         PR bootstrap/87338
26462         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26463         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26465 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26467         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26468         %ebx and %ecx bafore calling cpuid with leaf 1 or
26469         non-constant leaf argument.
26471 2019-05-21  Alan Modra  <amodra@gmail.com>
26473         PR target/90545
26474         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26475         power9 direct move cost.
26477 2019-05-21  Richard Biener  <rguenther@suse.de>
26479         PR middle-end/90510
26480         * fold-const.c (fold_read_from_vector): New function.
26481         * fold-const.h (fold_read_from_vector): Declare.
26482         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26483         single-element insert permutations.  Canonicalize selector
26484         further and fix issue with last commit.
26486 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
26488         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26489         parameter with default value false to declaration.
26490         (split_edges_for_insertion): New inline function.  Wrapper for
26491         split_critical_edges with for_edge_insertion_p = true.
26492         * tree-cfg.c (split_critical_edges): Don't split non-critical
26493         edges if for_edge_insertion_p is false.  Fix whitespace.
26494         * tree-ssa-pre.c (pass_pre::execute): Call
26495         split_edges_for_insertion instead of split_critical_edges.
26496         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26497         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26498         (pass_data_sink_code): Update function name in the comment.
26500 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
26502         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26503         around is_value_included_in that knows how to handle BIT_AND_EXPR.
26504         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
26505         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26506         positives.
26508 2019-05-21  Martin Liska  <mliska@suse.cz>
26510         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26511         an extra newline.
26512         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26513         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26514         vec_lvsr.
26515         * config/rs6000/rs6000.c (rs6000_option_override_internal):
26516         Quote a C type.
26517         (rs6000_function_arg): Likewise.
26518         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26519         (rs6000_expand_ternop_builtin): Use interval syntax.
26520         (get_element_number): Likewise.
26521         (altivec_expand_builtin): Likewise.
26522         (rs6000_get_function_versions_dispatcher): Quote target_clones.
26524 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
26526         PR c++/59813
26527         PR target/90418
26528         * function.h (struct function): Add calls_eh_return member.
26529         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26530         gimplifying __builtin_eh_return call.
26531         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26532         to cfun.
26533         (expand_call_inline): Or in src_cfun->calls_eh_return into
26534         dst_cfun->calls_eh_return.
26535         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26536         cfun->calls_eh_return.
26537         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26538         * lto-streamer-out.c (output_struct_function_base): Write
26539         calls_eh_return.
26541 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
26543         PR rtl-optimization/43147
26544         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26545         IX86_BUILTIN_SHUFPD.
26547 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
26549         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26550         (refs_may_alias_p_1): ... here; update stats.
26551         (refs_may_alias_p): Do not update stats here.
26553 2019-05-20  Richard Biener  <rguenther@suse.de>
26555         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26556         doesn't produce pointers.
26557         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26558         the first operand points to.
26560 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
26562         * tree-ssa-alias.c (compare_sizes): New function.
26563         (sompare_type_sizes): New function
26564         (aliasing_component_refs_p): Use it.
26565         (indirect_ref_may_alias_decl_p): Likewise.
26567 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26569         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26571 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26573         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26574         (LIBLSAN_EARLY_SPEC): Likewise.
26575         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26577 2019-05-20  Martin Liska  <mliska@suse.cz>
26579         * config/i386/i386.c (ix86_libc_has_fast_function):
26580         Add ATTRIBUTE_UNUSED for the argument.
26582 2019-05-20  Richard Biener  <rguenther@suse.de>
26584         * gimple-match-head.c: Include vec-perm-indices.h.
26585         * generic-match-head.c: Likewise.
26586         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26587         is included.
26588         * fold-const.c (fold_vec_perm): Export.
26589         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26590         (match.pd): ...here.
26592 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
26594         * cfgloop.h (struct loop): Add simdlen member.
26595         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26596         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26597         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26598         as new argument to autovectorize_vector_sizes target hook.  If
26599         loop->simdlen, pick up vector size where the vectorization factor
26600         is equal to loop->simd, and if there is none, fall back to the first
26601         successful one.
26602         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26603         caller.
26604         * omp-low.c (omp_clause_aligned_alignment): Likewise.
26605         * omp-general.c (omp_max_vf): Likewise.
26606         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26607         * tree-vect-slp.c (vect_slp_bb): Likewise.
26608         * target.def (autovectorize_vector_sizes): Add ALL argument and
26609         document it.
26610         * doc/tm.texi: Adjust documentation.
26611         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26612         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26613         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26614         bool argument.
26615         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26616         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26617         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26618         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
26619         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26620         preferred vector size is not 512-bit or 256-bit, just put those
26621         unpreferred ones last.
26623 2019-05-20  Martin Liska  <mliska@suse.cz>
26625         * targhooks.c (default_libc_has_fast_function): New function.
26626         * targhooks.h (default_libc_has_fast_function): Likewise.
26628 2019-05-20  Martin Liska  <mliska@suse.cz>
26630         PR middle-end/90263
26631         * builtins.c (expand_builtin_memory_copy_args): When having a
26632         target with fast mempcpy implementation do now use memcpy.
26633         * config/i386/i386.c (ix86_libc_has_fast_function): New.
26634         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26635         * doc/tm.texi: Likewise.
26636         * doc/tm.texi.in: Likewise.
26637         * target.def:
26638         * expr.c (emit_block_move_hints): Add 2 new arguments.
26639         * expr.h (emit_block_move_hints): Bail out when libcall
26640         to memcpy would be used.
26642 2019-05-20  Martin Liska  <mliska@suse.cz>
26644         * profile-count.c: Add vertical spacing in order
26645         to separate functions.
26646         * profile-count.h: Likewise.
26648 2019-05-20  Martin Liska  <mliska@suse.cz>
26650         * profile-count.h: Do not use full qualified
26651         names if possible.
26652         * profile-count.c (profile_count::to_frequency): Likewise.
26654 2019-05-20  Martin Liska  <mliska@suse.cz>
26656         * profile-count.h (enum profile_quality): Use capital letters
26657         for enum value names.  Use the adjusted names.
26658         * profile-count.c: Use the adjusted names.
26660 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26662         * config/rs6000/constraints.md (define_register_constraint "wH"):
26663         Delete.
26664         (define_register_constraint "wI"): Delete.
26665         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26666         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26667         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26668         (rs6000_init_hard_regno_mode_ok): Adjust.
26669         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26670         resp. "d", or with "wa" as appropriate, all with "p8v".
26671         * config/rs6000/vsx.md: Ditto.
26672         * doc/md.texi (Machine Constraints): Adjust.
26674 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26676         * config/rs6000/constraints.md (define_register_constraint "wy"):
26677         Delete.
26678         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26679         RS6000_CONSTRAINT_wy.
26680         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26681         (rs6000_init_hard_regno_mode_ok): Adjust.
26682         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26683         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26684         (define_mode_attr Fisa): New.
26685         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26686         * doc/md.texi (Machine Constraints): Adjust.
26688 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26690         * config/rs6000/constraints.md (define_register_constraint "wu"):
26691         Delete.
26692         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26693         RS6000_CONSTRAINT_wu.
26694         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26695         (rs6000_init_hard_regno_mode_ok): Adjust.
26696         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26697         both with "p8v".
26698         (define_mode_attr Fa): Delete.
26699         * config/rs6000/vsx.md: Ditto.
26700         * doc/md.texi (Machine Constraints): Adjust.
26702 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26704         * config/rs6000/constraints.md (define_register_constraint "wJ"):
26705         Delete.
26706         (define_register_constraint "wK"): Delete.
26707         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26708         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26709         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26710         (rs6000_init_hard_regno_mode_ok): Adjust.
26711         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26712         Replace "wK" constraint by "wH" with "p9v".
26713         * config/rs6000/vsx.md: Ditto.
26714         * doc/md.texi (Machine Constraints): Adjust.
26716 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26718         * config/rs6000/constraints.md (define_register_constraint "wb"):
26719         Delete.
26720         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26721         RS6000_CONSTRAINT_wb.
26722         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26723         (rs6000_init_hard_regno_mode_ok): Adjust.
26724         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26725         * config/rs6000/vsx.md: Ditto.
26726         * doc/md.texi (Machine Constraints): Adjust.
26728 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26730         * config/rs6000/constraints.md (define_register_constraint "wo"):
26731         Delete.
26732         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26733         RS6000_CONSTRAINT_wo.
26734         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26735         (rs6000_init_hard_regno_mode_ok): Adjust.
26736         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26737         * config/rs6000/altivec.md: Ditto.
26738         * doc/md.texi (Machine Constraints): Adjust.
26740 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
26742         * config/darwin-c.c (darwin_register_objc_includes): Do not
26743         prepend the sysroot when building gnu-runtime header search
26744         paths.
26746 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
26748         * config/darwin.c (darwin_file_end): Use switch_to_section ()
26749         instead of direct output of the asm.
26751 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
26753         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26754         argument to be type bool (was int before).
26755         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
26756         at first use.  Use type bool for some variables.  Fix a theoretical
26757         eh_return bug for svr4.
26759 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
26761         * config/rs6000/rs6000.md (isa): New attribute.
26762         (enabled): New attribute.
26764 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
26766         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26767         assemble_start_function and assemble_end_function.
26769 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
26771         PR middle-end/89433
26772         * omp-general.c (oacc_verify_routine_clauses): Change formal
26773         parameters.  Add checking if already marked with an OpenACC
26774         'routine' directive.  Adjust all users.
26776         PR middle-end/89433
26777         * omp-general.c (oacc_build_routine_dims): Move some of its
26778         processing into...
26779         (oacc_verify_routine_clauses): ... this new function.
26780         * omp-general.h (oacc_verify_routine_clauses): New prototype.
26782 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
26784         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26785         formating of picbase labels to match other ports.
26787 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
26789         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26790         in the generated code.
26792 2019-05-16  Martin Sebor  <msebor@redhat.com>
26794         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26795         identifiers, keywords, operators, and types in diagnostics.  Correct
26796         quoting, spelling, and sentence capitalization issues.
26797         (expand_builtin_atomic_is_lock_free): Same.
26798         (fold_builtin_next_arg): Same.
26799         * cfgexpand.c (expand_one_var): Same.
26800         (tree_conflicts_with_clobbers_p): Same.
26801         (expand_asm_stmt): Same.
26802         (verify_loop_structure): Same.
26803         * cgraphunit.c (process_function_and_variable_attributes): Same.
26804         * collect-utils.c (collect_execute): Same.
26805         * collect2.c (maybe_run_lto_and_relink): Same.
26806         (is_lto_object_file): Same.
26807         (scan_prog_file): Same.
26808         * convert.c (convert_to_real_1): Same.
26809         * dwarf2out.c (dwarf2out_begin_prologue): Same.
26810         * except.c (verify_eh_tree): Same.
26811         * gcc.c (execute): Same.
26812         (eval_spec_function): Same.
26813         (run_attempt): Same.
26814         (driver::set_up_specs): Same.
26815         (compare_debug_auxbase_opt_spec_function): Same.
26816         * gcov-tool.c (unlink_gcda_file): Same.
26817         (do_merge): Same.
26818         (do_rewrite): Same.
26819         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26820         * gimplify.c (gimplify_asm_expr): Same.
26821         (gimplify_adjust_omp_clauses): Same.
26822         * hsa-gen.c (gen_hsa_addr_insns): Same.
26823         (gen_hsa_insns_for_load): Same.
26824         (gen_hsa_cmp_insn_from_gimple): Same.
26825         (gen_hsa_insns_for_operation_assignment): Same.
26826         (gen_get_level): Same.
26827         (gen_hsa_alloca): Same.
26828         (omp_simple_builtin::generate): Same.
26829         (gen_hsa_atomic_for_builtin): Same.
26830         (gen_hsa_insns_for_call): Same.
26831         * input.c (dump_location_info): Same.
26832         * ipa-devirt.c (compare_virtual_tables): Same.
26833         * ira.c (ira_setup_eliminable_regset): Same.
26834         * lra-assigns.c (lra_assign): Same.
26835         * lra-constraints.c (lra_constraints): Same.
26836         * lto-streamer-in.c (lto_input_mode_table): Same.
26837         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26838         (merge_and_complain): Same.
26839         (compile_offload_image): Same.
26840         (compile_images_for_offload_targets): Same.
26841         (debug_objcopy): Same.
26842         (run_gcc): Same.
26843         (main): Same.
26844         * opts.c (print_specific_help): Same.
26845         (parse_no_sanitize_attribute): Same.
26846         (print_help): Same.
26847         (handle_param): Same.
26848         * plugin.c (add_new_plugin): Same.
26849         (parse_plugin_arg_opt): Same.
26850         (try_init_one_plugin): Same.
26851         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26852         operators, and types in diagnostics.  Correct quoting and spelling
26853         issues.
26854         * read-rtl-function.c (parse_edge_flag_token): Same.
26855         (function_reader::parse_enum_value): Same.
26856         * reg-stack.c (check_asm_stack_operands): Same.
26857         * regcprop.c (validate_value_data): Same.
26858         * sched-rgn.c (make_pass_sched_fusion): Same.
26859         * stmt.c (check_unique_operand_names): Same.
26860         * targhooks.c (default_target_option_pragma_parse): Same.
26861         * tlink.c (recompile_files): Same.
26862         * toplev.c (process_options): Same.
26863         (do_compile): Same.
26864         * trans-mem.c (diagnose_tm_1): Same.
26865         (ipa_tm_scan_irr_block): Same.
26866         (ipa_tm_diagnose_transaction): Same.
26867         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
26868         format a tree code name in a diagnostic.
26869         (verify_types_in_gimple_min_lval): Same.
26870         (verify_types_in_gimple_reference): Same.
26871         (verify_gimple_call): Same.
26872         (verify_gimple_assign_unary): Same.
26873         (verify_gimple_assign_binary): Same.
26874         (verify_gimple_assign_ternary): Same.
26875         (verify_gimple_assign_single): Same.
26876         (verify_gimple_switch): Same.
26877         (verify_gimple_label): Same.
26878         (verify_gimple_phi): Same.
26879         (verify_gimple_in_seq): Same.
26880         (verify_eh_throw_stmt_node): Same.
26881         (collect_subblocks): Same.
26882         (gimple_verify_flow_info): Same.
26883         (do_warn_unused_result): Same.
26884         * tree-inline.c (expand_call_inline): Same.
26885         * tree-into-ssa.c (update_ssa): Same.
26886         * tree.c (tree_int_cst_elt_check_failed): Same.
26887         (tree_vec_elt_check_failed): Same.
26888         (omp_clause_operand_check_failed): Same.
26889         (verify_type_variant): Same.
26890         (verify_type): Same.
26891         * value-prof.c (verify_histograms): Same.
26892         * varasm.c (assemble_start_function): Same.
26894 2019-05-16  Martin Sebor  <msebor@redhat.com>
26896         * config/i386/i386-expand.c (get_element_number): Quote keywords
26897         and other internal names in diagnostics.  Adjust other diagnostic
26898         formatting issues noted by -Wformat-diag.
26899         * config/i386/i386-features.c
26900         (ix86_mangle_function_version_assembler_name): Same.
26901         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26902         * config/i386/i386.c (ix86_function_type_abi): Same.
26903         (ix86_function_ms_hook_prologue): Same.
26904         (classify_argument): Same.
26905         (ix86_expand_prologue): Same.
26906         (ix86_md_asm_adjust): Same.
26907         (ix86_memmodel_check): Same.
26909 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
26911         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26912         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26913         and fpxx modes.
26915 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26917         PR target/90497
26918         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26919         intrinsics without SSE/SSE2/SSSE3.
26920         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26921         check.
26922         (*mmx_uavgv8qi3): Likewise.
26924 2019-05-17  Richard Biener  <rguenther@suse.de>
26926         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26927         VEC_PERM_EXPR as __VEC_PERM with -gimple.
26929 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
26931         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26932         vec_sldw insn pattern.
26934 2019-05-17  Richard Biener  <rguenther@suse.de>
26936         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26938 2019-05-17  Martin Liska  <mliska@suse.cz>
26940         PR driver/90496
26941         * toplev.c (output_stack_usage): With LTO and sanitizer it
26942         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26943         has no file location.
26945 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
26947         PR c++/90484
26948         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26949         sz0 is equal to sz1, instead return false in that case.
26951         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26952         has non-constant expression, force sctx.lane and use two
26953         argument IFN_GOMP_SIMD_LANE instead of single argument.
26954         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26955         two argument IFN_GOMP_SIMD_LANE without lhs.
26956         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26957         member.
26958         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26959         Define.
26960         (LOOP_REQUIRES_VERSIONING): Or in
26961         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26962         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26963         simd_if_cond.
26964         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26965         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26966         from simd if clause if needed.
26968 2019-05-16  Richard Biener  <rguenther@suse.de>
26970         * tree-affine.c (expr_to_aff_combination): New function split
26971         out from...
26972         (tree_to_aff_combination): ... here.
26973         (aff_combination_expand): Avoid building a GENERIC tree.
26975 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
26977         * cgraphunit.c (cgraph_node::expand_thunk): Remove
26978         assemble_start_function and assemble_end_function calls.
26979         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26980         assemble_start_function and assemble_end_function.
26981         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26982         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26983         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26984         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26985         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26986         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26987         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26988         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26989         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26990         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26991         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26992         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26993         Likewise.
26994         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26995         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26996         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26997         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26998         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26999         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27000         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27001         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27002         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27003         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27004         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27005         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27006         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27007         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27008         Likewise.
27009         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27010         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27011         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27013 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
27015         * tree-ssa-alias.c (alias_stats): Add
27016         aliasing_component_refs_p_may_alias and
27017         aliasing_component_refs_p_no_alias.
27018         (dump_alias_stats): Print aliasing_component_refs_p stats.
27019         (aliasing_component_refs_p): Update stats.
27021 2019-05-16  Martin Liska  <mliska@suse.cz>
27023         PR lto/90500
27024         * multiple_target.c (expand_target_clones): Do not allow
27025         target_clones being used with a symbol that is an alias.
27027 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
27029         PR tree-optimization/90394
27030         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27031         positives rather than ICE for cases where (code2 == NE_EXPR
27032         && code1 == BIT_AND_EXPR).
27034 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
27036         PR fortran/90329
27037         * tree-core.h (struct tree_decl_common): Document
27038         decl_nonshareable_flag for PARM_DECLs.
27039         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27040         * calls.c (expand_call): Don't try tail call if caller
27041         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27042         passed on the stack and callee needs to pass any arguments on the
27043         stack.
27044         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27045         else if instead of series of mutually exclusive ifs.  Handle
27046         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27047         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27049         * lto-streamer.h (LTO_major_version): Bump to 9.
27051 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
27053         PR tree-optimization/90106
27054         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27055         new parameter as new internal function call, also move it to new
27056         basic block.
27057         (use_internal_fn): Pass internal function call to
27058         shrink_wrap_one_built_in_call_with_conds.
27060 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
27062         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27063         max_vf to 1.
27064         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27065         safelen_int and set loop->dont_vectorize.
27067 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27069         PR target/89021
27070         * config/i386/i386-builtin.def: Enable MMX intrinsics with
27071         SSE/SSE2/SSSE3.
27072         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27073         Likewise.
27074         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27075         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27076         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27077         is defined.
27079 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27081         PR target/89021
27082         * config/i386/mmx.md (*vec_dupv2sf): Changed to
27083         define_insn_and_split to support SSE emulation.
27084         (*vec_extractv2sf_0): Likewise.
27085         (*vec_extractv2sf_1): Likewise.
27086         (*vec_extractv2si_0): Likewise.
27087         (*vec_extractv2si_1): Likewise.
27088         (*vec_extractv2si_zext_mem): Likewise.
27089         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27090         (vec_extractv2sf_1 splitter): Likewise.
27091         (vec_extractv2sfsf): Likewise.
27092         (vec_setv2si): Likewise.
27093         (vec_extractv2si_1 splitter): Likewise.
27094         (vec_extractv2sisi): Likewise.
27095         (vec_setv4hi): Likewise.
27096         (vec_extractv4hihi): Likewise.
27097         (vec_setv8qi): Likewise.
27098         (vec_extractv8qiqi): Likewise.
27099         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27100         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27101         (vec_extractv2sisi): Likewise.
27102         (vec_extractv4hihi): Likewise.
27103         (vec_extractv8qiqi): Likewise.
27104         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27105         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27106         (vec_initv2sisi): Likewise.
27107         (vec_initv4hihi): Likewise.
27108         (vec_initv8qiqi): Likewise.
27109         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
27110         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27111         (vec_setv4hi): Likewise.
27112         (vec_setv8qi): Likewise.
27114 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27116         PR target/89021
27117         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27118         TARGET_MMX_WITH_SSE.
27119         (MMXMODE:*mov<mode>_internal): Likewise.
27120         (MMXMODE:movmisalign<mode>): Likewise.
27122 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27124         PR target/89021
27125         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27126         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27127         (sse2_cvtpd2pi): Ditto.
27128         (sse2_cvttpd2pi): Ditto.
27129         (*vec_concatv2sf_sse4_1): Ditto.
27130         (*vec_concatv2sf_sse): Ditto.
27131         (*vec_concatv2si_sse4_1): Ditto.
27132         (*vec_concatv2si): Ditto.
27133         (*vec_concatv4si_0): Ditto.
27134         (*vec_concatv2di_0): Ditto.
27136 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27138         PR target/89021
27139         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27141 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27143         PR target/89021
27144         * config/i386/sse.md (ssse3_palignrdi): Changed to
27145         define_insn_and_split to support SSE emulation.
27147 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27149         PR target/89021
27150         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27152 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27154         PR target/89021
27155         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27156         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
27157         SSE emulation.
27159 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27161         PR target/89021
27162         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27163         or TARGET_MMX_WITH_SSE.
27164         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27166 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27168         PR target/89021
27169         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27171 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27173         PR target/89021
27174         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27175         Changed to define_insn_and_split to support SSE emulation.
27177 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27179         PR target/89021
27180         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27181         Changed to define_insn_and_split to support SSE emulation.
27183 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27185         PR target/89021
27186         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27187         (*mmx_<emms>): This.
27188         (mmx_<emms>): New expander.
27190 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27192         PR target/89021
27193         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27194         support.
27195         (*sse2_umulv1siv1di3): Add SSE2 emulation.
27197 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27199         PR target/89021
27200         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27202 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27204         PR target/89021
27205         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27207 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27209         PR target/89021
27210         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27211         TARGET_MMX_WITH_SSE.
27212         (*mmx_uavgv4hi3): Add SSE emulation.
27214 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27216         PR target/89021
27217         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27218         and TARGET_MMX_WITH_SSE.
27219         (*mmx_uavgv8qi3): Add SSE emulation.
27221 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27223         PR target/89021
27224         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27225         maskmovdqu for __MMX_WITH_SSE__.
27227 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27229         PR target/89021
27230         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27231         TARGET_MMX and TARGET_MMX_WITH_SSE.
27232         (*mmx_umulv4hi3_highpart): Add SSE emulation.
27234 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27236         PR target/89021
27237         * config/i386/mmx.md (mmx_pmovmskb): Changed to
27238         define_insn_and_split to support SSE emulation.
27240 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27242         PR target/89021
27243         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27244         and TARGET_MMX_WITH_SSE.
27245         (mmx_<code>v8qi3): Likewise.
27246         (smaxmin:<code>v4hi3): New.
27247         (umaxmin:<code>v8qi3): Likewise.
27248         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27249         (umaxmin:*mmx_<code>v8qi3): Likewise.
27251 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27253         PR target/89021
27254         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27255         TARGET_MMX_WITH_SSE.
27256         (*mmx_pinsrw): Add SSE emulation.
27258 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27260         PR target/89021
27261         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27263 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27265         PR target/89021
27266         * config/i386/sse.md (sse_cvtpi2ps): Changed to
27267         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
27268         SSE emulation.
27270 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27272         PR target/89021
27273         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27274         (sse_cvttps2pi): Likewise.
27276 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27278         PR target/89021
27279         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27280         TARGET_MMX_WITH_SSE.
27281         (mmx_pshufw_1): Add SSE emulation.
27282         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27283         TARGET_MMX_WITH_SSE to support SSE emulation.
27285 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27287         PR target/89021
27288         * config/i386/constraints.md (Yw): New constraint.
27289         * config/i386/mmx.md (*vec_dupv2si): Changed to
27290         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27291         support SSE emulation.
27293 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27295         PR target/89021
27296         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27297         TARGET_MMX_WITH_SSE.
27298         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
27299         support.
27300         (mmx_gt<mode>3): Likewise.
27302 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27304         PR target/89021
27305         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27306         TARGET_MMX_WITH_SSE.  Add SSE support.
27308 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27310         PR target/89021
27311         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27312         TARGET_MMX_WITH_SSE.
27313         (any_logic:<code><mode>3): New.
27314         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27315         Add SSE support.
27317 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27319         PR target/89021
27320         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27321         TARGET_MMX_WITH_SSE.  Add SSE emulation.
27322         (mmx_<shift_insn><mode>3): Likewise.
27323         (ashr<mode>3): New.
27324         (<shift_insn><mode>3): Likewise.
27326 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27328         PR target/89021
27329         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27330         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
27332 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27334         PR target/89021
27335         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27336         TARGET_MMX_WITH_SSE.
27337         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27338         SSE support.
27340 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27342         PR target/89021
27343         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27344         TARGET_MMX_WITH_SSE.
27345         (mulv4hi3): New.
27346         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
27347         support.
27349 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27351         PR target/89021
27352         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27353         (plusminus:mmx_<plusminus_insn><mode>3): Check
27354         TARGET_MMX_WITH_SSE.
27355         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27356         (<plusminus_insn><mode>3): New.
27357         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27358         (*mmx_<plusminus_insn><mode>3): Likewise.
27360 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27362         PR target/89021
27363         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27364         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27365         prototype.
27366         * config/i386/mmx.m (mmx_punpckhbw): Changed to
27367         define_insn_and_split to support SSE emulation.
27368         (mmx_punpcklbw): Likewise.
27369         (mmx_punpckhwd): Likewise.
27370         (mmx_punpcklwd): Likewise.
27371         (mmx_punpckhdq): Likewise.
27372         (mmx_punpckldq): Likewise.
27374 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27375             Uros Bizjak  <ubizjak@gmail.com>
27377         PR target/89021
27378         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27379         New function.
27380         (ix86_split_mmx_pack): Likewise.
27381         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27382         New prototype.
27383         (ix86_split_mmx_pack): Likewise.
27384         * config/i386/i386.md (mmx_isa): New.
27385         (enabled): Also check mmx_isa.
27386         * config/i386/mmx.md (any_s_truncate): New code iterator.
27387         (s_trunsuffix): New code attr.
27388         (mmx_packsswb): Removed.
27389         (mmx_packssdw): Likewise.
27390         (mmx_packuswb): Likewise.
27391         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27392         MMX packsswb/packuswb with SSE2.
27393         (mmx_packssdw): Likewise.
27394         * config/i386/predicates.md (register_mmxmem_operand): New.
27396 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27398         PR target/89021
27399         * config/i386/i386-c.c (ix86_target_macros_internal): Define
27400         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27401         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27402         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27403         (ix86_vector_mode_supported_p): Likewise.
27404         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27406 2019-05-15  Martin Liska  <mliska@suse.cz>
27408         PR middle-end/90478
27409         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27410         Check for overflow.
27412 2019-05-15  Richard Biener  <rguenther@suse.de>
27414         * tree-into-ssa.c (pass_build_ssa::execute): Run
27415         update_address_taken before going into SSA.
27417 2019-05-15  Richard Biener  <rguenther@suse.de>
27419         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27420         as __BIT_FIELD_REF with type with -gimple.
27422 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
27424         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27425         semantically equivalent branches (left over after prior refactorings).
27427 2019-05-15  Richard Biener  <rguenther@suse.de>
27429         PR tree-optimization/88828
27430         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27431         bogus check.
27433 2019-05-14  Richard Biener  <rguenther@suse.de>
27435         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27436         as __VIEW_CONVERT with -gimple.
27438 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
27440         PR target/82920
27441         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27442         Darwin.
27444 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
27446         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27447         define_split to become a define_insn_and_split.
27449 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
27451         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27452         arguments.
27453         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27454         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27455         (sibcall_epilogue): Adjust.
27456         (epilogue): Adjust.
27458 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27460         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27461         to unsupported ones.
27462         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27463         * config.host: Likewise.
27464         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27465         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27466         __svr4__]: Remove "brand" fallback.
27467         [!KSTAT_DATA_STRING]: Remove.
27468         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27469         to *-*-solaris2*.
27470         (comdat_group): Likewise.
27471         (set_have_as_tls): Likewise.
27472         (gcc_cv_target_dl_iterate_phdr): Likewise.
27473         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27474         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27475         * configure: Regenerate.
27476         * doc/install.texi: Simplify Solaris target triplets.
27477         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27478         (Specific, *-*-solaris2*): Document Solaris 10 removal.
27479         Remove Solaris 10 references.
27480         Remove obsolete Solaris bug reference.
27481         (Specific, sparc-sun-solaris2.10): Remove.
27483 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27485         * config/i386/i386.md (any_div): New code iterator.
27486         (paired_mod): New code attribute.
27487         (sgnprefix): Handle DIV and UDIV RTXes.
27488         (u): Ditto.
27489         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27490         and udivmod<mode>4 patterns using any_div code iterator.
27491         (divmod splitters): Macroize splitters using any_div code iterator.
27492         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27493         (*udivmodsi4_pow2_zext_2): Ditto.
27494         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27495         and *udivmod<mode>4_noext patterns using any_div code iterator.
27496         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27497         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27498         patterns using any_div code iterator.
27499         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27500         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27501         patterns using any_div code iterator.
27502         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27503         udivmodhiqi3 patterns using any_extend code iterator.
27505 2019-05-14  Richard Biener  <rguenther@suse.de>
27506             H.J. Lu  <hongjiu.lu@intel.com>
27508         PR tree-optimization/88828
27509         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27510         permuting in a single non-constant element not extracted
27511         from a vector.
27513 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
27515         * internal-fn.def (SIGNBIT): New.
27516         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27517         defined.
27518         (signbitv4sf2): Likewise.
27520 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
27522         PR target/90357
27523         * config/mips/mips.c (mips_split_move): Skip forward SRC into
27524         next insn when the SRC reg is dead.
27526 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
27528         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27529         (alloc_cand_and_find_basis): Ditto.
27530         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27531         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27532         (create_add_imm_cand, slsr_process_cast): Ditto.
27533         (slsr_process_copy, replace_mult_candidate): Ditto.
27534         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27535         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27536         (pass_strength_reduction::execute): Init the first NULL element.
27538 2019-05-13  Nathan Sidwell  <nathan@acm.org>
27540         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
27541         (run_attempt): Reformat line break.
27543 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
27545         PR target/90418
27546         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27547         data registers in sibcall epilogues.
27548         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27550 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27552         PR target/89221
27553         * configure.ac (--enable-frame-pointer):
27554         Disable by default for cygwin and mingw.
27555         * configure: Regenerate.
27557 2019-05-13  Nathan Sidwell  <nathan@acm.org>
27559         * dwarf2out.c (breakout_comdat_types): Move comment to correct
27560         piece of code.
27561         (const_ok_for_output_1): Balance parens around #if/#else/#endif
27562         (gen_member_die): Move abstract origin check earlier.  Only VARs
27563         can be static_inline_p.  Simplify splicing control flow.
27565 2019-05-13  Richard Biener  <rguenther@suse.de>
27567         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27568         VIEW_CONVERT_EXPR.
27569         (vect_build_slp_tree_1): Likewise.
27571 2019-05-13  Richard Biener  <rguenther@suse.de>
27573         PR tree-optimization/90402
27574         * tree-if-conv.c (tree_if_conversion): Value number only
27575         the loop body by making the latch an exit of the region
27576         as well.
27577         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27578         processing PHIs.
27579         (do_rpo_vn): Deal with multiple edges into the entry block
27580         that are not backedges inside the region by skipping PHIs
27581         of the entry block.
27583 2019-05-13  Richard Biener  <rguenther@suse.de>
27585         PR tree-optimization/90316
27586         * tree-ssa-pre.c (insert_aux): Fold into ...
27587         (insert): ... this function.  Use a RPO walk to reduce the
27588         number of required iterations.
27590 2019-05-13  Martin Liska  <mliska@suse.cz>
27592         PR tree-optimization/90416
27593         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27594         string instead of passing the second part as va_arg argument.
27596 2019-05-13  Martin Liska  <mliska@suse.cz>
27598         PR gcov-profile/90380
27599         * gcov.c (handle_cycle): Do not support zero cycle count,
27600         it should not be possible.
27601         (path_contains_zero_cycle_arc): New function.
27602         (circuit): Ignore zero cycle arc counts.
27604 2019-05-13  Martin Liska  <mliska@suse.cz>
27606         PR gcov-profile/90380
27607         * gcov.c (enum loop_type): Remove the enum and
27608         the operator.
27609         (handle_cycle): Assert that we should not reach
27610         a negative count.
27611         (circuit): Use loop_found instead of a tri-state loop_type.
27612         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27613         happen.
27615 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
27617         PR target/82920
27618         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27619         (ix86_output_indirect_branch_via_reg): Use output mechanism
27620         accounting for __USER_LABEL_PREFIX__.
27621         (ix86_output_indirect_branch_via_push): Likewise.
27622         (ix86_output_function_return): Likewise.
27623         (ix86_output_indirect_function_return): Likewise.
27625 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
27627         * doc/md.texi: Document use of code attributes in rtx patterns.
27628         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27629         * read-rtl.c (find_code): Split out search loops into...
27630         (maybe_find_code): ...this new function.
27631         (check_code_iterator): Make the error message more informative.
27632         (check_code_attribute): New function.
27633         (rtx_reader::rtx_alloc_for_name): Likewise.
27634         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27635         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27636         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27637         <max_opp> directly as an rtx code instead of via a match_operator.
27638         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27639         (<su>abd<mode>_3): Update accordingly.
27641 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
27643         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27644         is given, print the state of the EH "save world" computation for
27645         Darwin.
27647 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
27649         PR c++/59813
27650         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27651         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27653 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27655         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27656         Use pinsrd for TARGET_SSE4_1.
27657         * config/i386/sse.md (movdi_to_sse): Ditto.
27659 2019-05-10  Richard Biener  <rguenther@suse.de>
27661         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27662         (do_rpo_vn): Initialize next_value_id.
27664 2019-05-10  Martin Liska  <mliska@suse.cz>
27666         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27667         Fix plural form.
27669 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
27671         PR tree-optimization/90385
27672         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27673         arguments of the exit phis.
27675         PR c++/90383
27676         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27677         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27678         id->do_not_fold.
27679         (copy_tree_body_r): Likewise.
27680         (copy_fn): Set id.do_not_fold to true.
27682 2019-05-10  Martin Liska  <mliska@suse.cz>
27684         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27685         Reapply changes from r269790.
27687 2019-05-10  Martin Liska  <mliska@suse.cz>
27689         PR middle-end/90340
27690         * doc/invoke.texi: New params.
27691         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27692         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27693         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27694         Use it.
27695         * tree-switch-conversion.h (struct jump_table_cluster):
27696         Likewise.
27698 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
27700         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27702 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
27704         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27706 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
27708         PR rtl-optimization/88879
27709         * sel-sched.c (sel_target_adjust_priority): Remove assert.
27711 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
27713         PR target/90405
27714         * config/arm/arm.c (callee_saved_reg_p): Move before
27715         thumb_find_work_register.
27716         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27717         thumb_find_work_register.  Only call df_get_live_out once.
27718         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27719         (thumb_find_work_register): Use
27720         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27721         algorithms to locate a spare call clobbered reg.
27723 2019-05-09  Martin Liska  <mliska@suse.cz>
27725         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27726         and MAX_EXPR in GIMPLE FE format.
27728 2019-05-09  Martin Liska  <mliska@suse.cz>
27730         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27731         * gimple-pretty-print.c (dump_gimple_bb_header):
27732         Dump BB count.
27733         (pp_cfg_jump): Dump edge probability.
27734         * profile-count.c (profile_quality_as_string): Simplify
27735         with a static array.
27736         (parse_profile_quality): New function.
27737         (profile_count::dump): Simplify with a static array.
27738         (profile_count::from_gcov_type): Add new argument.
27739         * profile-count.h (parse_profile_quality): Likewise.
27740         * predict.h (set_hot_bb_threshold): New.
27741         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27742         New param.
27743         * predict.c (get_hot_bb_threshold): Set from the new param.
27744         (set_hot_bb_threshold): New.
27746 2019-05-09  Richard Biener  <rguenther@suse.de>
27748         PR tree-optimization/90395
27749         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27750         rewrite vector stores that throw internally.
27752 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
27754         * cif-code.def (CHKP): Remove.
27756         PR target/89221
27757         * configure.ac (--enable-frame-pointer): Disable by default for
27758         GNU systems.
27759         * configure: Regenerate.
27761 2019-05-09  Alan Modra  <amodra@gmail.com>
27763         PR target/89271
27764         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27765         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27766         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27767         cost for general <-> vsx when direct moves are available.
27768         Cost union classes at minimal cost for any reg in the class.
27769         Correct calculation for moves between vsx, float, and altivec.
27770         Don't return a low cost for moves between special regs.  Don't
27771         use hard coded register numbers.
27772         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27773         (rs6000_ira_change_pseudo_allocno_class): New function.
27774         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27775         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27776         alternatives.
27777         (movsi_internal1): Don't disparage vector alternatives.
27778         (mov<mode>_internal): Likewise, excepting alternative that
27779         will be split.
27780         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27781         we <- b alternative.
27783 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
27785         PR c++/59813
27786         PR tree-optimization/89060
27787         * tree-ssa-live.h (live_vars_map): New typedef.
27788         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27789         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27790         (struct compute_live_vars_data): New type.
27791         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27792         live_vars_at_stmt, destroy_live_vars): New functions.
27793         * tree-tailcall.c: Include tree-ssa-live.h.
27794         (live_vars, live_vars_vec): New global variables.
27795         (find_tail_calls): Perform variable life analysis before punting.
27796         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27797         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27798         member.
27799         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27800         Perform variable life analysis to select variables that really need
27801         clobbers added.
27802         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27803         instead set id->eh_landing_pad_dest and assert it is the same.
27804         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27806 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
27807             Richard Earnshaw  <rearnsha@arm.com>
27809         PR target/88167
27810         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27811         function.
27812         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27813         (thumb1_compute_save_core_reg_mask): Don't force a spare work
27814         register if both the epilogue and prologue can use call-clobbered
27815         regs.
27816         (thumb1_unexpanded_epilogue): Use
27817         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
27818         picking temporaries for restoring high regs to match that of the
27819         prologue where possible.
27820         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27821         the list of work registers.  Detect if the return address is still live
27822         at the end of the prologue and avoid using it for a work register if so.
27823         If the return address is not live, add LR to the list of pushable regs
27824         after the first pass.
27826 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
27828         PR tree-optimization/90078
27829         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27830         (INFTY): Increase the value for infinite cost.
27831         (struct comp_cost): Promote type of members to int64_t.
27832         (infinite_cost): Don't set complexity in initialization.
27833         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27834         overflows to infinite_cost.
27835         (adjust_setup_cost): Promote type of parameter and cost computation
27836         to int64_t.
27837         (struct ainc_cost_data, struct iv_ca): Promote type of member to
27838         int64_t.
27839         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27840         cost computation to int64_t.
27841         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27842         int64_t's format specifier in dump.
27844 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
27846         PR tree-optimization/90240
27847         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27848         with respect to scaling factor pre-computed for each basic block.
27849         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27850         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27851         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27852         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
27853         live range for array of loop's basic blocks.  Cleanup aux field of
27854         loop's basic blocks.
27856 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
27858         PR tree-optimization/90356
27859         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27861 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
27863         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27864         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27865         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27866         (ix86_handle_option): Handle -mavx512bf16.
27867         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27868         to extra_headers.
27869         * config/i386/avx512bf16vlintrin.h: New.
27870         * config/i386/avx512bf16intrin.h: New.
27871         * config/i386/cpuid.h (bit_AVX512BF16): New.
27872         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27873         * config/i386/i386-builtin-types.def: Add new types.
27874         * config/i386/i386-builtin.def: Add new builtins.
27875         * config/i386/i386-c.c (ix86_target_macros_internal): Define
27876         __AVX512BF16__.
27877         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27878         (ix86_option_override_internal): Handle BF16.
27879         (ix86_valid_target_attribute_inner_p): Ditto.
27880         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27881         * config/i386/i386-builtin.c (enum processor_features): Add
27882         F_AVX512BF16.
27883         (static const _isa_names_table isa_names_table): Ditto.
27884         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27885         (PTA_AVX512BF16): Ditto.
27886         * config/i386/i386.opt: Add -mavx512bf16.
27887         * config/i386/immintrin.h: Include avx512bf16intrin.h
27888         and avx512bf16vlintrin.h.
27889         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27890         avx512f_cvtneps2bf16_<mode><mask_name>,
27891         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27892         * config/i386/subst.md (mask_half): Add new subst.
27893         * doc/invoke.texi: Document -mavx512bf16.
27895 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27897         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27898         Delete declaration.
27899         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27900         (rs6000_debug_legitimize_reload_address): Delete.
27901         (rs6000_legitimize_reload_address_ptr): Delete.
27902         (rs6000_option_override_internal): Adjust.
27903         (mem_operand_gpr): Adjust comment.
27904         (legitimate_lo_sum_address_p): Ditto.
27905         (rs6000_legitimize_reload_address): Delete.
27906         (rs6000_debug_legitimize_reload_address): Delete.
27907         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27909 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
27911         PR target/89765
27912         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27913         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27914         to compute vector element selector for both constant and variable
27915         operands.
27917 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27919         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27920         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27921         ashrdi3_cvt using SWI48 mode iterator.
27923 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
27925         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27926         (aarch64_<su>abd<mode>_3): Likewise.
27927         (*aarch64_<su>abd<mode>_3): New define_insn.
27928         (<sur>sad<vsi2qi>): New define_expand.
27929         * config/aarch64/iterators.md: Added MAX_OPP attribute.
27930         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27931         (build_vect_cond_expr): Likewise.
27933 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27935         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27936         clobbers outside of accessible_reg_set.
27937         * config/i386/i386.c (ix86_conditional_register_usage):
27938         Disable register sets by clearing corresponding bits in
27939         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
27940         call_used_regs and don't clear corresponding reg_names array members.
27942 2019-05-07  Richard Biener  <rguenther@suse.de>
27944         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27945         not specified still compute a comp_vectype for invariant
27946         compares.
27948 2019-05-07  Richard Biener  <rguenther@suse.de>
27950         PR tree-optimization/90316
27951         * tree-ssa-pre.c (translate_vuse_through_block): When
27952         same_valid is NULL do not bother to search for a virtual
27953         PHI continuation.
27954         (phi_translate_1): When operands changed we cannot keep
27955         the same value-number so do not bother to ask whether
27956         that's possible from translate_vuse_through_block.
27958 2019-05-07  Martin Liska  <mliska@suse.cz>
27960         * bitmap.c (bitmap_register): Come up with
27961         alloc_descriptor_max_uid and assign it for
27962         a new bitmap.
27963         (register_overhead): Use get_descriptor as
27964         a descriptor.
27965         (release_overhead): New.
27966         (bitmap_elem_to_freelist): Call it.
27967         (bitmap_elt_clear_from): Likewise.
27968         (bitmap_obstack_free): Likewise.
27969         (bitmap_move): Sensitively release memory.
27970         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27971         (bitmap_initialize): Initialize alloc_descriptor to zero.
27972         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27974 2019-05-07  Richard Biener  <rguenther@suse.de>
27976         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27977         we build a SLP node.  Remove max_size and limiting.
27978         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27980 2019-05-07  Richard Biener  <rguenther@suse.de>
27982         PR tree-optimization/90316
27983         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27984         limit by reference.
27985         (walk_non_aliased_vuses): Take walking limit argument.
27986         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27987         walking if it is reached instead of just counting.
27988         (get_continuation_for_phi): Likewise.
27989         (walk_non_aliased_vuses): Likewise, instead of leaving counter
27990         limiting to the callback.
27991         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27992         (vn_reference_lookup_3): Likewise.
27993         (vn_reference_lookup_pieces): Likewise.
27994         (vn_reference_lookup): Likewise.
27995         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27996         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27997         (avail_exprs_stack::lookup_avail_expr): Likewise.
27999 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
28001         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28002         for comparaible types in the second direction even if first one
28003         hits incomparable type.
28005 2019-05-07  Richard Biener  <rguenther@suse.de>
28007         PR lto/90369
28008         * lto-wrapper.c (debug_objcopy): Use the original filename
28009         including archive offset for the filename used for -save-temps.
28011 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
28013         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28014         detection.
28016 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
28017             Hongtao Liu  <hongtao.liu@intel.com>
28019         PR target/89750
28020         PR target/86444
28021         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28022         Modified, original implementation isn't correct.
28024 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28026         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28027         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28028         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28029         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28030         (FRAME_POINTER_REGNUM): Change numbering.
28031         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28032         (alt_reg_names): Adjust.
28033         (rs6000_conditional_register_usage): Don't mark hard register 64 as
28034         fixed.
28035         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28036         (DWARF_FRAME_REGISTERS): Delete.
28037         (DWARF2_FRAME_REG_OUT): Fix whitespace.
28038         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28039         Adjust.
28040         (REG_ALLOC_ORDER): Adjust.
28041         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28042         (REG_CLASS_CONTENTS): Adjust.
28043         (RETURN_ADDR_RTX): Change comment.
28044         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28045         instead of 67.
28046         (REGISTER_NAMES): Adjust.
28047         (ADDITIONAL_REGISTER_NAMES): Adjust.
28048         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28050 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28052         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28053         Delete.
28054         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28055         (DWARF_FRAME_REGISTERS): Adjust.
28056         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28057         Adjust.
28058         (REG_ALLOC_ORDER): Adjust.
28059         (enum reg_class): Delete SPR_REGS.
28060         (REG_CLASS_NAMES): Delete SPR_REGS.
28061         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
28062         (REGISTER_NAMES): Adjust.
28063         (ADDITIONAL_REGISTER_NAMES): Adjust.
28064         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28065         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28066         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28067         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28068         (htm_spr_regno): Delete.
28069         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28070         argument.
28071         (rs6000_dbx_register_number): Adjust.
28073 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28075         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28077 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28079         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28080         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28082 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
28084         PR tree-optimization/88709
28085         PR tree-optimization/90271
28086         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28087         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28088         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
28089         variable.
28090         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28091         of the store merging group is larger than
28092         PARAM_STORE_MERGING_MAX_SIZE parameter.
28093         (split_group): Add bzero_first argument.  If set, always emit first
28094         the first store which must be = {} of the whole area and then for the
28095         rest of the stores consider all zero bytes as paddings.
28096         (imm_store_chain_info::output_merged_store): Check if first store
28097         is = {} of the whole area and if yes, determine which setting of
28098         bzero_first for split_group gives smaller number of stores.  Adjust
28099         split_group callers.
28100         (lhs_valid_for_store_merging_p): Allow decls.
28101         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28102         no elts.
28103         (pass_store_merging::process_store): Likewise.
28105 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28107         PR target/89424
28108         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28109         handling of V1TImode.
28111 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28113         PR target/89221
28114         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28115         and enable_frame_pointer ...
28116         * configure.ac: ... here.  Update help strings for
28117         --enable-frame-pointer.
28118         * configure: Regenerate.
28119         * config/i386/i386-options.c (ix86_option_override_internal): Remove
28120         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28121         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28122         (USE_X86_64_FRAME_POINTER): Ditto.
28124 2019-05-06  Martin Liska  <mliska@suse.cz>
28126         * config.gcc: Append to target_gtfiles and fix indentation.
28128 2019-05-06  Richard Biener  <rguenther@suse.de>
28130         PR tree-optimization/90358
28131         * tree-vect-stmts.c (get_group_load_store_type): Properly
28132         detect unused upper half of load.
28133         (vectorizable_load): Likewise.
28135 2019-05-06  Richard Biener  <rguenther@suse.de>
28137         PR tree-optimization/88828
28138         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28139         (simplify_vector_constructor): ...here.  Handle constants in
28140         the constructor.
28142 2019-05-06  Richard Biener  <rguenther@suse.de>
28144         PR tree-optimization/90328
28145         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28146         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28147         is valid in the loop nest before using it.
28148         (initialize_data_dependence_relation): Adjust.
28149         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28150         loop as loop-nest to dr_may_alias_p.
28152 2019-05-06  Richard Biener  <rguenther@suse.de>
28154         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28156 2019-05-06  Richard Biener  <rguenther@suse.de>
28158         PR tree-optimization/90316
28159         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28160         compute target on demand.
28161         (get_continuation_for_phi): Remove code walking stmts to
28162         get to a target virtual operand which could end up being
28163         quadratic.
28165 2019-05-06  Martin Liska  <mliska@suse.cz>
28167         PR sanitizer/90312
28168         * config/i386/i386-options.c (ix86_option_override_internal): Error only
28169         when -mabi is selected to a non-default version.
28171 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
28172             Martin Liska  <mliska@suse.cz>
28174         * Makefile.in: Add lto-dump.texi.
28175         * cgraph.h: Add new functions get_visibility_string and
28176         get_symtab_type_string.
28177         * doc/gcc.texi: Include lto-dump section.
28178         * doc/lto-dump.texi: New file.
28179         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28180         (parse_dump_option): Factor out this function.
28181         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28182         (parse_dump_option): Export the function.
28183         * symtab.c (symtab_node::get_visibility_string): New function.
28184         (symtab_node::get_symtab_type_string): Likewise.
28186 2019-05-06  Martin Liska  <mliska@suse.cz>
28188         * config/i386/i386-builtins.c: New file.
28189         * config/i386/i386-builtins.h: New file.
28190         * config/i386/i386-expand.c: New file.
28191         * config/i386/i386-expand.h: New file.
28192         * config/i386/i386-features.c: New file.
28193         * config/i386/i386-features.h: New file.
28194         * config/i386/i386-options.c: New file.
28195         * config/i386/i386-options.h: New file.
28196         * config.gcc: Add new files into extra_objs and
28197         target_gtfiles.
28198         * config/i386/i386.c: Split content of the file
28199         into newly introduced files.
28200         * config/i386/i386.h: Declare common variables
28201         and macros.
28202         * config/i386/t-i386: Define dependencies for new files.
28204 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
28206         PR target/89400
28207         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28208         Restrict 'all' variant to 32-bit configurations.
28209         (unaligned_loadhiu): Likewise.
28210         (unaligned_storehi): Likewise.
28211         (unaligned_storesi): Likewise.
28212         (unaligned_loadhis): Disable when compiling for thumb1.
28214 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
28216         PR tree-optimization/90269
28217         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28218         Ignore clobbers.
28220 2019-05-03  Martin Liska  <mliska@suse.cz>
28222         * hash-map.h: Add is_empty function.
28223         * hash-set.h: Likewise.
28224         * hash-table.h: Likewise.
28225         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28226         elements () == 0 (and similar usages).
28227         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28228         * gimplify.c (gimplify_bind_expr): Likewise.
28229         (gimplify_switch_expr): Likewise.
28230         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28231         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28232         * postreload-gcse.c (dump_hash_table): Likewise.
28233         (gcse_after_reload_main): Likewise.
28234         * predict.c (combine_predictions_for_bb): Likewise.
28235         * tree-parloops.c (reduction_phi): Likewise.
28236         (separate_decls_in_region): Likewise.
28237         (transform_to_exit_first_loop): Likewise.
28238         (gen_parallel_loop): Likewise.
28239         (gather_scalar_reductions): Likewise.
28240         (try_create_reduction_list): Likewise.
28241         * var-tracking.c (dump_vars): Likewise.
28242         (emit_notes_for_changes): Likewise.
28243         (vt_emit_notes): Likewise.
28245 2019-05-03  Richard Biener  <rguenther@suse.de>
28247         PR tree-optimization/90316
28248         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28249         before running VN.
28251 2019-05-03  Richard Biener  <rguenther@suse.de>
28253         * tree-vect-stmts.c (get_group_load_store_type): Avoid
28254         peeling for gaps by loading only lower halves of vectors
28255         if possible.
28256         (vectorizable_load): Likewise.
28258 2019-05-03  Richard Biener  <rguenther@suse.de>
28260         PR middle-end/89518
28261         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28263 2019-05-03  Richard Biener  <rguenther@suse.de>
28265         PR middle-end/87314
28266         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28267         Handle STRING_CST vs DECL or STRING_CST.
28269 2019-05-03  Richard Biener  <rguenther@suse.de>
28271         PR tree-optimization/88963
28272         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28273         vector loads feeding only BIT_FIELD_REFs to component
28274         loads.  Rewrite stores fed by CONSTRUCTORs to component
28275         stores.
28277 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
28279         * opts.h (finish_options): Remove lang_mask argument.
28280         (print_help, help_option_argument): Declare.
28281         * opts.c (print_help): Remove forward declaration, no longer static.
28282         (finish_options): Remove lang_mask argument, don't call print_help
28283         here.
28284         * opts-global.c (decode_options): Adjust finish_option caller, call
28285         print_help here.
28287         PR tree-optimization/90303
28288         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28289         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28291 2019-05-03  Richard Biener  <rguenther@suse.de>
28293         PR tree-optimization/89698
28294         * gimple-fold.c (canonicalize_constructor_val): Early out
28295         for constants, handle unfolded INTEGER_CSTs as they appear in
28296         C++ virtual table ctors.
28298 2019-05-03  Richard Biener  <rguenther@suse.de>
28300         * passes.c (execute_function_todo): Remove dead code.
28302 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
28304         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28305         the internal register number, for any "real" register.
28307 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
28309         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28310         correct numbers for TFHAR, TFIAR, TEXASR.
28312 2019-05-02  Richard Biener  <rguenther@suse.de>
28314         PR tree-optimization/89653
28315         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28316         update-address-taken before the pass.
28317         * passes.def (pass_tree_loop_init): Put comment before it.
28319 2019-05-02  Richard Biener  <rguenther@suse.de>
28321         PR tree-optimization/89509
28322         * tree-ssa-structalias.c (compute_dependence_clique): Look
28323         at the first subvar when determining whether it is restrict.
28325 2019-05-02  Richard Biener  <rguenther@suse.de>
28327         PR tree-optimization/90273
28328         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28329         useless debug stmts.
28331 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
28333         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28334         ACLE branch.
28335         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28336         SVE ACLE branch.
28337         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28338         VEC_COND_EXPR be inserted to emulate a conditional internal function.
28339         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28340         (vectorizable_reduction): Use the functions above to vectorize in a
28341         fully masked loop codes that don't have a conditional internal
28342         function.
28344 2019-05-02  Martin Liska  <mliska@suse.cz>
28346         * cgraphclones.c: Call valid_attribute_p with 1 for
28347         target_clone.
28348         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28349         it's for target attribute.
28350         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28351         Add new boolean argument.
28352         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28353         Likewise.
28354         (ix86_valid_target_attribute_tree): Pass target_clone_attr
28355         to ix86_valid_target_attribute_inner_p.
28356         (ix86_valid_target_attribute_p): Pass flags argument to
28357         ix86_valid_target_attribute_inner_p.
28358         (get_builtin_code_for_version): Use 0 as it's target attribute.
28360 2019-05-02  Martin Liska  <mliska@suse.cz>
28362         * gcc.c (process_command): Add dummy file only
28363         if n_infiles == 0.
28364         * opts-global.c (decode_options): Pass lang_mask.
28365         * opts.c (print_help): New function.
28366         (finish_options): Print --help if help_option_argument
28367         is set.
28368         (common_handle_option): Factor out content of OPT__help_
28369         into print_help.
28370         * opts.h (finish_options): Add new argument.
28372 2019-05-02  Martin Liska  <mliska@suse.cz>
28374         PR target/88809
28375         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28376         With -minline-all-stringops use inline expansion using 4B loop.
28377         * doc/invoke.texi: Document the change of
28378         -minline-all-stringops.
28380 2019-05-01  Jeff Law  <law@redhat.com>
28382         PR tree-optimization/88797
28383         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28384         PHI feeds a conditional on the RHS of an assignment.
28386 2019-04-30  Andrew Waterman  <andrew@sifive.com>
28387             Jim Wilson  <jimw@sifive.com>
28389         * config/riscv/constraints.md (L): New.
28390         * config/riscv/predicates.md (lui_operand): New.
28391         (sfb_alu_operand): New.
28392         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28393         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28394         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28395         * config/riscv/risc.md (type): Add sfb_alu.
28396         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
28397         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
28398         (branch_zero<mode>): Delete.
28399         (mov<mode>cc): New.
28400         (mov<GPR:mode><X:mode>cc): Likewise.
28401         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
28403 2019-04-30  Nathan Sidwell  <nathan@acm.org>
28405         * tree.h (MARK_TS_EXP): New.
28407 2019-04-30  Martin Liska  <mliska@suse.cz>
28409         * opts.c (enable_warning_as_error): Provide hints
28410         for unknown options.
28412 2019-04-30  Martin Liska  <mliska@suse.cz>
28414         PR debug/90288
28415         * doc/invoke.texi: Add missing dash for gas-locview-support
28416         and gno-as-locview-support.
28418 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
28420         PR target/89093
28421         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28422         whitespace at the start of target attribute string.
28424 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28426         PR target/86538
28427         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28428         Define __ARM_FEATURE_ATOMICS.
28430 2019-04-30  Martin Liska  <mliska@suse.cz>
28432         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28433         into built_in_function enum. Remove code for endp == 2 and
28434         use BUILT_IN_* constants.
28435         (gimple_fold_builtin): Call the function with fcode.
28437 2019-04-30  Martin Liska  <mliska@suse.cz>
28439         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28440         DECL_FUNCTION_CODE into ix86_builtins enum before
28441         the switch statement.
28443 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
28445         PR tree-optimization/89475
28446         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28447         calls.
28449 2019-04-30  Martin Liska  <mliska@suse.cz>
28451         PR translation/90274
28452         * opts.c (print_filtered_help): Wrap string in _(...).
28454 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
28456         PR tree-optimization/90240
28457         Revert:
28458         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
28460         PR tree-optimization/90078
28461         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28462         checks for infinite_cost overflow.
28464 2019-04-29  Jeff Law  <law@redhat.com>
28466         * passes.def: Move -Wrestrict pass after copy propagation.
28468 2019-04-29  Maya Rashish  <coypu@sdf.org>
28470         * config.gcc (default_gnu_indirect_function): Default to yes
28471         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28472         sparc*-*-netbsd*, x86_64-*-netbsd*.
28474 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
28476         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28477         where cond2 is NE_EXPR.
28478         (is_value_included_in): Update comment.
28480 2019-04-29  Richard Biener  <rguenther@suse.de>
28482         PR tree-optimization/90278
28483         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28484         EH on comparison simplification.
28486 2019-04-29  Jason Merrill  <jason@redhat.com>
28488         PR c++/82081 - tail call optimization breaks noexcept
28489         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28490         nothrow function to a might-throw function into a tail call.
28492 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28494         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28495         (DDR_INNER_LOOP): Likewise.
28496         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28497         (initialize_data_dependence_relation): Likewise.
28498         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28500 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
28502         PR rtl-optimization/90257
28503         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28504         return value.
28506         Revert the revert:
28507         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
28509         PR target/90178
28510         Revert:
28511         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
28513         Revert the revert:
28514         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
28516         Revert:
28517         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
28519         * lra-spills.c (lra_final_code_change): Remove useless move insns.
28521 2019-04-29  Richard Biener  <rguenther@suse.de>
28523         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28524         rhs issue a reset.
28526 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
28528         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
28529         varasm.h, and netbsd-protos.h.
28531 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28533         PR target/89261
28534         * config/i386/i386-protos.h (ix86_data_alignment): Change
28535         the second argument type to unsigned int.
28536         * config/i386/i386.c (ix86_data_alignment): Change "align"
28537         argument type to unsigned int.
28539 2019-04-27  Martin Liska  <mliska@suse.cz>
28541         PR middle-end/90258
28542         * opt-suggestions.c (option_proposer::build_option_suggestions):
28543         When get_valid_option_values returns empty values, add the
28544         misspelling candidate.
28546 2019-04-26  Jim Wilson  <jimw@sifive.com>
28548         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28549         parameter.
28550         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28551         Pass orig_mode to riscv_build_integer.
28552         (riscv_split_integer): Pass mode to riscv_move_integer.
28553         (riscv_legitimize_const_move): Likewise.
28554         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28555         promoted_mode.  Replace force_reg call with code to load constant into
28556         promoted reg and then subreg it for the store.
28557         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28558         riscv_move_integer.
28560 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
28562         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28563         corrupt codes.
28565 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
28567         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28568         commentary about the encoding of precision.
28570 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
28572         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28573         * config/i386/t-freebsd64: New file.
28574         * config.gcc: Add the t-freebsd64 for multilib support.
28576 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28578         * doc/extend.texi (vector_size): Add missing comma after @xref.
28580 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
28582         * BASE-VER: Set to 10.0.0.
28584 2019-04-25  Richard Biener  <rguenther@suse.de>
28586         PR middle-end/89765
28587         * gimplify.c (gimplify_expr): Avoid turning a lvalue
28588         VIEW_CONVERT_EXPR into one operating on an rvalue.
28590 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28592         PR target/89929
28593         * config/i386/i386.c (feature_priority): Moved to file scope.
28594         (processor_features): Likewise.
28595         (processor_model): Likewise.
28596         (_arch_names_table): Likewise.
28597         (arch_names_table): Likewise.
28598         (_feature_list): Removed.
28599         (feature_list): Likewise.
28600         (_isa_names_table): Moved to file scope.  Add priority.
28601         (isa_names_table): Likewise.
28602         (get_builtin_code_for_version): Replace feature_list with
28603         isa_names_table.  Update error message for P_ZERO priority.
28605 2019-04-25  Richard Biener  <rguenther@suse.de>
28607         * tree-pass.h (make_pass_phi_only_cprop): Remove.
28608         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28610 2019-04-24  Jeff Law  <law@redhat.com>
28612         PR tree-optimization/90037
28613         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28614         * passes.def: Replace all instance of phi-only cprop with the
28615         lattice propagator.  Move propagation pass from after erroneous
28616         path isolation to before erroneous path isolation.
28617         * tree-ssa-phionlycprop.c: Remove.
28619 2019-04-24  Richard Biener  <rguenther@suse.de>
28621         PR middle-end/90213
28622         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28623         by size and BITS_PER_UNIT on poly-wide-ints.
28625 2019-04-25  Richard Biener  <rguenther@suse.de>
28627         PR middle-end/90194
28628         * match.pd: Add pattern to simplify view-conversion of an
28629         empty constructor.
28631 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
28633         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28634         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28635         for Go on 32 bit AIX.
28636         * config/rs6000/aix72.h: Likewise.
28638 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
28640         PR target/90193
28641         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28642         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28644 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
28646         PR target/89952
28647         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28648         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
28649         for restored hard frame pointer.
28650         (s390_sched_dependencies_evaluation): Implement new target hook.
28651         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28653 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
28655         * config/arc/arc-options.def: Fix typos and spelling mistakes.
28656         * config/arc/arc.c (arc_init): Cleanup warning message.
28657         (arc_override_options): Likewise.
28659 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
28661         PR target/90187
28662         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28663         a register if both if_true and if_false are MEMs.
28665         PR tree-optimization/90208
28666         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28667         after labels of new_bb, not before them.
28669         PR tree-optimization/90211
28670         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28671         which are not SSA_NAMEs.
28673 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
28675         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28676         AArch64.
28677         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28679 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
28681         PR rtl-optimization/87979
28682         * modulo-sched.c (sms_schedule): Start ii value "mii" should
28683         not equal zero.
28685 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
28687         PR rtl-optimization/84032
28688         * modulo-sched.c (ps_insn_find_column): Change condition so that
28689         branch will always be the last insn in a row inside partial
28690         schedule.
28692 2019-04-23  Richard Biener  <rguenther@suse.de>
28694         PR debug/90131
28695         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28696         dest_single_pred_p argument.
28697         (remove_forwarder_block): Adjust.
28698         (remove_forwarder_block_with_phi): Likewise.
28700 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28701             Bernd Edlinger  <bernd.edlinger@hotmail.de>
28702             Jakub Jelinek  <jakub@redhat.com>
28704         PR target/89093
28705         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28706         if used with general-regs-only.
28707         (arm_conditional_register_usage): Don't add non-general regs if
28708         general-regs-only.
28709         (arm_valid_target_attribute_rec): Handle general-regs-only.
28710         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28711         general-regs-only.
28712         (TARGET_HARD_FLOAT_SUB): Define.
28713         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28714         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28715         (TARGET_REALLY_IWMMXT2): Likewise.
28716         * config/arm/arm.opt: Add -mgeneral-regs-only.
28717         * doc/extend.texi: Document ARM general-regs-only target.
28718         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28720 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
28722         PR tree-optimization/90078
28723         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28724         checks for infinite_cost overflow.
28726 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
28728         PR tree-optimization/90021
28729         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28730         and check univariate against it.
28731         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28732         * tree-data-ref.c (add_other_self_distances): Pass new argument.
28734 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
28736         PR target/90178
28737         Revert:
28738         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
28740         Revert the revert:
28741         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
28743         Revert:
28744         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
28746         * lra-spills.c (lra_final_code_change): Remove useless move insns.
28748 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
28750         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28751         names using operand format, rather than hard-wired.
28752         (speculation_barrier): Likewise.
28754 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
28756         PR tree-optimization/88055
28757         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28758         (gen_one_condition): Use it if !HONOR_NANS.
28760 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
28762         PR middle-end/90139
28763         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28764         assign_temp instead of gen_reg_rtx.
28766 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
28768         PR translation/90118
28769         * config/aarch64/aarch64.c (aarch64_override_options_internal):
28770         Add missing space before %<.
28772 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
28774         PR rtl-optimization/87871
28775         * ira-lives.c (make_object_dead): Don't add conflicts to
28776         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28778 2019-04-18  Martin Sebor  <msebor@redhat.com>
28780         PR middle-end/89797
28781         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28782         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28783         assuming type size fits in SHWI.
28785 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
28787         PR ipa/85051
28788         * ipa-inline.c (flatten_function): New parameter UPDATE.
28789         (ipa_inline, early_inliner): Use it.
28791 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
28793         * fold-const.c (int_const_binop): Return early on failure.
28795 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
28797         PR middle-end/85164
28798         * combine.c (force_int_to_mode): Cast the argument rather than
28799         the result of known_alignment.
28800         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28802 2019-04-18  Richard Biener  <rguenther@suse.de>
28804         PR debug/90131
28805         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28806         out from ...
28807         (remove_forwarder_block): ... here.
28808         (remove_forwarder_block_with_phi): Also move debug stmts here.
28810 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
28812         PR translation/79183
28813         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28814         inform where appropriate.
28816 2019-04-18  Richard Biener  <rguenther@suse.de>
28818         * tree.c (get_qualified_type): Put found type variants at the
28819         head of the variant list.
28821 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28823         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28825 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
28827         PR target/90125
28828         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28829         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28830         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28831         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28832         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28834 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
28836         * ira-conflicts.c (print_allocno_conflicts): Always print something,
28837         even for allocno's with no conflicts.
28838         (print_conflicts): Print an extra newline.
28840 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28842         * auto-inc-dec.c (attempt_change): Set the alignment of the
28843         temporary memory to that of the original.
28845 2019-04-17  Joao Moreira  <jmoreira@suse.de>
28847         * targhooks.c (default_print_patchable_function_entry): Emit
28848         __patchable_function_entries section with writable flags to allow
28849         relocation resolution.
28851 2019-04-17  Jonny Grant  <jg@jguk.org>
28853         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28855 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
28857         PR middle-end/90095
28858         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28859         on lowpart SUBREGs.
28861 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
28863         * config/arc/arc.c (arc_init): Format diagnostic string.
28864         (arc_override_options): Likewise.
28865         (check_if_valid_regno_const): Likewise.
28866         (arc_reorg): Likewise.
28868 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28870         PR target/17108
28871         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28872         name.
28873         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
28874         name.
28875         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28876         (*movdi_update1): Use Pmode.
28877         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28878         (movdi_<mode>_update_stack): Rename to ...
28879         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
28880         use Pmode.
28881         (*movsi_update1): Use Pmode.
28882         (*movsi_update2): Use Pmode.
28883         (movsi_update): Rename to ...
28884         (movsi_<mode>_update): ... this.  Use Pmode.
28885         (movsi_update_stack): Fix condition.
28886         (*movhi_update1): Use Pmode.  Fix argument to
28887         avoiding_indexed_address_p.
28888         (*movhi_update2): Ditto.
28889         (*movhi_update3): Ditto.
28890         (*movhi_update4): Ditto.
28891         (*movqi_update1): Ditto.
28892         (*movqi_update2): Ditto.
28893         (*movqi_update3): Ditto.
28894         (*movsf_update1, *movdf_update1): Merge, rename to...
28895         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
28896         avoiding_indexed_address_p.  Add "size" attribute.
28897         (*movsf_update2, *movdf_update2): Merge, rename to...
28898         (*mov<mode>_update2): This.  Ditto.
28899         (*movsf_update3): Use Pmode.  Fix argument to
28900         avoiding_indexed_address_p.
28901         (*movsf_update4): Ditto.
28902         (allocate_stack): Simplify condition.  Adjust pattern names.
28904 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
28906         PR target/89093
28907         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28908         whitespace at the start of target attribute string.
28910 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
28912         PR target/84369
28913         * config/rs6000/power9.md: Add store forwarding bypass.
28915 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
28917         PR debug/89528
28918         * valtrack.c (dead_debug_insert_temp): Reset debug references
28919         to the return value of a call being removed.
28921 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28923         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28924         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28925         implement target hook.
28926         (arc_memory_move_cost): New function.
28927         (TARGET_REGISTER_MOVE_COST): Define.
28928         (TARGET_MEMORY_MOVE_COST): Likewise.
28929         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28930         (MEMORY_MOVE_COST): Likewise.
28932 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28934         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28935         (sibcall_value_insn): Likewise.
28936         * config/arc/constraints.md (Rs5): Remove.
28938 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28940         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28941         for last two fake registers.
28942         (arc_conditional_register_usage): Make sure fake frame and arg
28943         pointer regs are in general regs class.
28944         (FRAME_POINTER_MASK): Remove.
28945         (RETURN_ADDR_MASK): Remove.
28946         (arc_must_save_register): Use hard frame regnum.
28947         (frame_restore_reg): Use hard_frame_pointer_rtx.
28948         (arc_save_callee_saves): Likewise.
28949         (arc_restore_callee_saves): Likewise.
28950         (arc_save_callee_enter): Likewise.
28951         (arc_restore_callee_leave): Likewise.
28952         (arc_save_callee_milli): Likewise.
28953         (arc_eh_return_address_location): Likewise.
28954         (arc_check_multi): Use hard frame regnum.
28955         (arc_can_eliminate): Likewise.
28956         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28957         for register allocator.
28958         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28959         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28960         (FRAME_POINTER_REGNUM): Change it to a fake register.
28961         (HARD_FRAME_POINTER_REGNUM): Defined.
28962         (ARG_POINTER_REGNUM): Change it to a new fake register.
28963         (ELIMINABLE_REGS): Update.
28964         (REGISTER_NAMES): Update names.
28965         * config/arc/arc.md (LP_START): Remove.
28966         (LP_END): Likewise.
28967         (shift_si3_loop): Update pattern.
28969 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28971         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28972         to avoid delay slot scheduling.
28973         (arc_must_save_register): Don't save SP.
28974         * config/arc/arc.md (stack_tie): Remove.
28975         (UNSPEC_ARC_STKTIE): Likewise.
28977 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
28978             Shiva Chen  <shiva0217@gmail.com>
28980         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28981         code gen with large shift amount.
28983 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28985         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28986         subreg.
28988 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
28990         PR target/90096
28991         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28992         print -m64/-mx32/-m32 if it is true.
28993         (ix86_debug_options, ix86_function_specific_print): Pass true as
28994         ADD_ABI_P to ix86_target_string.
28995         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28996         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28997         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28999         PR rtl-optimization/90082
29000         * dce.c (can_delete_call): New function.
29001         (deletable_insn_p, mark_insn): Use it.
29003         PR tree-optimization/90090
29004         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29005         throw internally.
29006         (is_division_by_square): Likewise.  Formatting fix.
29008 2019-04-16  Richard Biener  <rguenther@suse.de>
29010         PR tree-optimization/56049
29011         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29012         equality check if alias-set zero will prevail.
29014 2019-04-15  Jeff Law  <law@redhat.com>
29016         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29017         size and alignment as unsigned.
29019 2019-04-15  Richard Biener  <rguenther@suse.de>
29021         PR debug/90074
29022         * tree-loop-distribution.c (destroy_loop): Preserve correct
29023         debug info.
29025 2019-04-15  Richard Biener  <rguenther@suse.de>
29027         PR tree-optimization/90071
29028         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29029         abnormal operands from def stmts.
29031 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
29033         PR rtl-optimization/89794
29034         * combine.c (count_auto_inc): New function.
29035         (try_combine): Count how many auto_inc expressions there were in the
29036         original instructions.  Ensure we have the same number in the new
29037         instructions.  Remove the code that tried to ensure auto_inc side
29038         effects on i1 and i0 are not lost.
29040 2019-04-15  Richard Biener  <rguenther@suse.de>
29042         PR ipa/88936
29043         * tree.h (auto_var_p): Declare.
29044         * tree.c (auto_var_p): New function, split out from ...
29045         (auto_var_in_fn_p): ... here.
29046         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29047         member.
29048         (new_var_info): Initialize it.
29049         (set_uids_in_ptset): Also set the shadow variable uid if required.
29050         (ipa_pta_execute): Postprocess points-to solutions assigning
29051         shadow variable uids for locals that may reach their containing
29052         function recursively.
29053         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29054         assert but instead check whether the points-to solution is
29055         a singleton.
29057 2019-04-15  Martin Jambor  <mjambor@suse.cz>
29059         PR ipa/pr89693
29060         * cgraph.c (clone_of_p): Loop over clone chain for each step in
29061         the thunk chain.
29063 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29065         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29067 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29068             Kito Cheng  <kito.cheng@gmail.com>
29069             Shiva Chen  <shiva0217@gmail.com>
29071         * config/nds32/nds32-md-auxiliary.c
29072         (nds32_legitimize_pic_address): Use new PIC pattern.
29073         (nds32_legitimize_tls_address): Use new TLS pattern.
29074         (nds32_output_symrel): New.
29075         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29076         (nds32_alloc_relax_group_id): Ditto.
29077         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29078         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29079         relax_group_id.
29080         (nds32_group_tls_insn): Ditto.
29081         (nds32_group_float_insns): Ditto.
29082         * config/nds32/nds32.md (tls_le): New.
29083         (sym_got): Ditto.
29085 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
29087         * configure: Add nds32 target for dwarf2 debug_line checking.
29088         * configure.ac: Regenerated.
29090 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
29092         PR lto/89358
29093         * ipa-devirt.c (skip_in_fields_list_p): New.
29094         (odr_types_equivalent_p): Use it.
29096 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
29098         PR target/89093
29099         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29100         instead of strncmp when checking for thumb and arm.  Formatting fixes.
29102 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
29104         * doc/install.texi: Document --with-target-system-zlib.
29106 2019-04-12  Martin Sebor  <msebor@redhat.com>
29108         PR c/88383
29109         PR c/89288
29110         PR c/89798
29111         PR c/89797
29112         * targhooks.c (default_vector_alignment): Avoid assuming
29113         argument fits in SHWI.
29114         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29115         a shift expression.
29116         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29118 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29120         PR rtl-optimization/89965
29121         * dce.c: Include rtl-iter.h.
29122         (struct check_argument_load_data): New type.
29123         (check_argument_load): New function.
29124         (find_call_stack_args): Check for loads from stack slots still tracked
29125         in sp_bytes and punt if any is found.
29127         * config/mips/loongson-mmiintrin.h: Fix up #error message.
29129 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
29131         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29132         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29134 2019-04-12  Martin Liska  <mliska@suse.cz>
29136         PR middle-end/89970
29137         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29138         in error message.
29139         (separate_attrs): Handle multiple 'default's.
29140         (expand_target_clones): Rework error handling code.
29142 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29144         PR target/87532
29145         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29146         mode of vector rather than mode of destination for move instruction.
29147         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29148         Use QI inner mode with V16QI vector mode.
29150 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29152         PR target/52726
29153         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29154         "invalid %%t operand" in output_operand_lossage message.
29156 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
29158         * config/s390/predicates.md (permute_pattern_operand): New
29159         predicate.
29160         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29161         operand for the permute pattern.
29162         ("*vec_perm<mode>"): New insn definition.
29163         ("bswap<mode>"): Generate the permute pattern operand in the
29164         expander and perform the operand reloads for pre arch13 level
29165         already.
29166         ("*bswap<mode>_emu"): Rename to ...
29167         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29168         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29169         Add the USE operand for the permute pattern.
29170         ("*vec_set_bswap_vec<mode>"): Likewise.
29172 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29174         PR c/89946
29175         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29176         and gcc_unreachable if it fails, just call tree_to_uhwi which
29177         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
29178         Start warning message with a lower-case letter.  Formatting fixes.
29180         PR rtl-optimization/90026
29181         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29182         successors, look for BARRIERs inside of the whole BB_FOOTER chain
29183         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
29184         in cfglayout mode, use emit_barrier_after_bb.
29186 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
29188         PR rtl-optimization/87763
29189         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29190         New Instruction.
29192 2019-04-11  Tom de Vries  <tdevries@suse.de>
29194         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29195         max macro using statement expression.
29197 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
29199         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29200         * xcoffout.c (xcoff_private_rodata_section_name): Define.
29201         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29202         read_only_private_data_section using xcoff_private_rodata_section_name.
29203         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29205 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
29207         PR target/90016
29208         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29210 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
29212         PR rtl-optimization/89965
29213         * dce.c (sp_based_mem_offset): New function.
29214         (find_call_stack_args): Use sp_based_mem_offset.
29216 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
29218         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29220 2019-04-11  Richard Biener  <rguenther@suse.de>
29222         PR tree-optimization/90020
29223         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29224         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29225         * tree-ssa-pre.c (compute_avail): Use it to not put
29226         possibly trapping references after a call that might not
29227         return into EXP_GEN.
29228         * gcse.c (compute_hash_table_work): Do not elide
29229         marking a block containing a call if the call might not
29230         return.
29232 2019-04-11  Richard Biener  <rguenther@suse.de>
29234         PR tree-optimization/90018
29235         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29236         Test both SLP and interleaving variants.
29238 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
29240         * config/s390/8561.md: New file.
29241         * config/s390/driver-native.c (s390_host_detect_local_cpu):
29242         Add arch13 cpu model.
29243         * config/s390/s390-opts.h (enum processor_type): Likewise.
29244         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29245         (s390_get_unit_mask): Likewise.
29246         (s390_is_fpd): Likewise.
29247         (s390_is_fxd): Likewise.
29248         * config/s390/s390.h (s390_tune_attr): Likewise.
29249         * config/s390/s390.md: Include arch13 pipeline description.
29250         * config/s390/s390.opt: Add arch13.
29252 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
29254         PR rtl-optimization/87763
29255         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29256         New prototype.
29257         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29258         New function.
29259         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29260         New instruction.
29261         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29262         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29263         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29264         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29266 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
29268         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29269         "Although" in -fipa-icf documentation.
29271         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29272         of using multiple -g options.
29274 2019-04-10  Martin Liska  <mliska@suse.cz>
29276         PR gcov-profile/89959
29277         * doc/gcov.texi: Make documentation of -x option
29278         more precise.
29280 2019-04-10  Richard Biener  <rguenther@suse.de>
29282         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29283         member.
29284         (DR_GROUP_SAME_DR_STMT): Remove.
29285         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29286         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29287         replace with assert.
29288         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29289         (vect_record_grouped_load_vectors): Remove unreachable code.
29291 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
29293         PR target/90016
29294         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29295         obsolete reference to N.
29297 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
29299         PR middle-end/90025
29300         * expr.c (store_expr): Set properly size on the MEM passed to
29301         clear_storage.
29303         PR c++/90010
29304         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29305         with strlen in between hostsz-3 and hostsz-1 inclusive when no
29306         translation is needed, and when translation is needed, only append
29307         ... if the string length is hostsz or more bytes long.  Avoid using
29308         strncpy or strcat.
29310 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
29312         PR target/90024
29313         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29314         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29315         into three.
29316         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29317         differences directly.
29318         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29320 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
29322         PR translation/90011
29323         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29324         from diagnostics.
29325         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29326         diagnostics.
29327         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29328         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29329         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29330         trailing space from -gsplit-dwarf diagnostics.
29332         PR tree-optimization/89998
29333         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29334         instead of integer_type_node if possible, don't add ranges if return
29335         type is not compatible with int.
29336         * gimple-fold.c (gimple_fold_builtin_sprintf,
29337         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29338         integer_type_node.
29340 2019-04-09  Martin Liska  <mliska@suse.cz>
29342         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29343         * doc/install.texi: Document the new config.
29345 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
29347         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29348         use gimple_expr_type for load and store calls.  Skip over the
29349         condition argument in a conditional internal function.
29350         Protect use of TREE_INT_CST_LOW.
29352 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
29354         PR target/90015
29355         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29356         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
29357         trailing period from it too.
29359 2019-04-08  wu yuan  <wuyuan5@huawei.com>
29361         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29362         * config/aarch64/aarch64.md: Add "tsv110.md".
29363         * config/aarch64/tsv110.md: New file.
29365 2019-04-08  Richard Biener  <rguenther@suse.de>
29367         PR tree-optimization/90006
29368         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29369         calls like lrint.
29371 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
29373         PR target/83033
29374         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29375         construction.
29376         (fma_root_node): Likewise.
29377         (func_fma_steering): Likewise.
29379 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
29381         PR rtl-optimization/89865
29382         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29384         PR rtl-optimization/89865
29385         * config/i386/i386.md
29386         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29387         numbers not to clash with the additional operands[4].
29388         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29389         with extra register copy in the middle.
29391 2019-04-08  Martin Liska  <mliska@suse.cz>
29393         PR gcov-profile/89961
29394         * doc/gcov.texi: Document data_file.
29395         * gcov.c (generate_results): Add data_info into JSON output.
29397 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
29399         PR tree-optimization/89725
29400         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
29401         loop's chrec as invariant symbol.
29402         * tree-chrec.h (chrec_contains_symbols): New parameter.
29403         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29404         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29405         function of loops not in DDR's loop_nest.
29406         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29408 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
29410         PR target/89623
29411         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29412         Mask.
29414 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29416         PR target/89945
29417         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29418         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29420 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29422         * sched-deps.c (sched_macro_fuse_insns): Check return value of
29423         targetm.fixed_condition_code_regs.
29425 2019-04-05  Richard Biener  <rguenther@suse.de>
29427         PR debug/89892
29428         PR debug/89905
29429         * tree-cfgcleanup.c (remove_forwarder_block): Always move
29430         debug bind stmts but reset them if they are not valid at the
29431         destination.
29433 2019-04-05  Martin Liska  <mliska@suse.cz>
29435         PR translation/89936
29436         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29437         order to wrap keywords or arguments.
29438         * collect2.c (main): Likewise.
29439         (scan_prog_file): Likewise.
29440         (scan_libraries): Likewise.
29441         * common/config/riscv/riscv-common.c
29442         (riscv_subset_list::parsing_subset_version): Likewise.
29443         (riscv_subset_list::parse_std_ext): Likewise.
29444         * config/aarch64/aarch64.c (aarch64_override_options_internal):
29445         Likewise.
29446         * config/arm/arm.c (arm_option_override): Likewise.
29447         * config/cris/cris.c (cris_print_operand): Likewise.
29448         * config/darwin-c.c (darwin_pragma_options): Likewise.
29449         (darwin_pragma_unused): Likewise.
29450         (darwin_pragma_ms_struct): Likewise.
29451         * config/ft32/ft32.c (ft32_print_operand): Likewise.
29452         * config/i386/i386.c (print_reg): Likewise.
29453         (ix86_print_operand): Likewise.
29454         * config/i386/xm-djgpp.h: Likewise.
29455         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29456         * config/m32c/m32c.c (m32c_option_override): Likewise.
29457         * config/msp430/msp430.c (msp430_option_override): Likewise.
29458         * config/nds32/nds32.c (nds32_option_override): Likewise.
29459         * config/nvptx/mkoffload.c (main): Likewise.
29460         * config/rx/rx.c (rx_print_operand): Likewise.
29461         (valid_psw_flag): Likewise.
29462         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29463         (vms_pragma_nomember_alignment): Likewise.
29464         (vms_pragma_extern_model): Likewise.
29465         * lto-wrapper.c (compile_offload_image): Likewise.
29466         * omp-offload.c (oacc_parse_default_dims): Likewise.
29467         * symtab.c (symtab_node::verify_base): Likewise.
29468         * tlink.c (recompile_files): Likewise.
29469         (start_tweaking): Likewise.
29470         * tree-profile.c (parse_profile_filter): Likewise.
29472 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
29474         PR tree-optimization/89956
29475         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29476         multiple negates of the same value.
29478 2019-04-04  Martin Sebor  <msebor@redhat.com>
29480         PR middle-end/89957
29481         PR middle-end/89911
29482         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29483         have the same precision since the function crashes otherwise.
29484         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29485         has non-zero arguments.
29487 2019-04-04  Martin Sebor  <msebor@redhat.com>
29489         PR middle-end/89934
29490         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29491         out if the number of arguments is less than expected.
29493 2019-04-04  Jeff Law  <law@redhat.com>
29495         PR rtl-optimization/89399
29496         * ree.c (combine_set_extension): Use single_set rather than
29497         digging into PATTERN for items on the candidate list.
29498         (combine_reaching_defs): Likewise.
29500 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
29502         PR rtl-optimization/46590
29503         * loop-invariant.c (find_defs): Move df_remove_problem and
29504         df_process_deferred_rescans to move_invariants.
29505         Move df_live_add_problem and df_live_set_all_dirty calls
29506         to move_invariants.
29507         (move_invariants): Likewise.
29508         (move_loop_invariants): Likewise, making the df_live calls
29509         conditional on -O.  Remove the problem again if we added it
29510         locally.
29512 2019-04-03  qing zhao  <qing.zhao@oracle.com>
29514         PR tree-optimization/89730
29515         * ipa-inline.c (can_inline_edge_p): Delete the checking for
29516         -flive-patching=inline-only-static.
29517         (can_inline_edge_by_limits_p): Add the checking for
29518         -flive-patching=inline-only-static and grant always_inline
29519         even when -flive-patching=inline-only-static is specified.
29521 2019-04-03  Jeff Law  <law@redhat.com>
29523         PR rtl-optimization/81025
29524         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29526 2019-04-03  Richard Biener  <rguenther@suse.de>
29528         PR tree-optimization/84101
29529         * tree-vect-stmts.c: Include explow.h for hard_function_value,
29530         regs.h for hard_regno_nregs.
29531         (cfun_returns): New helper.
29532         (vect_model_store_cost): When vectorizing a store to a decl
29533         we return and the function ABI returns in a multi-reg location
29534         account for the possible spilling that will happen.
29536 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
29538         * config/s390/s390.c (s390_legitimate_address_p): Reject long
29539         displacement addresses for vector mode operands.
29541 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
29543         * config/arc/arc.c (GMASK_LEN): Define.
29544         (arc_restore_callee_saves): Restore first blink when
29545         !optimize_size.
29547 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
29549         * doc/extend.texi: Add deprecated comment on sign-return-address
29550         function attribute and add mbranch-protection.
29551         * doc/invoke.texi: Add bti to the options for mbranch-protection.
29553 2019-04-03  Richard Biener  <rguenther@suse.de>
29555         PR lto/89896
29556         * lto-wrapper.c (run_gcc): Avoid implicit rules making
29557         the all target phony.
29559 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29561         PR target/89902
29562         PR target/89903
29563         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29564         Return false for variable DImode shifts.
29565         (dimode_scalar_chain::compute_convert_gain): Do not handle
29566         register count operand in variable DImode shifts.
29567         (dimode_scalar_chain::make_vector_copies): Remove support to copy
29568         count argument of a variable shift instruction to a vector register.
29569         (dimode_scalar_chain::convert_reg): Remove support to convert
29570         count argument of a variable shift instruction.
29572 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
29574         PR rtl-optimization/84206
29575         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29576         iterating over loop headers.
29578 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
29580         PR rtl-optimization/85876
29581         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29582         beyond the original fence.
29584 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
29586         * config.gcc: Mark spu* targets as deprecated/obsolete.
29588 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29590         * config/s390/s390-builtin-types.def: New builtin function type
29591         definitions. Remove unused types.
29592         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29593         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29594         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29595         overloaded builtins.
29596         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29597         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29598         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29599         (vec_double, vec_signed, vec_unsigned): Define to use the new
29600         overloaded builtins.
29601         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29602         Remove expanders.
29604 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29606         * config/s390/s390-builtin-types.def: New builtin function type
29607         definitions.
29608         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29609         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29610         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29611         (s390_vstrszh, s390_vstrszf): New low-level builtins.
29612         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29613         constant definitions.
29614         * config/s390/vecintrin.h (vec_search_string_cc)
29615         (vec_search_string_until_zero_cc): New builtin name definitions.
29616         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29617         expanders.
29618         ("vec_vstrs<mode>"): New insn definition.
29620 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29622         * config/s390/s390-builtin-types.def: Add new builtin function
29623         types.
29624         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29625         New overloaded builtins.
29626         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
29627         s390_vsrd.
29628         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29629         (UNSPEC_VEC_SLDBYTE): ... this.
29630         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29631         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29632         definitions.
29633         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29634         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29635         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29637 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29639         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29640         New insn definition.
29641         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29642         * config/s390/vector.md (V_HW_HSD): ... here.
29644 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29646         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29647         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29648         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29649         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29650         New insn definitions.
29652 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29654         * config/s390/s390-builtin-types.def: Add new builtin function type.
29655         * config/s390/s390-builtins.def: Add overloaded builtin
29656         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29657         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29658         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29659         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29660         ("eltswap<mode>"): New expander.
29661         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29662         insn definitions.
29664 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29666         * config/s390/s390-builtin-types.def: Add new builtin function types.
29667         * config/s390/s390-builtins.def: Add overloaded builtin
29668         s390_vec_revb. Add low-level builtins for vlbr and vstbr
29669         instructions.
29670         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29671         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29672         ("bswap<mode>"): New expander.
29673         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29675 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29677         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29678         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29679         vector builtin version number in __VEC__.
29681 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29683         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29684         iterators.
29685         (SFSI): New mode attribute.
29686         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29687         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29688         rename to ...
29689         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29690         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29691         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29692         ("floatsi<mode>2"): Add wcefb instruction.
29694 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29696         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29697         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29698         mode iterators.
29699         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29700         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29701         support 32 bit fp-int conversions. Rename to ...
29702         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29703         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29704         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29705         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29706         ... to these.
29708 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29710         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29711         if-then-else constructs if we can use the select instruction.
29712         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29714 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29716         * config/s390/s390.md ("*popcountdi_arch13_cc")
29717         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29718         definition.
29719         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29720         Append _z196 to make it ...
29721         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29722         ("popcounthi2_z196"): ... this.
29723         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29724         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29726 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29728         * config/s390/s390.c (s390_canonicalize_comparison): Convert
29729         certain compares for arch13 in order to make use of the condition
29730         code result produced by the new instructions.
29731         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29732         nxrk, and nxgrk instruction patterns.
29733         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29734         (inv_no): Add new code iterator together with some attributes.
29735         ("*andc_split_<mode>"): Disable splitter for arch13.
29736         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29737         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29738         ("*<ANDOR:bitops_name>c<GPR:mode>")
29739         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29740         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29741         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29742         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29744 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29746         * common/config/s390/s390-common.c (processor_flags_table): New
29747         entry for arch13.
29748         * config.gcc: Support arch13 with the --with-arch= configure flag.
29749         * config/s390/driver-native.c (s390_host_detect_local_cpu):
29750         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29751         * config/s390/s390.c (s390_get_sched_attrmask)
29752         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29753         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29754         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29755         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29756         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29757         definitions.
29758         * config/s390/s390.opt: Support arch13 as processor type in
29759         command line options.
29761 2019-04-02  Martin Liska  <mliska@suse.cz>
29763         PR translation/89912
29764         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29765         Fix param description of graphite-max-arrays-per-scop.
29767 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
29769         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29770         (ASAN_CC1_SPEC): Use it in 64-bit mode.
29771         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29773 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29775         PR rtl-optimization/85412
29776         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29777         sel_sched_region_1, not after.
29779 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29781         PR rtl-optimization/86928
29782         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29783         compute_live if necessary.
29784         (sel_redirect_edge_and_branch): Likewise.
29786 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
29788         PR rtl-optimization/89865
29789         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29790         register if it is a part of small class.
29792 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29794         PR rtl-optimization/87273
29795         * sel-sched-ir.c (merge_fences): Remove assert.
29797 2019-04-01  Richard Biener  <rguenther@suse.de>
29799         PR tree-optimization/46590
29800         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29801         (dom_walker::m_reachability): Add in place of...
29802         (dom_walker::m_skip_unreachable_blocks): ...this.
29803         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29804         Move complex initialization ...
29805         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
29806         lazily and initialize edge flags on each invocation.
29807         (dom_walker::bb_reachable): Use m_reachability.
29809 2019-04-01  Martin Liska  <mliska@suse.cz>
29811         PR driver/89861
29812         * opt-suggestions.c (option_proposer::build_option_suggestions):
29813         Add variant without any argument in order to provide better
29814         hints.
29816 2019-04-01  Richard Biener  <rguenther@suse.de>
29818         PR c/71598
29819         * gimple.c: Include langhooks.h.
29820         (gimple_get_alias_set): Treat enumeral types as the underlying
29821         integer type.
29823 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
29824             Eric Botcazou  <ebotcazou@adacore.com>
29826         PR rtl-optimization/89862
29827         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29828         that operates on the full registers for WORD_REGISTER_OPERATIONS
29829         architectures.
29831 2019-03-29  Jim Wilson  <jimw@sifive.com>
29833         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29834         Clear MASK_RVC and then set if C subset supported.
29836 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
29838         PR c/89872
29839         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29840         non-addressable complit into its initializer if it is volatile.
29842 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
29844         * opts-common.c (integral_argument): Set errno properly in one case.
29846 2019-03-29  Martin Liska  <mliska@suse.cz>
29848         * doc/invoke.texi: Remove -Wchkp from documentation.
29850 2019-03-29  Martin Liska  <mliska@suse.cz>
29852         * dbgcnt.c (print_limit_reach): New function.
29853         (dbg_cnt): Use it.
29855 2019-03-29  Martin Liska  <mliska@suse.cz>
29857         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29858         (dbg_cnt_process_opt): Parse first tokens aas
29859         dbg_cnt_process_single_pair is also using strtok.
29861 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
29863         PR rtl-optimization/87485
29864         * function.c (expand_function_end): Move stack_protect_epilogue
29865         before loading of return value into hard register(s).
29867 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
29869         PR middle-end/89621
29870         * tree-inline.h (struct copy_body_data): Add
29871         dont_remap_vla_if_no_change flag.
29872         * tree-inline.c (remap_type_3, remap_type_2): New functions.
29873         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29874         and remap_type_2 returns false.
29875         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29876         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29877         only from where it is copied to nested contexts.
29879 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29881         PR target/89865
29882         * config/i386/i386.md (RMW operation with LEA peephole):
29883         Use LEAMODE mode attribute instead of SWI mode iterator for
29884         LEA pattern.
29886 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29888         PR target/89848
29889         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29890         Also process XEXP (src, 0) of a shift insn.
29892 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
29894         PR middle-end/89725
29895         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29896         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29898 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
29900         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29901         test.
29902         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29903         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
29904         immediately after first one with df_analyze in between, but rather
29905         process all bbs, queueing ones that need second pass in a worklist,
29906         df_analyze, process queued debug insn changes and if second pass is
29907         needed, process bbs from worklist, df_analyze, process queued debug
29908         insns again.
29910         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29911         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29912         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29914 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
29916         PR c/79022
29917         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29918         definition.
29920 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
29922         PR target/85667
29923         * config/i386/i386.c (ix86_function_value_1): Call the newly added
29924         function for 32-bit MS_ABI.
29925         (function_value_ms_32): New function.
29927 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
29929         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29930         (movdi): Call gen_movdi_symbol_save_scc.
29931         (gen_movdi_symbol_save_scc): New insn and split.
29933 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
29935         PR rtl-optimization/89313
29936         * function.c (matching_constraint_num): New static function.
29937         (match_asm_constraints_1): Use it.  Fixup white space and comment.
29938         Don't replace inputs with non-matching constraints which conflict
29939         with early clobber outputs.
29941 2019-03-27  Jeff Law  <law@redhat.com>
29943         PR rtl-optimization/87761
29944         PR rtl-optimization/89826
29945         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29946         slightly later.
29947         (pass_cprop_hardreg::execute): Call df_analyze after adding the
29948         note problem to get REG_DEAD/REG_UNUSED notes updated.
29950 2019-03-27  Richard Biener  <rguenther@suse.de>
29952         PR tree-optimization/89463
29953         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29954         queue edges to remove.
29955         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29956         dead stmts.  Delay edge removal until PHIs are removed to
29957         make debug-stmt creation not confused by seemingly degenerate
29958         PHIs.
29960 2019-03-27  Alan Modra  <amodra@gmail.com>
29962         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29963         throughout file.
29964         * config/rs6000/darwin.h: Likewise.
29965         * config/rs6000/rs6000.c: Likewise.
29967 2019-03-27  Alan Modra  <amodra@gmail.com>
29969         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29970         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
29972 2019-03-26  Andrew Waterman  <andrew@sifive.com>
29973             Jim Wilson  <jimw@sifive.com>
29975         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29976         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29977         (generic_idivdi, generic_fmul_single, generic_fmul_double)
29978         (generic_fdiv, generic_fsqrt): Add check for generic tune.
29979         (generic_alu): Add auipc to type list.
29980         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29981         (riscv_microarchitecture): Declare.
29982         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29983         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29984         field.
29985         (riscv_microarchitecture): New.
29986         (sifive_7_tune_info): New.
29987         (riscv_cpu_info_table): Add microarchitecture value for rocket and
29988         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
29989         entries.
29990         (riscv_store_data_bypass_p): New.
29991         (riscv_option_override): Set riscv_microarchitecture from
29992         cpu->microarchitecture.
29993         * config/riscv/riscv.md: Include sifive-7.md.
29994         (type): Add auipc.
29995         (tune): New.
29996         (auipc<mode>): Change type to auipc.
29997         (restore_stack_nonlocal): New.
29998         * config/riscv/sifive-7.md: New.
29999         * doc/invoke.texi (RISC-V Options): Update mtune docs.
30001 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
30003         PR target/89827
30004         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30005         Also process XEXP (src, 0) of a shift insn.
30007 2019-03-26  Richard Biener  <rguenther@suse.de>
30009         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30010         (copy_debug_stmt): Likewise.
30011         (expand_call_inline): Likewise.
30012         (copy_bb): Avoid redundant lookup & set of gimple_block.
30013         * gimple-low.c (lower_gimple_return): Likewise.
30014         (lower_builtin_setjmp): Likewise.
30016 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
30018         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30019         is constant 0, turn into static const data member initialized to false.
30020         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30021         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30023 2019-03-26  Jason Merrill  <jason@redhat.com>
30024             Jakub Jelinek  <jakub@redhat.com>
30026         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30027         method.
30028         (mem_alloc_description::release_object_overhead): Fix comment typos.
30029         * hash-table.h (hash_table::~hash_table): Call
30030         release_instance_overhead only if m_entries is non-NULL, otherwise
30031         call unregister_descriptor.
30033 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
30035         PR tree-optimization/81740
30036         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30037         In case of outer loop vectorization, check for backward dependence
30038         at the inner loop if outer loop dependence is reversed.
30040 2019-03-26  Alan Modra  <amodra@gmail.com>
30042         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30043         rs6000_vector_mem init.  Correct wI and wJ comment.
30045 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
30047         PR rtl-optimization/88347
30048         PR rtl-optimization/88423
30049         * sched-deps.c (sched_analyze_insn): Take into account that for
30050         tablejumps the barrier appears after a label and a jump_table_data.
30052 2019-03-25  Martin Sebor  <msebor@redhat.com>
30054         PR c/89812
30055         * c-common.c (check_user_alignment): Rename local.  Correct maximum
30056         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
30057         convert it to UHWI when it fits.
30059 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
30061         PR debug/86964
30062         * dwarf2out.c (premark_used_variables): New function.
30063         (prune_unused_types_walk): Do not mark not premarked external
30064         variables.
30065         (prune_unused_types): Call premark_used_variables.
30067 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
30069         PR rtl-optimization/89676
30070         * lra-constraints.c (curr_insn_transform): Do match reload for
30071         early clobbers when the match was successful only for different
30072         registers.
30074 2019-03-25  Martin Sebor  <msebor@redhat.com>
30076         * doc/extend.texi (Common Type Attributes): Document vector_size.
30077         (Common Variable Attributes): Mention size constraint.  Correct
30078         quoting and typos.
30079         (Vector Extensions): Use @dfn when defining bas type.  Clarify
30080         base type and size constraints.
30082 2019-03-25  Richard Biener  <rguenther@suse.de>
30084         PR tree-optimization/89789
30085         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30086         changes from non-undefined back to undefined.
30088 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
30090         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30091         heap string and a gc string, but since this variable is unknown to
30092         ggc the gc string might get reused and corrupted. Fixed by always
30093         using a heap string.
30095 2019-03-25  Richard Biener  <rguenther@suse.de>
30097         PR tree-optimization/89779
30098         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30099         to remove IV defs, delay actual removal.
30100         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
30101         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30102         very end, properly also reset loop control IV information.
30104 2019-03-25  Richard Biener  <rguenther@suse.de>
30106         PR tree-optimization/89802
30107         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30108         move EH data to folded stmt.
30110 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30112         * config/s390/s390-builtin-types.def: Remove few unused types and
30113         fix sort order for others.
30115 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30117         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30118         expected and found types with -mdebug during builtin matching.
30120 2019-03-25  Richard Biener  <rguenther@suse.de>
30122         PR middle-end/89790
30123         * fold-const.c (operand_equal_p): Revert last change with
30124         updated comment.
30126 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
30128         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30129         notes for the result of the __tls_get_addr calls.
30130         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30132 2019-03-24  Jeff Law  <law@redhat.com>
30134         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30136         PR rtl-optimization/87761
30137         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30138         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
30139         as needed.
30140         (pass_cprop_hardreg::execute): Add df note problem and defer insn
30141         rescans.  Reprocess blocks as needed, calling df_analyze before
30142         reprocessing.  Always call df_analyze before fixing up debug bind
30143         insns.
30145 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
30147         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30148         big endian.
30150 2019-03-22  Andrew Pinski  <apinski@marvell.com>
30152         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30153         attrribute for uxtw.
30155 2019-03-26  Jeff Law  <law@redhat.com>
30157         PR rtl-optimization/87761
30158         * config/mips/mips-protos.h (mips_split_move): Add new argument.
30159         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30160         (mips_split_move): Accept new INSN argument.  Try to forward SRC
30161         into the next instruction.
30162         (mips_split_move_insn): Pass INSN through to mips_split_move.
30164 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
30166         PR rtl-optimization/89676
30167         * lra-constraints.c (curr_insn_transform): Do match reload for
30168         early clobbers even if the match was successful.
30170 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
30172         PR c++/87481
30173         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30175 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
30177         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30179 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
30181         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30182         <avx512>_fmsub_<mode>_mask3<round_name>,
30183         <avx512>_fnmadd_<mode>_mask3<round_name>,
30184         <avx512>_fnmsub_<mode>_mask3<round_name>,
30185         avx512f_vmfmadd_<mode>_mask3<round_name>,
30186         avx512f_vmfmsub_<mode>_mask3<round_name>,
30187         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30188         instead of register_operand and %v instead of v for match_operand 1.
30189         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30190         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
30191         <round_nimm_predicate> instead of register_operand and %v instead of v
30192         for match_operand 1.
30194         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30195         <avx512>_fmadd_<mode>_mask3<round_name>,
30196         <avx512>_fmsub_<mode>_mask<round_name>,
30197         <avx512>_fmsub_<mode>_mask3<round_name>,
30198         <avx512>_fnmadd_<mode>_mask<round_name>,
30199         <avx512>_fnmadd_<mode>_mask3<round_name>,
30200         <avx512>_fnmsub_<mode>_mask<round_name>,
30201         <avx512>_fnmsub_<mode>_mask3<round_name>,
30202         <avx512>_fmaddsub_<mode>_mask<round_name>,
30203         <avx512>_fmaddsub_<mode>_mask3<round_name>,
30204         <avx512>_fmsubadd_<mode>_mask<round_name>,
30205         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30206         <round_nimm_predicate> instead of nonimmediate_operand.
30207         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30208         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30209         Use register_operand instead of <round_nimm_predicate> for the
30210         operand that needs to match output.
30211         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30212         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30213         Likewise.  Formatting fixes.
30215         PR target/89784
30216         * config/i386/i386.c (enum ix86_builtins): Remove
30217         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30218         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30219         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30220         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30221         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30222         __builtin_ia32_vfmsubss3_mask3): New builtins.
30223         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30224         avx512f_vmfmadd_<mode>_mask3<round_name>,
30225         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30226         *avx512f_vmfmsub_<mode>_mask<round_name>,
30227         avx512f_vmfmsub_<mode>_mask3<round_name>,
30228         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30229         *avx512f_vmfnmadd_<mode>_mask<round_name>,
30230         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30231         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30232         *avx512f_vmfnmsub_<mode>_mask<round_name>,
30233         avx512f_vmfnmsub_<mode>_mask3<round_name>,
30234         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30235         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30236         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30237         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30238         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30239         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30240         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30241         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30242         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30243         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30244         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30245         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30246         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30247         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30248         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30249         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30250         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30251         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30252         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30253         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30254         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30255         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30257 2019-03-21  Martin Sebor  <msebor@redhat.com>
30259         PR tree-optimization/89350
30260         * builtins.c (compute_objsize): Also ignore offsets whose upper
30261         bound is negative.
30262         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30263         (builtin_memref::builtin_memref): Initialize new member.
30264         Allow EXPR to be null.
30265         (builtin_memref::extend_offset_range): Replace local with a member.
30266         Avoid assuming pointer offsets are unsigned.
30267         (builtin_memref::set_base_and_offset): Determine base object
30268         before computing offset range.
30269         (builtin_access::builtin_access): Handle memset.
30270         (builtin_access::generic_overlap): Replace local with a member.
30271         (builtin_access::strcat_overlap): Same.
30272         (builtin_access::overlap): Same.
30273         (maybe_diag_overlap): Same.
30274         (maybe_diag_access_bounds): Same.
30275         (wrestrict_dom_walker::check_call): Handle memset.
30276         (check_bounds_or_overlap): Same.
30278 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
30279             Jakub Jelinek  <jakub@redhat.com>
30281         PR lto/89692
30282         * tree.c (fld_type_variant, fld_incomplete_type_of,
30283         fld_process_array_type): Call fld->pset.add and don't call
30284         add_tree_to_fld_list if it returns true.
30285         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
30286         non-marked types from TYPE_NEXT_VARIANT list.
30287         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30289 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
30291         * hash-table.h (hash_table): Add Lazy template parameter defaulted
30292         to false, if true, don't alloc_entries during construction, but defer
30293         it to the first method that needs m_entries allocated.
30294         (hash_table::hash_table, hash_table::~hash_table,
30295         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30296         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30297         hash_table::clear_slot, hash_table::traverse_noresize,
30298         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30299         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30300         false.
30301         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30302         NO_INSERT instead of find_with_hash.
30303         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30304         hash_set::m_table): Add Lazy to template params of hash_table.
30305         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30306         * attribs.c (test_attribute_exclusions): Likewise.
30307         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30308         hash_set.  Add tests for hash_set with Lazy = true.
30310 2019-03-21  Richard Biener  <rguenther@suse.de>
30312         PR tree-optimization/89779
30313         * tree.c (tree_nop_conversion): Consolidate and fix defensive
30314         checks with respect to released SSA names now having error_mark_node
30315         type.
30316         * fold-const.c (operand_equal_p): Likewise.
30318 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
30320         PR target/89775
30321         * config/s390/s390.c (global_not_special_regno_p): Move to make it
30322         available to ...
30323         (s390_optimize_register_info): Use global_not_special_regno_p to
30324         check for global regs.
30326 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
30328         PR target/89752
30329         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30330         update this_alternative nor this_alternative_set.
30332 2019-03-19  Jim Wilson  <jimw@sifive.com>
30334         PR target/89411
30335         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
30336         align, size, offset.  Use them to handle a BLKmode reference.  Update
30337         comment.
30338         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30340 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
30342         PR rtl-optimization/89768
30343         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30344         instead of GEN_INT.
30345         (unroll_loop_runtime_iterations): Likewise.
30347 2019-03-19  Martin Sebor  <msebor@redhat.com>
30349         PR tree-optimization/89644
30350         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30351         rather than endptr as an indicator of nul-termination.
30353         PR tree-optimization/89644
30354         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30355         arrays in determining sequence sizes in strncpy and stpncpy.
30357 2019-03-19  Martin Liska  <mliska@suse.cz>
30359         PR middle-end/89737
30360         * predict.c (combine_predictions_for_bb): Empty likely_edges and
30361         unlikely_edges if there's an edge that belongs to both these sets.
30363 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
30365         PR target/89746
30366         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30367         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30368         go via a stack temporary.
30370 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
30372         PR target/89378
30373         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30374         instead of gen_rtx_SUBREG.
30375         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30377 2019-03-19  Richard Biener  <rguenther@suse.de>
30379         PR debug/88389
30380         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30382 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
30384         PR lto/87809
30385         PR lto/89335
30386         * tree.c (free_lang_data_in_decl): Do not free context of C++
30387         destrutors.
30389 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
30391         PR target/89506
30392         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30393         subs for the first alternative except when operands[3] is 1.
30395         PR target/89752
30396         * gimplify.c (gimplify_asm_expr): For output argument with
30397         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30398         diagnose error.
30400 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
30402         PR rtl-optimization/89753
30403         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30404         explicit unrolling factor even more robust.
30406 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
30408         PR target/89726
30409         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30410         compensation use x2 += 1 instead of x2 -= -1 and when honoring
30411         signed zeros, do another copysign after the compensation.
30413 2019-03-18  Martin Sebor  <msebor@redhat.com>
30415         PR tree-optimization/89720
30416         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30417         more conservatively, the same as anti-range.
30419 2019-03-18  Richard Biener  <rguenther@suse.de>
30421         PR middle-end/88945
30422         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30423         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30424         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
30425         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30427 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
30429         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30430         Extend queue to 1024 entries.
30431         Add "consumed" field.
30432         (gomp_print_output): Remove print_index parameter.
30433         Add final parameter.
30434         Change limit to unsigned.
30435         Use consumed field to implement circular buffer.
30436         Detect interrupted print in final pass.
30437         Flush output at the end.
30438         (run): Update gomp_print_output usage.
30439         (main): Initialize kernargs->output_data.consumed.
30441 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
30443         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30444         calculation of the minimum number of scalar iterations for
30445         fully-predicated loops.
30447 2019-03-18  Martin Jambor  <mjambor@suse.cz>
30449         PR tree-optimization/89546
30450         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30451         any propagation to its children took place.
30453 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
30455         PR target/89627
30456         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30457         parameter, and make use of it.
30458         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30460 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30462         * config/arc/arc.opt (mcode-density-frame): Get the inital value
30463         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30464         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30465         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30466         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30467         match what the ops is doing.
30468         (push_multi_fp_blink): Likewise.
30469         * config/arc/arc.c (arc_override_options): Enable enter/leave when
30470         compiling for size and elf target.
30471         (arc_save_callee_enter): Adjust note to match what enter/leave
30472         operation does.
30474 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30476         * config/arc/arc.md (tst_movb): Fix constraint.
30478 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30480         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30482 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30484         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30485         * config/arc/arc.c (arc_conditional_register_usage): Remove all
30486         reg_alloc_order references.
30487         (size_alloc_order): Define.
30488         (arc_adjust_reg_alloc_order): New function.
30489         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30490         order.
30491         (ADJUST_REG_ALLOC_ORDER): Define.
30492         (HONOR_REG_ALLOC_ORDER): Likewise.
30494 2019-03-18  Richard Biener  <rguenther@suse.de>
30496         PR target/87561
30497         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30498         loads and stores a bit more.
30500 2019-03-18  Richard Biener  <rguenther@suse.de>
30502         PR target/87561
30503         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30504         load pessimization to stores as well.
30506 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
30508         PR middle-end/86979
30509         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30510         successor, use NULL as its av set.
30512 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
30514         PR rtl-optimization/89721
30515         * lra-constraints (invariant_p): Return false if side_effects_p holds.
30517 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
30519         PR target/87532
30520         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30521         When handling vec_extract, use modular arithmetic to allow
30522         constant selectors greater than vector length.
30523         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30524         V1TImode vectors to have constant selector values greater than 0.
30525         Use modular arithmetic to compute vector index.
30526         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30527         index for in-memory vectors.  Correct code generation for
30528         in-register vectors.
30529         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30530         compute index.
30532 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
30534         PR c++/88534
30535         PR c++/88537
30536         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30537         VAR_DECL args.
30539 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
30541         PR c++/89709
30542         * tree.c (inchash::add_expr): Strip any location wrappers.
30543         * fold-const.c (operand_equal_p): Move stripping of location wrapper
30544         after hash verification.
30546         PR debug/89704
30547         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30548         SIGN_EXTEND and ZERO_EXTEND.
30550 2019-03-14  Jason Merrill  <jason@redhat.com>
30551             Jakub Jelinek  <jakub@redhat.com>
30553         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30554         than if is_empty (*slot).
30555         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30556         existing elt and for elt removal.
30557         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30558         of already removed elt.
30560 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
30562         PR target/89650
30563         * config/i386/i386.c (remove_partial_avx_dependency): Handle
30564         REG_EH_REGION note.
30566 2019-03-14  Martin Liska  <mliska@suse.cz>
30568         PR other/89712
30569         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30571 2019-03-14  Richard Biener  <rguenther@suse.de>
30573         PR target/89711
30574         * config/i386/i386.c (make_resolver_func): Properly set
30575         DECL_CONTEXT on the RESULT_DECL.
30576         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30578 2019-03-14  Richard Biener  <rguenther@suse.de>
30580         * gimple-pretty-print.c: Include cfgloop.h.
30581         (dump_gimple_phi): Adjust.
30582         (dump_gimple_bb_header): Dump loop header for GIMPLE.
30583         (pp_cfg_jump): Adjust.
30584         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30585         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30586         (lower_phi_internal_fn): Remove.
30587         (verify_gimple_call): Remove IFN_PHI special-casing.
30588         (dump_function_to_file): Dump IL state.
30589         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30590         done to deal with PHI nodes being present in non-SSA state.
30592 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
30594         PR ipa/89684
30595         * multiple_target.c (create_dispatcher_calls): Change
30596         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30597         In the node->iterate_referring loop, push *ref rather than ref, call
30598         ref->remove_reference () and always pass 0 to iterate_referring.
30600         PR rtl-optimization/89679
30601         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30602         would contain a paradoxical SUBREG.
30604 2019-03-14  Richard Biener  <rguenther@suse.de>
30606         PR tree-optimization/89710
30607         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30608         safe_dyn_cast.
30610 2019-03-14  Martin Liska  <mliska@suse.cz>
30612         * coverage.c (coverage_begin_function): Stream also
30613         end_column.
30614         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
30615         documentation about function declaration location.
30616         * gcov-dump.c (tag_function): Print whole range
30617         of function declaration.
30618         * gcov.c (struct function_info): Add end_column field.
30619         (function_info::function_info): Initialize it.
30620         (output_json_intermediate_file): Output {start,end}_column
30621         fields.
30622         (read_graph_file): Read end_column.
30624 2019-03-14  Richard Biener  <rguenther@suse.de>
30626         PR middle-end/89698
30627         * fold-const.c (operand_equal_p): For INDIRECT_REF check
30628         that the access types are similar.
30630 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
30632         PR tree-optimization/89703
30633         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30634         aren't compatible also with builtin_decl_explicit.  Check pure
30635         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30636         and BUILT_IN_STPNCPY{,_CHK}.
30638 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
30640         PR target/89523
30641         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30642         addr32 prefix to VSIB address for X32.
30643         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30644         "%M2" to opcode.
30645         (*avx512pf_gatherpf<mode>df_mask): Likewise.
30646         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30647         (*avx512pf_scatterpf<mode>df_mask): Likewise.
30648         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30649         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30650         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30651         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30652         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30653         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30654         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30655         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30656         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30657         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30658         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30659         (*avx512f_scatterdi<mode>): Likewise.
30661 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30663         PR target/85860
30664         * lra-constraints.c (inherit_in_ebb): Update
30665         potential_reload_hard_regs along with live_hard_regs.
30667 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
30669         PR debug/89498
30670         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30671         DWARF_OFFSET_SIZE.
30672         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30674 2019-03-13  Martin Sebor  <msebor@redhat.com>
30676         PR tree-optimization/89662
30677         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30678         has a size.
30680 2019-03-13  Richard Biener  <rguenther@suse.de>
30682         PR middle-end/89677
30683         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30684         throw FP expressions at tree-affine.
30686 2019-03-14  Richard Biener  <rguenther@suse.de>
30688         * tree-pretty-print.c (dump_generic_node): For -gimple properly
30689         dump negative integer constants using _Literal (type) -num.
30691 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
30693         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30694         nonlocal_value member.
30696         PR middle-end/88588
30697         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30698         (ipa_simd_modify_function_body): Handle PHIs.
30700 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30702         * config/s390/s390.c (s390_option_override_internal): Use more
30703         aggressive inlining parameters.
30705 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30707         * config/s390/3906.md: New file.
30708         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30709         (LONGRUNNING_THRESHOLD): Remove.
30710         (MAX_SCHED_MIX_SCORE): Decrease.
30711         (MAX_SCHED_MIX_DISTANCE): Decrease.
30712         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30713         (struct s390_sched_state): New struct to hold scheduling state.
30714         (S390_SCHED_STATE_NORMAL): Remove.
30715         (S390_SCHED_STATE_CRACKED): Remove.
30716         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30717         (s390_get_sched_attrmask): Use new attribute.
30718         (s390_get_unit_mask): Use new units.
30719         (s390_is_fpd): New function.
30720         (s390_is_fxd): New function.
30721         (s390_is_longrunning): New function.
30722         (s390_sched_score): Use new functions.
30723         (s390_sched_reorder): Likewise.
30724         (s390_sched_variable_issue): Rework and use new functions.
30725         (s390_sched_init): Use new functions.
30726         * config/s390/s390.h (s390_tune_attr): Add z14.
30727         * config/s390/s390.md: Add z14.
30729 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30731         * config/s390/2964.md: Update pipeline description.
30732         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30733         (LONGRUNNING_THRESHOLD): Remove.
30734         (LATENCY_FACTOR): Remove.
30735         (s390_get_unit_mask): Add unit.
30736         (s390_sched_score): Use fxd/fpd.
30737         (s390_sched_variable_issue): Use fxd/fpd.
30739 2019-03-12  Martin Liska  <mliska@suse.cz>
30741         * config/i386/i386.c: Reword an error message.
30743 2019-03-12  Martin Jambor  <mjambor@suse.cz>
30745         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30746         terminate with newline.
30748 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
30750         PR target/52726
30751         * config/s390/s390.md (tabort): Use %wd instead of
30752         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30753         letters and periods.
30754         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30755         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30756         's with %< and %>.
30758         PR middle-end/89663
30759         * builtins.c (expand_builtin_int_roundingfn,
30760         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30761         gcc_unreachable if validate_arglist fails.
30763 2019-03-12  Richard Biener  <rguenther@suse.de>
30765         PR tree-optimization/89664
30766         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30767         free the occurance tree after the early out.
30769 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
30771         PR middle-end/89655
30772         PR bootstrap/89656
30773         * vr-values.c (vr_values::update_value_range): If
30774         old_vr->varying_p (), don't update it, make new_vr also VARYING
30775         and return false.
30777 2019-03-11  Martin Liska  <mliska@suse.cz>
30779         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30780         Fix double string quoting.
30782 2019-03-11  Martin Liska  <mliska@suse.cz>
30784         * collect-utils.c (collect_wait): Wrap apostrophes
30785         in gcc internal format with %'.
30786         * collect2.c (main): Likewise.
30787         (scan_prog_file): Likewise.
30788         (scan_libraries): Likewise.
30789         * config/i386/i386.c (ix86_expand_call): Likewise.
30790         (ix86_handle_interrupt_attribute): Likewise.
30791         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30792         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30793         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30794         * lto-wrapper.c (find_crtoffloadtable): Likewise.
30795         * symtab.c (symtab_node::verify_base): Likewise.
30796         * tree-cfg.c (verify_gimple_label): Likewise.
30797         * tree.c (verify_type_variant): Likewise.
30799 2019-03-11  Martin Liska  <mliska@suse.cz>
30801         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30802         in a string format message and fix GNU coding style.
30803         (expand_builtin_set_thread_pointer): Likewise.
30804         * common/config/aarch64/aarch64-common.c
30805         (aarch64_rewrite_selected_cpu): Likewise.
30806         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30807         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30808         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30809         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30810         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30811         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30812         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30813         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30814         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30815         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30816         Likewise.
30817         * common/config/riscv/riscv-common.c
30818         (riscv_subset_list::parsing_subset_version): Likewise.
30819         (riscv_subset_list::parse_std_ext): Likewise.
30820         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30821         (riscv_subset_list::parse): Likewise.
30822         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30823         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30824         (aarch64_override_options_internal): Likewise.
30825         (aarch64_validate_mcpu): Likewise.
30826         (aarch64_validate_march): Likewise.
30827         (aarch64_validate_mtune): Likewise.
30828         (aarch64_override_options): Likewise.
30829         * config/alpha/alpha.c (alpha_option_override): Likewise.
30830         * config/arc/arc.c (arc_init): Likewise.
30831         (parse_mrgf_banked_regs_option): Likewise.
30832         (arc_override_options): Likewise.
30833         (arc_expand_builtin_aligned): Likewise.
30834         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30835         (arm_expand_builtin): Likewise.
30836         * config/arm/arm.c (arm_option_check_internal): Likewise.
30837         (arm_configure_build_target): Likewise.
30838         (arm_option_override): Likewise.
30839         (arm_options_perform_arch_sanity_checks): Likewise.
30840         (arm_handle_cmse_nonsecure_entry): Likewise.
30841         (arm_handle_cmse_nonsecure_call): Likewise.
30842         (arm_tls_referenced_p): Likewise.
30843         (thumb1_expand_prologue): Likewise.
30844         * config/avr/avr.c (avr_option_override): Likewise.
30845         * config/bfin/bfin.c (bfin_option_override): Likewise.
30846         * config/c6x/c6x.c (c6x_option_override): Likewise.
30847         * config/cr16/cr16.c (cr16_override_options): Likewise.
30848         * config/cris/cris.c (cris_option_override): Likewise.
30849         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30850         * config/darwin-c.c (macosx_version_as_macro): Likewise.
30851         * config/darwin.c (darwin_override_options): Likewise.
30852         * config/frv/frv.c (frv_expand_builtin): Likewise.
30853         * config/h8300/h8300.c (h8300_option_override): Likewise.
30854         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30855         (ix86_option_override_internal): Likewise.
30856         (warn_once_call_ms2sysv_xlogues): Likewise.
30857         (ix86_expand_prologue): Likewise.
30858         (split_stack_prologue_scratch_regno): Likewise.
30859         (ix86_warn_parameter_passing_abi): Likewise.
30860         * config/ia64/ia64.c (fix_range): Likewise.
30861         * config/m68k/m68k.c (m68k_option_override): Likewise.
30862         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30863         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30864         (mips_set_compression_mode): Likewise.
30865         * config/mmix/mmix.c (mmix_option_override): Likewise.
30866         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30867         * config/msp430/msp430.c (msp430_option_override): Likewise.
30868         * config/nds32/nds32.c (nds32_option_override): Likewise.
30869         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30870         (nios2_option_override): Likewise.
30871         (nios2_expand_custom_builtin): Likewise.
30872         * config/nvptx/mkoffload.c (main): Likewise.
30873         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30874         * config/pa/pa.c (fix_range): Likewise.
30875         (pa_option_override): Likewise.
30876         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30877         (riscv_option_override): Likewise.
30878         * config/rl78/rl78.c (rl78_option_override): Likewise.
30879         * config/rs6000/aix61.h: Likewise.
30880         * config/rs6000/aix71.h: Likewise.
30881         * config/rs6000/aix72.h: Likewise.
30882         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30883         * config/rs6000/freebsd64.h: Likewise.
30884         * config/rs6000/linux64.h: Likewise.
30885         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30886         (rs6000_expand_zeroop_builtin): Likewise.
30887         (rs6000_expand_mtfsb_builtin): Likewise.
30888         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30889         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30890         (rs6000_invalid_builtin): Likewise.
30891         (rs6000_expand_split_stack_prologue): Likewise.
30892         * config/rs6000/rtems.h: Likewise.
30893         * config/rx/rx.c (valid_psw_flag): Likewise.
30894         (rx_expand_builtin): Likewise.
30895         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30896         * config/s390/s390.c (s390_expand_builtin): Likewise.
30897         (s390_function_profiler): Likewise.
30898         (s390_option_override_internal): Likewise.
30899         (s390_option_override): Likewise.
30900         * config/sh/sh.c (sh_option_override): Likewise.
30901         (sh_builtin_saveregs): Likewise.
30902         (sh_fix_range): Likewise.
30903         * config/sh/vxworks.h: Likewise.
30904         * config/sparc/sparc.c (sparc_option_override): Likewise.
30905         * config/spu/spu.c (spu_option_override): Likewise.
30906         (fix_range): Likewise.
30907         * config/visium/visium.c (visium_option_override): Likewise.
30908         (visium_handle_interrupt_attr): Likewise.
30909         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30910         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30911         (dbg_cnt_process_opt): Likewise.
30912         * dwarf2out.c (output_dwarf_version): Likewise.
30913         * except.c (expand_eh_return): Likewise.
30914         * gcc.c (defined): Likewise.
30915         (driver_handle_option): Likewise.
30916         (process_command): Likewise.
30917         (compare_files): Likewise.
30918         (driver::prepare_infiles): Likewise.
30919         (driver::do_spec_on_infiles): Likewise.
30920         (driver::maybe_run_linker): Likewise.
30921         * omp-offload.c (oacc_parse_default_dims): Likewise.
30922         * opts-global.c (handle_common_deferred_options): Likewise.
30923         * opts.c (parse_sanitizer_options): Likewise.
30924         (common_handle_option): Likewise.
30925         (enable_warning_as_error): Likewise.
30926         * passes.c (enable_disable_pass): Likewise.
30927         * plugin.c (parse_plugin_arg_opt): Likewise.
30928         (default_plugin_dir_name): Likewise.
30929         * targhooks.c (default_expand_builtin_saveregs): Likewise.
30930         (default_pch_valid_p): Likewise.
30931         * toplev.c (init_asm_output): Likewise.
30932         (process_options): Likewise.
30933         (toplev::run_self_tests): Likewise.
30934         * tree-cfg.c (verify_gimple_call): Likewise.
30935         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30936         (tree_inlinable_function_p): Likewise.
30937         * var-tracking.c (vt_find_locations): Likewise.
30939 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
30941         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30942         only on the else branch.
30944 2019-03-11  Martin Liska  <mliska@suse.cz>
30946         * gcov.c (output_intermediate_json_line): Print function
30947         name of each line.
30948         (output_json_intermediate_file): Add new argument.
30949         * doc/gcov.texi: Document the change.
30951 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
30953         PR rtl-optimization/89588
30954         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30955         explicit unrolling factor more robust.
30957 2019-03-11  Richard Biener  <rguenther@suse.de>
30959         PR tree-optimization/89649
30960         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30961         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30962         on the prolog and epilog loops.
30963         (vect_loop_versioning): Return copy of loop.
30964         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30965         on the non-vectorized version of the loop.
30967 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
30969         PR target/68924
30970         * config/i386/sse.md (*vec_extractv2di_0_sse):
30971         Add (=r,x) alternative and corresponding splitter.
30973 2019-03-10  Martin Jambor  <mjambor@suse.cz>
30975         PR tree-optimization/85762
30976         PR tree-optimization/87008
30977         PR tree-optimization/85459
30978         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30979         it points to if there is a type changing MEM_REF.  Adjust all callers.
30980         (build_accesses_from_assign): Disable total scalarization if
30981         contains_vce_or_bfcref_p returns true through the new parameter, for
30982         both rhs and lhs.
30984 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
30986         PR c/88568
30987         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30988         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30990         PR target/79645
30991         * common.opt (fdiagnostics-show-labels,
30992         fdiagnostics-show-line-numbers, fdiagnostics-format=,
30993         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30994         gas-locview-support, ginline-points, ginternal-reset-location-views):
30995         Terminate description text with a dot.
30996         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30997         * config/mcore/mcore.opt (m210, m340): Likewise.
30998         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30999         mnops=): Start description text with a capital letter.
31000         * config/arc/arc.opt (msize-level=): Likewise.
31001         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31002         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31003         mnewlib): Likewise.
31004         * config/ft32/ft32.opt (msim): Likewise.
31005         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
31006         (mnodiv, mnopm): Terminate description text with a dot.
31007         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31008         a colon.
31009         * config/i386/i386.opt (prefer_vector_width, instrument_return):
31010         Likewise.
31011         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31012         text.
31014         PR rtl-optimization/89634
31015         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31016         are modified in BB_END (e->src) instruction.
31018 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
31020         PR target/79926
31021         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31022         messages more amenable to translation, and improve wording.
31024 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
31026         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31027         ud- and du-chains between phases.
31029 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
31031         PR debug/89631
31032         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31033         instead of POLY_INT_CST.
31035 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31037         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31038         requirement.
31040 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31042         PR target/68924
31043         PR target/78782
31044         PR target/87558
31045         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31046         (_mm_storeu_si64): Ditto.
31048 2019-03-08  Martin Liska  <mliska@suse.cz>
31050         PR target/86952
31051         * config/i386/i386.c (ix86_option_override_internal): Disable
31052         jump tables when retpolines are used.
31054 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
31056         PR go/63560
31057         * ipa-split.c (execute_split_functions): Do not split
31058         'noinline' or 'section' function.
31060 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31062         PR target/79846
31063         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31064         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31065         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
31067         PR ipa/80000
31068         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31069         from diagnostics.  Formatting fixes.
31071         PR target/85665
31072         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31073         warn_odr diagnostics.
31075         PR other/80058
31076         * lra-constraints.c (process_alt_operands): Avoid one space before
31077         " at the end of line and another after " on another line in a string
31078         literal.
31079         * attribs.c (handle_dll_attribute): Likewise.
31080         * config/avr/avr-devices.c (avr_texinfo): Likewise.
31082         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31083         warning_at or inform messages in G_() if there is no ?:.
31085         PR tree-optimization/89550
31086         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31087         returned true.  Formatting fixes.
31088         (expand_builtin_strnlen): Formatting fixes.
31089         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31090         if warning_at returned true.
31091         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31093 2019-03-08  Richard Biener  <rguenther@suse.de>
31095         PR middle-end/89578
31096         * cfgloop.h (struct loop): Add owned_clique field.
31097         * cfgloopmanip.c (copy_loop_info): Copy it.
31098         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31099         cliques.
31100         * tree-inline.c (copy_loops): Remap owned_clique.
31101         * lto-streamer-in.c (input_cfg): Stream owned_clique.
31102         * lto-streamer-out.c (output_cfg): Likewise.
31104 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31106         PR target/80190
31107         * config/darwin.c: Include intl.h.
31108         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31109         composing the message out of two separate parts.
31111 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
31113         PR target/80003
31114         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31115         doesn't start with a capital letter and doesn't end with a dot.
31116         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31117         with a capital letter.
31118         (ix86_mangle_function_version_assembler_name): Likewise.
31119         (ix86_generate_version_dispatcher_body): Likewise.
31120         (fold_builtin_cpu): Likewise.
31121         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
31122         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31123         translators, wrap full type name in %qs.
31125         PR translation/79999
31126         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31127         depend clause with source (or sink) modifier.
31128         * omp-expand.c (expand_omp_ordered_sink): Likewise.
31130         PR target/89602
31131         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31132         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31133         (avx512f_load<mode>_mask): New define_expand.
31134         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31135         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31136         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31137         __builtin_ia32_movess_mask): New builtins.
31138         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31139         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31140         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31141         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31143 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31145         PR lto/87525
31146         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31147         for extern inline functions.
31149 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31151         PR ipa/88235
31152         * cgraph.h (cgraph_node): New inline method former_thunk_p.
31153         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31154         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31155         have multiple callees.  At the end check if declarations match as
31156         opposed to cgraph_nodes.
31158 2019-03-07  Martin Liska  <mliska@suse.cz>
31160         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31161         which is equivalent to searching for this in clones chain.
31162         * symtab.c (symtab_node::verify_base): Similarly compare ASM
31163         names with a neighbour and special case first node in a chain.
31165 2019-01-25  Jason Merrill  <jason@redhat.com>
31167         PR c++/80916 - spurious "static but not defined" warning.
31168         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31169         for an internal symbol with DECL_EXTERNAL.
31171 2019-04-07  Richard Biener  <rguenther@suse.de>
31173         PR middle-end/89618
31174         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31175         * tree-inline.c (copy_loops): Simplify.
31177 2019-03-07  Martin Liska  <mliska@suse.cz>
31179         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31181 2019-03-07  Richard Biener  <rguenther@suse.de>
31183         PR tree-optimization/89595
31184         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31185         stmt iterator as reference, take boolean output parameter to
31186         indicate whether the stmt was removed and thus the iterator
31187         already advanced.
31188         (dom_opt_dom_walker::before_dom_children): Re-iterate over
31189         stmts created by folding.
31191 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
31193         PR c++/89585
31194         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31195         at toplevel.
31197 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
31199         PR rtl-optimization/88845
31200         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31201         LRA.
31202         * lra.c (remove_scratches_1): New function.
31203         (remove_scratches): Use it.
31204         (lra_emit_move): Likewise.
31206 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
31208         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31209         unaligned_access variable.
31210         * config/arc/arc.c (arc_override_options): Set unaligned access
31211         default on for HS CPUs.
31212         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31214 2019-03-06  Martin Liska  <mliska@suse.cz>
31216         PR gcov-profile/89577
31217         * doc/gcov.texi: Prefer to use --coverage.
31218         * doc/sourcebuild.texi: Likewise.
31220 2019-03-02  Jason Merrill  <jason@redhat.com>
31222         PR c++/86485 - -Wmaybe-unused with empty class ?:
31223         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31225 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31227         PR target/89587
31228         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31229         if_multiarch.
31231         PR middle-end/89590
31232         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31233         exactly one argument.
31235 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31236             Richard Sandiford  <richard.sandiford@arm.com>
31238         PR tree-optimization/89570
31239         * match.pd (vec_cond into cond_op simplification): Don't use
31240         get_conditional_internal_fn, use as_internal_fn (cond_op).
31242 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
31244         PR target/89222
31245         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31246         to decide when to split off a non-zero offset from a symbol.
31247         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31248         in function symbols.
31250 2019-03-05  Richard Biener  <rguenther@suse.de>
31252         PR tree-optimization/89594
31253         * tree-if-conv.c (pass_if_conversion::execute): Handle
31254         case where .LOOP_VECTORIZED_FUNCTION was removed.
31256 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31258         PR bootstrap/89560
31259         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31260         instead alloca it only when needed with the needed size.
31262         PR tree-optimization/89570
31263         * match.pd (vec_cond into cond_op simplification): Guard with
31264         vectorized_internal_fn_supported_p test and #if GIMPLE.
31266         PR tree-optimization/89566
31267         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31268         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31269         Punt if get_user_idx_format succeeds, but idx_format argument is
31270         not provided or doesn't have pointer type, or if idx_args is above
31271         number of provided arguments.
31273 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
31275         PR tree-optimization/89437
31276         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31278 2019-03-04  Richard Biener  <rguenther@suse.de>
31280         PR middle-end/89572
31281         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31282         safe_dyn_cast.
31284 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
31286         PR tree-optimization/89487
31287         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31288         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31289         (distribute_loop): Don't do runtime alias check if there is non-
31290         addressable data reference.
31291         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31292         is a register variable.
31294 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
31296         PR target/89506
31297         * config/arm/arm.md (cmpsi2_addneg): Use
31298         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31299         If operands[2] is 0 or INT_MIN, force use of subs.
31300         (*compare_scc splitter): Use gen_int_mode.
31301         (*negscc): Likewise.
31302         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31304 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
31305             Monk Chiang  <sh.chiang04@gmail.com>
31307         * common/config/riscv/riscv-common.c: Include sstream.
31308         (riscv_subset_list::to_string): New.
31309         (riscv_arch_str): Likewise.
31310         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31311         * config.in: Regen.
31312         * config/riscv/riscv-protos.h (riscv_arch_str): New.
31313         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31314         (riscv_emit_attribute): New.
31315         (riscv_file_start): Emit attribute if needed.
31316         (riscv_option_override): Init riscv_emit_attribute_p.
31317         * config/riscv/riscv.opt (mriscv-attribute): New option.
31318         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31319         * configure: Regen.
31320         * doc/install.texi: Document --with-riscv-attribute.
31321         * doc/invoke.texi: Document -mriscv-attribute.
31323         * common/config/riscv/riscv-common.c:
31324         Include config/riscv/riscv-protos.h.
31325         (INCLUDE_STRING): Defined.
31326         (RISCV_DONT_CARE_VERSION): Defined.
31327         (riscv_subset_t): Declare.
31328         (riscv_subset_t::riscv_subset_t): New.
31329         (riscv_subset_list): Declare.
31330         (riscv_subset_list::riscv_subset_list): New.
31331         (riscv_subset_list::~riscv_subset_list): Likewise.
31332         (riscv_subset_list::parsing_subset_version): Likewise.
31333         (riscv_subset_list::parse_std_ext): Likewise.
31334         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31335         (riscv_subset_list::add): Likewise.
31336         (riscv_subset_list::lookup): Likewise.
31337         (riscv_subset_list::xlen): Likewise.
31338         (riscv_subset_list::parse): Likewise.
31339         (riscv_supported_std_ext): Likewise.
31340         (current_subset_list): Likewise.
31341         (riscv_parse_arch_string): Using riscv_subset_list::parse to
31342         parse.
31344 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
31346         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31347         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31348         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31350 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
31352         PR rtl-optimization/85899
31353         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31354         fallthru edges leading to the exit block.
31356 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
31358         PR target/89517
31359         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31360         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31362 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
31364         PR tree-optimization/89535
31365         * tree-vect-stmts.c (vectorizable_call): Record the vector types
31366         for each operand.  Calculate the fallback choice for mask operands
31367         and pass it to vect_get_vec_def_for_operand.
31369 2019-03-01  Richard Biener  <rguenther@suse.de>
31371         PR middle-end/89541
31372         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31373         get virtual operands.
31374         (get_expr_operands): Handle CONST_DECL like other decls.
31376 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
31378         PR middle-end/89503
31379         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31380         on DECL_P and EXPR_P.
31382 2019-03-01  Richard Biener  <rguenther@suse.de>
31384         PR middle-end/89497
31385         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31386         argument, defaulted to zero.
31387         * passes.c (execute_function_todo): Pass down SSA update flags
31388         to cleanup_tree_cfg.
31389         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31390         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31391         form if requested.
31392         (cleanup_tree_cfg): Get and pass down SSA update flags.
31394 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
31396         PR bootstrap/89539
31397         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31398         early_lto_debug argument.
31400 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
31402         PR tree-optimization/89536
31403         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31404         only whether bit #0 of the value is 0 instead of the entire value.
31406 2019-02-28  Marek Polacek  <polacek@redhat.com>
31408         PR c++/87068 - missing diagnostic with fallthrough statement.
31409         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31410         at the end of a seq, save its location to walk_stmt_info.
31411         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31412         a switch.
31414 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
31416         PR lto/88585
31417         * tree.c (find_atomic_core_type): Move ahead in file.
31418         (check_base_type): Correctly compare alignments of atomic types.
31420 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31422         PR target/89455
31423         * config/i386/i386.c (get_builtin_code_for_version): Identify
31424         Westmere from PCLMUL, instead of AES.
31426 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
31428         PR target/89434
31429         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31430         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31431         -UINTVAL (...).
31433 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
31435         PR target/88530
31436         * config/aarch64/aarch64-option-extensions.def: Document it.
31437         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31438         if empty hwcaps.
31440 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
31442         PR c/89520
31443         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31444         builtins if they don't have a single scalar floating point argument.
31445         Formatting fixes.
31447 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31449         PR rtl-optimization/89490
31450         * varasm.c (get_block_for_section): Bail out for mergeable sections.
31451         (default_use_anchors_for_symbol_p, output_object_block): Assert the
31452         block section is not mergeable.
31454 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
31456         PR target/70341
31457         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
31458         old define_insn to ...
31459         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
31460         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31461         Rename old define_insn to ...
31462         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
31463         (thumb2_casesi_internal_pic): New define_expand.  Rename old
31464         define_insn to ...
31465         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
31466         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31467         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31469 2019-02-27  Richard Biener  <rguenther@suse.de>
31471         PR debug/88878
31472         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31474 2019-02-27  Richard Biener  <rguenther@suse.de>
31476         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31477         building.
31479 2019-02-27  Richard Biener  <rguenther@suse.de>
31481         PR debug/88878
31482         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31483         parameter, prefix section name with .gnu.debuglto_ if true.
31484         (dwarf2out_finish): Pass false to output_comdat_type_unit.
31485         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31487 2019-02-27  Richard Biener  <rguenther@suse.de>
31489         PR debug/89514
31490         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31491         rather than on use_debug_types, doing what output_die does.
31492         (value_format): Likewise.
31494 2019-02-27  Martin Jambor  <mjambor@suse.cz>
31495             Martin Sebor  <msebor@redhat.com>
31497         * doc/invoke.texi (Warning Options): Reword description of
31498         -Wno-absolute-value.
31500 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
31502         PR tree-optimization/89280
31503         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31504         builtin_setjmp_setup_bb): New functions.
31505         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31506         When visiting __builtin_setjmp_setup block, queue in special
31507         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31508         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
31509         from visited after the loop if they don't have any visited successor
31510         blocks.
31512 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
31514         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31515         New function.
31516         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31518 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31520         PR c++/89507
31521         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31522         with types other than sizetype/ssizetype.
31524 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31526         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31527         (enum sparc_processor_type): ...this.
31528         (enum sparc_code_model_type): New enumeration type.
31529         (enum sparc_memory_model_type): Tweak comments.
31530         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31531         (mtune): Likewise.
31532         (mcmodel): Use sparc_code_model enumeration and variable.
31533         (sparc_code_model): New enumeration.
31534         (mdebug): Add Undocumented marker.
31535         * config/sparc/sparc.h (enum cmodel): Delete.
31536         (sparc_cmodel): Likewise.
31537         (TARGET_CM_MEDLOW): Adjust to above renaming.
31538         (TARGET_CM_MEDMID): Likewise.
31539         (TARGET_CM_MEDANY): Likewise.
31540         (TARGET_CM_EMBMEDANY): Likewise.
31541         * config/sparc/sparc.c (sparc_cmodel): Delete.
31542         (sparc_option_override): Remove string/value mapping support for the
31543         code model.  Move code and memory model support to after the handling
31544         of target flags.  Do private machine setup last.
31545         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31546         (sparc_legitimize_reload_address): Likewise.
31547         (sparc_output_mi_thunk): Likewise.
31548         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31550 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31552         PR tree-optimization/89500
31553         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31554         (handle_builtin_strlen): Remove noncst_bound variable.  Always
31555         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
31556         cst if the first cst bytes starting at x are known to be non-zero,
31557         even if the string is not zero terminated.  Don't try to modify
31558         *si for strnlen.  Update strlen_to_stridx only for strlen or if
31559         we can prove strnlen returns the same value as strlen would.
31561 2019-02-26  Martin Liska  <mliska@suse.cz>
31563         * alloc-pool.h (struct pool_usage): Remove extra
31564         print_dash_line.
31565         * bitmap.h (struct bitmap_usage): Likewise.
31566         * ggc-common.c (struct ggc_usage): Likewise.
31567         * mem-stats.h (struct mem_usage): Likewise.
31568         (mem_alloc_description::dump): Print dash lines
31569         here and repeat header at the end of a table report.
31570         It's then more readable.
31571         * tree-phinodes.c (phinodes_print_statistics): Make
31572         horizontal alignment.
31573         * tree-ssanames.c (ssanames_print_statistics): Likewise.
31574         * vec.c (struct vec_usage): Remove extra print_dash_line.
31575         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31577 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31579         * doc/extend.texi (__builtin_object_size):
31580         Use @pxref instead of @xref inside parenthesis.
31581         (__builtin_has_attribute): Add missing comma after @xref.
31582         (__builtin_object_size): Ditto.
31583         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31585 2019-02-26  Jeff Law  <law@redhat.com>
31587         PR rtl-optimization/87761
31588         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31589         detect obviously dead insns and delete them.
31591 2019-02-26  Richard Biener  <rguenther@suse.de>
31593         PR tree-optimization/89505
31594         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31595         to handle restrict pointed-to vars with multiple subvars
31596         correctly.
31598 2019-02-26  Richard Biener  <rguenther@suse.de>
31600         PR tree-optimization/89489
31601         * tree-parloops.c (create_loop_fn): Copy over last_clique.
31603 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31605         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31606         and move around comment.
31607         <BIT_AND_EXPR>: Likewise.
31608         <BIT_NOT_EXPR>: Add specific handling for boolean types.
31610 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31612         PR target/89474
31613         * config/i386/i386.c (remove_partial_avx_dependency): Call
31614         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31615         after changing possibly many instructions to use that pseudo.  Fix up
31616         insertion of v4sf_const0 setter at the start of bb.
31618 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
31620         PR c/80409
31621         * doc/extend.texi (Variadic Pointer Args): New section.
31623 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
31624             Martin Sebor  <msebor@gmail.com>
31626         * common.opt (Wattribute-alias): Likewise.
31627         * doc/invoke.texi (Option Summary): List general form of
31628         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
31629         (-Wmissing-attributes): Invert entry, rewrite and correct default.
31630         Add cross-references.
31631         (-Wattribute-alias): Rewrite and correct default.  Mention
31632         considered attributes (same as for -Wmissing-attributes).
31634 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
31636         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31637         (_mm_cvtpd_ps): Likewise.
31638         (_mm_cvttpd_epi32): Likewise.
31640         PR target/89338
31641         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31642         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31644         PR target/89339
31645         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31647 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31649         PR target/88530
31650         * common/config/aarch64/aarch64-common.c
31651         (struct aarch64_option_extension): Add is_synthetic.
31652         (all_extensions): Use it.
31653         (TARGET_OPTION_INIT_STRUCT): Define hook.
31654         (struct gcc_targetm_common): Moved to end.
31655         (all_extensions_by_on): New.
31656         (opt_ext_cmp, typedef opt_ext): New.
31657         (aarch64_option_init_struct): New.
31658         (aarch64_contains_opt): New.
31659         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31660         * config/aarch64/aarch64-option-extensions.def
31661         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31662         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31663         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31664         Set is_synthetic to false.
31665         (crypto): Set is_synthetic to true.
31666         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31667         SYNTHETIC.
31669 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31671         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31672         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31673         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31674         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31675         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31676         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31677         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31678         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31679         Rename ...
31680         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31681         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31682         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31683         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31684         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31685         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31686         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31687         vfmlsl_laneq_high_f16): ... To this.
31688         * config/arm/neon.md: Update comments.
31690 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31692         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31693         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31694         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31695         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31696         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31697         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31698         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31699         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31700         Rename ...
31701         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31702         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31703         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31704         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31705         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31706         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31707         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31708         vfmlslq_laneq_high_f16): ... To this.
31710 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
31712         PR rtl-optimization/86096
31713         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31714         comparing mw_order values.
31716 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
31718         PR target/89434
31719         * config/arm/arm.md (*subsi3_carryin_const): Use
31720         arm_neg_immediate_operand predicate instead of
31721         arm_not_immediate_operand, "L" constraint instead of "K" and
31722         print it using %n2 instead of %B2.
31723         (*subsi3_carryin_const0): New define_insn.
31724         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31725         instead of arm_not_operand and "I" constraint instead of "K" and
31726         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
31727         another match_operand and in the condition check that it is negation
31728         of operands[2].
31729         (*subsi3_carryin_compare_const0): New define_ins.
31730         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31731         *subsi3_carryin_const.
31732         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31733         split into *subsi3_carryin_compare_const0 if the highpart is zero.
31735         PR target/89438
31736         * config/arm.vfp.md (*negdf2_vfp): Use
31737         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31738         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31740 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
31742         PR rtl-optimization/89445
31743         * simplify-rtx.c (simplify_ternary_operation): Don't use
31744         simplify_merge_mask on operands that may trap.
31745         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31746         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
31747         second operand is CONST_VECTOR, check if any element could be zero.
31748         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31749         their operands can trap.
31751 2019-02-23  Martin Sebor  <msebor@redhat.com>
31753         * gimple-ssa-sprintf.c (target_strtol): Rename...
31754         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
31755         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
31756         check for range error.
31758 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
31760         PR driver/69471
31761         * opts-common.c (prune_options): Also prune joined switches
31762         with Negative and RejectNegative.
31763         * config/i386/i386.opt (march=): Add Negative(march=).
31764         (mtune=): Add Negative(mtune=).
31765         * doc/options.texi: Document Negative used together with Joined
31766         and RejectNegative.
31768 2019-02-22  Martin Sebor  <msebor@redhat.com>
31770         * doc/extend.texi (Other Builtins): Add
31771         __builtin_is_constant_evaluated.
31773 2019-02-22  Richard Biener  <rguenther@suse.de>
31775         PR tree-optimization/87609
31776         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31778 2019-02-22  Jeff Law  <law@redhat.com>
31780         PR rtl-optimization/87761
31781         * config/mips/mips.md: Add new combiner pattern to recognize
31782         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31784 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
31786         PR target/89324
31787         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31788         destination register in peepholes generating patterns for ADDS/SUBS.
31789         (add<mode>3_compare0,
31790         *addsi3_compare0_uxtw, add<mode>3_compareC,
31791         add<mode>3_compareV_imm, add<mode>3_compareV,
31792         *adds_<optab><ALLX:mode>_<GPI:mode>,
31793         *subs_<optab><ALLX:mode>_<GPI:mode>,
31794         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31795         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31796         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31797         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31798         sub<mode>3_compare1): Allow stack pointer for source register.
31799         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31801 2019-02-22  Martin Sebor  <msebor@redhat.com>
31803         PR tree-optimization/88993
31804         PR tree-optimization/88853
31805         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31806         New helper.
31807         (sprintf_dom_walker::call_info::is_string_func): New helper.
31808         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31809         for formatted string functions.
31810         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31812 2019-02-22  Martin Sebor  <msebor@redhat.com>
31814         PR c/89425
31815         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31816         unreachable subexpressions.
31818 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
31819             Hongtao Liu  <hongtao.liu@intel.com>
31820             Sunil K Pandey  <sunil.k.pandey@intel.com>
31822         PR target/87007
31823         * config/i386/i386-passes.def: Add
31824         pass_remove_partial_avx_dependency.
31825         * config/i386/i386-protos.h
31826         (make_pass_remove_partial_avx_dependency): New.
31827         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31828         New function.
31829         (pass_data_remove_partial_avx_dependency): New.
31830         (pass_remove_partial_avx_dependency): Likewise.
31831         (make_pass_remove_partial_avx_dependency): Likewise.
31832         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31833         (*extendsfdf2): Add avx_partial_xmm_update.
31834         (truncdfsf2): Likewise.
31835         (*float<SWI48:mode><MODEF:mode>2): Likewise.
31836         (SF/DF conversion splitters): Disabled for TARGET_AVX.
31838 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
31840         PR middle-end/85598
31841         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31842         analysis for pass.
31844 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
31846         PR target/89444
31847         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31848         (PTA_SKYLAKE): Add PTA_AES.
31849         (PTA_GOLDMONT): Likewise.
31851 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
31853         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31854         instruction if enabled.
31855         (aarch64_override_options): Remove reference to return address key.
31857 2019-02-22  Richard Biener  <rguenther@suse.de>
31859         PR tree-optimization/89440
31860         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31861         not necessary assert.
31863 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
31865         PR fortran/72741
31866         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31867         (oacc_replace_fn_attrib_attr): ... this new function.
31868         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31869         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31871 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31873         * config/arm/arm-cpus.in (ares): Rename to...
31874         (neoverse-n1): ... This.  Add ares as alias.
31875         * config/arm/arm-tables.opt: Regenerate.
31876         * config/arm/arm-tune.md: Likewise.
31877         * doc/invoke.txt (ARM Options): Document neoverse-n1.
31879 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31881         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31882         * config/aarch64/aarch64-tune.md: Regenerate.
31883         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31885 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31887         * config/aarch64/aarch64.c (ares_tunings): Rename to...
31888         (neoversen1_tunings): ... This.
31889         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31890         (neoverse-n1): New CPU.
31891         * config/aarch64/aarch64-tune.md: Regenerate.
31892         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31894 2019-02-22  Richard Biener  <rguenther@suse.de>
31896         PR middle-end/87609
31897         * cfghooks.h (dependence_hash): New typedef.
31898         (struct copy_bb_data): New type.
31899         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31900         (duplicate_block): Likewise.
31901         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31902         (copy_bbs): Create and pass down copy_bb_data.
31903         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31904         (rtl_duplicate_bb): Likewise.
31905         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31906         remap dependence info.
31908 2019-02-22  Richard Biener  <rguenther@suse.de>
31910         PR tree-optimization/87609
31911         * tree-core.h (tree_base): Document special clique values.
31912         * tree-inline.c (remap_dependence_clique): Do not use the
31913         special clique value of one.
31914         (maybe_set_dependence_info): Use clique one.
31915         (clear_dependence_clique): New callback.
31916         (compute_dependence_clique): Clear clique one from all refs
31917         before assigning it (again).
31919 2019-02-21  Martin Sebor  <msebor@redhat.com>
31921         * doc/extend.texi (__clear_cache): Correct signature.
31923 2019-02-21  Ian Lance Taylor  <iant@golang.org>
31925         PR go/89170
31926         * varasm.c (decode_addr_const): Call lookup_constant_def rather
31927         than output_constant_def.
31928         (add_constant_to_table): New static function.
31929         (output_constant_def): Call add_constant_to_table.
31930         (tree_output_constant_def): Likewise.
31932 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
31934         PR c++/89285
31935         * builtins.c (fold_builtin_arith_overflow): If first two args are
31936         INTEGER_CSTs, set intres and ovfres to constants rather than calls
31937         to ifn.
31939 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31941         PR target/87412
31942         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31943         error for -mindirect-branch/-mfunction-return with incompatible
31944         -fcf-protection.
31946 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
31948         PR bootstrap/88714
31949         * constraints.md (q): Remove.
31950         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31951         instead of q.
31953 2019-02-21  Martin Jambor  <mjambor@suse.cz>
31955         PR hsa/89302
31956         * omp-general.c (omp_extract_for_data): Removed a duplicate call
31957         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31958         (omp_adjust_for_condition): ...here.  Added necessary parameters.
31959         * omp-general.h (omp_adjust_for_condition): Updated declaration.
31960         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31961         proper values to new parameters of omp_adjust_for_condition.
31963 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31965         PR middle-end/89412
31966         * expr.c (expand_assignment): If result is a MEM, use change_address
31967         instead of simplify_gen_subreg.
31969 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31970             David Malcolm  <dmalcolm@redhat.com>
31972         PR middle-end/89091
31973         * fold-const.c (decode_field_reference): Return NULL_TREE if
31974         lang_hooks.types.type_for_size returns NULL.  Check it before
31975         overwriting *exp_.  Use return NULL_TREE instead of return 0.
31977 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31979         PR middle-end/88074
31980         PR middle-end/89415
31981         * toplev.c (do_compile): Double the emin/emax exponents to workaround
31982         buggy mpc_norm.
31984 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31986         PR target/89397
31987         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31988         TARGET_SSE in addition to TARGET_SSE_MATH.
31990         (ix86_excess_precision): Ditto.
31991         (ix86_float_exceptions_rounding_supported_p): Ditto.
31992         (use_rsqrt_p): Ditto.
31993         * config/i386/sse.md (rsqrt<mode>2): Ditto.
31995 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
31997         PR c/89410
31998         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31999         linenum_arith_t when determining if two adjacent line spans are
32000         close enough to merge.
32001         (diagnostic_show_locus): Use linenum_arith_t when iterating over
32002         lines within each line_span.
32004 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
32006         PR target/86487
32007         * lra-constraints.c(uses_hard_regs_p): Fix handling of
32008         paradoxical SUBREGS.
32010 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
32012         PR target/88100
32013         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32014         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32015         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32016         range checking it.
32018 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
32020         * config/gcn/gcn.c (print_operand): Fix typo.
32022 2019-02-19  Richard Biener  <rguenther@suse.de>
32024         PR middle-end/88074
32025         * toplev.c (do_compile): Initialize mpfr's exponent range
32026         based on available float modes.
32028 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32030         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32031         as long as the epilogue isn't completed.
32033 2019-02-18  Martin Sebor  <msebor@redhat.com>
32035         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32036         __has_cpp_attribute, and __has_include.
32038 2019-02-18  Martin Sebor  <msebor@redhat.com>
32040         * doc/invoke.texi (-Wreturn-type): Correct and expand.
32042 2019-02-18  Martin Sebor  <msebor@redhat.com>
32044         PR middle-end/89294
32045         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32046         expression.
32047         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32049 2019-02-18  Richard Biener  <rguenther@suse.de>
32051         PR tree-optimization/89296
32052         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32053         of no-warning flag to cases that might emit the bogus warning.
32055 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
32057         PR bootstrap/88714
32058         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32059         "q" constraint.
32060         * config/arm/vfp.md (*movdi_vfp): Likewise.
32061         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32062         "q" constraint for operands[0].
32064         PR target/89369
32065         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32066         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32067         pattern in a temporary buffer.
32068         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
32069         than 64-operands[2].
32071         PR target/89361
32072         * config/s390/s390.c (s390_indirect_branch_attrvalue,
32073         s390_indirect_branch_settings): Define unconditionally.
32074         (s390_set_current_function): Likewise, but guard the whole body except
32075         the s390_indirect_branch_settings call with
32076         #if S390_USE_TARGET_ATTRIBUTE.
32077         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32079         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32080         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32081         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32082         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32083         HOST_WIDE_INT_1U instead of 1ULL.
32084         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32085         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32086         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32087         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32088         instead of 1UL.
32089         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32090         instead of 1ul.
32092 2019-02-18  Martin Jambor  <mjambor@suse.cz>
32094         PR tree-optimization/89209
32095         * tree-sra.c (create_access_replacement): New optional parameter
32096         reg_tree.  Use it as a type if non-NULL and access type is not of
32097         a register type.
32098         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32099         to create_access_replacement.
32100         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32101         Check lacc is non-NULL before attempting to re-create it on the RHS.
32103 2019-02-18  Martin Liska  <mliska@suse.cz>
32105         PR ipa/89306
32106         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32107         by default.
32108         (symbol_table::free_edge): Recycle m_summary_id.
32109         * cgraph.h (get_summary_id): New.
32110         (symbol_table::release_symbol): Set m_summary_id to -1
32111         by default.
32112         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32113         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32114         function_summary to fast_function_summary.
32115         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32116         * ipa-pure-const.c (class funct_state_summary_t):
32117         Switch from function_summary to fast_function_summary.
32118         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32119         (class ipa_ref_opt_summary_t): Switch from function_summary
32120         to fast_function_summary.
32121         * symbol-summary.h (class function_summary_base): New class
32122         that is created from base of former function_summary.
32123         (function_summary_base::unregister_hooks): New.
32124         (class function_summary): Inherit from function_summary_base.
32125         (class call_summary_base): New class
32126         that is created from base of former call_summary.
32127         (class call_summary): Inherit from call_summary_base.
32128         (struct is_same): New.
32129         (class fast_function_summary): New summary class.
32130         (class fast_call_summary): New summary class.
32131         * vec.h (vec_safe_grow_cleared): New function.
32133 2019-02-18  Martin Liska  <mliska@suse.cz>
32135         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32136         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32137         * doc/tm.texi: Document new target hook.
32138         * doc/tm.texi.in: Likewise.
32139         * target.def: Add new target macro.
32140         * gcc.c (find_fortran_preinclude_file): Do not search multilib
32141         suffixes.
32143 2019-02-17  Alan Modra  <amodra@gmail.com>
32145         PR target/89271
32146         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32147         output reg on add insn.
32148         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
32150 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32152         PR target/89372
32153         * config/i386/sse.md (ssedoublemode): Remove V4HI.
32154         (PMULHRSW): Likewise.
32155         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32156         TARGET_AVX2.
32157         (ssse3_pmulhrswv4hi3): New expander.
32159 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32161         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32162         MMX.  Add isa attribute.
32164 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
32166         PR rtl-optimization/66152
32167         * builtins.h (c_readstr): Declare.
32168         * builtins.c (c_readstr): Remove forward declaration.  Add
32169         null_terminated_p argument, if false, read all bytes from the
32170         string instead of stopping after '\0'.
32171         * expr.c (string_cst_read_str): New function.
32172         (store_expr): Use string_cst_read_str instead of
32173         builtin_strncpy_read_str.  Try to store by pieces the whole
32174         exp_len first, and only if that fails, split it up into
32175         store by pieces followed by clear_storage.  Formatting fix.
32177         * config/i386/i386.md (*movqi_internal): Remove static from
32178         buf variable.  Use output_asm_insn (buf, operands); return "";
32179         instead of return buf;.
32180         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32181         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32182         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32184 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32186         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32187         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32188         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32189         (CC1_SPEC): Likewise.
32190         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32192 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32194         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32195         the base address on 64-bit strict-alignment platforms.
32197 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
32199         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32201 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32203         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32205 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
32207         PR rtl-optimization/88308
32208         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32209         on copied instruction.
32211 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32213         * final.c (insn_current_reference_address): Replace test on JUMP_P
32214         with test on jump_to_label_p.
32215         * config/visium/visium-passes.def: New file.
32216         * config/visium/t-visium (PASSES_EXTRA): Define.
32217         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32218         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32219         (TRAMPOLINE_ALIGNMENT): Define.
32220         * config/visium/visium.c (visium_option_override): Do not register
32221         the machine-specific reorg pass here.
32222         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32223         for the GR6.
32224         (output_branch): Adjust threshold for long branch instruction.
32225         * config/visium/visium.md (cpu): Move around.
32226         (length): Adjust for the GR6.
32228 2019-02-15  Richard Biener  <rguenther@suse.de>
32229             Jakub Jelinek  <jakub@redhat.com>
32231         PR tree-optimization/89278
32232         * tree-loop-distribution.c: Include tree-eh.h.
32233         (generate_memset_builtin, generate_memcpy_builtin): Call
32234         rewrite_to_non_trapping_overflow on builtin->size before passing it
32235         to force_gimple_operand_gsi.
32237 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
32239         PR other/89342
32240         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32241         optimize_debug.
32242         * opth-gen.awk: Likewise.
32244 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32246         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32247         Enable MMX, SSE and SSE2 by default.
32248         * config/i386/i386.c (ix86_option_override_internal): Do not
32249         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32251 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
32253         PR rtl-optimization/89354
32254         * combine.c (make_extraction): Punt if extraction_mode is narrower
32255         than len bits.
32257 2019-02-14  Maya Rashish  <coypu@sdf.org>
32259         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32260         * config/netbsd-d.c: New file.
32261         * config/t-netbsd: Add netbsd-d.o
32263 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
32265         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32266         affects_type_identity to true for aarch64_vector_pcs.
32267         (aarch64_comp_type_attributes): New function.
32268         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32270 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
32272         PR target/88850
32273         * config/arm/iterators.md (ANY64): Add V4HF.
32275 2019-02-14  Martin Liska  <mliska@suse.cz>
32277         PR rtl-optimization/89242
32278         * dce.c (delete_unmarked_insns): Call free_dominance_info we
32279         process a transformation.
32281 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
32283         PR tree-optimization/89314
32284         * fold-const.c (fold_binary_loc): Cast strlen argument to
32285         const char * before dereferencing it.  Formatting fixes.
32287         PR middle-end/89284
32288         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32290 2019-02-13  Ian Lance Taylor  <iant@golang.org>
32292         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32293         and set current index for other optimizations.
32295 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32297         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32298         nonimmediate_operand as operand 2 predicate.
32299         (vec_set<VF2_512_256:mode>_0): Ditto.
32300         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32301         (*vec_concatv2si): Remove alternative 2.
32302         (*vec_concatv4si_0): Use vm constraint for alternative 0.
32303         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32304         (vec_concatv2di): Split alternatives 4,5,6 to ...
32305         (*vec_concatv2di_0) ... new pattern.
32307 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
32309         PR target/89190
32310         * config/arm/arm.c (ldm_stm_operation_p) Set
32311         addr_reg_in_reglist correctly for first register.
32312         (load_multiple_sequence): Remove dead base check.
32313         (gen_ldm_seq): Correctly set write_back for Thumb-1.
32315 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
32317         PR target/88847
32318         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32319         Expose as @aarch64_pred_mov.
32320         * config/aarch64/aarch64.c (aarch64_classify_address):
32321         Use expand_insn which legitimizes operands.
32323 2019-02-13  Martin Liska  <mliska@suse.cz>
32325         * builtins.h (expand_builtin_with_bounds): Remove declaration.
32326         * calls.c (struct arg_data): Remove special_slot, pointer_arg
32327         and pointer_offset fields.
32328         (initialize_argument_information): Remove usage of dead
32329         fields.
32330         * cgraph.h (struct cgraph_thunk_info): Remove
32331         add_pointer_bounds_args.
32332         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32333         fields.
32334         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32335         fields.
32336         * config/i386/i386.c (ix86_function_arg_advance): Remove
32337         unrelated comment.
32338         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32339         (def_builtin): Remove usage of dead fields.
32340         (ix86_add_new_builtins): Likewise.
32341         * ipa-fnsummary.c (compute_fn_summary): Likewise.
32342         * ipa-icf.c (sem_function::equals_wpa): Likewise.
32343         (sem_function::init): Likewise.
32344         (sem_variable::merge): Likewise.
32345         * ipa-visibility.c (function_and_variable_visibility): Likewise.
32346         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32347         * lto-cgraph.c (lto_output_node): Likewise.
32348         (lto_output_varpool_node): Likewise.
32349         (input_node): Likewise.
32350         (input_varpool_node): Likewise.
32351         * lto-streamer-out.c (lto_output): Likewise.
32352         * tree-inline.c (expand_call_inline): Remove usage of
32353         assign_stmts.
32354         * tree-inline.h (struct copy_body_data): Likewise.
32355         * varpool.c (varpool_node::dump): Likewise.
32357 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
32359         PR middle-end/89303
32360         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32361         into pt->vars_contains_escaped_heap instead of setting
32362         pt->vars_contains_escaped_heap to it.
32364         PR middle-end/89281
32365         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32366         INTVAL (size), compare it to GET_MODE_MASK instead of
32367         1 << GET_MODE_BITSIZE.
32369         PR target/89290
32370         * config/i386/predicates.md (x86_64_immediate_operand): Allow
32371         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32372         -mcmodel=large.
32374 2019-02-13  Martin Liska  <mliska@suse.cz>
32376         PR lto/88858
32377         * cfgrtl.c (remove_barriers_from_footer): New function.
32378         (try_redirect_by_replacing_jump): Use it.
32379         (cfg_layout_redirect_edge_and_branch): Likewise.
32381 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
32383         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32384         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32385         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32386         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32387         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32388         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32389         New BU_CRYPTO_2.
32390         * config/rs6000/rs6000.c (builtin_function_type)
32391         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32392         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32393         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32394         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32395         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32397 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
32399         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32400         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32402 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32404         PR target/89229
32405         * config/i386/i386.md (*movoi_internal_avx): Revert revision
32406         268678 and revision 268657.
32407         (*movti_internal): Likewise.
32409 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
32411         PR target/89233
32412         * config/s390/s390.c (s390_decompose_address): Update comment.
32413         (s390_check_qrst_address): Reject invalid address forms after
32414         LRA.
32416 2019-02-12  Martin Liska  <mliska@suse.cz>
32418         PR lto/88876
32419         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32420         we need default values of funct_state for a function that
32421         is not optimized.
32423 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32425         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32426         the object to pick the size of stores on strict-alignment platforms.
32428         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32429         (*movdi_insn_sp32): Likewise.
32430         (*movdi_insn_sp64): Likewise.
32432 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
32434         PR lto/88677
32435         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32436         types that needs constructiong.
32437         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32439 2019-02-12  Richard Biener  <rguenther@suse.de>
32441         PR tree-optimization/89253
32442         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32443         duplicate the loop.
32445 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
32447         PR lto/88147
32448         * input.c (selftest::test_line_offset_overflow): New selftest.
32449         (selftest::input_c_tests): Call it.
32451 2019-02-11  Martin Sebor  <msebor@redhat.com>
32453         PR tree-optimization/88771
32454         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32455         when -Wstringop-overflow is set.
32456         (builtin_memref::builtin_memref): Adjust excessive upper bound
32457         only when lower bound is not excessive.
32458         (maybe_diag_overlap): Detect and diagnose excessive bounds via
32459         -Wstringop-ovefflow.
32460         (maybe_diag_offset_bounds): Rename...
32461         (maybe_diag_access_bounds): ...to this.
32462         (check_bounds_or_overlap): Adjust for name change above.
32464 2019-02-11  Martin Sebor  <msebor@redhat.com>
32466         PR c++/87996
32467         * builtins.c (max_object_size): Move from here...
32468         * builtins.h (max_object_size): ...and here...
32469         * tree.c (max_object_size): ...to here...
32470         * tree.h (max_object_size): ...and here.
32472 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
32474         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32475         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32476         for correct semantics.
32478 2019-02-11  Alan Modra  <amodra@gmail.com>
32480         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32481         -mlongcall and -mpltseq.
32482         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32483         (RS/6000 and PowerPC Options <-mpltseq>): Document.
32484         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32485         * config/rs6000/sysv4.opt (mpltseq): New option.
32486         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32487         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32488         support is lacking.  Don't allow -mpltseq with -mbss-plt.
32489         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32490         -mpltseq given for ELFv1.
32491         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32492         Only use UNSPEC_PLTSEQ for inline PLT calls.
32493         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
32494         use UNSPEC_PLTSEQ for inline PLT calls.
32495         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32496         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32497         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32498         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32499         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32500         (pltseq_mtctr_<mode>): Likewise.
32502 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32504         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32505         Solaris ld.
32506         * configure: Regenerate.
32508 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
32510         PR bootstrap/88714
32511         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32512         instead of r.
32514 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
32516         * function.c (assign_parm_setup_block): Use the stored
32517         size, not the passed size, when allocating stack-space,
32518         also for a parameter with alignment larger than
32519         MAX_SUPPORTED_STACK_ALIGNMENT.
32521 2019-02-11  Martin Liska  <mliska@suse.cz>
32523         PR ipa/89009
32524         * ipa-cp.c (build_toporder_info): Remove usage of a param.
32525         * ipa-inline.c (inline_small_functions): Likewise.
32526         * ipa-pure-const.c (propagate_pure_const): Likewise.
32527         (propagate_nothrow): Likewise.
32528         * ipa-reference.c (propagate): Likewise.
32529         * ipa-utils.c (struct searchc_env): Remove unused field.
32530         (searchc): Always search across AVAIL_INTERPOSABLE.
32531         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32532         the only called IPA pure const can properly not propagate
32533         across interposable boundary.
32534         * ipa-utils.h (ipa_reduced_postorder): Remove param.
32536 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
32538         * config/nds32/nds32.md (call_internal, call_value_internal,
32539         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32541 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
32543         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32544         typo.
32546 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
32548         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32549         in comments
32551 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32553         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32555 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
32557         PR tree-optimization/89268
32558         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32559         if preds is non-NULL.
32561 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32563         PR lto/89272
32564         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32565         polymorphic types.
32567 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
32569         * config/nds32/nds32.md (trap): New pattern.
32571 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
32573         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32574         dwarf span.
32576 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32578         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32579         to split POST_INC.
32581 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32583         * ipa-visibility.c (localize_node): Also do not localize
32584         LDPR_PREVAILING_DEF_IRONLY_EXP.
32586 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32588         PR lto/87957
32589         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32590         instead of type_with_linkage.
32592 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32594         PR ipa/88755
32595         * params.def (uninlined-function-insns, uninlined-function-time,
32596         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32597         bound so we don't get overflows.
32599 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
32601         * config/rs6000/rs6000-string.c (expand_compare_loop,
32602         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32603         memcmp/strncmp.
32605 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
32607         PR middle-end/89246
32608         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32609         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32610         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32612 2019-02-09  Alan Modra  <amodra@gmail.com>
32614         PR target/88343
32615         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32616         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
32617         setup.
32619 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
32621         PR middle-end/88560
32622         * lra-constraints.c (process_alt_operands): Don't increase reject
32623         for memory when offset memory is required.
32625 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
32627         * config/s390/vector.md: Implement vector copysign.
32629 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
32631         * expr.c (expand_constructor): Correct indentations.
32633 2019-02-08  Richard Biener  <rguenther@suse.de>
32635         PR tree-optimization/89247
32636         * tree-if-conv.c: Include tree-cfgcleanup.h.
32637         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32638         (tree_if_conversion): Pass through predicate vector.
32639         (pass_if_conversion::execute): Do CFG cleanup and SSA update
32640         inline, see if any if-converted loops we refrece in
32641         LOOP_VECTORIZED calls vanished and fixup.
32642         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32644 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
32646         * config/s390/constraints.md (jdd): New constraint.
32648 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
32650         PR target/89229
32651         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32652         upper 16 vector registers without TARGET_AVX512VL.
32653         (*movti_internal): Likewise.
32655 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
32657         PR rtl-optimization/89234
32658         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32659         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32660         (copy_reg_eh_region_note_backward): Likewise.
32662 2019-02-08  Richard Biener  <rguenther@suse.de>
32664         PR middle-end/89223
32665         * tree-data-ref.c (initialize_matrix_A): Fail if constant
32666         doesn't fit in HWI.
32667         (analyze_subscript_affine_affine): Handle failure from
32668         initialize_matrix_A.
32670 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
32672         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32673         cfun everywhere.
32675 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
32677         PR tree-optimization/86637
32678         PR tree-optimization/89235
32679         * tree-vect-loop.c (optimize_mask_stores): Add an
32680         auto_purge_vect_location sentinel to ensure that vect_location is
32681         purged on exit.
32682         * tree-vectorizer.c
32683         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32684         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32685         to ensure that vect_location is purged on exit.
32686         (pass_slp_vectorize::execute): Likewise, replacing the manual
32687         reset.
32688         * tree-vectorizer.h (class auto_purge_vect_location): New class.
32690 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32692         * config/aarch64/iterators.md (max_opp): New code_attr.
32693         (USMAX): New code iterator.
32694         * config/aarch64/predicates.md (aarch64_smin): New predicate.
32695         (aarch64_smax): Likewise.
32696         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32697         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32698         MINUS (MAX MIN).
32700 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
32702         PR target/89229
32703         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32704         for TARGET_AVX512VL.
32705         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32707 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
32709         * config/s390/s390-builtin-types.def: Add new types.
32710         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32711         (s390_vec_xlw4): Make the memory operand into a const pointer.
32712         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32713         float.
32714         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32715         a new vector type with the alignment of the scalar memory operand.
32717 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
32718             Jakub Jelinek  <jakub@redhat.com>
32720         PR bootstrap/88714
32721         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32722         arm_count_ldrdstrd_insns): New declarations.
32723         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32724         MINUS.
32725         (valid_operands_ldrd_strd): New function.
32726         (arm_count_ldrdstrd_insns): New function.
32727         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32728         sets instead of single DImode set and define new insns to match this.
32730 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
32732         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32733         Make it a C initializer.
32735 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
32737         PR/target 88850
32738         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32740 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32742         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32743         Use neon_dot<q> for type.
32744         (neon_<sup>dot_lane<vsi2qi>): Likewise.
32746 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32748         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32749         Use neon_dot<q> for type.
32750         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32751         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32753 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
32755         PR rtl-optimization/89225
32756         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32757         sizes check.
32759 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
32761         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32762         after restoring registers saved to allocate the frame on Windows.
32764 2019-02-06  Richard Biener  <rguenther@suse.de>
32766         PR tree-optimization/89182
32767         * graphite.h (cached_scalar_evolution_in_region): Declare.
32768         * graphite.c (struct seir_cache_key): New.
32769         (struct sese_scev_hash): Likewise.
32770         (seir_cache): New global.
32771         (cached_scalar_evolution_in_region): New function.
32772         (graphite_transform_loops): Allocate and release seir_cache.
32773         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32774         cached_scalar_evolution_in_region.
32775         * graphite-scop-detection.c (scop_detection::can_represent_loop):
32776         Simplify.
32777         (scop_detection::graphite_can_represent_expr: Use
32778         cached_scalar_evolution_in_region.
32779         (scop_detection::stmt_simple_for_scop_p): Likewise.
32780         (find_params_in_bb): Likewise.
32781         (gather_bbs::before_dom_children): Likewise.
32782         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32783         (add_loop_constraints): Likewise.
32785 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
32787         PR middle-end/89210
32788         * fold-const-call.c (fold_const_vec_convert): Pass true as last
32789         operand to new_unary_operation only if both element types are integral
32790         and it isn't a widening conversion.  Return NULL_TREE if
32791         new_unary_operation failed.
32793 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
32795         PR target/88856
32796         * config/s390/s390.md: Remove load and test FP splitter.
32798 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
32800         PR target/89112
32801         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32802         expand_compare_loop, expand_block_compare_gpr,
32803         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32804         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32805         #include "profile-count.h" and "predict.h" for types and functions
32806         needed to work with REG_BR_PROB notes.
32808 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
32810         PR target/89112
32811         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32812         for the long branch case.
32814 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
32816         PR target/89188
32817         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32818         can throw, non-call exceptions are enabled and we can't delete
32819         dead exceptions or alter cfg.  Set must_clean if
32820         delete_insn_and_edges returns true, don't set it blindly for calls.
32821         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32823         PR rtl-optimization/89195
32824         * combine.c (make_extraction): For MEMs, don't extract bytes outside
32825         of the original MEM.
32827 2019-02-05  Martin Liska  <mliska@suse.cz>
32829         PR gcov-profile/89000
32830         * gcov.c (function_summary): Remove argument.
32831         (file_summary): New function.
32832         (print_usage): Replace tabs with spaces.
32833         (generate_results): Use new function file_summary.
32835 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
32837         PR target/89186
32838         * optabs.c (prepare_cmp_insn): Pass x and y to
32839         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32841 2019-02-05  Richard Biener  <rguenther@suse.de>
32843         PR middle-end/89150
32844         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32845         (struct bitmap_element): Drop chain_prev so we properly recurse on
32846         the prev member, supporting tree views.
32847         (struct bitmap_head): GTY skip the obstack member.
32849 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
32851         PR c/88698
32852         * doc/extend.texi (Vector Extensions): Add an example of using vector
32853         types together with x86 intrinsics.
32855 2019-02-04  Alan Modra  <amodra@gmail.com>
32857         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32858         str[] size to 160, and comment.
32860 2019-02-04  Alan Modra  <amodra@gmail.com>
32862         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32863         (rs6000_pltseq_template): Guard output of TLS markers with
32864         TARGET_TLS_MARKERS.
32865         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32866         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32867         to use inline PLT sequences.
32868         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32869         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32870         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32872 2019-02-04  Martin Liska  <mliska@suse.cz>
32874         PR ipa/88985
32875         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32876         out when ipa_fn_summaries does not contain entry for callee.
32878 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
32880         * config/sparc/sparc.h: Remove superfluous blank lines.
32881         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32882         (got_register_rtx): ...this.
32883         (sparc_got): Adjust to above renaming.
32884         (sparc_tls_got): Likewise.
32885         (sparc_delegitimize_address): Likewise.
32886         (sparc_output_mi_thunk): Likewise.
32887         (sparc_init_pic_reg): Likewise.
32888         (save_local_or_in_reg_p): Fix test on the GOT register.
32889         (USE_HIDDEN_LINKONCE): Move around.
32890         (get_pc_thunk_name): Likewise.
32891         (gen_load_pcrel_sym): Likewise.
32892         (load_got_register): Likewise.
32894 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
32896         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32897         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32899 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
32901         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32902         into consideration.
32904 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
32906         * config.gcc (with_nds32_lib, glibc):
32907         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32908         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32909         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32911 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32913         PR target/89071
32914         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32915         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32916         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32917         (*rcpsf2_sse): Ditto.
32918         (*rsqrtsf2_sse): Ditto.
32919         (sse4_1_round<mode<2): Ditto.
32921 2019-02-03  Richard Biener  <rguenther@suse.de>
32923         PR debug/87295
32924         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32925         orig.
32927 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
32929         PR middle-end/87887
32930         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32931         Punt with warning on aggregate return or argument types.  Ignore
32932         type/mode checking for uniform arguments.
32934 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
32936         * combine.c (try_combine): Do not print "Can't combine" messages unless
32937         printing failed combination attempts.
32939 2019-02-01  Martin Jambor  <mjambor@suse.cz>
32941         PR hsa/87863
32942         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32943         segment and global segment variables before making them static.
32945 2019-02-01  Martin Jambor  <mjambor@suse.cz>
32947         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32948         missed optimization dump with dump_enabled_p.
32950 2019-02-01  Richard Biener  <rguenther@suse.de>
32952         PR middle-end/88597
32953         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32954         the instantiate cache.
32955         (instantiate_scev_binary): Elide second operand procesing
32956         if equal to the first.
32957         * tree-chrec.c (chrec_contains_symbols): Add visited set.
32958         (chrec_contains_undetermined): Likewise.
32959         (tree_contains_chrecs): Likewise.
32961 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
32963         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32965 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
32967         PR tree-optimization/89143
32968         * wide-int-range.h (wide_int_range_absu): Declare.
32969         * wide-int-range.cc (wide_int_range_absu): New function.
32970         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32972         PR tree-optimization/88107
32973         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32974         instead of assertion that eh_region_outermost is non-NULL, if it
32975         is NULL, set *ALL to true and return NULL.
32976         (move_sese_region_to_fn): Adjust caller, if all is set, call
32977         duplicate_eh_regions with NULL region.
32979 2019-02-01  Richard Biener  <rguenth@suse.de>
32981         PR rtl-optimization/88593
32982         * mode-switching.c (optimize_mode_switching): Free dominators before
32983         calling cleanup_cfg.
32985 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
32987         PR tree-optimization/88932
32988         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32990 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
32992         PR middle-end/89137
32993         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32994         bogus clang warning.
32996 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32998         PR target/89071
32999         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33000         alternative to avoid partial SSE register stall for TARGET_AVX.
33001         (truncdfsf2): Ditto.
33002         (sse4_1_round<mode>2): Ditto.
33004 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
33006         PR tree-optimization/89008
33007         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33008         process anything of the form X * 0.
33010 2019-01-31  Richard Biener  <rguenther@suse.de>
33012         PR tree-optimization/89135
33013         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33014         with abnormal preds.
33016 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
33018         PR sanitizer/89124
33019         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33020         always_inline callees into no_sanitize_address callers.
33022 2019-01-31  Richard Biener  <rguenther@suse.de>
33024         PR rtl-optimization/89115
33025         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33027 2019-01-30  Martin Sebor  <msebor@redhat.com>
33029         PR other/89106
33030         * doc/extend.texi (cast to a union): Correct and expand.
33032 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33034         PR rtl-optimization/87246
33035         * lra-constraints.c (simplify_operand_subreg): Reload memory
33036         in subreg if the address became invalid.
33038 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
33040         PR target/87064
33041         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33042         Disable for little-endian.
33044 2019-01-30  Richard Biener  <rguenther@suse.de>
33046         PR rtl-optimization/89115
33047         * opts.c (default_options_optimization): Reduce
33048         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33049         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33050         to the default.
33052 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
33054         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33055         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
33056         type of vector element when vec_extract is implemented by direct
33057         move.
33059 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
33061         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33063 2019-01-30  Richard Biener  <rguenther@suse.de>
33065         PR tree-optimization/89111
33066         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33067         canonicalization to appropriately sized access types.
33069 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
33071         PR c++/89105
33072         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33073         for arguments to functions that are TU-local and shouldn't be
33074         referenced by assembly.
33076 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
33078         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33079         after '='.
33081 2019-01-29  Martin Sebor  <msebor@redhat.com>
33083         PR c/88956
33084         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33086 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
33088         PR c++/66676
33089         PR ipa/89104
33090         * omp-simd-clone.c (simd_clone_clauses_extract)
33091         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33092         OMP_CLAUSE_ALIGNED_ALIGNMENT.
33094 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
33096         * config.gcc: Force .init_array for ARC.
33098 2019-01-29  Richard Biener  <rguenther@suse.de>
33100         PR debug/87295
33101         * dwarf2out.c (collect_skeleton_dies): New helper.
33102         (copy_decls_for_unworthy_types): Call it.
33103         (build_abbrev_table): Assert we do not try to replace
33104         DW_AT_signature refs with local refs.
33106 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33108         PR middle-end/89002
33109         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33110         for lastprivate/linear IV, push gimplify context around gimplify_assign
33111         and, if it needed any temporaries, pop it into a gimple bind around the
33112         sequence.
33114 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33116         * common.opt (-Wattribute-alias): Remove "no-" from name.
33117         Make -Wattribute-alias command line option and
33118         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33120 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33122         PR target/89073
33123         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33124         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33125         x86 ISA options.
33126         (bmi2): Add missing @opindex.
33127         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33128         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
33129         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33130         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33131         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33132         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33133         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33134         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33135         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33136         xsavec, xsaveopt and xsaves options.
33138 2019-01-28  Richard Biener  <rguenther@suse.de>
33140         PR debug/89076
33141         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33142         support removal.
33144 2019-01-28  Richard Biener  <rguenther@suse.de>
33146         PR tree-optimization/88739
33147         * tree-cfg.c (verify_types_in_gimple_reference): Verify
33148         BIT_FIELD_REFs only are applied to mode-precision operands
33149         when they are integral.
33150         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33151         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33152         BIT_FIELD_REFs of non-mode-precision integral operands.
33154 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
33156         PR target/87214
33157         * config/i386/sse.md
33158         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33159         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33160         first constants in pairs are multiples of 2.  Formatting fixes.
33161         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33162         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33163         first constants in each quadruple are multiples of 4.  Formatting fixes.
33165 2019-01-26  Martin Jambor  <mjambor@suse.cz>
33167         PR ipa/88933
33168         * tree-inline.c: Include tree-cfgcleanup.h.
33169         (delete_unreachable_blocks_update_callgraph): Move...
33170         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33171         ...here, make externally visible, make second argument bool, adjust
33172         all callers.
33173         * tree-cfgcleanup.c: Include cgraph.h.
33174         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33175         Declare.
33176         * ipa-prop.c: Include tree-cfgcleanup.h.
33177         (ipcp_transform_function): Call
33178         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33180 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
33182         PR rtl-optimization/88846
33183         * ira.c (process_set_for_memref_referenced_p): New.
33184         (memref_referenced_p): Add new param.  Use
33185         process_set_for_memref_referenced_p.  Add new switch cases.
33186         (memref_used_between_p): Pass new arg to memref_referenced_p.
33188 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
33190         PR target/88469
33191         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33192         argument ABI_BREAK.  Set to true if the calculated alignment has
33193         changed in gcc-9.  Check bit-fields for their base type alignment.
33194         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33195         (aarch64_function_arg_boundary): Likewise.
33196         (aarch64_gimplify_va_arg_expr): Likewise.
33198 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
33200         PR middle-end/89037
33201         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33202         instead of accessing TREE_INT_CST_ELT directly.
33204 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
33206         * doc/sourcebuild.texi (Environment attributes): Add fenv and
33207         fenv_exceptions description.
33209 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
33211         PR rtl-optimization/87763
33212         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33213         Allow SUBREG when matching CC_NZmode compare.
33215 2019-01-25  Richard Biener  <rguenther@suse.de>
33217         PR tree-optimization/89049
33218         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33219         Look at the pattern stmt to determine if the stmt is vectorized.
33221 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
33223         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33224         (pred_mov<mode>): Handle all-register forms using both a new
33225         alternative and a split.
33227 2019-01-25  Richard Biener  <rguenther@suse.de>
33229         PR tree-optimization/86865
33230         * graphite-scop-detection.c (scop_detection::can_represent_loop):
33231         Reject non-do-while loops.
33233 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
33235         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33236         * config/rs6000/constraints.md (Q constraint): Use REG_P.
33237         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33238         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33239         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33240         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33241         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33242         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33243         vlogical_operand, gpc_reg_operand, int_reg_operand,
33244         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33245         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33246         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33247         (save_world_operation, restore_world_operation, lmw_operation,
33248         stmw_operation): Use MEM_P and REG_P.
33249         (tie_operand): Use MEM_P.
33250         (vrsave_operation, crsave_operation): Use REG_P.
33251         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33252         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33253         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33254         (call_operand): Use HARD_REGISTER_P.
33255         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33256         Use CONST_INT_P.
33257         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33258         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33259         quad_aligned_load_p, replace_swapped_aligned_store,
33260         recombine_lvx_pattern, replace_swapped_aligned_load,
33261         recombine_stvx_pattern): Use MEM_P.
33262         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33263         Use MEM_P and SYMBOL_REF_P.
33264         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33265         (insn_is_swappable_p): Use REG_P and MEM_P.
33266         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33267         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33268         Use CONST_INT_P.
33269         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33270         Use CONST_DOUBLE_P.
33271         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33272         CONST_WIDE_INT_P.
33273         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33274         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33275         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33276         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33277         reg_or_subregno:
33278         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33279         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33280         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33281         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33282         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33283         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33284         rs6000_split_logical_di): Use CONST_INT_P.
33285         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33286         REG_P and SYMBOL_REF_P.
33287         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33288         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33289         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33290         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33291         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33292         (small_data_operand, print_operand_address): Use CONST_INT_P and
33293         SYMBOL_REF_P.
33294         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33295         (rs6000_init_hard_regno_mode_ok, direct_move_p):
33296         Use HARD_REGISTER_NUM_P.
33297         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33298         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33299         SUBREG_P and SYMBOL_REF_P.
33300         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33301         and HARD_REGISTER_NUM_P.
33302         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33303         reg_or_subregno.
33304         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33305         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33306         MEM_P and REG_P.
33307         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33308         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33309         find_addr_reg): Use REG_P.
33310         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33311         (rs6000_emit_le_vsx_move): Use SUBREG_P.
33312         (offsettable_ok_by_alignment, constant_pool_expr_p,
33313         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33314         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33315         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33316         rs6000_assemble_integer, create_TOC_reference,
33317         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33318         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33319         (rs6000_split_vec_extract_var): Use reg_or_subregno.
33320         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33321         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33322         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33323         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33324         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33325         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33326         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33327         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33328         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33329         and cbranch<mode>4): Use CONST_INT_P.
33330         (multiple define_splits): Use REG_P and SUBREG_P.
33331         (define_expands call, call_value): Use MEM_P.
33332         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
33333         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33334         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33335         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33336         and HARD_REGISTER_NUM_P.
33337         (multiple define_splits): Use HARD_REGISTER_NUM_P.
33339 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33341         PR rtl-optimization/88948
33342         * rtl.h (prepare_copy_insn): New prototype.
33343         * gcse.c (prepare_copy_insn): New function, split out from
33344         process_insert_insn.
33345         (process_insert_insn): Use prepare_copy_insn.
33346         * store-motion.c (replace_store_insn): Use prepare_copy_insn
33347         instead of gen_move_insn.
33349 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
33351         PR debug/89006
33352         * config/i386/i386.c (ix86_pic_register_p): Return true for
33353         UNSPEC_SET_GOT too.
33355         PR tree-optimization/88964
33356         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33357         punt if HONOR_SNANS (chrec).
33359         PR middle-end/89015
33360         * tree-nested.c (convert_nonlocal_reference_stmt,
33361         convert_local_reference_stmt, convert_tramp_reference_stmt,
33362         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33363         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33364         or GIMPLE_OMP_TASK.
33366         PR tree-optimization/89027
33367         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33368         for "omp simd array" variables.
33370 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
33372         PR target/88469
33373         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33374         force the alignment of m_val.
33376 2019-01-24  Richard Biener  <rguenther@suse.de>
33378         PR lto/87187
33379         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33380         When in "legacy" debug mode make sure to reset self-origins.
33382 2019-01-24  Martin Liska  <mliska@suse.cz>
33384         PR gcov-profile/88994
33385         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33386         result will be always smaller or equal to the original.
33387         * gcov.c (mangle_name): Fix else branch where we should
33388         also copy to PTR and shift the pointer.
33390 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
33392         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33393         * vr-values.c (find_case_label_ranges): Fix a comment typo.
33395 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
33397         * common/config/i386/i386-common.c
33398         (OPTION_MASK_ISA_ENQCMD_SET,
33399         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33400         (ix86_handle_option): Handle -menqcmd.
33401         * config.gcc (enqcmdintrin.h): New header file.
33402         * config/i386/cpuid.h (bit_ENQCMD): New bit.
33403         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33404         -menqcmd.
33405         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33406         function type.
33407         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33408         __builtin_ia32_enqcmds): New builtins.
33409         * config/i386/i386-c.c (__ENQCMD__): New macro.
33410         * config/i386/i386-option.c (ix86_target_string): Add
33411         -menqcmd.
33412         (ix86_valid_target_attribute_inner_p): Likewise.
33413         * config/i386/i386-expand.c
33414         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33415         IX86_BUILTIN_ENQCMDS.
33416         * config/i386/i386.h (TARGET_ENQCMD): New.
33417         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33418         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33419         (movdir64b_<mode>): Parameterize to enable share expansion code
33420         with ENQCMD in function ix86_expand_builtin.
33421         * config/i386/i386.opt: Add -menqcmd.
33422         * config/i386/immintrin.h: Include enqcmdintrin.h.
33423         * config/i386/enqcmdintrin.h: New intrinsic file.
33424         * doc/invoke.texi: Add -menqcmd.
33426 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
33427             Steve Ellcey  <sellcey@marvell.com>
33429         PR target/85711
33430         * recog.c (address_operand): Return false on wrong mode for address.
33431         (constrain_operands): Check for mode with 'p' constraint.
33433 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33435         PR target/88998
33436         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33437         Disparage MMX alternative.
33438         (sse2_cvtpd2pi): Ditto.
33439         (sse2_cvttpd2pi): Ditto.
33441 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
33443         PR driver/89014
33444         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33445         use-after-free of the result of
33446         aarch64_get_extension_string_for_isa_flags.
33448 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
33450         PR c/44715
33451         * doc/extend.texi: Document break and continue behavior in
33452         statement expressions.
33454 2019-01-23  Richard Biener  <rguenther@suse.de>
33456         PR tree-optimization/89008
33457         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33458         not leave another stray operand.
33460 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
33462         * BASE-VER: Bump to 9.0.1.
33464 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
33466         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33467         thunk that returns by reference, use the type of the return object
33468         of the thunk instead of that of the alias to build the dereference.
33470 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
33472         * config/arc/atomic.md: Add operand to DMB instruction.
33474 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
33476         PR tree-optimization/88964
33477         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33478         build_zero_cst instead of build_int_cst.  Return false for loop
33479         invariants which honor signed zeros.
33481 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
33483         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33485 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
33487         PR target/88965
33488         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33489         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33490         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33492         PR middle-end/88968
33493         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33494         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33496         PR target/87064
33497         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33498         Disable for little endian.
33500 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
33502         PR target/88469
33503         * config/arm/arm.c (arm_needs_double_word_align): Check
33504         DECL_BIT_FIELD_TYPE.
33506 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
33507             H.J. Lu  <hongjiu.lu@intel.com>
33509         PR target/88909
33510         * config/i386/i386-builtin.def: Add mask2 to all builtin
33511         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33512         SPECIAL_ARGS.
33513         * config/i386/i386.c (BDESC): Add mask2 to the definition.
33514         (BDESC_FIRST): Likewise.
33515         (define_builtin): Add an argument for mask2.  Updated to handle
33516         both ix86_isa_flags and ix86_isa_flags2.
33517         (define_builtin_const): Likewise.
33518         (define_builtin_pure): Likewise.
33519         (define_builtin2): Deleted.
33520         (define_builtin_const2): Likewise.
33521         (builtin_description): Add a member, mask2.
33522         (bdesc_*): Add mask2 to builtin initializations.
33523         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33524         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
33525         support.
33526         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33528 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
33530         PR target/88954
33531         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33532         noplt attribute.
33534 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
33536         PR target/88469
33537         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33538         alignment is dominated by a bitfield with 64-bit aligned base type.
33539         (arm_function_arg): Emit a warning if the alignment has changed since
33540         earlier GCC releases.
33541         (arm_function_arg_boundary): Likewise.
33542         (arm_setup_incoming_varargs): Likewise.
33544 2019-01-22  Richard Biener  <rguenther@suse.de>
33546         PR tree-optimization/88862
33547         * graphite-scop-detection.c
33548         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33550 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
33552         * doc/extend.tex (AMD GCN Function Attributes): New section.
33553         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33554         * doc/invoke.texi (AMD GCN Options): New section.
33555         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33557 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33559         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33560         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33562 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
33564         PR tree-optimization/88044
33565         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33566         is false in the first iteration, but !every_iteration, return false
33567         instead of true with niter->niter zero.
33569         PR rtl-optimization/88904
33570         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33571         any nonequal registers before processing BB_END (b).
33573         PR target/88905
33574         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33575         GET_MODE (op0).
33576         (expand_binop_directly, expand_doubleword_clz,
33577         expand_doubleword_popcount, expand_ctz, expand_ffs,
33578         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33580         PR rtl-optimization/49429
33581         PR target/49454
33582         PR rtl-optimization/86334
33583         PR target/88906
33584         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33585         addressable from here...
33586         (emit_block_op_via_libcall): ... to here.
33588 2019-01-22  Richard Biener  <rguenther@suse.de>
33590         * tree-vect-loop.c (vect_analyze_loop_operations): Use
33591         auto_vec for cost vector to fix memleak.
33592         (vectorize_fold_left_reduction): Properly gather SLP defs.
33593         (vectorizable_comparison): Do not swap operands to properly
33594         gather SLP defs.
33596 2019-01-22  Alan Modra  <amodra@gmail.com>
33598         PR target/88614
33599         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33600         stays a reg.  Allow a const_int.
33601         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33602         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33603         (IS_NOMARK_TLSGETADDR): Define.
33604         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33605         (rs6000_output_tlsargs): New function.
33606         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33607         __tls_get_addr call takes an arg.
33608         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33609         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33610         delete split..
33611         (call_value_nonlocal_sysv): ..or here, delete split.
33612         (tls_gdld_nomark): Delete.
33613         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33614         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
33615         (call_value_nonlocal_sysv): Likewise.
33616         (call_value_nonlocal_sysv_secure): Likewise.
33617         (call_value_nonlocal_aix): Likewise.
33618         (call_value_indirect_aix): Likewise.
33619         (call_value_indirect_elfv2): Likewise.
33620         (call_value_local32, call_value_local64): Disable for no-mark tls.
33621         (call_value_local_aix): Likewise.
33623 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33625         PR target/88938
33626         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33627         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33629 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
33631         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33632         string contents as hash_map keys.
33634 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33636         PR c/88928
33637         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33638         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
33639         instead of TYPE_ALIGN.
33640         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33641         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
33642         pointer from TYPE_STUB_DECL.
33644 2019-01-21  Richard Biener  <rguenther@suse.de>
33646         PR tree-optimization/88934
33647         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33648         at the possibly non-constant operand.
33649         (vect_get_constant_vectors): Adjust.
33651 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
33653         PR target/71659
33654         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33655         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33656         instead of _X86INTRIN_H_INCLUDED.
33657         * onfig/i386/clwbintrin.h: Likewise.
33658         * config/i386/pkuintrin.h: Likewise.
33659         * config/i386/prfchwintrin.h: Likewise.
33660         * config/i386/rdseedintrin.h: Likewise.
33661         * config/i386/wbnoinvdintrin.h: Likewise.
33662         * config/i386/xsavecintrin.h: Likewise.
33663         * config/i386/xsavesintrin.h: Likewise.
33664         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33665         * config/i386/xsaveintrin.h: Likewise.
33666         * config/i386/xsaveoptintrin.h: Likewise.
33667         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33668         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33669         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33670         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33671         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33672         * config/i386/immintrin.h: Here.
33674 2019-01-20  Martin Jambor  <mjambor@suse.cz>
33676         PR ipa/87615
33677         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33678         with aa_walk_budget.
33679         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33680         aa_walk_budget_p parameter.
33681         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
33682         walk.  Updated all callers.
33683         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33684         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33685         unmodified_parm.
33686         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33687         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
33688         and to unmodified_parm.
33689         (phi_result_unknown_predicate): New parameter fbi, removed parameter
33690         info, updated call to will_be_nonconstant_expr_predicate.
33691         (param_change_prob): New parameter fbi, limit AA walking.
33692         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
33693         calls to various above functions.
33694         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33695         parameter.  Use it to limit AA walking.
33696         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33697         fbi, limit AA walk.
33698         (detect_type_change): New parameter fbi, pass it on to
33699         detect_type_change_from_memory_writes.
33700         (detect_type_change_ssa): Likewise.
33701         (aa_overwalked): Removed.
33702         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33703         accordingly, adjust to the neew AA limiting scheme.
33704         (parm_ref_data_preserved_p): Likewise.
33705         (ipa_compute_jump_functions_for_edge): Adjust call to
33706         get_dynamic_type.
33707         (ipa_analyze_call_uses): Likewise.
33708         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33709         (ipa_analyze_node): Initialize aa_walk_budget.
33710         (ipcp_transform_function): Likewise.
33711         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33712         to get_dynamic_type.
33714 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
33716         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33717         outside of #if CHECKING_P code.
33719 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
33721         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33722         New function, split out from...
33723         (loop_versioning::analyze_stride): ...here.
33724         (loop_versioning::find_per_loop_multiplication): Use gassign.
33725         (loop_versioning::analyze_term_using_scevs): Return a success code.
33726         (loop_versioning::analyze_arbitrary_term): New function.
33727         (loop_versioning::analyze_address_fragment): Use
33728         analyze_arbitrary_term if all else fails.
33730 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
33732         PR target/88892
33733         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33734         operands.
33736 2019-01-18  Richard Biener  <rguenther@suse.de>
33738         PR tree-optimization/88903
33739         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33740         scalar stmts a SLP shift amount is composed of when detecting
33741         shifts by scalars.
33743 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
33745         PR target/88799
33746         * config/arm/arm-cpus.in (mp): New feature.
33747         (sec): New feature.
33748         (fgroup ARMv7ve): Add mp and sec features.
33749         (arch armv7-a): Add options to allow mp and sec extensions.
33750         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33751         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33752         extenstions to the base architecture.
33753         (cpu cortex-a8): Add sec extension to the base architecture.
33754         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33755         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33756         variants down to the base v7-a varaint.
33757         * config/arm/t-multilib (v7_a_arch_variants): New variable.
33758         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33759         of permitted extensions for -march=armv7-a and for
33760         -mcpu=generic-armv7-a.
33762 2019-01-18  Martin Liska  <mliska@suse.cz>
33764         * params.def: Fix comment.
33765         * tree-profile.c (gimple_init_gcov_profiler): Bump function
33766         name.
33767         (gimple_gen_ic_func_profiler): Likewise.
33769 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33771         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33772         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33773         and put in error checks for stack protector guard options.
33774         (aarch64_stack_protect_guard): New.
33775         (TARGET_STACK_PROTECT_GUARD): Define.
33776         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33777         (reg_stack_protect_address<mode>): New.
33778         (stack_protect_set): Adjust for SSP_GLOBAL.
33779         (stack_protect_test): Likewise.
33780         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33781         (-mstack-protector-guard): Likewise.
33782         (-mstack-protector-guard-offset): Likewise.
33784 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
33786         PR tree-optimization/86214
33787         * tree-inline.h (struct copy_body_data): Add
33788         add_clobbers_to_eh_landing_pads member.
33789         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33790         (copy_edges_for_bb): Call it if EH edge destination is <
33791         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
33792         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33793         if flag_stack_reuse != SR_NONE and clear it afterwards.
33795 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
33797         PR target/85596
33798         * doc/install.texi (with-multilib-list): Document for aarch64.
33800 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
33802         PR target/88734
33803         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33804         (("..."))) with ("...").
33806 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33808         * doc/extend.texi (Built-in Functions for Memory Model Aware
33809         Atomic Operations): Document atomic fetch and nand.
33811 2019-01-18  Martin Liska  <mliska@suse.cz>
33812             Richard Biener  <rguenther@suse.de>
33814         PR middle-end/88587
33815         * cgraph.h (create_version_clone_with_body): Add new argument
33816         with attributes.
33817         * cgraphclones.c (cgraph_node::create_version_clone): Add
33818         DECL_ATTRIBUTES to a newly created decl.  And call
33819         valid_attribute_p so that proper cl_target_optimization_node
33820         is set for the newly created declaration.
33821         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33822         for declaration.
33823         (expand_target_clones): Do not call valid_attribute_p, it must
33824         be already done.
33825         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33826         vector types.
33828 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
33830         PR target/88734
33831         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33832         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
33833         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33835 2019-01-17  Martin Sebor  <msebor@redhat.com>
33837         PR middle-end/88273
33838         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33839         Handle anti-ranges the same as no range at all.
33841 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
33843         * config/aarch64/aarch64.c (cgraph.h): New include.
33844         (intl.h): New include.
33845         (supported_simd_type): New function.
33846         (currently_supported_simd_type): Ditto.
33847         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33848         (aarch64_simd_clone_adjust): Ditto.
33849         (aarch64_simd_clone_usable): Ditto.
33850         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33851         (TARGET_SIMD_CLONE_ADJUST): Ditto.
33852         (TARGET_SIMD_CLONE_USABLE): Ditto.
33853         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33854         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33855         call.
33857 2019-01-17  Martin Sebor  <msebor@redhat.com>
33859         PR tree-optimization/88800
33860         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33861         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
33862         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33863         redundant argument.  Add new argument and issue diagnostics under
33864         its control.  Detect out-of-bounds access even with warnings
33865         disabled.
33866         (check_bounds_or_overlap): Change return type.  Add argument.
33867         (wrestrict_dom_walker::check_call): Adjust.
33868         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33869         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33870         check_bounds_or_overlap's return value.
33871         (handle_builtin_stxncpy): Same.
33872         (handle_builtin_strcat): Same.
33874 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33875             Kwok Cheung Yeung  <kcy@codesourcery.com>
33876             Julian Brown  <julian@codesourcery.com>
33877             Tom de Vries  <tom@codesourcery.com>
33879         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33881 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33883         * doc/sourcebuild.texi: Document dg-require-effective-target
33884         llvm_binutils and offload_gcn.
33886 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33887             Kwok Cheung Yeung  <kcy@codesourcery.com>
33888             Julian Brown  <julian@codesourcery.com>
33889             Tom de Vries  <tom@codesourcery.com>
33891         * doc/sourcebuild.texi: Document dg-required-effective-target
33892         exceptions.
33894 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33895             Kwok Cheung Yeung  <kcy@codesourcery.com>
33896             Julian Brown  <julian@codesourcery.com>
33897             Tom de Vries  <tom@codesourcery.com>
33898             Jan Hubicka  <hubicka@ucw.cz>
33899             Martin Jambor  <mjambor@suse.cz>
33901         * config.gcc: Add amdgcn*-*-amdhsa configuration.
33902         * configure.ac: Check for dlopen.
33903         * configure: Regenerate.
33905 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33906             Kwok Cheung Yeung  <kcy@codesourcery.com>
33907             Julian Brown  <julian@codesourcery.com>
33908             Tom de Vries  <tom@codesourcery.com>
33909             Jan Hubicka  <hubicka@ucw.cz>
33910             Martin Jambor  <mjambor@suse.cz>
33912         * common/config/gcn/gcn-common.c: New file.
33913         * config/gcn/driver-gcn.c: New file.
33914         * config/gcn/gcn-builtins.def: New file.
33915         * config/gcn/gcn-hsa.h: New file.
33916         * config/gcn/gcn-modes.def: New file.
33917         * config/gcn/gcn-opts.h: New file.
33918         * config/gcn/gcn-passes.def: New file.
33919         * config/gcn/gcn-protos.h: New file.
33920         * config/gcn/gcn-run.c: New file.
33921         * config/gcn/gcn-tree.c: New file.
33922         * config/gcn/gcn.c: New file.
33923         * config/gcn/gcn.h: New file.
33924         * config/gcn/gcn.opt: New file.
33925         * config/gcn/t-gcn-hsa: New file.
33927 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33928             Kwok Cheung Yeung  <kcy@codesourcery.com>
33929             Julian Brown  <julian@codesourcery.com>
33930             Tom de Vries  <tom@codesourcery.com>
33931             Jan Hubicka  <hubicka@ucw.cz>
33932             Martin Jambor  <mjambor@suse.cz>
33934         * config/gcn/constraints.md: New file.
33935         * config/gcn/gcn-valu.md: New file.
33936         * config/gcn/gcn.md: New file.
33937         * config/gcn/predicates.md: New file.
33939 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
33941         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33942         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33943         (stmt_uses_0_or_null_in_undefined_way): Likewise.
33944         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33946 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
33948         PR target/88851
33949         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33950         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33951         it and document registers.
33953 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33955         * config/aarch64/aarch64.c (ares_tunings): Define.
33956         * config/aarch64/aarch64-cores.def (ares): Use the above.
33958 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
33960         PR target/88794
33961         Revert:
33962         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
33964         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33965         (_mm512_fixupimm_round_pd): Update parameters and builtin.
33966         (_mm512_maskz_fixupimm_round_pd): Ditto.
33967         (_mm512_fixupimm_round_ps): Ditto.
33968         (_mm512_maskz_fixupimm_round_ps): Ditto.
33969         (_mm_fixupimm_round_sd): Ditto.
33970         (_mm_maskz_fixupimm_round_sd): Ditto.
33971         (_mm_fixupimm_round_ss): Ditto.
33972         (_mm_maskz_fixupimm_round_ss): Ditto.
33973         (_mm512_fixupimm_pd): Ditto.
33974         (_mm512_maskz_fixupimm_pd): Ditto.
33975         (_mm512_fixupimm_ps): Ditto.
33976         (_mm512_maskz_fixupimm_ps): Ditto.
33977         (_mm_fixupimm_sd): Ditto.
33978         (_mm_maskz_fixupimm_sd): Ditto.
33979         (_mm_fixupimm_ss): Ditto.
33980         (_mm_maskz_fixupimm_ss): Ditto.
33981         (_mm512_mask_fixupimm_round_pd): Update builtin.
33982         (_mm512_mask_fixupimm_round_ps): Ditto.
33983         (_mm_mask_fixupimm_round_sd): Ditto.
33984         (_mm_mask_fixupimm_round_ss): Ditto.
33985         (_mm512_mask_fixupimm_pd): Ditto.
33986         (_mm512_mask_fixupimm_ps): Ditto.
33987         (_mm_mask_fixupimm_sd): Ditto.
33988         (_mm_mask_fixupimm_ss): Ditto.
33989         * config/i386/avx512vlintrin.h:
33990         (_mm256_fixupimm_pd): Update parameters and builtin.
33991         (_mm256_maskz_fixupimm_pd): Ditto.
33992         (_mm256_fixupimm_ps): Ditto.
33993         (_mm256_maskz_fixupimm_ps): Ditto.
33994         (_mm_fixupimm_pd): Ditto.
33995         (_mm_maskz_fixupimm_pd): Ditto.
33996         (_mm_fixupimm_ps): Ditto.
33997         (_mm_maskz_fixupimm_ps): Ditto.
33998         (_mm256_mask_fixupimm_pd): Update builtin.
33999         (_mm256_mask_fixupimm_ps): Ditto.
34000         (_mm_mask_fixupimm_pd): Ditto.
34001         (_mm_mask_fixupimm_ps): Ditto.
34002         * config/i386/i386-builtin-types.def: Add new types and remove
34003         useless ones.
34004         * config/i386/i386-builtin.def: Update builtin definitions.
34005         * config/i386/i386.c: Handle new builtin types and remove useless ones.
34006         * config/i386/sse.md: Update VFIXUPIMM* patterns.
34007         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34008         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34009         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34010         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34011         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34012         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34013         * config/i386/subst.md:
34014         (round_saeonly_sd_mask_operand4): Add new subst_attr.
34015         (round_saeonly_sd_mask_op4): Ditto.
34016         (round_saeonly_expand_operand5): Ditto.
34017         (round_saeonly_expand): Update.
34019 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34021         PR target/88794
34022         Revert:
34023         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
34025         * config/i386/sse.md: Combine VFIXUPIMM* patterns
34026         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34027         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34028         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34029         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34030         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34031         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34033 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34035         PR target/88794
34036         Revert:
34037         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
34039         PR target/88489
34040         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34041         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34042         instead of UNSPEC_FIXUPIMM.
34044 2019-01-17  Richard Biener  <rguenther@suse.de>
34046         PR lto/86736
34047         * dwarf2out.c (want_pubnames): Never generate pubnames sections
34048         and friends for the LTO part of debug info.
34050 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
34052         PR tree-optimization/86214
34053         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34054         if x == y.
34056         PR rtl-optimization/88870
34057         * dce.c (deletable_insn_p): Never delete const/pure calls that can
34058         throw if we can't alter the cfg or delete dead exceptions.
34059         (mark_insn): Don't call find_call_stack_args for such calls.
34061 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
34063         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34064         prototypes for vec_st.
34065         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34066         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34067         mainly on signed/unsigned long long and double.
34069 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
34071         PR target/88861
34072         * combine.c (delete_noop_moves): Convert to "bool" return,
34073         returning true if any edges are eliminated.
34074         (combine_instructions): Also return true if delete_noop_moves
34075         returns true.
34077 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34079         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34080         correct max nunits for endian swap.
34081         (aarch64_expand_fcmla_builtin): Correct subreg code.
34082         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34083         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34084         lane endianness.
34086 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34088         * config/alpha/alpha.c (alpha_gimplify_va_arg):
34089         Handle split indirect COMPLEX_TYPE arguments.
34091 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
34093         PR target/86891
34094         * config/aarch64/aarch64-modes.def: Add comment about how the carry
34095         bit is set by add and compare.
34096         (CC_ADC): New CC_MODE.
34097         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34098         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
34099         comparison.  Add detection for CC_ADCmode.
34100         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
34101         CC_ADCmode.
34102         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34103         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34104         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
34105         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
34106         to eliminate the need for zero-extending the operands.
34107         (add<mode>3_compareC_imm): Delete.  Merge into ...
34108         (add<mode>3_compareC): ... this.  Restructure the comparison to
34109         eliminate the need for zero-extending the operands.
34110         (add<mode>3_carryin): Use LTU for the overflow detection.
34111         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34112         Reexpress comparison for overflow.
34113         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34114         (add<mode>3_carryinC): Likewise.
34115         (add<mode>3_carryinV): Use LTU for carry between partials.
34116         * config/aarch64/predicates.md (aarch64_carry_operation): Update
34117         handling of CC_Cmode and add CC_ADCmode.
34118         (aarch64_borrow_operation): Likewise.
34120 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34122         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34123         Remove patternmode.
34124         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34125         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34126         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34127         Remove endianness conversion.
34129 2019-01-16  Martin Liska  <mliska@suse.cz>
34131         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34132         for GCC driver.
34133         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34134         a new argument.
34135         * gcc.c (add_sysrooted_hdrs_prefix): New function.
34136         (path_prefix_reset): Move up in the source file.
34137         (find_fortran_preinclude_file): Make complex search for the
34138         fortran header files.
34140 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
34142         * godump.c (go_output_typedef): When outputting a typedef, refer
34143         to the underlying type by its name and not its structure.
34145 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
34147         PR c++/88795
34148         * tree.c (build_function_type): Assert that arg_types is not
34149         error_mark_node.
34151 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
34153         PR inline-asm/52813
34154         * doc/extend.texi: Document that listing the stack pointer in the
34155         clobber list of an asm is a deprecated feature.
34156         * common.opt (Wdeprecated): Moved from c-family/c.opt.
34157         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34158         warning instead of an error for clobbers of the stack pointer.
34159         Add a note explaining why.
34161 2019-01-15  Richard Biener  <rguenther@suse.de>
34163         PR debug/88046
34164         * dwarf2out.c (gen_member_die): Do not generate inheritance
34165         DIEs late.
34167 2019-01-15  Richard Biener  <rguenther@suse.de>
34169         PR tree-optimization/88855
34170         * tree-if-conv.c (combine_blocks): Collect
34171         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34173 2019-01-15  Tom de Vries  <tdevries@suse.de>
34175         PR target/80547
34176         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34177         lhs == NULL_TREE for gang-level reduction.
34179 2019-01-15  Richard Biener  <rguenther@suse.de>
34180             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34182         PR ipa/88788
34183         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34184         return true if SSA_NAME is already marked in visited bitmap.
34185         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34187 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
34189         PR tree-optimization/88775
34190         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34191         equal == 0 equality pointer comparisons some more if compared in
34192         integral types and either one points to an automatic var and the
34193         other to a global, or we can prove at least one points to the middle
34194         or both point to start or both point to end.
34196 2019-01-14  Andi Kleen  <ak@linux.intel.com>
34198         * Makefile.in: Lower autofdo sampling rate by 10x.
34199         * Makefile.tpl: Dito.
34201 2019-01-14  Tom Honermann  <tom@honermann.net>
34203         * defaults.h: Define CHAR8_TYPE.
34205 2019-01-14  Martin Sebor  <msebor@redhat.com>
34207         PR target/88638
34208         * doc/extend.texi (Darwin Format Checks): Clarify.
34210 2019-01-14  Richard Biener  <rguenther@suse.de>
34212         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34213         whether we are in (simplify ...) or (match ...) context.
34215 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
34217         PR rtl-optimization/88796
34218         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34219         * cfgexpand.c (stack_protect_prologue): Initialize
34220         crtl->stack_protect_guard_decl.
34221         * function.c (stack_protect_epilogue): Use it instead of calling
34222         targetm.stack_protect_guard again.
34223         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34224         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34225         crtl->stack_protect_guard_decl.
34226         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34227         on the returned MEM_EXPR.
34229 2019-01-12  Tom de Vries  <tdevries@suse.de>
34231         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34232         vector length using -fopenacc-dim.
34234 2019-01-12  Tom de Vries  <tdevries@suse.de>
34236         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34237         lengths into account.
34239 2019-01-12  Svante Signell  <svante.signell@gmail.com>
34241         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34242         (TARGET_CAN_SPLIT_STACK): Define.
34243         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34245 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34247         * params.def (inline-unit-growth): Set to 40.
34249 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
34251         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34253 2019-01-12  Tom de Vries  <tdevries@suse.de>
34255         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34256         region calling vector-partitionable routine, set default_vector_length
34257         to WARP_SIZE.
34259 2019-01-12  Tom de Vries  <tdevries@suse.de>
34261         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34262         variable default_vector_length.
34264 2019-01-12  Tom de Vries  <tdevries@suse.de>
34266         PR middle-end/88703
34267         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34268         from oacc_default_dims, as oacc_validate_dims would do it, and apply
34269         dimensions limits.
34271 2019-01-12  Tom de Vries  <tdevries@suse.de>
34273         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34274         (nvptx_goacc_validate_dims): Add used parameter.
34275         * doc/tm.texi: Regenerate.
34276         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34277         argument to call to targetm.goacc.validate_dims.
34278         (default_goacc_validate_dims): Add used
34279         parameter.
34280         * target.def (validate_dims): Add used parameter in DEFHOOK.
34281         * targhooks.h (default_goacc_validate_dims): Add used parameter.
34283 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
34285         PR middle-end/85956
34286         PR lto/88733
34287         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34288         field.
34289         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
34290         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34291         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34292         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34294 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
34296         PR rtl-optimization/87305
34297         * lra-assigns.c
34298         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34299         for little endian pseudos used as paradoxical subreg.
34301 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
34303         PR tree-optimization/88693
34304         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34305         for STRING_CSTs that don't contain any NUL characters in the first
34306         TREE_STRING_LENGTH bytes.
34308 2019-01-11  Alan Modra  <amodra@gmail.com>
34310         PR 88777
34311         PR 88614
34312         * genattrtab.c (min_fn): Don't translate values.
34313         (min_attr_value): Return INT_MAX when the value can't be calculated.
34314         Return minimum among any values that can be calculated.
34315         (max_attr_value): Adjust.
34317 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
34319         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34321 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
34323         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34324         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34325         (aarch64_return_call_with_max_clobbers): New function.
34326         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34327         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34328         argument.
34329         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34330         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34331         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34332         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34333         * cselib.c (cselib_process_insn): Add argument to
34334         targetm.hard_regno_call_part_clobbered call.
34335         * ira-conflicts.c (ira_build_conflicts): Ditto.
34336         * ira-costs.c (ira_tune_allocno_costs): Ditto.
34337         * lra-constraints.c (inherit_reload_reg): Ditto.
34338         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34339         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34340         argument.  Call targetm.return_call_with_max_clobbers.
34341         Add argument to targetm.hard_regno_call_part_clobbered call.
34342         (calls_have_same_clobbers_p): New function.
34343         (process_bb_lives): Add call_insn and last_call_insn variables.
34344         Pass call_insn to check_pseudos_live_through_calls.
34345         Modify if stmt to check targetm.return_call_with_max_clobbers.
34346         Update setting of flush variable.
34347         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34348         to false.
34349         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34350         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34351         targetm.hard_regno_call_part_clobbered call.
34352         * reginfo.c (choose_hard_reg_mode): Ditto.
34353         * regrename.c (check_new_reg_p): Ditto.
34354         * reload.c (find_equiv_reg): Ditto.
34355         * reload1.c (emit_reload_insns): Ditto.
34356         * sched-deps.c (deps_analyze_insn): Ditto.
34357         * sel-sched.c (init_regs_for_mode): Ditto.
34358         (mark_unavailable_hard_regs): Ditto.
34359         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34360         * target.def (hard_regno_call_part_clobbered): Add insn argument.
34361         (return_call_with_max_clobbers): New target function.
34362         * doc/tm.texi: Regenerate.
34363         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34364         * hooks.c (hook_bool_uint_mode_false): Change to
34365         hook_bool_insn_uint_mode_false.
34366         * hooks.h (hook_bool_uint_mode_false): Ditto.
34368 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
34370         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34371         (aarch64_remove_extra_call_preserved_regs): New function.
34372         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34373         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34374         * doc/tm.texi: Regenerate.
34375         * final.c (get_call_reg_set_usage): Call new hook.
34376         * target.def (remove_extra_call_preserved_regs): New hook.
34377         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34378         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34380 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
34382         PR bootstrap/88714
34383         * passes.c (finish_optimization_passes): Call print_combine_total_stats
34384         inside of pass_combine_1 dump rather than pass_profile_1.
34386 2019-01-11  Tom de Vries  <tdevries@suse.de>
34388         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34389         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34390         (PTX_NUM_PER_WORKER_BARRIERS): Define.
34391         (nvptx_apply_dim_limits): Prevent vector_length 64 and
34392         num_workers 16.
34394 2019-01-11  Tom de Vries  <tdevries@suse.de>
34396         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34398 2019-01-11  Jan Beulich  <jbeulich@suse.com>
34400         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34401         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34402         sse2_cvtsi2sd): Add {l}.
34403         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34404         syntax.
34406 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
34408         PR target/88785
34409         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34410         define_expand.
34411         (*float<floatunssuffix>v2div2sf2): New define_insn.
34412         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34413         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34414         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34415         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34416         match_operands with "const0_operand" "C".
34418 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
34420         * config/aarch64/aarch64-builtins.c
34421         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34422         (aarch64_init_simd_builtins): ...Here
34424 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
34426         PR rtl-optimization/87305
34427         * lra-assigns.c
34428         (setup_live_pseudos_and_spill_after_risky_transforms): Check
34429         allocation for big endian pseudos used as paradoxical subregs and
34430         spill them if it is wrong.
34431         * lra-constraints.c (lra_constraints): Add a comment.
34433 2019-01-10  Richard Biener  <rguenther@suse.de>
34435         PR tree-optimization/88792
34436         * tree-ssa-pre.c (get_representative_for): Do not return a
34437         value-number here.
34439 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
34441         PR middle-end/84877
34442         PR bootstrap/88450
34443         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34444         (assign_parm_setup_block): Do the argument slot realignment here
34445         instead.
34447 2019-01-10  Stefan Agner  <stefan@agner.ch>
34449         PR target/88648
34450         * config/arm/arm.c (arm_option_override_internal): Force
34451         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34453 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
34455         PR c/88568
34456         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34457         DECL_EXTERNAL.
34459 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
34461         * config/arm/arm-builtins.c
34462         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34463         (MAC_LANE_PAIR_QUALIFIERS): New.
34464         (arm_expand_builtin_args): Use it.
34465         (arm_expand_builtin_1): Likewise.
34466         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34467         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34468         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34469         * config/arm/arm_neon.h:
34470         (vcadd_rot90_f16): New.
34471         (vcaddq_rot90_f16): New.
34472         (vcadd_rot270_f16): New.
34473         (vcaddq_rot270_f16): New.
34474         (vcmla_f16): New.
34475         (vcmlaq_f16): New.
34476         (vcmla_lane_f16): New.
34477         (vcmla_laneq_f16): New.
34478         (vcmlaq_lane_f16): New.
34479         (vcmlaq_laneq_f16): New.
34480         (vcmla_rot90_f16): New.
34481         (vcmlaq_rot90_f16): New.
34482         (vcmla_rot90_lane_f16): New.
34483         (vcmla_rot90_laneq_f16): New.
34484         (vcmlaq_rot90_lane_f16): New.
34485         (vcmlaq_rot90_laneq_f16): New.
34486         (vcmla_rot180_f16): New.
34487         (vcmlaq_rot180_f16): New.
34488         (vcmla_rot180_lane_f16): New.
34489         (vcmla_rot180_laneq_f16): New.
34490         (vcmlaq_rot180_lane_f16): New.
34491         (vcmlaq_rot180_laneq_f16): New.
34492         (vcmla_rot270_f16): New.
34493         (vcmlaq_rot270_f16): New.
34494         (vcmla_rot270_lane_f16): New.
34495         (vcmla_rot270_laneq_f16): New.
34496         (vcmlaq_rot270_lane_f16): New.
34497         (vcmlaq_rot270_laneq_f16): New.
34498         (vcadd_rot90_f32): New.
34499         (vcaddq_rot90_f32): New.
34500         (vcadd_rot270_f32): New.
34501         (vcaddq_rot270_f32): New.
34502         (vcmla_f32): New.
34503         (vcmlaq_f32): New.
34504         (vcmla_lane_f32): New.
34505         (vcmla_laneq_f32): New.
34506         (vcmlaq_lane_f32): New.
34507         (vcmlaq_laneq_f32): New.
34508         (vcmla_rot90_f32): New.
34509         (vcmlaq_rot90_f32): New.
34510         (vcmla_rot90_lane_f32): New.
34511         (vcmla_rot90_laneq_f32): New.
34512         (vcmlaq_rot90_lane_f32): New.
34513         (vcmlaq_rot90_laneq_f32): New.
34514         (vcmla_rot180_f32): New.
34515         (vcmlaq_rot180_f32): New.
34516         (vcmla_rot180_lane_f32): New.
34517         (vcmla_rot180_laneq_f32): New.
34518         (vcmlaq_rot180_lane_f32): New.
34519         (vcmlaq_rot180_laneq_f32): New.
34520         (vcmla_rot270_f32): New.
34521         (vcmlaq_rot270_f32): New.
34522         (vcmla_rot270_lane_f32): New.
34523         (vcmla_rot270_laneq_f32): New.
34524         (vcmlaq_rot270_lane_f32): New.
34525         (vcmlaq_rot270_laneq_f32): New.
34526         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34527         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34528         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34529         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34530         vcmlaq_lane270): New.
34531         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34532         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34533         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34534         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34535         (arm_option_reconfigure_globals): Use them.
34536         * config/arm/iterators.md (VDF, VQ_HSF): New.
34537         (VCADD, VCMLA): New.
34538         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34539         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34540         New.
34541         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34542         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34544 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
34546         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34547         Add qualifier_lane_pair_index.
34548         (emit-rtl.h): Include.
34549         (TYPES_QUADOP_LANE_PAIR): New.
34550         (aarch64_simd_expand_args): Use it.
34551         (aarch64_simd_expand_builtin): Likewise.
34552         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34553         New.
34554         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34555         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34556         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34557         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34558         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34559         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34560         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34561         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34562         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34563         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34564         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34565         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34566         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34567         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34568         Add __ARM_FEATURE_COMPLEX.
34569         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34570         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34571         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34572         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34573         fcmlaq_lane270): New.
34574         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34575         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34576         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34577         * config/aarch64/arm_neon.h:
34578         (vcadd_rot90_f16): New.
34579         (vcaddq_rot90_f16): New.
34580         (vcadd_rot270_f16): New.
34581         (vcaddq_rot270_f16): New.
34582         (vcmla_f16): New.
34583         (vcmlaq_f16): New.
34584         (vcmla_lane_f16): New.
34585         (vcmla_laneq_f16): New.
34586         (vcmlaq_lane_f16): New.
34587         (vcmlaq_rot90_lane_f16): New.
34588         (vcmla_rot90_laneq_f16): New.
34589         (vcmla_rot90_lane_f16): New.
34590         (vcmlaq_rot90_f16): New.
34591         (vcmla_rot90_f16): New.
34592         (vcmlaq_laneq_f16): New.
34593         (vcmla_rot180_laneq_f16): New.
34594         (vcmla_rot180_lane_f16): New.
34595         (vcmlaq_rot180_f16): New.
34596         (vcmla_rot180_f16): New.
34597         (vcmlaq_rot90_laneq_f16): New.
34598         (vcmlaq_rot270_laneq_f16): New.
34599         (vcmlaq_rot270_lane_f16): New.
34600         (vcmla_rot270_laneq_f16): New.
34601         (vcmlaq_rot270_f16): New.
34602         (vcmla_rot270_f16): New.
34603         (vcmlaq_rot180_laneq_f16): New.
34604         (vcmlaq_rot180_lane_f16): New.
34605         (vcmla_rot270_lane_f16): New.
34606         (vcadd_rot90_f32): New.
34607         (vcaddq_rot90_f32): New.
34608         (vcaddq_rot90_f64): New.
34609         (vcadd_rot270_f32): New.
34610         (vcaddq_rot270_f32): New.
34611         (vcaddq_rot270_f64): New.
34612         (vcmla_f32): New.
34613         (vcmlaq_f32): New.
34614         (vcmlaq_f64): New.
34615         (vcmla_lane_f32): New.
34616         (vcmla_laneq_f32): New.
34617         (vcmlaq_lane_f32): New.
34618         (vcmlaq_laneq_f32): New.
34619         (vcmla_rot90_f32): New.
34620         (vcmlaq_rot90_f32): New.
34621         (vcmlaq_rot90_f64): New.
34622         (vcmla_rot90_lane_f32): New.
34623         (vcmla_rot90_laneq_f32): New.
34624         (vcmlaq_rot90_lane_f32): New.
34625         (vcmlaq_rot90_laneq_f32): New.
34626         (vcmla_rot180_f32): New.
34627         (vcmlaq_rot180_f32): New.
34628         (vcmlaq_rot180_f64): New.
34629         (vcmla_rot180_lane_f32): New.
34630         (vcmla_rot180_laneq_f32): New.
34631         (vcmlaq_rot180_lane_f32): New.
34632         (vcmlaq_rot180_laneq_f32): New.
34633         (vcmla_rot270_f32): New.
34634         (vcmlaq_rot270_f32): New.
34635         (vcmlaq_rot270_f64): New.
34636         (vcmla_rot270_lane_f32): New.
34637         (vcmla_rot270_laneq_f32): New.
34638         (vcmlaq_rot270_lane_f32): New.
34639         (vcmlaq_rot270_laneq_f32): New.
34640         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34641         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34642         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34643         (FCADD, FCMLA): New.
34644         (rot): New.
34645         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34647 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
34649         PR other/16615
34651         * config/pa/pa.c: Change "can not" to "cannot".
34652         * gimple-ssa-evrp-analyze.c: Likewise.
34653         * ipa-icf.c: Likewise.
34654         * ipa-polymorphic-call.c: Likewise.
34655         * ipa-pure-const.c: Likewise.
34656         * lra-constraints.c: Likewise.
34657         * lra-remat.c: Likewise.
34658         * reload1.c: Likewise.
34659         * reorg.c: Likewise.
34660         * tree-ssa-uninit.c: Likewise.
34662 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
34664         PR other/16615
34666         * Makefile.in: Mechanically replace "can not" with "cannot".
34667         * alias.c: Likewise.
34668         * builtins.c: Likewise.
34669         * calls.c: Likewise.
34670         * cgraph.c: Likewise.
34671         * cgraph.h: Likewise.
34672         * cgraphclones.c: Likewise.
34673         * cgraphunit.c: Likewise.
34674         * combine-stack-adj.c: Likewise.
34675         * combine.c: Likewise.
34676         * common/config/i386/i386-common.c: Likewise.
34677         * config/aarch64/aarch64.c: Likewise.
34678         * config/alpha/sync.md: Likewise.
34679         * config/arc/arc.c: Likewise.
34680         * config/arc/predicates.md: Likewise.
34681         * config/arm/arm-c.c: Likewise.
34682         * config/arm/arm.c: Likewise.
34683         * config/arm/arm.h: Likewise.
34684         * config/arm/arm.md: Likewise.
34685         * config/arm/cortex-r4f.md: Likewise.
34686         * config/csky/csky.c: Likewise.
34687         * config/csky/csky.h: Likewise.
34688         * config/darwin-f.c: Likewise.
34689         * config/epiphany/epiphany.md: Likewise.
34690         * config/i386/i386.c: Likewise.
34691         * config/i386/sol2.h: Likewise.
34692         * config/m68k/m68k.c: Likewise.
34693         * config/mcore/mcore.h: Likewise.
34694         * config/microblaze/microblaze.md: Likewise.
34695         * config/mips/20kc.md: Likewise.
34696         * config/mips/sb1.md: Likewise.
34697         * config/nds32/nds32.c: Likewise.
34698         * config/nds32/predicates.md: Likewise.
34699         * config/pa/pa.c: Likewise.
34700         * config/rs6000/e300c2c3.md: Likewise.
34701         * config/rs6000/rs6000.c: Likewise.
34702         * config/s390/s390.h: Likewise.
34703         * config/sh/sh.c: Likewise.
34704         * config/sh/sh.md: Likewise.
34705         * config/spu/vmx2spu.h: Likewise.
34706         * cprop.c: Likewise.
34707         * dbxout.c: Likewise.
34708         * df-scan.c: Likewise.
34709         * doc/cfg.texi: Likewise.
34710         * doc/extend.texi: Likewise.
34711         * doc/fragments.texi: Likewise.
34712         * doc/gty.texi: Likewise.
34713         * doc/invoke.texi: Likewise.
34714         * doc/lto.texi: Likewise.
34715         * doc/md.texi: Likewise.
34716         * doc/objc.texi: Likewise.
34717         * doc/rtl.texi: Likewise.
34718         * doc/tm.texi: Likewise.
34719         * dse.c: Likewise.
34720         * emit-rtl.c: Likewise.
34721         * emit-rtl.h: Likewise.
34722         * except.c: Likewise.
34723         * expmed.c: Likewise.
34724         * expr.c: Likewise.
34725         * fold-const.c: Likewise.
34726         * genautomata.c: Likewise.
34727         * gimple-fold.c: Likewise.
34728         * hard-reg-set.h: Likewise.
34729         * ifcvt.c: Likewise.
34730         * ipa-comdats.c: Likewise.
34731         * ipa-cp.c: Likewise.
34732         * ipa-devirt.c: Likewise.
34733         * ipa-fnsummary.c: Likewise.
34734         * ipa-icf.c: Likewise.
34735         * ipa-inline-transform.c: Likewise.
34736         * ipa-inline.c: Likewise.
34737         * ipa-polymorphic-call.c: Likewise.
34738         * ipa-profile.c: Likewise.
34739         * ipa-prop.c: Likewise.
34740         * ipa-pure-const.c: Likewise.
34741         * ipa-reference.c: Likewise.
34742         * ipa-split.c: Likewise.
34743         * ipa-visibility.c: Likewise.
34744         * ipa.c: Likewise.
34745         * ira-build.c: Likewise.
34746         * ira-color.c: Likewise.
34747         * ira-conflicts.c: Likewise.
34748         * ira-costs.c: Likewise.
34749         * ira-int.h: Likewise.
34750         * ira-lives.c: Likewise.
34751         * ira.c: Likewise.
34752         * ira.h: Likewise.
34753         * loop-invariant.c: Likewise.
34754         * loop-unroll.c: Likewise.
34755         * lower-subreg.c: Likewise.
34756         * lra-assigns.c: Likewise.
34757         * lra-constraints.c: Likewise.
34758         * lra-eliminations.c: Likewise.
34759         * lra-lives.c: Likewise.
34760         * lra-remat.c: Likewise.
34761         * lra-spills.c: Likewise.
34762         * lra.c: Likewise.
34763         * lto-cgraph.c: Likewise.
34764         * lto-streamer-out.c: Likewise.
34765         * postreload-gcse.c: Likewise.
34766         * predict.c: Likewise.
34767         * profile-count.h: Likewise.
34768         * profile.c: Likewise.
34769         * recog.c: Likewise.
34770         * ree.c: Likewise.
34771         * reload.c: Likewise.
34772         * reload1.c: Likewise.
34773         * reorg.c: Likewise.
34774         * resource.c: Likewise.
34775         * rtl.def: Likewise.
34776         * rtl.h: Likewise.
34777         * rtlanal.c: Likewise.
34778         * sched-deps.c: Likewise.
34779         * sched-ebb.c: Likewise.
34780         * sched-rgn.c: Likewise.
34781         * sel-sched-ir.c: Likewise.
34782         * sel-sched.c: Likewise.
34783         * shrink-wrap.c: Likewise.
34784         * simplify-rtx.c: Likewise.
34785         * symtab.c: Likewise.
34786         * target.def: Likewise.
34787         * toplev.c: Likewise.
34788         * tree-call-cdce.c: Likewise.
34789         * tree-cfg.c: Likewise.
34790         * tree-complex.c: Likewise.
34791         * tree-core.h: Likewise.
34792         * tree-eh.c: Likewise.
34793         * tree-inline.c: Likewise.
34794         * tree-loop-distribution.c: Likewise.
34795         * tree-nrv.c: Likewise.
34796         * tree-profile.c: Likewise.
34797         * tree-sra.c: Likewise.
34798         * tree-ssa-alias.c: Likewise.
34799         * tree-ssa-dce.c: Likewise.
34800         * tree-ssa-dom.c: Likewise.
34801         * tree-ssa-forwprop.c: Likewise.
34802         * tree-ssa-loop-im.c: Likewise.
34803         * tree-ssa-loop-ivcanon.c: Likewise.
34804         * tree-ssa-loop-ivopts.c: Likewise.
34805         * tree-ssa-loop-niter.c: Likewise.
34806         * tree-ssa-phionlycprop.c: Likewise.
34807         * tree-ssa-phiopt.c: Likewise.
34808         * tree-ssa-propagate.c: Likewise.
34809         * tree-ssa-threadedge.c: Likewise.
34810         * tree-ssa-threadupdate.c: Likewise.
34811         * tree-ssa-uninit.c: Likewise.
34812         * tree-ssanames.c: Likewise.
34813         * tree-streamer-out.c: Likewise.
34814         * tree.c: Likewise.
34815         * tree.h: Likewise.
34816         * vr-values.c: Likewise.
34818 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34820         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34821         (ix86_split_xorsign): Ditto.
34822         * config/i386/i386.c (ix86_expand_xorsign): New function.
34823         (ix86_split_xorsign): Ditto.
34824         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34825         (xorsign<mode>3): New expander.
34826         (xorsign<mode>3_1): New insn_and_split pattern.
34827         * config/i386/sse.md (xorsign<mode>3): New expander.
34829 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
34831         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34832         (*tablejump_sp64): Likewise.
34833         (*tablejump<P:mode>): ...this.
34834         (*call_address_sp32): Merge into...
34835         (*call_address_sp64): Likewise.
34836         (*call_address<P:mode>): ...this.
34837         (*call_symbolic_sp32): Merge into...
34838         (*call_symbolic_sp64): Likewise.
34839         (*call_symbolic<P:mode>): ...this.
34840         (call_value): Remove constraint and add predicate.
34841         (*call_value_address_sp32): Merge into...
34842         (*call_value_address_sp64): Likewise.
34843         (*call_value_address<P:mode>): ...this.
34844         (*call_value_symbolic_sp32): Merge into...
34845         (*call_value_symbolic_sp64): Likewise.
34846         (*call_value_symbolic<P:mode>): ...this.
34847         (*sibcall_symbolic_sp32): Merge into...
34848         (*sibcall_symbolic_sp64): Likewise.
34849         (*sibcall_symbolic<P:mode>): ...this.
34850         (sibcall_value): Remove constraint and add predicate.
34851         (*sibcall_value_symbolic_sp32): Merge into...
34852         (*sibcall_value_symbolic_sp64): Likewise.
34853         (*sibcall_value_symbolic<P:mode>): ...this.
34854         (window_save): Minor tweak.
34855         (*branch_sp32): Merge into...
34856         (*branch_sp64): Likewise.
34857         (*branch<P:mode>): ...this.
34859 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
34860             James Clarke  <jrtc27@jrtc27.com>
34862         PR target/84010
34863         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34864         consistently in TLS address generation and adjust code to the renaming
34865         of patterns.  Mark calls to __tls_get_addr as const.
34866         * config/sparc/sparc.md (tgd_hi22): Turn into...
34867         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34868         (tgd_lo10): Turn into...
34869         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34870         (tgd_add32): Merge into...
34871         (tgd_add64): Likewise.
34872         (tgd_add<P:mode>): ...this and use Pmode throughout.
34873         (tldm_hi22): Turn into...
34874         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34875         (tldm_lo10): Turn into...
34876         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34877         (tldm_add32): Merge into...
34878         (tldm_add64): Likewise.
34879         (tldm_add<P:mode>): ...this and use Pmode throughout.
34880         (tldm_call32): Merge into...
34881         (tldm_call64): Likewise.
34882         (tldm_call<P:mode>): ...this and use Pmode throughout.
34883         (tldo_hix22): Turn into...
34884         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34885         (tldo_lox10): Turn into...
34886         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34887         (tldo_add32): Merge into...
34888         (tldo_add64): Likewise.
34889         (tldo_add<P:mode>): ...this and use Pmode throughout.
34890         (tie_hi22): Turn into...
34891         (tie_hi22<P:mode>): ...this and use Pmode throughout.
34892         (tie_lo10): Turn into...
34893         (tie_lo10<P:mode>): ...this and use Pmode throughout.
34894         (tie_ld64): Use DImode throughout.
34895         (tie_add32): Merge into...
34896         (tie_add64): Likewise.
34897         (tie_add<P:mode>): ...this and use Pmode throughout.
34898         (tle_hix22_sp32): Merge into...
34899         (tle_hix22_sp64): Likewise.
34900         (tle_hix22<P:mode>): ...this and use Pmode throughout.
34901         (tle_lox22_sp32): Merge into...
34902         (tle_lox22_sp64): Likewise.
34903         (tle_lox22<P:mode>): ...this and use Pmode throughout.
34904         (*tldo_ldub_sp32): Merge into...
34905         (*tldo_ldub_sp64): Likewise.
34906         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34907         (*tldo_ldub1_sp32): Merge into...
34908         (*tldo_ldub1_sp64): Likewise.
34909         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34910         (*tldo_ldub2_sp32): Merge into...
34911         (*tldo_ldub2_sp64): Likewise.
34912         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34913         (*tldo_ldsb1_sp32): Merge into...
34914         (*tldo_ldsb1_sp64): Likewise.
34915         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34916         (*tldo_ldsb2_sp32): Merge into...
34917         (*tldo_ldsb2_sp64): Likewise.
34918         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34919         (*tldo_ldub3_sp64): Use DImode throughout.
34920         (*tldo_ldsb3_sp64): Likewise.
34921         (*tldo_lduh_sp32): Merge into...
34922         (*tldo_lduh_sp64): Likewise.
34923         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34924         (*tldo_lduh1_sp32): Merge into...
34925         (*tldo_lduh1_sp64): Likewise.
34926         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34927         (*tldo_ldsh1_sp32): Merge into...
34928         (*tldo_ldsh1_sp64): Likewise.
34929         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34930         (*tldo_lduh2_sp64): Use DImode throughout.
34931         (*tldo_ldsh2_sp64): Likewise.
34932         (*tldo_lduw_sp32): Merge into...
34933         (*tldo_lduw_sp64): Likewise.
34934         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34935         (*tldo_lduw1_sp64): Use DImode throughout.
34936         (*tldo_ldsw1_sp64): Likewise.
34937         (*tldo_ldx_sp64): Likewise.
34938         (*tldo_stb_sp32): Merge into...
34939         (*tldo_stb_sp64): Likewise.
34940         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34941         (*tldo_sth_sp32): Merge into...
34942         (*tldo_sth_sp64): Likewise.
34943         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34944         (*tldo_stw_sp32): Merge into...
34945         (*tldo_stw_sp64): Likewise.
34946         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34947         (*tldo_stx_sp64): Use DImode throughout.
34949 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34951         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34952         check configure option to set BTI and Return Address Signing.
34953         * configure.ac: Add --enable-standard-branch-protection and
34954         --disable-standard-branch-protection.
34955         * configure: Regenerated.
34956         * doc/install.texi: Document the same.
34958 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34959             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34961         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34962         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34963         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34964         if bti is enabled.
34965         * config/aarch64/aarch64-bti-insert.c: New file.
34966         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34967         pass.
34968         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34969         new bti pass.
34970         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34971         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34972         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34973         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34975 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34977         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34978         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34979         Disable bti for -mbranch-protection=none.
34980         (aarch64_handle_standard_branch_protection): Enable bti for
34981         -mbranch-protection=standard.
34982         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34983         -mbranch-protection.
34984         (aarch64_bti_enabled): Check if bti is enabled.
34985         * config/aarch64/aarch64.opt: Declare target variable.
34986         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34988 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34990         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34991         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34992         (aarch64_expand_epilogue): Likewise.
34993         (aarch64_output_mi_thunk): Likewise.
34994         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34995         TAILCALL_ADDR_REGS to x16 and x17.
34996         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34998 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35000         * config/aarch64/aarch64-option-extensions.def: Define
35001         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35002         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35003         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35004         (AARCH64_FL_PREDRES): New.
35005         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35006         AARCH64_FL_PREDRES by default.
35007         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35009 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35011         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35012         ARMv8.5-A.
35013         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35014         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35015         * doc/invoke.texi: Document ARMv8.5-A.
35017 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
35019         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35020         (xorsign<mode>3): Likewise.
35022 2019-01-09  Jelinek  <jakub@redhat.com>
35024         PR middle-end/88758
35025         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35026         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35028         PR rtl-optimization/88331
35029         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35030         not currently_expanding_to_rtl.
35032 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35034         * doc/invoke.texi (-Os): Remove trailing spaces.
35035         (-finline-functions): Remove reference to -O2.
35037 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
35039         PR rtl-optimization/79593
35040         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35042         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35043         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
35045 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35047         PR bootstrap/88721
35048         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35049         to -1 on entry.
35051         PR debug/88723
35052         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35053         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35055 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
35057         PR target/88717
35058         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35059         ix86_avx_u128_mode_entry.
35061 2019-01-08  Martin Liska  <mliska@suse.cz>
35063         PR tree-optimization/88753
35064         * tree-switch-conversion.c (switch_conversion::build_one_array):
35065         Come up with local variable constructor.  Convert first to
35066         type of constructor values.
35068 2019-01-08  Richard Biener  <rguenther@suse.de>
35070         PR tree-optimization/86554
35071         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35072         rpo_avail): Move earlier.
35073         (visit_nary_op): When value-numbering to expressions
35074         with different overflow behavior make sure there's an
35075         available expression on the path.
35077 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
35079         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35080         aarch64_parse_branch_protection,
35081         struct aarch64_branch_protect_type,
35082         aarch64_handle_no_branch_protection,
35083         aarch64_handle_standard_branch_protection,
35084         aarch64_validate_mbranch_protection,
35085         aarch64_handle_pac_ret_protection,
35086         aarch64_handle_attr_branch_protection,
35087         accepted_branch_protection_string,
35088         aarch64_pac_ret_subtypes,
35089         aarch64_branch_protect_types,
35090         aarch64_handle_pac_ret_leaf): Define.
35091         (aarch64_override_options_after_change_1, aarch64_override_options):
35092         Add check for accepted_branch_protection_string.
35093         (aarch64_option_save): Save accepted_branch_protection_string.
35094         (aarch64_option_restore): Save accepted_branch_protection_string.
35095         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35096         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35097         msign-return-address.
35098         * doc/invoke.texi: Add mbranch-protection.
35100 2019-01-08  Alan Modra  <amodra@gmail.com>
35102         PR target/88614
35103         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35104         Delete "unknownp" parameter.  Adjust callers.  Handle
35105         CONST_INT, PLUS, MINUS, and MULT.
35106         (attr_value_aligned): Renamed from or_attr_value.
35107         (min_attr_value): Return INT_MIN for unhandled rtl case..
35108         (min_fn): ..and translate to INT_MAX here.
35109         (write_length_unit_log): Modify to cope without "unknown".
35110         (write_attr_value): Handle IF_THEN_ELSE.
35112 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35114         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35115         optimization for masked stores.
35117 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35119         PR middle-end/88567
35120         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35121         output vector directly to duplicate_and_interleave instead of
35122         going through a temporary.  Postpone insertion of ctor_seq to
35123         the end of the loop.
35125 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
35127         PR target/86891
35128         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35129         unsigned_p.  Handle signed and unsigned overflow correction as
35130         required.
35131         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35132         prototype.
35133         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35134         for operand 2.
35135         (add<mode>3_compareV_imm): Make this callable for expanding.
35136         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
35137         aarch64_plus_operand for operand 2.
35138         (subv<GPI:mode>_insn): New insn pattern.
35139         (subv<GPI:mode>_imm): Likewise.
35140         (negv<GPI:mode>3): New expand pattern.
35141         (negv<GPI:mode>_insn): New insn pattern.
35142         (negv<GPI:mode>_cmp_only): Likewise.
35143         (cmpv<GPI:mode>_insn): Likewise.
35144         (subvti4): Use register_operand for operand 1.  Update call to
35145         aarch64_expand_subvti.
35146         (usubvti4): Likewise.
35147         (negvti3): New expand pattern.
35148         (negdi_carryout): New insn pattern.
35149         (negvdi_carryinV): New insn pattern.
35150         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35151         version the named version.
35152         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35153         operands.
35154         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35155         patterns.
35156         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35157         patterns.
35158         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35159         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35160         (sub<mode>3_carryinCV): Delete.
35161         (sub<GPI:mode>3_carryinV): New expand pattern.
35162         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35164 2019-01-07  Richard Biener  <rguenther@suse.de>
35166         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35167         of tree_operand_hash.
35169 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35171         PR tree-optimization/88598
35172         * tree.h (single_nonzero_element): Declare.
35173         * tree.c (single_nonzero_element): New function.
35174         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35175         if I is the only nonzero element of CST.
35177 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35179         PR tree-optimization/88598
35180         * tree.h (initializer_each_zero_or_onep): Declare.
35181         * tree.c (initializer_each_zero_or_onep): New function.
35182         (signed_or_unsigned_type_for): Handle float types too.
35183         (unsigned_type_for, signed_type_for): Update comments accordingly.
35184         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35185         x & { 0 or -1, 0 or -1, ... }.
35187 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
35189         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35190         with x86_64-pc-linux-gnu.
35192 2019-01-07  Tom de Vries  <tdevries@suse.de>
35194         PR target/85486
35195         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35196         function.
35197         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35198         routines.
35200 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
35202         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35203         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35204         TARGET_AVX512F as condition.
35206         PR debug/88723
35207         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35208         const_not_ok_for_debug_p target hook.
35209         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35210         on UNSPEC and subexpressions thereof if all subexpressions of the
35211         UNSPEC are CONSTANT_P.
35213         PR tree-optimization/88676
35214         * tree-ssa-phiopt.c (two_value_replacement): New function.
35215         (tree_ssa_phiopt_worker): Call it.
35217         PR sanitizer/88619
35218         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35219         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35221         PR c++/85052
35222         * tree-vect-generic.c: Include insn-config.h and recog.h.
35223         (expand_vector_piecewise): Add defaulted ret_type argument,
35224         if non-NULL, use that in preference to type for the result type.
35225         (expand_vector_parallel): Formatting fix.
35226         (do_vec_conversion, do_vec_narrowing_conversion,
35227         expand_vector_conversion): New functions.
35228         (expand_vector_operations_1): Call expand_vector_conversion
35229         for VEC_CONVERT ifn calls.
35230         * internal-fn.def (VEC_CONVERT): New internal function.
35231         * internal-fn.c (expand_VEC_CONVERT): New function.
35232         * fold-const-call.c (fold_const_vec_convert): New function.
35233         (fold_const_call): Use it for CFN_VEC_CONVERT.
35234         * doc/extend.texi (__builtin_convertvector): Document.
35236 2019-01-07  Tom de Vries  <tdevries@suse.de>
35238         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35239         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35240         vector_red_partition, vector_red_sym): New global variables.
35241         (nvptx_option_override): Initialize vector_red_sym.
35242         (nvptx_declare_function_name): Restore red_partition register.
35243         (nvptx_file_end): Emit code to declare the vector reduction variables.
35244         (nvptx_output_red_partition): New function.
35245         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35246         large vector reductions.
35247         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35248         (nvptx_init_builtins): Add VECTOR_ADDR.
35249         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35250         Handle nvptx_expand_shared_addr.
35251         (nvptx_get_shared_red_addr): Add vector argument and handle large
35252         vectors.
35253         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35254         large vectors.
35255         (nvptx_goacc_reduction_init): Likewise.
35256         (nvptx_goacc_reduction_fini): Likewise.
35257         (nvptx_goacc_reduction_teardown): Likewise.
35258         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35259         init,fini,teardown}.
35260         (nvptx_init_axis_predicate): Initialize vector_red_partition.
35261         (nvptx_set_current_function): Init vector_red_partition.
35262         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35263         (nvptx_red_partition): New insn.
35264         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35266 2019-01-07  Tom de Vries  <tdevries@suse.de>
35268         PR target/85381
35269         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35270         empty loops.
35272 2019-01-07  Tom de Vries  <tdevries@suse.de>
35274         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35275         (nvptx_option_override): Init oacc_bcast_partition.
35276         (nvptx_init_oacc_workers): New function.
35277         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35278         (nvptx_needs_shared_bcast): New function.
35279         (nvptx_find_par): Generalize to enable vectors to use shared-memory
35280         to propagate state.
35281         (nvptx_shared_propagate): Initialize vector bcast partition and
35282         synchronization state.
35283         (nvptx_single): Generalize to enable vectors to use shared-memory
35284         to propagate state.
35285         (nvptx_process_pars): Likewise.
35286         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35287         * config/nvptx/nvptx.h (struct machine_function): Add
35288         bcast_partition and sync_bar members.
35290 2019-01-07  Tom de Vries  <tdevries@suse.de>
35292         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35293         (nvptx_apply_dim_limits): New function.
35294         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35295         PTX_WARP_SIZE.
35297 2019-01-07  Tom de Vries  <tdevries@suse.de>
35299         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35300         as late as possible.
35302 2019-01-07  Tom de Vries  <tdevries@suse.de>
35304         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35305         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35306         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35307         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35308         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35310 2019-01-07  Tom de Vries  <tdevries@suse.de>
35312         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35314 2019-01-07  Tom de Vries  <tdevries@suse.de>
35316         * omp-offload.c (oacc_get_min_dim): New function.
35317         * omp-offload.h (oacc_get_min_dim): Declare.
35319 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
35321         PR target/88521
35322         * config/i386/i386.c (function_value_ms_64): Return small sturct in
35323         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35325 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35327         PR tree-opt/86020
35328         Revert:
35329         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
35331         * ipa-inline.c (edge_badness): Use inlined_time instead of
35332         inline_summaries->get.
35334 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35336         * opts.c (enable_fdo_optimizations): Enable
35337         version-loops-for-strides, loop-interchange, unrol-and-jam
35338         and tree-loop-distribution.
35339         * invoke.texi: Document newly enabled options.
35341 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35343         * doc/invoke.texi (max-inline-insns-small): New parameters.
35344         * ipa-inline.c (want_early_inline_function_p): simplify.
35345         (want_inline_small_function_p): Fix pasto from previous patch;
35346         use max-inline-insns-small bound.
35347         * params.def (max-inline-insns-small): New param.
35348         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35349         variables correctly.
35351 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35353         * doc/invoke.texi: Document max-inline-insns-size,
35354         uninlined-function-insns, uninlined-function-time,
35355         uninlined-thunk-insns and uninlined-thunk-time.
35356         * params.def: Add max-inline-insns-size,
35357         uninlined-function-insns, uninlined-function-time,
35358         uninlined-thunk-insns and uninlined-thunk-time.
35359         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35360         new parameters.
35361         * ipa-inline.c (can_inline_edge_by_limits_p,
35362         want_inline_small_function_p): Use new parameters.
35364 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35366         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35368 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
35370         PR middle-end/82564
35371         PR target/88620
35372         * expr.c (expand_assignment): For calls returning VLA structures
35373         if to_rtx is not a MEM, force it into a stack temporary.
35375         PR debug/88635
35376         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35377         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35378         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35379         subexpressions of both operands.
35380         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35381         subrtxes are CONSTANT_P.
35382         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35383         2018-11-09 changes.
35385 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
35387         * params.def (hot-bb-count-ws-permille): Set to 990.
35389 2019-01-04  Martin Sebor  <msebor@redhat.com>
35391         PR c/88546
35392         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35393         leaf.
35395 2019-01-04  Martin Sebor  <msebor@redhat.com>
35397         PR c/88363
35398         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35400 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
35402         * gdbinit.in: Turn off pagination for the skip commands, restore
35403         it to previous state afterwards.
35405 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
35407         PR target/88594
35408         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35409         of GET_MODE (opN) as modes of the libcall arguments.
35411 2019-01-04  Jan Beulich  <jbeulich@suse.com>
35413         * config/i386/sse.md
35414         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35415         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35416         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35417         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35418         avx512f_vmcmp<mode>3<round_saeonly_name>,
35419         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35420         avx512f_maskcmp<mode>3,
35421         <avx512>_cvt<ssemodesuffix>2mask<mode>,
35422         <avx512>_cvt<ssemodesuffix>2mask<mode>,
35423         *<avx512>_cvtmask2<ssemodesuffix><mode>,
35424         *<avx512>_cvtmask2<ssemodesuffix><mode>,
35425         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35426         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35427         <avx512>_gt<mode>3<mask_scalar_merge_name>,
35428         <avx512>_gt<mode>3<mask_scalar_merge_name>,
35429         <avx512>_testm<mode>3<mask_scalar_merge_name>,
35430         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35431         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35432         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35433         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35434         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35435         avx512cd_maskb_vec_dup<mode>,
35436         avx512cd_maskw_vec_dup<mode>,
35437         avx512dq_fpclass<mode><mask_scalar_merge_name>,
35438         avx512dq_vmfpclass<mode>,
35439         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35440         instead of =Yk.
35442 2019-01-03  Martin Sebor  <msebor@redhat.com>
35444         PR tree-optimization/88659
35445         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35447 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
35449         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35450         unaligned vsx and avoid lxvd2x/stxvd2x.
35451         (gen_lvx_v4si_move): New function.
35453 2019-01-03  Tom de Vries  <tdevries@suse.de>
35455         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35456         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35457         function.
35458         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35460 2019-01-03  Tom de Vries  <tdevries@suse.de>
35462         * config/nvptx/nvptx.c (struct offload_attrs): New.
35463         (populate_offload_attrs): New function.  Factor mask extraction out of
35464         nvptx_reorg.  Add extraction of dimensions.
35465         (nvptx_reorg): Use populate_offload_attrs.
35467 2019-01-03  Tom de Vries  <tdevries@suse.de>
35469         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35470         cases for oacc_min_dims_p and routine_p.  Add asserts for
35471         oacc_default_dims_p and offload_region_p.
35473 2019-01-03  Tom de Vries  <tdevries@suse.de>
35475         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35476         factored out of ...
35477         (nvptx_goacc_validate_dims): ... here.
35479 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
35481         PR tree-optimization/85574
35482         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35483         structure.
35484         (struct ssa_equip_hash_traits): Declare.
35485         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35487 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
35489         PR debug/88644
35490         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35491         change it to qualified_type.
35493 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
35495         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35496         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35498 2019-01-02  Martin Sebor  <msebor@redhat.com>
35499             Jeff Law  <law@redhat.com>
35501         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35502         (get_range_strlen_tree): Update appropriately.
35503         (get_range_strlen)
35504         * gimple-fold.h (get_range_strlen): Drop unused last argument.
35506         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35507         rather than set_range_info.
35508         * tree-ssa-strlen.c (set_strlen_range): Extracted from
35509         maybe_set_strlen_range.  Handle potentially boundary crossing
35510         cases more conservatively.
35511         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35512         Call set_strlen_range.
35513         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35515         PR middle-end/88663
35516         * gimple-fold.c (get_range_strlen): Update prototype to no longer
35517         need the flexp argument.
35518         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
35519         from calls to get_range_strlen.  Update comments.  Just update
35520         VAL for an unterminated const char array and let the reset of the
35521         code handle it normally.  No longer try to set *flexp.  Adjust
35522         return value.
35523         (get_range_strlen): Update for the new get_range_strlen API.
35524         (get_maxval_strlen): Similarly.
35525         (gimple_fold_builtin_strlen): Handle update meaning of return value
35526         from get_range_strlen.
35527         * gimple-ssa-sprintf.c (get_string_length): Update for the new
35528         get_range_strlen API.
35530 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
35532         PR lto/88130
35533         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35534         false at WPA time when body was removed.
35536 2019-01-02  Martin Liska  <mliska@suse.cz>
35538         PR tree-optimization/88650
35539         * predict.c (set_even_probabilities): Calculate probability
35540         remainer only when really used.
35542 2019-01-02  Richard Biener  <rguenther@suse.de>
35544         PR middle-end/88651
35545         * tree-data-ref.c (analyze_subscript_affine_affine): Use
35546         widest_ints when mangling max_stmt_execution results.
35548 2019-01-02  Richard Biener  <rguenther@suse.de>
35550         PR tree-optimization/88621
35551         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35552         bitfields when canoncalizing.
35554 2019-01-02  Richard Biener  <rguenther@suse.de>
35556         PR target/87545
35557         * config/i386/x86-tune-costs.h (intel_cost): Adjust
35558         cost of cheap SSE instruction.
35560 2019-01-02  Richard Biener  <rguenther@suse.de>
35562         PR ipa/85574
35563         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35564         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35565         function.
35566         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35567         set after UIDs before splitting them.
35569 2019-01-01  Martin Sebor  <msebor@redhat.com>
35570             Jeff Law  <law@redhat.com>
35572         * gimple-fold.c (get_range_strlen_tree): Record if the computed
35573         length is optimistic.  If it is, then arrange to compute the
35574         conservative length as well.
35576         * gimple-fold.h (get_range_strlen): Update prototype.
35577         * builtins.c (check_access): Update call to get_range_strlen to use
35578         c_strlen_data pointer.   Change various variable accesses to instead
35579         pull data from the c_strlen_data structure.
35580         (check_strncat_sizes, expand_builtin_strncat): Likewise.
35581         * calls.c (maybe_warn_nonstring_arg): Likewise.
35582         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
35583         minimum length if maximum lengh is unknown.
35584         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
35585         that used c_strlen, it's no longer needed.  Restructure slightly.
35586         (format_string): Set unlikely range appropriately.
35587         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
35588         formatting issues.
35589         (get_range_strlen): Accept c_strlen_data pointer for external
35590         call sites as well.  Pass through to call to internal get_range_strlen.
35591         Adjust minlen, maxlen and maxbound as needed.
35592         (get_maxval_strlen): Update comments.
35593         (gimple_fold_builtin_strlen): Update call to get_range_strlen
35594         to use c_strlen_data pointer.  Change variable accesses to instead
35595         use c_strlen_data data members.
35597         * gimple-fold.c (get_range_strlen): Update prototype.
35598         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
35599         local variables.  Use pdata to return information to caller.
35600         Update calls to get_range_strlen.  Update pdata->maxbound.
35601         (get_range_strlen -- static version): Similarly.
35602         (get_range_strlen -- extern version): Update for internal
35603         get_range_strlen API change.  Convert to external data format.
35604         (get_maxval_strlen): Similarly.
35606 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
35608         * coverage.c (get_coverage_counts): Use current_function_decl.
35609         * profile.c (read_thunk_profile): New function.
35610         (branch_prob): Add THUNK parameter.
35611         * tree-profile.c (tree_profiling): Handle thunks.
35612         * value-prof.c (init_node_map): Handle thunks.
35613         * value-prof.h (branch_prob): Upate prototype.
35614         (read_thunk_profile): Declare.
35616 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
35618         Update copyright years.
35620         * gcc.c (process_command): Update copyright notice dates.
35621         * gcov-dump.c (print_version): Ditto.
35622         * gcov.c (print_version): Ditto.
35623         * gcov-tool.c (print_version): Ditto.
35624         * gengtype.c (create_file): Ditto.
35625         * doc/cpp.texi: Bump @copying's copyright year.
35626         * doc/cppinternals.texi: Ditto.
35627         * doc/gcc.texi: Ditto.
35628         * doc/gccint.texi: Ditto.
35629         * doc/gcov.texi: Ditto.
35630         * doc/install.texi: Ditto.
35631         * doc/invoke.texi: Ditto.
35633 Copyright (C) 2019 Free Software Foundation, Inc.
35635 Copying and distribution of this file, with or without modification,
35636 are permitted in any medium without royalty provided the copyright
35637 notice and this notice are preserved.