re PR tree-optimization/92751 (VN partial def support confused about clobbers)
[official-gcc.git] / gcc / ChangeLog
blob7a5f5c2d7d11345c85725ff11ef04f4248794726
1 2019-12-03  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/92751
4         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
5         when a clobber ends up in the partial-def vector.
6         (vn_reference_lookup_3): Let clobbers be handled by the
7         assignment from CTOR handling.
9 2019-12-03  Jakub Jelinek  <jakub@redhat.com>
11         PR tree-optimization/92734
12         * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
13         CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
14         inner subtraction.
16 2019-12-03  Uroš Bizjak  <ubizjak@gmail.com>
17             Jakub Jelinek  <jakub@redhat.com>
19         PR target/92744
20         * config/i386/i386.md (peephole2 for *swap<mode>): Use
21         general_reg_operand predicates instead of register_operand.
23 2019-12-03  Richard Biener  <rguenther@suse.de>
25         PR tree-optimization/92645
26         * tree-ssa.c (execute_update_addresses_taken): Avoid representing
27         a full def of a vector via a BIT_INSERT_EXPR.
29 2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
31         * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
32         static.
33         * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
34         decl.
36 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
38         PR middle-end/92741
39         * fold-const.c (fold_convertible_p): Check vector types more
40         thoroughly.
42 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
44         * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
45         (aarch64_expand_mov_immediate): Use it when attempting to measure
46         the length of an SVE vector.
47         (aarch64_mov_operand_p): Only allow SVE CNT immediates when
48         SVE is enabled.
50 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
52         * config/aarch64/aarch64-sve-builtins.h
53         (gimple_folder::force_vector): Declare.
54         * config/aarch64/aarch64-sve-builtins.cc
55         (gimple_folder::force_vector): New function.
56         * config/aarch64/aarch64-sve-builtins-base.cc
57         (svcmp_impl::fold): Likewise.
58         (svdup_impl::fold): Handle svdup_z too.
60 2019-12-02  Martin Liska  <mliska@suse.cz>
62         * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
63         function.
64         (debug_tree_odr_name): New.
65         * ipa-utils.h (get_odr_name_for_type): New.
67 2019-12-02  Richard Biener  <rguenther@suse.de>
69         PR tree-optimization/92742
70         * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
71         touch the def-type but verify it is consistent with the
72         original stmts.
74 2019-12-02  Jakub Jelinek  <jakub@redhat.com>
76         PR tree-optimization/92712
77         * match.pd ((A * B) +- A -> (B +- 1) * A,
78         A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
79         even when we don't know anything about range of A, but do know
80         something about range of B and the simplification won't introduce
81         new UB.
83 2019-12-02  Feng Xue  <fxue@os.amperecomputing.com>
85         PR ipa/92133
86         * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
87         (ipa-cp-min-recursive-probability): Likewise.
88         * params.opt (ipa-cp-max-recursive-depth): New.
89         (ipa-cp-min-recursive-probability): Likewise.
90         * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
91         val_p and unlimited.
92         (self_recursively_generated_p): New function.
93         (get_val_across_arith_op): Likewise.
94         (propagate_vals_across_arith_jfunc): Add constant propagation for
95         self-recursive function.
96         (incorporate_penalties): Do not penalize pure self-recursive function.
97         (good_cloning_opportunity_p): Dump node_is_self_scc flag.
98         (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
99         (get_info_about_necessary_edges): Relax hotness check for edge to
100         self-recursive function.
101         * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
103 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
105         PR target/92499
107         * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
108         objects of flexible types to be small if they have internal linkage
109         or are declared extern.
110         * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
111         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
112         instead of the size of the object initializer.
113         * tree.c (flexible_array_type_p): Move from C front end, and
114         generalize to handle fields in non-C structures.
115         * tree.h (flexible_array_type_p): Declare.
117 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
119         * profile-count.h (profile_count::operator<): Use IPA value for
120         comparsion.
121         (profile_count::operator>): Likewise.
122         (profile_count::operator<=): Likewise.
123         (profile_count::operator>=): Likewise.
124         * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
126 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
128         * ipa-inline.c (compute_max_insns): Return int64_t.
129         (inline_small_functions): Simplify.
131 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
133         * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
134         scaling happen.
136 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
138         * cgraph.h (symtab_node): Add symver flag.
139         * cgraphunit.c (process_symver_attribute): New.
140         (process_common_attributes): Use process_symver_attribute.
141         * lto-cgraph.c (lto_output_node): Stream symver.
142         (lto_output_varpool_node): Stream symver.
143         (input_overwrite_node): Stream symver.
144         (input_varpool_node): Stream symver.
145         * output.h (do_assemble_symver): Decalre.
146         * symtab.c (symtab_node::dump_base): Dump symver.
147         (symtab_node::verify_base): Verify symver.
148         (symtab_node::resolve_alias): Handle symver.
149         * varasm.c (do_assemble_symver): New function.
150         * varpool.c (varpool_node::assemble_aliases): Use it.
151         * doc/extend.texi: (symver attribute): Document.
152         * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
154 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
156         * target.h (type_context_kind): New enum.
157         (verify_type_context): Declare.
158         * target.def (verify_type_context): New target hook.
159         * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
160         * doc/tm.texi: Regenerate.
161         * tree.c (verify_type_context): New function.
162         * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
163         Declare.
164         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
165         New function.
166         * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
167         (TARGET_VERIFY_TYPE_CONTEXT): Define.
169 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
171         * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
172         * cgraph.h (cgraph_node): Add unit_id and
173         merged_extern_inline.
174         (symbol_table): Add max_unit.
175         (symbol_table::symbol_table): Initialize it.
176         * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
177         merged_comdat, merged_extern_inline.
178         (cgraph_node::create_clone): Likewise.
179         (cgraph_node::create_version_clone): Likewise.
180         * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
181         calls.
182         * ipa-fnsummary.h (cross_module_call_p): New inline function.
183         * ipa-inline-analyssi.c (simple_edge_hints): Use it.
184         * ipa-inline.c (inline_small_functions): Likewise.
185         * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
186         copy merged_comdat and merged_extern_inline.
187         * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
188         merged_extern_inline and unit_id.
189         (input_overwrite_node): Stream in these.
190         (input_cgraph_1): Set unit_base.
191         * lto-streamer.h (lto_file_decl_data): Add unit_base.
192         * symtab.c (symtab_node::make_decl_local): Record former_comdat.
194 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
196         * gcc.c (process_command): Only warn about an ineffective `-x'
197         option if any input files have actually been supplied.
199 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
201         * doc/install.texi (Options specification): Remove the list of
202         target library subdirectories supporting
203         `--enable-version-specific-runtime-libs'.  Document defaults for
204         the option.
206 2019-11-29  Vladimir Makarov  <vmakarov@redhat.com>
208         PR rtl-optimization/92283
209         * lra.c (lra): Update reg notes after inheritance sub-pass and
210         before constraint sub-pass.
212 2019-11-29  Richard Biener  <rguenther@suse.de>
214         PR tree-optimization/91003
215         * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
216         operand number, avoid handling the non-condition operands of
217         COND_EXPRs as comparisons.
218         (vect_get_constant_vectors): Pass down the operand number.
219         (vect_get_slp_defs): Likewise.
221 2019-11-29  Frederik Harwath  <frederik@codesourcery.com>
223         * gimple-match-head.c (maybe_resimplify_conditional_op): Use
224         generic_expr_could_trap_p to check if the condition of COND_EXPR or
225         VEC_COND_EXPR can trap.
227 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
229         PR tree-optimization/92677
230         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
231         to zero when dissolving a group of strided accesses.
233 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
235         PR tree-optimization/92596
236         * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
237         operations.
238         (vectorizable_operation): Likewise, instead of relying on
239         vect_get_mask_type_for_stmt to do this.
240         (vect_get_vector_types_for_stmt): Always return a vector type
241         immediately, rather than deferring the choice for boolean results.
242         Use a vector mask type instead of a normal vector if
243         vect_use_mask_type_p.
244         (vect_get_mask_type_for_stmt): Delete.
245         * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
246         mask_producers argument and special boolean_type_node handling.
247         (vect_determine_vf_for_stmt): Remove mask_producers argument and
248         update calls to vect_determine_vf_for_stmt_1.  Remove doubled call.
249         (vect_determine_vectorization_factor): Update call accordingly.
250         * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
251         boolean_type_node handling.
252         (vect_slp_analyze_node_operations_1): Likewise.
254 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
256         * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
257         (vect_use_mask_type_p): New function.
258         * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
259         mask precision to the pattern statement.
260         (append_pattern_def_seq): Add a scalar_type_for_mask parameter
261         and use it to initialize the new stmt's mask precision.
262         (search_type_for_mask_1): Delete.
263         (search_type_for_mask): Replace with...
264         (integer_type_for_mask): ...this new function.  Use the information
265         cached in the stmt_vec_info.
266         (vect_recog_bool_pattern): Update accordingly.
267         (build_mask_conversion): Pass the scalar type associated with the
268         mask type to append_pattern_def_seq.
269         (vect_recog_mask_conversion_pattern): Likewise.  Call
270         integer_type_for_mask instead of search_type_for_mask.
271         (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
272         of search_type_for_mask.
273         (possible_vector_mask_operation_p): New function.
274         (vect_determine_mask_precision): Likewise.
275         (vect_determine_stmt_precisions): Call it.
277 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
279         * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
280         the slp_tree parameter with a group size parameter.
281         (vect_get_mask_type_for_stmt): Likewise.
282         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
283         (vect_get_mask_type_for_stmt): Likewise.
284         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
285         call accordingly.
287 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
289         * tree-vect-stmts.c (vectorizable_operation): Punt early
290         on codes that are handled elsewhere.
292 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
294         * doc/sourcebuild.texi (vect_bool_cmp): Document.
295         * tree-vect-patterns.c (search_type_for_mask_1): If neither
296         operand to a boolean comparison is a natural vector mask,
297         handle both operands like normal integers instead.
299 2019-11-29  Richard Biener  <rguenther@suse.de>
301         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
302         out early for too large objects.
304 2019-11-29  Martin Jambor  <mjambor@suse.cz>
306         PR ipa/92476
307         * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
308         the summary only if the summary exists.
309         (find_more_scalar_values_for_callers_subset): Check node_dead in
310         the summary only if the summary exists.
311         (ipcp_store_bits_results): Ignore nodes without lattices.
312         (ipcp_store_vr_results): Likewise.
313         * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
314         header files required by them.
315         (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
317 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
319         PR tree-optimization/92710
320         * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
321         vector mask arguments.
323 2019-11-29  Jan Hubicka  <hubicka@ucw.cz>
325         * profile-count.c (profile_count::to_cgraph_frequency,
326         profile_count::to_sreal_scale): Check for compaibility of counts.
327         * profile-count.h (compatible_p): Make public; add checking for
328         global0 versus global types.
329         * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
331 2019-11-29  Richard Biener  <rguenther@suse.de>
333         PR tree-optimization/92715
334         * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
335         out for uniform vectors and source vectors with less elements
336         than the destination.
338 2019-11-29  Martin Liska  <mliska@suse.cz>
340         PR lto/91574
341         * ipa-devirt.c (types_same_for_odr): Check for existence
342         of TYPE_NAMEs first.
344 2019-11-29  Richard Biener  <rguenther@suse.de>
346         PR tree-optimization/92704
347         * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
348         in loops performing only loads.
350 2019-11-29  Julian Brown  <julian@codesourcery.com>
352         * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
353         BT_DFLOAT128_PTR) Remove.
354         * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
355         TI_DFLOAT128_PTR_TYPE): Remove.
356         * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
357         dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
358         * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
359         dfloat128_ptr_type_node): Remove macros.
361 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
363         * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
364         formatting.
365         (*movdi_internal64): Ditto.
367 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
369         PR target/92602
370         * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
371         indexed_or_indirect_operand to be memory_operand.
372         (bswap<mode>2_store for HSI): Ditto.
373         (bswapdi2_load): Ditto.
374         (bswapdi2_store): Ditto.
376 2019-11-28  Martin Liska  <mliska@suse.cz>
378         PR debug/46558
379         * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
380         headers for translation.
382 2019-11-28  Martin Liska  <mliska@suse.cz>
384         PR lto/92609
385         * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
386         consistently.
388 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
390         * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
391         checks.
393 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
395         * profile-count.c (profile_count::combine_with_ipa_count): Return
396         uninitialized count if called on ininitialized count.
398 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
400         * ipa-inline-transform.c (inline_transform): Scale profile before
401         redirecting.
403 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
405         * profile-count.h (profile_count::max): Work on profiles of different
406         type.
407         (profile_count::apply_scale): Be sure that ret is not local or global0
408         type if num is global.
410 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
412         * profile-count.h (profile_count::max): Work on profiles of different
413         type.
414         (profile_count::apply_scale): Be sure that ret is not local or global0
415         type if num is global.
417 2019-11-28  Martin Jambor  <mjambor@suse.cz>
419         PR ipa/92697
420         * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
421         ifunc_resolvers.
422         * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
423         Removed trailig whitespace.
425 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
427         * profile-count.h (profile_count::combine_with_ipa_count_within):
428         Declare.
429         * profile-count.c (profile_count::combine_with_ipa_count_within):
430         New.
431         * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
432         it.
434 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
436         * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
437         of counters are done same way.
439 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
441         * ipa-cp.c (update_profiling_info): Fix scaling.
443 2019-11-28  Richard Biener  <rguenther@suse.de>
445         PR tree-optimization/92645
446         * tree-inline.c (remap_gimple_stmt): When the return value
447         is not wanted, elide GIMPLE_RETURN.
449 2019-11-28  Richard Biener  <rguenther@suse.de>
451         PR tree-optimization/92645
452         * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
453         conversions inside a mode class.  Remove restriction on
454         preserving the element size.
455         (simplify_vector_constructor): Deal with the above and for
456         identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
457         and VEC_PACK_TRUNC_EXPR.
459 2019-11-28  Georg-Johann Lay  <avr@gjlay.de>
461         Must use push insn to pass varargs arguments of DFmode because
462         otherwise the middle-end generates wrong code.
464         PR target/92055
465         * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
467 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
469         PR tree-optimization/92691
470         * tree-ssa-strlen.c (handle_store): Clarify return value meaning
471         in function comment.
472         (strlen_check_and_optimize_call): Likewise.  For handle_printf_call
473         calls, return !handle_printf_call rather than always returning true.
474         (check_and_optimize_stmt): Describe return value meaning in function
475         comment.  Formatting fix.
477 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
479         * profile-count.c (profile_count::to_sreal_scale): Handle correctly
480         combination of globa0 and global counters..
482 2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>
484         PR target/92566
485         * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
486         by VECTOR_UNIT_NONE_P instead.
488 2019-11-28  Hongtao Liu  <hongtao.liu@inte.com>
490         * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
491         Refine VF to VF_AVX512VL.
493 2019-11-27  Michael Meissner  <meissner@linux.ibm.com>
495         * config/rs6000/rs6000.md (movsi_internal): Reformat.
496         (movdi_internal64): Reformat.
498 2019-11-27  Peter Bergner <bergner@linux.ibm.com>
500         PR bootstrap/92661
501         * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
502         builtin if we don't have an actual type.
503         (builtin_function_type): If the builtin function uses a DFP type
504         and decimal float has been disabled, then return NULL_TREE.
506 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
508         PR rtl-optimization/92510
509         * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
510         of comparison into a comparison with different mode if both imode and
511         omode are scalar integral modes.
513 2019-11-27  Vladimir Makarov  <vmakarov@redhat.com>
515         PR rtl-optimization/90007
516         * recog.c (constrain_operands): Permit hard registers too for
517         memory when LRA is used.
519 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
521         * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
522         between Coldfire and regular m68k.
523         * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
525 2019-11-27  Richard Biener  <rguenther@suse.de>
527         * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
528         * targhooks.c (default_builtin_vectorized_conversion): Likewise.
529         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
530         * optabs-tree.c (supportable_convert_operation): Do not call
531         targetm.vectorize.builtin_conversion.  Remove unused decl parameter.
532         * optabs-tree.h (supportable_convert_operation): Adjust.
533         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
534         * doc/tm.texi: Regenerate.
535         * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
536         * tree-vect-generic.c (expand_vector_conversion): Likewise.
537         * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
538         unused decl parameter and adjust.
539         (vect_create_vectorized_promotion_stmts): Likewise.
540         (vectorizable_conversion): Adjust.
542 2019-11-27  Richard Biener  <rguenther@suse.de>
544         PR tree-optimization/92690
545         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
546         converting elements not originally converted.
548 2019-11-27  Tobias Burnus  <tobias@codesourcery.com>
550         PR middle-end/92463
551         * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
552         do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
553         mpfr_rnd_t instead of mp_rnd_t.
554         * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
555         do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
556         * gimple-ssa-sprintf.c (format_floating_max, format_floating):
557         Use mpfr_exp_t instead of mp_exp_t.
558         * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
559         MPFR_RNDx instead of GMP_RNDx.
560         * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
561         mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
562         * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
563         of mp_rnd_t and remove MPFR_RNDx poisoning.
564         * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
566 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
568         PR tree-optimization/91790
569         * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
570         DR for vect_setup_realignment when first_stmt_info is different
571         from first_stmt_info_for_drptr.
573 2019-11-27  Richard Biener  <rguenther@suse.de>
575         PR tree-optimization/92645
576         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
577         CTORs with just a subset of the original vectors.
579 2019-11-27  Richard Biener  <rguenther@suse.de>
581         PR middle-end/92674
582         * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
583         edges and instead record blocks in bitmap.
584         (gimple_expand_calls_inline): Adjust.
585         (fold_marked_statements): Delay EH cleanup until all folding is
586         done.
587         (optimize_inline_calls): Do EH/abnormal cleanup for calls after
588         inlining finished.
590 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
592         * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
593         LRA is enabled.
594         * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
595         disabled.
597 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
599         PR debug/92664
600         * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
602 2019-11-26  Martin Sebor  <msebor@redhat.com>
604         PR tree-optimization/92683
605         * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
606         inadvertently removed in a previous change.  Rename local variable
607         for clarity.
609 2019-11-26  Richard Biener  <rguenther@suse.de>
611         PR middle-end/92669
612         * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
613         NULL pre_order.
615 2019-11-26  Robin Dapp  <rdapp@linux.ibm.com>
617         * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
619 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
621         PR tree-optimization/92644
622         * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
623         next to INTEGER_CST checks.
625 2019-11-26  Richard Biener  <rguenther@suse.de>
627         PR tree-optimization/92645
628         * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
629         do not build the operation from scalars if the operand is.
631 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
633         * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
634         func_ids, funcs_tail, var_ids, vars_tail) Remove unused
635         definitions.
637 2019-11-25  Martin Liska  <mliska@suse.cz>
639         * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
640         up used dump message.
642 2019-11-25  Martin Liska  <mliska@suse.cz>
644         PR bootstrap/92653
645         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
646         too strict checking assert.
648 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
650         PR c/91985
651         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
652         (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
653         error_mark_node if corresponding global tree node is NULL.
654         * tree.c (build_common_tree_nodes): Do not initialize
655         dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
656         decimal floating-point not supported.
658 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
660         * attribs.c (decl_attributes): Do not ignore C++11 attributes on
661         types.
663 2019-11-25  Bernd Schmidt  <bernds_cb1@t-online.de>
665         * config/m68k/m68k.c (output_move_himode, output_move_qimode):
666         Replace code for non-CONST_INT constants with gcc_unreachable.
667         * config/m68k/m68k.md (cbranchdi): Don't generate individual
668         compare and test.
669         (CMPMODE): New mode_iterator.
670         (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
671         cbranch<mode>4.
672         (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
673         cstore<mode>4.
674         (cmp<mode>_68881): Remove 'F' constraint from first comparison
675         operand.
676         (bit test insns patterns): Use nonimmediate_operand, not
677         register_operand, for source operands that allow memory in
678         their constraints.
679         (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
680         Use register_operand, not nonimmediate_operand, for the
681         destinations.
682         (DBCC): New mode_iterator.
683         (dbcc peepholes): Use it to reduce duplication.
684         (trap): Use const_true_rtx, not const1_rtx.
685         * config/m68k/predicates.md (m68k_comparison_operand): Renamed
686         from m68k_subword_comparison_operand and changed to handle
687         SImode.
689         PR target/91851
690         * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
691         declaration.
692         (m68k_init_cc): New declaration.
693         (m68k_output_compare_di, m68k_output_compare_si)
694         (m68k_output_compare_hi, m68k_output_compare_qi)
695         (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
696         (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
697         (m68k_output_branch_integer, m68k_output_branch_integer_rev.
698         m68k_output_branch_float, m68k_output_branch_float_rev):
699         Likewise.
700         (valid_dbcc_comparison_p_2, flags_in_68881)
701         (output_btst): Remove declaration.
702         * config/m68k/m68k.c (INCLDUE_STRING): Define.
703         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
704         (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
705         (flags_compare_op0, flags_compare_op1, flags_operand1,
706         flags_operand2, flags_valid): New static variables.
707         (m68k_find_flags_value, m68k_init_cc): New functions.
708         (handle_flags_for_move, m68k_asm_final_postscan_insn,
709         remember_compare_flags): New static functions.
710         (output_dbcc_and_branch): New argument CODE.  Use it, and add
711         PLUS and MINUS to the possible codes.  All callers changed.
712         (m68k_output_btst): Renamed from output_btst.  Remove OPERANDS
713         and INSN arguments, add CODE arg.  Return the comparison code
714         to use.  All callers changed.  Use CODE instead of
715         next_insn_tests_no_inequality, and replace cc_status management
716         with changing the return code.
717         (m68k_rtx_costs): Instead of testing for COMPARE, test for
718         RTX_COMPARE or RTX_COMM_COMPARE.
719         (output_move_simode, output_move_qimode): Call
720         handle_flags_for_move.
721         (notice_update_cc): Delete function.
722         (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
723         m68k_output_compare_hi, m68k_output_compare_qi,
724         m68k_output_compare_fp, m68k_output_branch_integer,
725         m68k_output_branch_integer_rev, m68k_output_scc,
726         m68k_output_branch_float, m68k_output_branch_float_rev,
727         m68k_output_scc_float): New functions.
728         (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
729         once at the start, and set flags_valid and flags_operand1 if the
730         flags are usable.
731         * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
732         CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
733         definitions.
734         (CC_STATUS_INIT): Define.
735         * config/m68k/m68k.md (flags_valid): New define_attr.
736         (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
737         tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
738         cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
739         cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
740         tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
741         sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
742         sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
743         bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
744         ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
745         bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
746         blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
747         bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
748         bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
749         ctrapqi4, conditional_trap): Delete patterns.
750         (cbranchdi4_insn): New pattern.
751         (cbranchdi4): Don't generate cc0 patterns.  When testing LT or GE,
752         test high part only.  When testing EQ or NE, generate beq0_di
753         and bne0_di patterns directly.
754         (cstoredi4): When testing LT or GE, test high part only.
755         (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
756         patterns.
757         (scc0_constraints, cmp1_constraints, cmp2_constraints,
758         scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
759         cmp2_cf_predicate): New define_mode_attrs.
760         (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
761         cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
762         cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
763         New patterns.
764         (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
765         (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
766         cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
767         New patterns.
768         (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
769         cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
770         Likewise.
771         (BTST): New define_mode_iterator.
772         (btst_predicate, btst_constraint, btst_range): New
773         define_mode_attrs.
774         (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
775         patterns.
776         (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
777         unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
778         patterns): Set attr "flags_valid".
779         (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
780         management.  Set attr "flags_valid".
781         (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
782         extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
783         addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
784         addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
785         manual CC_STATUS management.
786         (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
787         unnamed strict_lowpart subhi and subqi patterns): Set attr
788         "flags_valid".
789         (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
790         Remove code to operate on address regs and assert the case
791         does not occur.
792         (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
793         manual CC_STATUS_INIT.
794         (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
795         xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
796         negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
797         one_cmplqi2, unnamed strict_lowpart patterns
798         for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
799         one_cmplhi and one_cmplqi): Set attr "flags_valid".
800         (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
801         (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
802         CC_STATUS_INIT.
803         (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
804         lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
805         rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
806         unnamed strict_low_part patterns for HI and
807         QI versions): Set attr "flags_valid".
808         (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
809         bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
810         insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
811         insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
812         dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
813         (various unnamed peepholes): Adjust compare/branch sequences
814         for new cbranch patterns.
815         (dbcc peepholes): Likewise, and output the comparison here
816         as well.
817         * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
818         (fp_src_operand): Allow constant zero.
819         (address_reg_operand): New predicate.
821         * rtl.h (inequality_comparisons_p): Remove declaration.
822         * recog.h (next_insn_tests_no_inequality): Likewise.
823         * rtlanal.c (inequality_comparisons_p): Delete function.
824         * recog.c (next_insn_tests_no_inequality): Likewise.
826 2019-11-25  Richard Biener  <rguenther@suse.de>
828         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
829         (vect_detect_hybrid_slp): Swap lane and instance iteration,
830         properly re-building the visited hash-map for each lane.
832 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
834         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
835         gcn_md_reorg): Remove unused variables.
836         (gcn_emutls_var_init): Add missing (but unreachable) return
837         to silence warning.
838         (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
839         target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
840         an uninitialized variable.
842 2019-11-25  Martin Jambor  <mjambor@suse.cz>
844         PR ipa/92109
845         * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
846         * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
847         (cgraph_materialize_clone): Move removel from clone tree to the
848         the new method and use it instead.
849         * ipa.c (symbol_table::remove_unreachable_nodes): When removing
850         bodies of clones, also remove it from the clone tree.
852 2019-11-25  Martin Jambor  <mjambor@suse.cz>
854         PR ipa/91956
855         * ipa-sra.c (process_isra_node_results): Put the new node to the
856         same comdat group as the original node.
858 2019-11-25  Georg-Johann Lay  <avr@gjlay.de>
860         Build double32 / long-double32 multilibs if needed.
862         PR target/92055
863         * config/avr/t-avr:
864         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
865         (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
866         (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
867         tm_defines and pass to genmultilib.awk.
868         * config/avr/genmultilib.awk: Use these variables to add double32
869         and / or long-double32 multilib(s) as needed.
870         * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
872 2019-11-25  Richard Biener  <rguenther@suse.de>
874         * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
875         loop body, defaulted to NULL.
876         (single_likely_exit): Add exit vector argument
877         * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
878         (number_of_iterations_exit): Likewise.
879         (number_of_iterations_exit_assumptions): Likewise.
880         * cfgloop.c (get_loop_exit_edges): Use passed in loop body
881         if not NULL.
882         * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
883         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
884         Compute exit vector around call to single_likely_exit.
885         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
886         loop body to loop_only_exit_p.
887         * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
888         caller.
889         (number_of_iterations_exit_assumptions): Get loop body from caller
890         if not NULL.
891         (number_of_iterations_exit): Pass through new loop body arg.
892         (infer_loop_bounds_from_undefined): Get loop body from caller.
893         (estimate_numbers_of_iterations): Compute loop body once.
895 2019-11-25  Richard Biener  <rguenther@suse.de>
897         * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
898         auto_bb_flag instead of an sbitmap for visited handling.
900 2019-11-25 Kewen Lin  <linkw@gcc.gnu.org>
902         * config/rs6000/vector.md (vector_fp_comparison_simple): New code
903         iterator.
904         (vector_fp_comparison_complex): Likewise.
905         (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
906         define_and_split.
907         (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
908         Likewise.
909         (vector_lt<mode> for VEC_F): Refactor with
910         vector_fp_comparison_simple.
911         (vector_le<mode> for VEC_F): Likewise.
912         (vector_unge<mode> for VEC_F): Likewise.
913         (vector_unle<mode> for VEC_F): Likewise.
914         (vector_ne<mode> for VEC_F): Likewise.
915         (vector_ungt<mode> for VEC_F): Likewise.
916         (vector_unlt<mode> for VEC_F): Likewise.
917         (vector_ltgt<mode> for VEC_F): Refactor with
918         vector_fp_comparison_complex.
919         (vector_ordered<mode> for VEC_F): Likewise.
920         (vector_uneq<mode> for VEC_F): Likewise.
921         (vector_unordered<mode> for VEC_F): Likewise.
923 2019-11-24  Bernd Schmidt  <bernds_cb1@t-online.de>
925         * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
926         COMPARE, representing an overflow detection.
928         * combine.c (combine_instructions): Record costs for jumps.
930         * combine.c (can_combine_p): Allow autoinc in jumps.
932 2019-11-23  Jan Hubicka  <hubicka@ucw.cz>
934         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
935         * doc/invoke.texi (max-inline-insns-single-O2,
936         inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
937         early-inlining-insns-O2): Remove documentation.
938         * ipa-fnsummary.c (analyze_function_body,
939         compute_fn_summary): Use opt_for_fn when accessing parameters.
940         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
941         inline_insns_auto, can_inline_edge_by_limits_p,
942         want_early_inline_function_p, big_speedup_p,
943         want_inline_small_function_p, want_inline_self_recursive_call_p,
944         recursive_inlining, compute_max_insns, inline_small_functions):
945         Likewise.
946         * opts.c (default_options): Add -O3 defaults for
947         OPT__param_early_inlining_insns_,
948         OPT__param_inline_heuristics_hint_percent_,
949         OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
950         * params.opt (-param=early-inlining-insns-O2=,
951         -param=inline-heuristics-hint-percent-O2=,
952         -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
953         -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
954         -param=inline-min-speedup=, -param=inline-unit-growth=,
955         -param=large-function-growth=, -param=large-stack-frame=,
956         -param=large-stack-frame-growth=, -param=large-unit-insns=,
957         -param=max-inline-insns-recursive=,
958         -param=max-inline-insns-recursive-auto=,
959         -param=max-inline-insns-single=,
960         -param=max-inline-insns-size=, -param=max-inline-insns-small=,
961         -param=max-inline-recursive-depth=,
962         -param=max-inline-recursive-depth-auto=,
963         -param=min-inline-recursive-probability=,
964         -param=partial-inlining-entry-probability=,
965         -param=uninlined-function-insns=, -param=uninlined-function-time=,
966         -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
967         Optimization.
969 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
971         * ipa-fnsummary.c: Fix comment typos.
972         * ipa-ref.h: Likewise.
973         * ipa-predicate.h: Likewise.
974         * ipa-split.c: Likewise.
975         * ipa-inline-analysis.c: Likewise.
976         * ipa-predicate.c: Likewise.
977         * ipa-devirt.c: Likewise.
978         * ipa-icf.h: Likewise.
979         * profile-count.c: Likewise.
980         * ipa-icf.c: Likewise.
981         (sem_function::equals_wpa): Fix typos in dump messages.
982         * ipa-icf-gimple.h: Fix comment typos.
983         * ipa-inline-transform.c: Likewise.
984         * ipa-polymorphic-call.c: Likewise.
985         * ipa-fnsummary.h: Likewise.
986         * ipa-inline.c: Likewise.
987         (dump_inline_stats): Fix typo in debug dump message.
988         * profile-count.h: Fix comment typos.
990         PR target/92615
991         * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
992         GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
993         register_operand, force x into register before storing it into dest.
994         Formatting fix.
996         PR middle-end/83859
997         * doc/extend.texi (attribute access): Fix a typo.
999         PR rtl-optimization/92610
1000         * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1001         cse_cfg_altered is set, even when tem is 0.
1002         (rest_of_handle_cse_after_global_opts): Likewise.
1004 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
1006         PR c++/92458
1007         * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1008         tree_hash): Move to ...
1009         * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1010         (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1011         types.
1012         (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1014         PR tree-optimization/92618
1015         * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1016         containing the auto_vec and a tree.
1017         (undistribute_bitref_for_vector): Handle the case when element type
1018         of vec is not the same as type of the BIT_FIELD_REF.  Formatting
1019         fixes.
1021 2019-11-22  Martin Sebor  <msebor@redhat.com>
1023         PR middle-end/83859
1024         * attribs.h (struct attr_access): New.
1025         * attribs.c (decl_attributes): Add an informational note.
1026         * builtins.c (check_access): Make extern.  Consistently set no-warning
1027         after issuing a warning.  Handle calls through function pointers.  Set
1028         no-warning.
1029         * builtins.h (check_access): Declare.
1030         * calls.c (rdwr_access_hash): New type.
1031         (rdwr_map): Same.
1032         (init_attr_rdwr_indices): New function.
1033         (maybe_warn_rdwr_sizes): Same.
1034         (initialize_argument_information): Call init_attr_rdwr_indices.
1035         Call maybe_warn_rdwr_sizes.
1036         (get_size_range): Avoid null argument.
1037         * doc/extend.texi (attribute access): Document new attribute.
1039 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
1041         * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1042         (ACC_LDS_SIZE): Define.
1043         (OTHER_LDS_SIZE): Define.
1044         (LDS_SIZE): Redefine using above.
1045         (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1047 2019-11-22  Martin Sebor  <msebor@redhat.com>
1049         PR middle-end/88226
1050         * builtins.c (check_nul_terminated_array): New function.
1051         (fold_builtin_0): Remove declaration.
1052         (fold_builtin_1): Same.
1053         (fold_builtin_2): Same.
1054         (fold_builtin_3): Same.
1055         (fold_builtin_strpbrk): Add argument.
1056         (fold_builtin_strspn): Same.
1057         (fold_builtin_strcspn): Same.
1058         (expand_builtin_strcat): Call it.  Remove unused argument.
1059         (expand_builtin_stpncpy): Same.
1060         (expand_builtin_strncat): Same.
1061         (expand_builtin_strncpy): Same.  Adjust indentation.
1062         (expand_builtin_strcmp): Same.
1063         (expand_builtin_strncmp): Same.
1064         (expand_builtin_fork_or_exec): Same.
1065         (expand_builtin): Handle more built-ins.
1066         (fold_builtin_2): Add argument.
1067         (fold_builtin_n): Make static.  Add argument.
1068         (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1069         (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1070         (fold_builtin_strpbrk): Add argument.  Call check_nul_terminated_array.
1071         (fold_call_stmt): Pass new argument to fold_builtin_n.
1072         * builtins.h: Correct a comment.
1073         * gimple-fold.c (gimple_fold_builtin_strchr): Call
1074         check_nul_terminated_array.
1075         * tree-ssa-strlen.c (handle_builtin_strlen): Call
1076         check_nul_terminated_array.
1077         (handle_builtin_strchr): Same.
1078         (handle_builtin_string_cmp): Same.
1080 2019-11-22  Martin Sebor  <msebor@redhat.com>
1082         PR tree-optimization/92501
1083         * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1084         handle unterminated arrays.  Rename local variables for clarity.
1086 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
1088         * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1089         granulated_sgprs according to architecture.
1091 2019-11-22  Jan Hubicka  <jh@suse.cz>
1093         * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1094         * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1095         (memory_block_pool::reduce_free_list): ... this one.
1096         (memory_block_pool::trim): New static function.
1097         * memory-block.h (memory_block_pool::freelist_size): New constant
1098         (memory_block_pool::clear_free_list): Rename to ...
1099         (memory_block_pool::reduce_free_list): ... this one.
1100         (memory_block_pool::trim): Declare.
1102 2019-11-22  Richard Sandiford  <richard.sandiford@arm.com>
1104         * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1105         vect_cost_for_stmt.
1106         (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1107         here rather than...
1108         * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1110 2019-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
1112         * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1113         (bic_cmp0_noout): New pattern.
1114         (bic_cmp0): Likewise.
1115         (neg_scc_insn): Remove pattern.
1116         (not_scc_insn): Likewise.
1118 2019-11-21  Harald van Dijk  <harald@gigawatt.nl>
1120         * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1122 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
1124         * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1125         pedwarn instead of warning_at for fallthrough not preceding a case
1126         or default label.
1128 2019-11-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1130         PR tree-optimization/92608
1131         * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1132         of dyn_cast.
1134 2019-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
1136         * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1137         New predicate.
1138         * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1139         * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1140         special for FP comparisons that need a cror instruction eventually.
1141         (rs6000_emit_fp_cror): New function.
1142         (rs6000_emit_sCOND): Expand all floating point comparisons to one
1143         instruction, for normal FP modes, with HONOR_NANS.
1144         (rs6000_emit_cbranch): Reformat.
1145         * config/rs6000/rs6000.md (fp_rev): New iterator.
1146         (fp_two): New iterator.
1147         *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1148         *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1149         *cbranch_2insn: New define_insn_and_split.
1151 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
1153         PR tree-optimization/92526
1154         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1155         versioning for alignment if the accesses do not have a consistent
1156         mask, rather than asserting that the masks are consistent.
1158 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
1160         PR tree-optimization/92595
1161         * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1162         check.
1163         (vectorizable_store, vectorizable_load): Likewise.
1165 2019-11-21  Jan Hubicka  <jh@suse.cz>
1167         * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1168         (resolve_noninline_speculation, inline_small_functions): Avoid
1169         redundant updates.
1171 2019-11-21  Richard Biener  <rguenther@suse.de>
1173         * lra.c (lra_insn_recog_data_pool): New.
1174         (free_insn_recog_data): Adjust.
1175         (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1176         (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1178 2019-11-21  Richard Biener  <rguenther@suse.de>
1180         PR tree-optimization/92596
1181         * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1183 2019-11-21  Jan Hubicka  <jh@suse.cz>
1185         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1186         ready for some vectors to not be allocated.
1187         (evaluate_properties_for_edge): Document better; make
1188         known_vals and known_aggs caller allocated; avoid determining
1189         values of parameters which are not used.
1190         (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1191         known_aggs.
1192         * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1193         (do_estimate_edge_size): Likewise.
1194         (do_estimate_edge_hints): Likewise.
1195         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1196         values are not known.
1197         (ipa_release_agg_values): Add option to not release vector itself.
1198         * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1200 2019-11-21  Richard Biener  <rguenther@suse.de>
1202         * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1203         (loop_iterator::to_visit): Use an auto_vec with internal storage.
1204         (loop_iterator::loop_iterator): Adjust.
1205         * cfganal.c (compute_dominance_frontiers_1): Fold into...
1206         (compute_dominance_frontiers): ... this.  Hoist invariant
1207         get_immediate_dominator call.
1208         (compute_idf): Use a work-set instead of a work-list for more
1209         optimal iteration order and duplicate avoidance.
1210         * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1211         the vector all the time, instead pre-allocate the vector only
1212         once.
1213         (delete_update_ssa): Simplify.
1214         * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1216 2019-11-21  Jakub Jelinek  <jakub@redhat.com>
1218         PR tree-optimization/91355
1219         * tree-ssa-sink.c (select_best_block): Use >= rather than >
1220         for early_bb scaled count with best_bb count comparison.
1222         * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1223         preffer -> prefer.
1224         * ipa-inline.c (edge_badness): Likewise.
1225         * lto-streamer.h (class lto_location_cache): Likewise.
1226         * tree-ssa-sink.c (select_best_block): Likewise.  Fix comment typos,
1227         gratutious -> gratuitous.
1229 2019-11-21  Richard Biener  <rguenther@suse.de>
1231         Revert
1232         2019-09-17  Richard Biener  <rguenther@suse.de>
1234         PR tree-optimization/91790
1235         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1236         use the correct DR for setting up realignment.
1238 2019-11-21  Richard Biener  <rguenther@suse.de>
1240         * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1241         (equiv_class_obstack): New.
1242         (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1243         (perform_var_substitution): Initialize equiv_class_obstack.
1244         (free_var_substitution_info): Free equiv_class_obstack.
1246 2019-11-20  Jan Hubicka  <jh@suse.cz>
1248         * ipa-inline.c (want_early_inline_function_p): Do not estimate
1249         edge growth when callee function is very large.
1250         * ipa-inline.h (estimate_min_edge_growth): New.
1252 2019-11-20  Jan Hubicka  <jh@suse.cz>
1254         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1255         negative time in calls summary; correct roundoff errors
1256         leading to negative times.
1257         (ipa_merge_fn_summary_after_inlining): Update calls size time table
1258         if present.
1259         (ipa_update_overall_fn_summary): Add RESET parameter.
1260         * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1261         * ipa-inline-transform.c (inline_call): Enable incremental updates.
1262         
1263 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
1265         * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1266         def types for two-operation SLP.
1268 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
1270         PR testsuite/92366
1271         * doc/sourcebuild.texi (vect_char_add): Document.
1273 2019-11-20  Alexandre Oliva <oliva@adacore.com>
1275         * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1276         * function.c (record_final_call): Record even calls that might
1277         have been in the cgraph.
1278         * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1279         callees.
1281 2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>
1283         * configure.ac: Use https for gcc.gnu.org
1284         * configure: Regenerated.
1285         * doc/install.texi: Use https for gcc.gnu.org.
1286         * doc/sourcebuild.texi: Likewise.
1288 2019-11-20  Julian Brown  <julian@codesourcery.com>
1290         * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1292 2019-11-20  Jan Hubicka  <jh@suse.cz>
1294         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1295         parameter and update call_size_time_table.
1296         (ipa_fn_summary::max_size_time_table_size): New constant.
1297         (estimate_calls_size_and_time_1): Break out from ...
1298         (estimate_calls_size_and_time): ... here; implement summary production.
1299         (summarize_calls_size_and_time): New function.
1300         (ipa_call_context::estimate_size_and_time): Bypass
1301         estimate_calls_size_and_time for leaf functions.
1302         (ipa_update_overall_fn_summary): Likewise.
1303         * ipa-fnsummary.h (call_size_time_table): New.
1304         (ipa_fn_summary::account_size_time): Update prototype.
1306 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
1308         * doc/invoke.texi (-Wc11-c2x-compat): Document.
1310 2019-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
1312         PR85678
1313         * common.opt (fcommon): Change init to 1.
1314         * doc/invoke.texi (-fcommon): Update documentation.
1316 2019-11-20  Jan Hubicka  <jh@suse.cz>
1318         * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1319         to ordinary array.
1321 2019-11-20  Jan Hubicka  <jh@suse.cz>
1323         * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1324         Add allocator parameter.
1325         (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1326         (fibonacci_heap<K,V>::m_allocator): New.
1327         (fibonacci_heap<K,V>::m_own_allocator): New.
1328         (fibonacci_heap<K,V>::insert): Use allocator.
1329         (fibonacci_heap<K,V>::extract_min): Likewise.
1330         (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1331         allocator.
1332         (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1333         on stack.
1334         * fibonacci_heap.c: Include alloc-pool
1335         (test_empty_heap): Initialize allocator.
1336         (test_union): Likewise.
1337         * bb-reorder.c: Include alloc-pool.h.
1338         * tracer.c: Inlclude alloc-pool.h.
1340 2019-11-20  Jan Hubicka  <jh@suse.cz>
1342         * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1343         Preallocate for 32 entries.
1344         (DFS::worklist): Likewise.
1345         (DFS::DFS): Do not initialize sccstack and worklist.
1346         (DFS::~DFS): Do not release sccstack.
1348 2019-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
1350         PR target/92573
1351         * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1352         Handle UNORDERED if !HONOR_NANS.
1354 2019-11-20  Jan Hubicka  <jh@suse.cz>
1356         * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1357         (edge_badness): ... here.
1358         (inline_small_functions): Use monotonicity of badness calculation
1359         to avoid redundant updates.
1361 2019-11-20  Richard Biener  <rguenther@suse.de>
1363         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1364         constructors we are actually analyzing.
1365         (vect_slp_check_for_constructors): Do not vectorize uniform
1366         constuctors, do not dump here.
1368 2019-11-20  Richard Biener  <rguenther@suse.de>
1370         PR tree-optimization/92537
1371         * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1372         vectorization validity check...
1373         (vect_slp_analyze_operations): ... here.
1375 2019-11-20  Claudiu Zissulescu  <claziss@synopsys.com>
1377         * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1378         (make_pass_arc_predicate_delay_insns): Likewise.
1379         * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1380         method, remove clone.
1381         (class pass_arc_predicate_delay_insns): Likewise.
1382         (arc_init): Remove registering of ARC specific passes.
1383         * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1384         * config/arc/arc-passes.def: New file.
1386 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
1388         PR middle-end/90840
1389         * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1390         and has a mode that doesn't have corresponding integral type.
1392         PR target/90867
1393         * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1394         clear opts->x_ix86_isa_flags{,2} here...
1395         (ix86_valid_target_attribute_inner_p): ... but here when seeing
1396         arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.
1398         PR c/90898
1399         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1400         assertion.
1401         (insert_clobbers_for_var): Fix a typo in function comment.
1403 2019-11-20  Jiangning Liu  <jiangning.liu@amperecomputing.com>
1404             Jakub Jelinek  <jakub@redhat.com>
1406         PR middle-end/91195
1407         * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1408         earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
1409         load.
1411 2019-11-20  Georg-Johann Lay  <avr@gjlay.de>
1413         Make 0-series device specs work with older versions of avr-gcc.
1415         PR target/92545
1416         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1417         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1418         <*link_pm_base_address>: Don't write spec.
1419         <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1421 2019-11-20  Richard Biener  <rguenther@suse.de>
1423         PR c/92088
1424         * builtins.c (compute_objsize): Deal with VLAs.
1426 2019-11-19  Pat Haugen  <pthaugen@us.ibm.com>
1428         * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1429         from common code.
1430         (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1431         call new function.
1432         (power9_sched_reorder2): Call new function.
1433         (rs6000_sched_reorder2): Likewise.
1435 2019-11-18  Jan Hubicka  <jh@suse.cz>
1437         * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1438         (estimate_calls_size_and_time): Update.
1440 2019-11-18  Jan Hubicka  <jh@suse.cz>
1442         * ipa-inline.c (inlining_speedup): New function.
1443         (edge_badness): Use it.
1445 2019-11-19  Zoran Jovanovic <zoran.jovanovic@mips.com>
1446                         Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
1448         * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1449         Mark as not having "likely" version.
1450         * config/mips/mips.md (insn_count): The simd_div instruction with
1451         TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1452         (can_delay): Exclude simd_branch.
1453         (defile_delay *): Add simd_branch instructions.
1454         They have one regular delay slot.
1456 2019-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1458         Revert:
1459         2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1461         * cse.c (cse_insn): Delete no-op register moves too.
1462         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1463         Take a second comparison to control the value for NE.
1464         (mask_to_comparison): Handle unsigned comparisons.
1465         (simplify_logical_relational_operation): Likewise.  Update call
1466         to comparison_to_mask.  Handle AND if !HONOR_NANs.
1467         (simplify_binary_operation_1): Call the above for AND too.
1469 2019-11-19  Martin Liska  <mliska@suse.cz>
1471         * toplev.c (general_init): Move the call...
1472         (toplev::main): ... here as we need init_options_struct
1473         being called.
1475 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1477         PR target/79262
1478         * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1479         vec_to_scalar_cost.
1481 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1483         * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1484         (armv7-a): Likewise.
1485         (armv7ve): Likewise.
1487 2019-11-19  Richard Biener  <rguenther@suse.de>
1489         PR tree-optimization/92581
1490         * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1491         condition reduction chains gather all conditions involved
1492         for computing the index reduction vector.
1494 2019-11-19  Dennis Zhang  <dennis.zhang@arm.com>
1496         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1497         AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1498         AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1499         AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1500         AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1501         (aarch64_init_memtag_builtins): New.
1502         (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1503         (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1504         (aarch64_expand_builtin_memtag): New.
1505         (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1506         (AARCH64_BUILTIN_SUBCODE): New macro.
1507         (aarch64_resolve_overloaded_memtag): New.
1508         (aarch64_resolve_overloaded_builtin_general): New. Call
1509         aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1510         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1511         __ARM_FEATURE_MEMORY_TAGGING when enabled.
1512         (aarch64_resolve_overloaded_builtin): Call
1513         aarch64_resolve_overloaded_builtin_general.
1514         * config/aarch64/aarch64-protos.h
1515         (aarch64_resolve_overloaded_builtin_general): New declaration.
1516         * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1517         (TARGET_MEMTAG): Likewise.
1518         * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1519         (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1520         (irg, gmi, subp, addg, ldg, stg): New instructions.
1521         * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1522         (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1523         (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1524         (__arm_mte_get_tag): Likewise.
1525         * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1526         (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1527         * config/arm/types.md (memtag): New.
1528         * doc/invoke.texi (-memtag): Update description.
1530 2019-11-19  Richard Henderson  <richard.henderson@linaro.org>
1532         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1533         to define __GCC_ASM_FLAG_OUTPUTS__.
1534         * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1535         (arm_option_params_internal): Swap out targetm.md_asm_adjust
1536         depending on TARGET_THUMB1.
1537         * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1539 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
1541         PR target/92549
1542         * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1544         PR middle-end/91450
1545         * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1546         operand is negative and one non-negative, compare the non-negative
1547         one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
1548         don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1549         and s2 == 0, unless one of them is known to be negative.  Remove
1550         tem2 variable, use tem where tem2 has been used before.
1552 2019-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1554         * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1556 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
1558         PR tree-optimization/92557
1559         * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1560         vmode rather than asserting it always is.
1562 2019-11-19  Richard Biener  <rguenther@suse.de>
1564         PR tree-optimization/92554
1565         * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1566         for the actual condition stmt and deal with sign-changes.
1568 2019-11-19  Richard Biener  <rguenther@suse.de>
1570         PR tree-optimization/92555
1571         * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1572         for non-SLP stmts.
1574 2019-11-19  Martin Liska  <mliska@suse.cz>
1576         PR bootstrap/92540
1577         * config/riscv/riscv.c (riscv_address_insns): Initialize
1578         addr in order to remove boostrap -Wmaybe-uninitialized
1579         error.
1581 2019-11-18  Martin Sebor  <msebor@redhat.com>
1583         PR tree-optimization/92493
1584         * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1585         assignment.
1587 2019-11-18  Giuliano Belinassi  <giuliano.belinassi@usp.br>
1589         * cfgloop.c (get_loop_body_in_custom_order): New.
1590         * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1591         * tree-loop-distribution.c (class loop_distribution): New.
1592         (bb_top_order_cmp): Remove.
1593         (bb_top_order_cmp_r): New.
1594         (create_rdg_vertices): Move into class loop_distribution.
1595         (stmts_from_loop): Same as above.
1596         (update_for_merge): Same as above.
1597         (partition_merge_into): Same as above.
1598         (get_data_dependence): Same as above.
1599         (data_dep_in_cycle_p): Same as above.
1600         (update_type_for_merge): Same as above.
1601         (build_rdg_partition_for-vertex): Same as above.
1602         (classify_builtin_ldst): Same as above.
1603         (classify_partition): Same as above.
1604         (share_memory_accesses): Same as above.
1605         (rdg_build_partitions): Same as above.
1606         (pg_add_dependence_edges): Same as above.
1607         (build_partition_graph): Same as above.
1608         (merge_dep_scc_partitions): Same as above.
1609         (break_alias_scc_partitions): Same as above.
1610         (finalize_partitions): Same as above.
1611         (distribute_loop): Same as above.
1612         (bb_top_order_init): New method
1613         (bb_top_order_destroy): New method.
1614         (get_bb_top_order_index_size): New method.
1615         (get_bb_top_order_index_index): New method.
1616         (get_bb_top_order_index_index): New method.
1617         (loop_distribution::execute): New method.
1618         (pass_loop_distribution::execute): Instantiate loop_distribution.
1620 2019-11-18  Jan Hubicka  <jh@suse.cz>
1622         PR ipa/92508
1623         * ipa-inline.c (inline_small_functions): Add new edges after reseting
1624         caches.
1625         * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1627 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1629         * doc/sourcebuild.texi (vect_check_ptrs): Document.
1630         * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1631         * doc/md.texi: Document them.
1632         * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1633         internal functions.
1634         * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1635         * internal-fn.c (check_ptrs_direct): New macro.
1636         (expand_check_ptrs_optab_fn): Likewise.
1637         (direct_check_ptrs_optab_supported_p): Likewise.
1638         (internal_check_ptrs_fn_supported_p): New fuction.
1639         * tree-data-ref.c: Include internal-fn.h.
1640         (create_ifn_alias_checks): New function.
1641         (create_intersect_range_checks): Use it.
1642         * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1643         (optab, cmp_op): Handle it.
1644         (raw_war, unspec): New int attributes.
1645         * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1646         constants.
1647         * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1648         New predicate.
1649         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1650         expander.
1651         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1652         pattern.
1654 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1656         * tree.c (build_vector_from_ctor): Directly return a zero vector for
1657         empty constructors.
1659 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1661         * cse.c (cse_insn): Delete no-op register moves too.
1662         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1663         Take a second comparison to control the value for NE.
1664         (mask_to_comparison): Handle unsigned comparisons.
1665         (simplify_logical_relational_operation): Likewise.  Update call
1666         to comparison_to_mask.  Handle AND if !HONOR_NANs.
1667         (simplify_binary_operation_1): Call the above for AND too.
1669 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1671         * fold-const.c (native_encode_vector): Turn into a wrapper function,
1672         splitting the main code out into...
1673         (native_encode_vector_part): ...this new function.
1674         (native_decode_vector_tree): New function.
1675         (fold_view_convert_vector_encoding): Likewise.
1676         (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1677         to VECTOR_TYPEs.
1679 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1681         * tree-data-ref.c (create_intersect_range_checks_index): If the
1682         alias pair describes simple WAW and WAR dependencies, just check
1683         whether the first B access overlaps later A accesses.
1684         (create_waw_or_war_checks): New function that performs the same
1685         optimization on addresses.
1686         (create_intersect_range_checks): Call it.
1688 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1690         * lra-constraints.c (valid_address_p): Take the operand and a
1691         constraint as argument.  If the operand is a MEM and the constraint
1692         is a memory constraint, check whether the eliminated form of the
1693         MEM already satisfies the constraint.
1694         (process_address_1): Update calls accordingly.
1696 2019-11-18  Tom Tromey  <tromey@adacore.com>
1698         * doc/tm.texi: Rebuild.
1699         * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1700         * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1702 2019-11-18  Richard Biener  <rguenther@suse.de>
1704         PR tree-optimization/92516
1705         * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1706         argument, hoist bst_map creation/destruction to ...
1707         (vect_analyze_slp): ... here, forming a true graph with
1708         SLP instances being the entries.
1709         (vect_detect_hybrid_slp_stmts): Remove wrapper.
1710         (vect_detect_hybrid_slp): Use one visited set for all
1711         graph entries.
1712         (vect_slp_analyze_node_operations): Simplify visited/lvisited
1713         to hash-sets of slp_tree.
1714         (vect_slp_analyze_operations): Likewise.
1715         (vect_bb_slp_scalar_cost): Remove wrapper.
1716         (vect_bb_vectorization_profitable_p): Use one visited set for
1717         all graph entries.
1718         (vect_schedule_slp_instance): Elide bst_map use.
1719         (vect_schedule_slp): Likewise.
1721 2019-11-18  Richard Biener  <rguenther@suse.de>
1723         * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1724         was vectorized with just external refs fail.
1726 2019-11-18  Martin Liska  <mliska@suse.cz>
1728         PR ipa/92525
1729         * ipa-icf.c (sem_function::init): Unset m_checker
1730         at the end of the function.
1732 2019-11-18  Richard Biener  <rguenther@suse.de>
1734         PR tree-optimization/92558
1735         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1736         reducting the width of a reduction vector def update new_phis.
1738 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1740         * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1741         and s390*-*-linux-musl* targets.
1742         * configure: Regenerate.
1744 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1746         * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1747         (MUSL_DYNAMIC_LINKER64): Define.
1749 2019-11-18  Martin Liska  <mliska@suse.cz>
1751         * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1752         message for an unknown counter.
1753         (dbg_cnt_process_single_pair): Support 0 as minimum value.
1754         (dbg_cnt_process_opt): Remove unreachable code.
1756 2019-11-18  Martin Liska  <mliska@suse.cz>
1758         PR ipa/92529
1759         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1760         Compare LHS types of NOP_EXPR.
1762 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
1764         * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1765         "initial_pass_name" argument -- by running "*clean_state" pass.
1766         Also free the "initial_pass_name" when done.
1768 2019-11-18  Richard Biener  <rguenther@suse.de>
1770         PR rtl-optimization/92462
1771         * alias.c (find_base_term): Restrict the look through ANDs.
1772         (find_base_value): Likewise.
1774 2019-11-18  Georg-Johann Lay  <avr@gjlay.de>
1776         Add support for AVR devices from the 0-series.
1778         PR target/92545
1779         * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1780         * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1781         * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1782         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1783         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1784         <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1785         for spec definitions.
1786         * doc/avr-mmcu.texi: Regenerate.
1788 2019-11-18  Hongtao Liu  <hongtao.liu@intel.com>
1790         PR target/92448
1791         * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1792         Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1793         * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1794         (ix86_reassociation_width): Ditto.
1795         * config/i386/i386-options.c (ix86_option_override_internal):
1796         Replace TARGET_AVX128_OPTIAML with
1797         ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1798         * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1799         (TARGET_AVX128_OPTIMAL): Deleted.
1800         * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1801         DEF_TUNE.
1803 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1805         * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1806         (@cceq_ior_compare_<mode> for GPR): ... this.  Allow GPR instead of
1807         just SI.
1808         (cceq_rev_compare): Rename to...
1809         (@cceq_rev_compare_<mode> for GPR): ... this.  Allow GPR instead of
1810         just SI.
1811         (define_split for <bd>tf_<mode>): Add SImode first argument to
1812         gen_cceq_ior_compare.
1814 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1816         * common/config/powerpcspe: Delete.
1818 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1820         * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1821         output in UNSPEC_WRFFR.
1823 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1825         * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1826         the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1828 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1830         * tree-data-ref.c (create_intersect_range_checks_index)
1831         (create_intersect_range_checks): Print dump messages.
1833 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1835         * tree-data-ref.c (dump_alias_pair): New function.
1836         (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1838 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1840         * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1841         * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1842         merging data references with different steps.
1843         (create_intersect_range_checks_index): Take a
1844         dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1845         Bail out if DR_ALIAS_MIXED_STEPS is set.
1846         (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1847         instead of two dr_with_seg_lens.  Update call to
1848         create_intersect_range_checks_index.
1849         (create_runtime_alias_checks): Update call accordingly.
1851 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1853         * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1854         (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1855         (dr_with_seg_len_pair_t::sequencing): New enum.
1856         (dr_with_seg_len_pair_t::flags): New member variable.
1857         (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1858         parameter and initialize the flags member variable.
1859         * tree-loop-distribution.c (compute_alias_check_pairs): Update
1860         call accordingly.
1861         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1862         Ensure the two data references in an alias pair are in statement
1863         order, if there is a defined order.
1864         * tree-data-ref.c (prune_runtime_alias_test_list): Use
1865         DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1866         swapped the references in a dr_with_seg_len_pair_t.  OR together
1867         the flags when merging two dr_with_seg_len_pair_ts.  After merging,
1868         try to restore the original dr_with_seg_len order, updating the
1869         flags if that fails.
1871 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1873         * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1874         swapping the dr_as based on init values until we've decided
1875         whether to merge them.
1877 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1879         * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1880         two accesses in each dr_with_seg_len_pair_t before trying to
1881         combine separate dr_with_seg_len_pair_ts.
1882         * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1883         that here.
1884         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1886 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1888         * config/aarch64/aarch64-sve.md
1889         (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1890         (scatter_store<SVE_24:mode><v_int_container>): ...this.
1891         (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1892         (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1893         (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1894         (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1895         (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1896         pattern.
1897         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1898         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1899         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1900         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1902 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1904         * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1905         (SVE_4HSI): New mode iterators.
1906         (ANY_EXTEND2): New code iterator.
1907         * config/aarch64/aarch64-sve.md
1908         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1909         Extend to...
1910         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1911         ...this, handling extension to partial modes as well as full modes.
1912         Describe the extension as a predicated rather than unpredicated
1913         extension.
1914         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1915         Likewise extend to...
1916         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1917         ...this, making the same adjustments.
1918         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1919         Likewise extend to...
1920         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1921         ...this, making the same adjustments.
1922         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1923         Likewise extend to...
1924         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1925         ...this, making the same adjustments.
1926         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1927         New pattern.
1928         (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1929         extension predicate.
1930         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1931         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1932         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1933         Describe the extension as a predicated rather than unpredicated
1934         extension.
1935         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1936         Likewise.  Canonicalize to a constant extension predicate.
1937         * config/aarch64/aarch64-sve-builtins-base.cc
1938         (svld1_gather_extend_impl::expand): Add an extra predicate for
1939         the extension.
1940         (svldff1_gather_extend_impl::expand): Likewise.
1942 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1944         * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1945         iterators.
1946         * config/aarch64/aarch64-sve.md
1947         (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1948         (gather_load<SVE_24:mode><v_int_container>): ...this.
1949         (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1950         (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1951         (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1952         (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1953         (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1954         New pattern.
1955         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1956         (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1957         Allow the nominal extension predicate to be different from the
1958         load predicate.
1959         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1960         (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1962 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1964         * config/aarch64/aarch64-sve.md
1965         (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1966         * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1967         function.
1968         (aarch64_sve_adjust_stmt_cost): Call it.
1970 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1972         * config/aarch64/aarch64-sve.md
1973         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1974         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1975         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1976         Combine into...
1977         (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1978         ...this new pattern, handling extension to partial modes as well
1979         as full modes.  Describe the extension as a predicated rather than
1980         unpredicated extension.
1981         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1982         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1983         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1984         Combine into...
1985         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1986         ...this new pattern, handling extension to partial modes as well
1987         as full modes.  Describe the extension as a predicated rather than
1988         unpredicated extension.
1989         * config/aarch64/aarch64-sve-builtins.cc
1990         (function_expander::use_contiguous_load_insn): Add an extra
1991         predicate for extending loads.
1992         * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1993         (aarch64_sve_adjust_stmt_cost): Likewise.
1994         (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1995         the cost of SVE vector stmts.
1997 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1999         * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2000         (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2001         * config/aarch64/aarch64-sve.md
2002         (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2003         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2004         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2005         comment.  Avoid new narrower_mask ambiguity.
2006         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2007         (*cond_uxt<mode>_2): Update comment.
2008         (*cond_uxt<mode>_any): Likewise.
2010 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2012         * config/aarch64/aarch64-modes.def: Define partial SVE vector
2013         float modes.
2014         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2015         function.
2016         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2017         new vector float modes.
2018         (aarch64_sve_container_bits): New function.
2019         (aarch64_sve_pred_mode): Likewise.
2020         (aarch64_get_mask_mode): Use it.
2021         (aarch64_sve_element_int_mode): Handle structure modes and partial
2022         modes.
2023         (aarch64_sve_container_int_mode): New function.
2024         (aarch64_vectorize_related_mode): Return SVE modes when given
2025         SVE modes.  Handle partial modes, taking the preferred number
2026         of units from the size of the given mode.
2027         (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2028         in registers.
2029         (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2030         (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2031         (aarch64_split_sve_subreg_move): Use the mode form of
2032         aarch64_sve_pred_mode.
2033         (aarch64_secondary_reload): Handle partial modes in the same way
2034         as full big-endian vectors.
2035         (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2036         (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2037         merging with the Advanced SIMD modes.  If two modes have the
2038         same size, try the Advanced SIMD mode first.
2039         (aarch64_simd_valid_immediate): Use the container rather than
2040         the element mode for INDEX constants.
2041         (aarch64_simd_vector_alignment): Make the alignment of partial
2042         SVE vector modes the same as their minimum size.
2043         (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2044         * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2045         (mov<SVE_ALL:mode>): ...this.
2046         (movmisalign<SVE_FULL:mode>): Extend to...
2047         (movmisalign<SVE_ALL:mode>): ...this.
2048         (*aarch64_sve_mov<mode>_le): Rename to...
2049         (*aarch64_sve_mov<mode>_ldr_str): ...this.
2050         (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2051         (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this.  Handle
2052         partial modes regardless of endianness.
2053         (aarch64_sve_reload_be): Rename to...
2054         (aarch64_sve_reload_mem): ...this and enable for little-endian.
2055         Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2056         (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2057         (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2058         (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2059         (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2060         (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2061         (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2062         (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2063         (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2064         (maskload<SVE_FULL:mode><vpred>): Extend to...
2065         (maskload<SVE_ALL:mode><vpred>): ...this.
2066         (maskstore<SVE_FULL:mode><vpred>): Extend to...
2067         (maskstore<SVE_ALL:mode><vpred>): ...this.
2068         (vec_duplicate<SVE_FULL:mode>): Extend to...
2069         (vec_duplicate<SVE_ALL:mode>): ...this.
2070         (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2071         (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2072         (sve_ld1r<SVE_FULL:mode>): Extend to...
2073         (sve_ld1r<SVE_ALL:mode>): ...this.
2074         (vec_series<SVE_FULL_I:mode>): Extend to...
2075         (vec_series<SVE_I:mode>): ...this.
2076         (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2077         (*vec_series<SVE_I:mode>_plus): ...this.
2078         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2079         new VPRED ambiguity.
2080         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2081         (add<SVE_FULL_I:mode>3): Extend to...
2082         (add<SVE_I:mode>3): ...this.
2083         * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2084         (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2085         (VPRED, vpred): Likewise.
2086         (Vctype): New iterator.
2087         (vw): Remove SVE modes.
2089 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2091         * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2092         (SVE_PARTIAL_I): ...this.
2093         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2095 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2097         * config/aarch64/iterators.md (SVE_ALL): Rename to...
2098         (SVE_FULL): ...this.
2099         (SVE_I): Rename to...
2100         (SVE_FULL_I): ...this.
2101         (SVE_F): Rename to...
2102         (SVE_FULL_F): ...this.
2103         (SVE_BHSI): Rename to...
2104         (SVE_FULL_BHSI): ...this.
2105         (SVE_HSD): Rename to...
2106         (SVE_FULL_HSD): ...this.
2107         (SVE_HSDI): Rename to...
2108         (SVE_FULL_HSDI): ...this.
2109         (SVE_HSF): Rename to...
2110         (SVE_FULL_HSF): ...this.
2111         (SVE_SD): Rename to...
2112         (SVE_FULL_SD): ...this.
2113         (SVE_SDI): Rename to...
2114         (SVE_FULL_SDI): ...this.
2115         (SVE_SDF): Rename to...
2116         (SVE_FULL_SDF): ...this.
2117         (SVE_S): Rename to...
2118         (SVE_FULL_S): ...this.
2119         (SVE_D): Rename to...
2120         (SVE_FULL_D): ...this.
2121         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2122         * config/aarch64/aarch64-sve2.md: Likewise.
2124 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2126         * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2127         New option.
2128         * doc/invoke.texi: Document it.
2129         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2130         By default, return VECT_COMPARE_COSTS for SVE.
2132 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2134         * target.h (VECT_COMPARE_COSTS): New constant.
2135         * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2136         * doc/tm.texi: Regenerate.
2137         * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2138         * targhooks.c (default_autovectorize_vector_modes): Likewise.
2139         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2140         Likewise.
2141         * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2142         * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2143         * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2144         * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2145         * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2146         (_loop_vec_info::vec_inside_cost): New member variables.
2147         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2148         (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2149         (vect_analyze_loop): When autovectorize_vector_modes returns
2150         VECT_COMPARE_COSTS, try vectorizing the loop with each available
2151         vector mode and picking the one with the lowest cost.
2152         (vect_estimate_min_profitable_iters): Record the computed costs
2153         in the loop_vec_info.
2155 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2157         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2158         element type rather than an element mode.
2159         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2160         Use get_vectype_for_scalar_type to query the natural types
2161         for a given element type rather than basing everything on
2162         GET_MODE_SIZE (vinfo->vector_mode).  Limit int_mode_for_size
2163         query to MAX_FIXED_MODE_SIZE.
2164         (duplicate_and_interleave): Update call accordingly.
2165         * tree-vect-loop.c (vectorizable_reduction): Likewise.
2167 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2169         * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2170         optional maximum nunits.
2171         (get_vectype_for_scalar_type): Likewise.  Also declare a form that
2172         takes an slp_tree.
2173         (get_mask_type_for_scalar_type): Take an optional slp_tree.
2174         (vect_get_mask_type_for_stmt): Likewise.
2175         * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2176         the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2177         * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2178         vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2179         to get an assumed vector type for data references.
2180         * tree-vect-slp.c (vect_update_shared_vectype): New function.
2181         (vect_update_all_shared_vectypes): Likewise.
2182         (vect_build_slp_tree_1): Pass the group size to
2183         vect_get_vector_types_for_stmt.  Use vect_update_shared_vectype
2184         for BB vectorization.
2185         (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2186         before building the vectof from scalars.
2187         (vect_analyze_slp_instance): Pass the group size to
2188         get_vectype_for_scalar_type.
2189         (vect_slp_analyze_node_operations_1): Don't recompute the vector
2190         types for BB vectorization here; just handle the case in which
2191         we deferred the choice for booleans.
2192         (vect_get_constant_vectors): Pass the slp_tree to
2193         get_vectype_for_scalar_type.
2194         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2195         (vectorizable_call): Likewise.
2196         (vectorizable_simd_clone_call): Likewise.
2197         (vectorizable_conversion): Likewise.
2198         (vectorizable_shift): Likewise.
2199         (vectorizable_operation): Likewise.
2200         (vectorizable_comparison): Likewise.
2201         (vect_is_simple_cond): Take the slp_tree as argument and
2202         pass it to get_vectype_for_scalar_type.
2203         (vectorizable_condition): Update call accordingly.
2204         (get_vectype_for_scalar_type): Take a group_size argument.
2205         For BB vectorization, limit the the vector to that number
2206         of elements.  Also define an overload that takes an slp_tree.
2207         (get_mask_type_for_scalar_type): Add an slp_tree argument and
2208         pass it to get_vectype_for_scalar_type.
2209         (vect_get_vector_types_for_stmt): Add a group_size argument
2210         and pass it to get_vectype_for_scalar_type.  Don't use the
2211         cached vector type for BB vectorization if a group size is given.
2212         Handle data references in that case.
2213         (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2214         pass it to get_mask_type_for_scalar_type.
2216 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
2218         * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2219         parameter.
2220         (estimate_edge_time): Use it.
2221         * ipa-inline-analysis.c (do_estimate_edge_time): Add
2222         ret_nonspec_time parameter.
2224 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2226         * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2228 2019-11-15  Nick Clifton  <nickc@redhat.com>
2229             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2231         PR target/65649
2232         * config/microblaze/microblaze.c (print_operand): Print value as long.
2234 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
2236         * ipa-inline.c (edge_badness, inline_small_functions): Revert
2237         accidental commit.
2239 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2241         * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2242         (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2244 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2246         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2247         (gcn_conditional_register_usage): Use constants in place of hard-coded
2248         values.
2249         (gcn_hsa_declare_function_name): Set lower bound for number of
2250         SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2251         MAX_NORMAL_VGPR_COUNT.
2253 2019-11-15  Martin Jambor  <mjambor@suse.cz>
2255         * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2256         declaration.
2258 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2260         * config/gcn/gcn.c (default_requested_args): New.
2261         (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2262         set with default_requested_args.
2263         (gcn_conditional_register_usage): Limit register usage of non-kernel
2264         functions.  Reassign fixed registers if a non-standard set of args is
2265         requested.
2266         * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2268 2019-11-15  Feng Xue  <fxue@os.amperecomputing.com>
2270         PR ipa/92528
2271         * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2272         aggregate jump function when inlined-to caller has no edge summary.
2274 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2276         * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2278 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2280         * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2281         prologue use of v0.
2282         (print_operand_address): Use v1 for zero vector offset.
2284 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2286         PR tree-optimization/92515
2287         * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2288         types when converting a vector/scalar shift into a vector/vector one,
2289         using tree_nop_conversion_p instead of useless_type_conversion_p.
2290         Move the conversion code to the transform block.
2292 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2294         * read-rtl-function.c
2295         (function_reader::add_fixup_source_location): Take additional
2296         parameter of a column.
2297         (function_reader::maybe_read_location): Optionally parse column
2298         information and pass to add_fixup_source_location.
2300 2019-11-15  Richard Biener  <rguenther@suse.de>
2302         PR tree-optimization/92512
2303         * tree-vect-loop.c (check_reduction_path): Fix operand index
2304         computability check.  Add check for second use in COND_EXPRs.
2306 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2308         PR target/92515
2309         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2310         VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2312 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2314         * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2315         register class for VCC_LO and VCC_HI.
2316         (gcn_spill_class): Use SGPR_REGS to spill registers in
2317         VCC_CONDITIONAL_REG.
2319 2019-11-15  Richard Biener  <rguenther@suse.de>
2321         PR tree-optimization/92324
2322         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2323         singedness of SLP reduction epilouge operations.  Also reduce
2324         the vector width for SLP reductions before doing elementwise
2325         operations if possible.
2327 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2329         * passes.c (skip_pass): Set epilogue_completed if skipping the
2330         pro_and_epilogue pass.
2332 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
2334         * passes.c (should_skip_pass_p): Always run "dfinish".
2336 2019-11-15  Richard Biener  <rguenther@suse.de>
2338         * ipa-inline.c (inline_small_functions): Move assignment
2339         to next before call destroying edge.
2341 2019-11-15  Richard Biener  <rguenther@suse.de>
2343         PR tree-optimization/92039
2344         PR tree-optimization/91975
2345         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2346         previous change, treat invariants consistently as non-constant.
2347         (tree_estimate_loop_size): Ternary ops with just the first op
2348         constant are not optimized away.
2350 2019-11-15  Jakub Jelinek  <jakub@redhat.com>
2352         * gimplify.c (gimplify_call_expr): Don't call
2353         omp_resolve_declare_variant after gimplification.
2354         * omp-general.c (omp_context_selector_matches): For isa that might
2355         match in some other function, defer if in declare simd function.
2356         (omp_context_compute_score): Don't look for " score" in construct
2357         trait set.  Set *score to -1 if it can't ever match.
2358         (omp_resolve_declare_variant): If any variants need to be deferred,
2359         don't punt immediately, but compute scores of all variants and if
2360         ther eis a score winner that doesn't need to be deferred, return that.
2362 2019-11-15  Luo Xiong Hu  <luoxhu@linux.ibm.com>
2364         * ipa-comdats.c: Fix comments typo.
2365         * ipa-profile.c: Fix comments typo.
2366         * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2367         __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2368         (gimple_gen_ic_func_profiler): Likewise.
2369         (pass_ipa_tree_profile::gate): Fix comments typo.
2371 2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>
2373         * ipa-inline.c (inline_small_functions): Update iterator of next.
2375 2019-11-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
2377         * lra-spills.c (assign_spill_hard_regs): Check that the spill
2378         register is suitable for the mode.
2380 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
2382         * range-op.h (range_operator::fold_range): Return a bool.
2383         * range-op.cc (range_operator::wi_fold): Assert supported type.
2384         (range_operator::fold_range): Assert supported type and return true.
2385         (operator_equal::fold_range): Return true.
2386         (operator_not_equal::fold_range): Same.
2387         (operator_lt::fold_range): Same.
2388         (operator_le::fold_range): Same.
2389         (operator_gt::fold_range): Same.
2390         (operator_ge::fold_range): Same.
2391         (operator_plus::op1_range): Adjust call to fold_range.
2392         (operator_plus::op2_range): Same.
2393         (operator_minus::op1_range): Same.
2394         (operator_minus::op2_range): Same.
2395         (operator_exact_divide::op1_range): Same.
2396         (operator_lshift::fold_range): Return true and adjust fold_range call.
2397         (operator_rshift::fold_range): Same.
2398         (operator_cast::fold_range): Return true.
2399         (operator_logical_and::fold_range): Same.
2400         (operator_logical_or::fold_range): Same.
2401         (operator_logical_not::fold_range): Same.
2402         (operator_bitwise_not::fold_range): Adjust call to fold_range.
2403         (operator_bitwise_not::op1_range): Same.
2404         (operator_cst::fold_range): Return true.
2405         (operator_identity::fold_range): Return true.
2406         (operator_negate::fold_range): Return true and adjust fold_range call.
2407         (operator_addr_expr::fold_range): Return true.
2408         (operator_addr_expr::op1_range): Adjust call to fold_range.
2409         (range_cast): Same.
2410         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2411         (range_fold_unary_symbolics_p): Same.
2413 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
2415         PR tree-optimization/92506
2416         * range-op.cc (range_operator::fold_range): Start with range undefined.
2417         (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2418         overflow is varying.
2420 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
2422         * range-op.cc (*operator*::*range): Remove calls to
2423         range_intersect, range_invert, and range_union in favor of calling
2424         the in-place API methods.
2425         (range_tests): Same.
2426         * range.cc (range_intersect): Remove.
2427         (range_union): Remove.
2428         (range_invert): Remove.
2429         * range.h (range_intersect): Remove.
2430         (range_union): Remove.
2431         (range_intersect): Remove.
2433 2019-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
2435         PR rtl-optimization/92430
2436         * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2437         (pass_jump_after_combine::execute): Perform jump threading
2438         unconditionally.
2440 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
2441             Doug Rupp <rupp@adacore.com>
2442             Olivier Hainque  <hainque@adacore.com>
2444         * config.gcc: Collapse the arm-vxworks entries into
2445         a single arm-wrs-vxworks7* one, bpabi based.  Update
2446         the default cpu from arm8 to armv7-a
2447         * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2448         we always use ARM_UNWIND_INFO.
2449         (DWARF2_UNWIND_INFO): Remove redefinition.
2450         (ARM_TARGET2_DWARF_FORMAT): Likewise.
2451         (VXWORKS_PERSONALITY): Define, to "llvm".
2452         (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2454 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
2456         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2457         _VX_CPU instead of CPU and handle arm_arch8.
2459 2019-11-14  Doug Rupp  <rupp@adacore.com>
2460             Olivier Hainque  <hainque@adacore.com>
2461             Jerome Lambourg  <lambourg@adacore.com>
2463         * config.gcc: Handle aarch64*-wrs-vxworks7*.
2464         * config/aarch64/aarch64-vxworks.h: New file.
2465         * config/aarch64/t-aarch64-vxworks: New file.
2467 2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
2468             Olivier Hainque  <hainque@adacore.com>
2470         * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2471         definition, pointless with a VxWorks specific version
2472         of crtstuff.
2473         (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2474         * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2475         New local macros, controlling the addition of vxworks specific
2476         crtstuff objects depending on the EH mechanism and kind of
2477         module being linked.
2478         (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2480 2019-11-06  Pat Bernardi  <bernardi@adacore.com>
2481             Jerome Lambourg  <lambourg@adacore.com>
2482             Olivier Hainque  <hainque@adacore.com>
2484         * config.gcc: Add comment to introduce the TARGET_VXWORKS
2485         common macro definitions, conveying VXWORKS7 or 64bit general
2486         variations.  Add a block to set gcc_cv_initfini_array
2487         unconditionally to "yes" for VxWorks7.
2488         config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2489         by default.  Update some comments.
2490         config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2491         default, to be added the end of VXWORKS_LIBS_RTP.
2492         (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2493         and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2494         redefine.
2495         (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2496         (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2497         to account for the now available TLS abilities.
2498         (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2499         (VXWORKS_HAVE_TLS): Likewise.
2501 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2503         * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2504         (vect_slp_convert_to_external): Likewise.
2505         (vect_slp_analyze_node_operations): If analysis fails, try building
2506         the node from scalars instead.
2508 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2510         * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2511         between vector types.
2512         * tree-vect-stmts.c (vectorizable_conversion): Extend the
2513         non-widening and non-narrowing path to handle standard
2514         conversion codes, if the target supports them.
2515         * expr.c (convert_move): Try using the extend and truncate optabs
2516         for vectors.
2517         * optabs-tree.c (supportable_convert_operation): Likewise.
2518         * config/aarch64/iterators.md (Vnarroqw): New iterator.
2519         * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2520         (trunc<mode><Vnarrowq>2): New patterns.
2522 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2524         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2525         require vectype and nunits_vectype to have the same size;
2526         instead assert that nunits_vectype has at least as many
2527         elements as vectype.  Don't compute a separate nunits_vectype
2528         if the scalar type is obviously the same as vectype's.
2529         Tweak dump messages.
2531 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2533         * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2534         function.
2535         (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2536         (TARGET_VECTORIZE_RELATED_MODE): Define.
2538 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2540         * tree-vectorizer.h (vec_info::mode_set): New typedef.
2541         (vec_info::used_vector_mode): New member variable.
2542         (vect_chooses_same_modes_p): Declare.
2543         * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2544         chosen vector mode in vec_info::used_vector_mode.
2545         (vect_chooses_same_modes_p): New function.
2546         * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2547         the same vector statements multiple times.
2548         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2550 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2552         * machmode.h (opt_machine_mode::operator==): New function.
2553         (opt_machine_mode::operator!=): Likewise.
2554         * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2555         (get_related_vectype_for_scalar_type): Delete.
2556         (get_vectype_for_scalar_type_and_size): Declare.
2557         * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2558         whether analysis passed or failed, and with what vector modes.
2559         Use related_vector_mode to check whether trying a particular
2560         vector mode would be redundant with the autodetected mode,
2561         and print a dump message if we decide to skip it.
2562         * tree-vect-loop.c (vect_analyze_loop): Likewise.
2563         (vect_create_epilog_for_reduction): Use
2564         get_related_vectype_for_scalar_type instead of
2565         get_vectype_for_scalar_type_and_size.
2566         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2567         with...
2568         (get_related_vectype_for_scalar_type): ...this new function.
2569         Take a starting/"prevailing" vector mode rather than a vector size.
2570         Take an optional nunits argument, with the same meaning as for
2571         related_vector_mode.  Use related_vector_mode when not
2572         auto-detecting a mode, falling back to mode_for_vector if no
2573         target mode exists.
2574         (get_vectype_for_scalar_type): Update accordingly.
2575         (get_same_sized_vectype): Likewise.
2576         * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2578 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2580         * tree-vect-stmts.c (vectorizable_call): Require the types
2581         to have the same size.
2583 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2585         * tree-vect-stmts.c (vectorizable_call): If an operand is
2586         constant or external, use get_vectype_for_scalar_type
2587         rather than get_same_sized_vectype to get its vector type.
2588         (vectorizable_conversion, vectorizable_shift): Likewise.
2589         (vectorizable_operation): Likewise.
2591 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2593         * tree-vectorizer.h (vec_info::vector_size): Replace with...
2594         (vec_info::vector_mode): ...this new field.
2595         * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2596         (vect_analyze_loop, vect_transform_loop): Likewise.
2597         * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2598         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2599         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2600         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2601         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2603 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2605         * target.h (vector_sizes, auto_vector_sizes): Delete.
2606         (vector_modes, auto_vector_modes): New typedefs.
2607         * target.def (autovectorize_vector_sizes): Replace with...
2608         (autovectorize_vector_modes): ...this new hook.
2609         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2610         Replace with...
2611         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2612         * doc/tm.texi: Regenerate.
2613         * targhooks.h (default_autovectorize_vector_sizes): Delete.
2614         (default_autovectorize_vector_modes): New function.
2615         * targhooks.c (default_autovectorize_vector_sizes): Delete.
2616         (default_autovectorize_vector_modes): New function.
2617         * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2618         of autovectorize_vector_sizes.  Use the number of units in the mode
2619         to calculate the maximum VF.
2620         * omp-low.c (omp_clause_aligned_alignment): Use
2621         autovectorize_vector_modes instead of autovectorize_vector_sizes.
2622         Use a loop based on related_mode to iterate through all supported
2623         vector modes for a given scalar mode.
2624         * optabs-query.c (can_vec_mask_load_store_p): Use
2625         autovectorize_vector_modes instead of autovectorize_vector_sizes.
2626         * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2627         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2628         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2629         Replace with...
2630         (aarch64_autovectorize_vector_modes): ...this new function.
2631         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2632         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2633         * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2634         (arc_autovectorize_vector_modes): ...this new function.
2635         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2636         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2637         * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2638         (arm_autovectorize_vector_modes): ...this new function.
2639         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2640         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2641         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2642         (ix86_autovectorize_vector_modes): ...this new function.
2643         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2644         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2645         * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2646         (mips_autovectorize_vector_modes): ...this new function.
2647         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2648         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2650 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2652         * tree-vect-stmts.c (vectorizable_shift): Check the number
2653         of vector elements as well as the type mode when deciding
2654         whether an op1_vectype is compatible.  Reuse the result of
2655         this check when generating vector statements.
2657 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2659         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2660         targetm.vectorize.preferred_simd_mode returns an integer mode,
2661         use mode_for_vector to decide what the vector type's mode
2662         should actually be.  Use build_vector_type_for_mode instead
2663         of build_vector_type.
2665 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2667         * target.def (get_mask_mode): Take a vector mode itself as argument,
2668         instead of properties about the vector mode.
2669         * doc/tm.texi: Regenerate.
2670         * targhooks.h (default_get_mask_mode): Update to reflect new
2671         get_mode_mask interface.
2672         * targhooks.c (default_get_mask_mode): Likewise.  Use
2673         related_int_vector_mode.
2674         * optabs-query.c (can_vec_mask_load_store_p): Update call
2675         to get_mask_mode.
2676         * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2677         first that the original mode really is a vector.
2678         * tree.c (build_truth_vector_type_for): Likewise.
2679         * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2680         get_mode_mask interface.
2681         (aarch64_expand_sve_vcond): Update call accordingly.
2682         * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2683         get_mode_mask interface.
2684         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2686 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2688         * tree.h (build_truth_vector_type): Delete.
2689         (build_same_sized_truth_vector_type): Likewise.
2690         * tree.c (build_truth_vector_type): Rename to...
2691         (build_truth_vector_type_for): ...this.  Make static and take
2692         a vector type as argument.
2693         (truth_type_for): Update accordingly.
2694         (build_same_sized_truth_vector_type): Delete.
2695         * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2696         instead of build_same_sized_truth_vector_type.
2697         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2698         (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2699         * tree-vect-patterns.c (build_mask_conversion): Likeise.
2700         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2701         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2702         (vect_build_gather_load_calls, vectorizable_call): Likewise.
2703         (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2704         (vectorizable_store, vectorizable_condition): Likewise.
2705         (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2706         (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2707         build_truth_vector_type.
2708         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2709         Use truth_type_for instead of build_same_sized_truth_vector_type.
2710         * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2712 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2714         * tree.h (build_truth_vector_type_for_mode): Declare.
2715         * tree.c (build_truth_vector_type_for_mode): New function,
2716         split out from...
2717         (build_truth_vector_type): ...here.
2718         (build_opaque_vector_type): Fix head comment.
2719         * tree-vectorizer.h (supportable_narrowing_operation): Remove
2720         vec_info parameter.
2721         (vect_halve_mask_nunits): Replace vec_info parameter with the
2722         mode of the new vector.
2723         (vect_double_mask_nunits): Likewise.
2724         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2725         (vect_double_mask_nunits): Likewise.
2726         * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2727         (vect_maybe_permute_loop_masks): Remove vinfo parameter.  Update call
2728         to vect_halve_mask_nunits, getting the required mode from the unpack
2729         patterns.
2730         (vect_set_loop_condition_masked): Update call accordingly.
2731         * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2732         parameter and update call to vect_double_mask_nunits.
2733         (vectorizable_conversion): Update call accordingly.
2734         (simple_integer_narrowing): Likewise.  Remove vec_info parameter.
2735         (vectorizable_call): Update call accordingly.
2736         (supportable_widening_operation): Update call to
2737         vect_halve_mask_nunits.
2738         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2739         Use build_truth_vector_type_mode instead of build_truth_vector_type.
2741 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2743         * machmode.h (mode_for_int_vector): Delete.
2744         (related_int_vector_mode): Declare.
2745         * stor-layout.c (mode_for_int_vector): Delete.
2746         (related_int_vector_mode): New function.
2747         * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2748         instead of mode_for_int_vector.
2749         (expand_vec_perm_const): Likewise.
2750         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2751         (aarch64_evpc_sve_tbl): Likewise.
2752         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2753         (s390_expand_vcond): Likewise.
2755 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
2757         * target.def (related_mode): New hook.
2758         * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2759         * doc/tm.texi: Regenerate.
2760         * targhooks.h (default_vectorize_related_mode): Declare.
2761         * targhooks.c (default_vectorize_related_mode): New function.
2762         * machmode.h (related_vector_mode): Declare.
2763         * stor-layout.c (related_vector_mode): New function.
2764         * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2765         * optabs-query.c (qimode_for_vec_perm): Likewise.
2766         * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2767         (vectorizable_store, vectorizable_load): Likewise
2769 2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
2771         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2772         * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2773         * config/arm/arm-c.c (arm_cpu_builtins): Define
2774         __GCC_ASM_FLAG_OUTPUTS__.
2775         * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2776         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2777         Define __GCC_ASM_FLAG_OUTPUTS__.
2778         * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2779         * doc/extend.texi (FlagOutputOperands): Add documentation
2780         for ARM and AArch64.
2782         * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2783         * config/arm/predicates.md (nz_comparison_operator): Rename
2784         from noov_comparison_operator.
2785         * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2786         (arm_gen_dicompare_reg): Likewise.
2787         (maybe_get_arm_condition_code): Likewise.
2788         (thumb1_final_prescan_insn): Likewise.
2789         (arm_emit_coreregs_64bit_shift): Likewise.
2790         * config/arm/arm.md (addsi3_compare0): Likewise.
2791         (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2792         (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2793         (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2794         (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2795         (*mulsi3addsi_compare0_scratch): Likewise.
2796         (*mulsi3addsi_compare0_scratch_v6): Likewise.
2797         (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2798         (*zeroextractsi_compare0_scratch): Likewise.
2799         (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2800         (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2801         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2802         (andsi_not_shiftsi_si_scc): Likewise.
2803         (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2804         (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2805         (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2806         (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2807         (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2808         (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2809         (return_addr_mask, *check_arch2): Likewise.
2810         (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2811         (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2812         (compare_scc splitters): Likewise.
2813         (movcond_addsi): Likewise.
2814         * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2815         (*thumb2_addsi3_compare0_scratch): Likewise.
2816         (*thumb2_mulsi_short_compare0): Likewise.
2817         (*thumb2_mulsi_short_compare0_scratch): Likewise.
2818         (compare peephole2s): Likewise.
2819         * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2820         nz_comparison_operator names.
2821         (cbranchsi4_insn): Likewise.
2823         * config/arm/constraints.md (c): Use cc_register predicate.
2825         * config/aarch64/constraints.md (c): New constraint.
2827 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
2829         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2830         ipa_merge_fn_summary_after_inlining): Micro optimize.
2832 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
2834         * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2836 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
2838         * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2839         (ipa_value_range_from_jfunc): New function.
2840         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2841         known_value_ranges parameter; use it to evalulate conditions.
2842         (evaluate_properties_for_edge): Compute known value ranges.
2843         (ipa_fn_summary_t::duplicate): Update use of
2844         evaluate_conditions_for_known_args.
2845         (estimate_ipcp_clone_size_and_time): Likewise.
2846         (ipa_merge_fn_summary_after_inlining): Likewise.
2847         * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2849 2019-11-14  Martin Liska  <mliska@suse.cz>
2851         * ipa-inline.c (want_inline_small_function_p): Use
2852         CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2853         of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2855 2019-11-14  Martin Liska  <mliska@suse.cz>
2857         * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2858         of a callee to get value of the param.
2859         * ipa-inline.c (inline_insns_auto): Use proper
2860         opt_for_fn.
2861         * opts.c (maybe_default_option): Do not overwrite param
2862         value if optimization level does not match.  Note that
2863         params usually have default value set via Init() keyword.
2864         * params.opt: Remove -param=max-inline-insns-auto-O2.
2865         * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2866         * doc/invoke.texi: Remove documentation of
2867         max-inline-insns-auto-O2.
2869 2019-11-14  Martin Liska  <mliska@suse.cz>
2871         * tree-switch-conversion.c (switch_conversion::switch_conversion):
2872         Do not initialize m_other_count.
2873         (switch_conversion::collect): Do not count m_default_count and
2874         m_other_count as we use frequencies for edges.
2875         * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2877 2019-11-14  Martin Liska  <mliska@suse.cz>
2879         PR other/92329
2880         * doc/invoke.texi: Document -fallocation-dce.
2882 2019-11-14  Martin Liska  <mliska@suse.cz>
2884         PR target/92389
2885         * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2886         PTA_ICELAKE_CLIENT which is later interited by
2887         PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2889 2019-11-14  Martin Liska  <mliska@suse.cz>
2891         * ipa-icf.c (sem_item_optimizer::execute): Save
2892         loaded_symbols.
2893         (sem_item_optimizer::parse_nonsingleton_classes):
2894         Return number of loaded symbols.
2895         (sem_item_optimizer::merge_classes): Print
2896         statistics about totally needed symbols.
2897         * ipa-icf.h (parse_nonsingleton_classes): Change return
2898         type.
2899         (merge_classes): Add one argument.
2901 2019-11-14  Martin Liska  <mliska@suse.cz>
2903         * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2904         func_checker::hash_operand by handling of FIELD_DECLs.
2906 2019-11-14  Martin Liska  <mliska@suse.cz>
2908         * ipa-icf-gimple.h (func_checker::func_checker): Add
2909         default constructor.
2910         * ipa-icf.c (sem_function::init): Make operand_equal_p
2911         and hash_operand public.
2912         (sem_item::add_expr): Remove.
2913         (sem_item::add_type): Remove.
2914         (sem_function::hash_stmt): Use m_checker for hashing
2915         of GIMPLE statements.
2916         (sem_function::parse): Init with checker.
2917         (sem_variable::parse): Pass NULL as checker.
2918         (sem_item_optimizer::parse_funcs_and_vars):
2919         Pass checker to ::parse function.
2920         (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2921         (sem_variable::parse): New function.
2922         (sem_variable::get_hash): Only return computed hash value.
2923         (sem_variable::init): Initialize hash of a variable.
2924         * ipa-icf.h: Remove add_expr, add_type and add func_checker
2925         to couple of functions as a new argument.
2927 2019-11-14  Martin Liska  <mliska@suse.cz>
2929         * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2930         bail out reason.
2931         (func_checker::compare_gimple_assign): Likewise.
2933 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
2935         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2936         change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2937         * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2939         * omp-general.c (omp_context_name_list_prop): New function.
2940         (omp_context_selector_matches): Use it.  Return 0 if it returns
2941         NULL.
2942         (omp_context_selector_props_compare): Allow equivalency of an
2943         identifier and a string literal containing no embedded zeros.
2945 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
2947         * range-op.cc (RANGE3): Remove.
2948         (range_tests): Remove all selftest that check for multi-ranges.
2949         Put tests in namespace selftest.
2950         * selftest.h: Move range_tests into namespace selftest.
2951         * value-range.h (class value_range): Unfriend range_tests.
2953 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
2955         * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2956         normalize_symbolics and normalize_addresses working in place.
2957         (range_fold_unary_symbolics_p): Same.
2958         (range_fold_unary_symbolics_p): Same.
2959         * value-range.cc (num_pairs): Same.
2960         (lower_bound): Same.
2961         (upper_bound): Same.
2962         (contains_p): Same.
2963         (normalize_addresses): Same.
2964         (normalize_symbolics): Same.
2965         * value-range.h (normalize_symbolics): Same.
2966         (normalize_addresses): Same.
2968 2019-11-14  Feng Xue  <fxue@os.amperecomputing.com>
2970         PR ipa/91682
2971         * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2972         (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2973         (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2974         (ipa_agg_jump_function): Remove member function equal_to.
2975         (ipa_agg_jump_function_p): Remove typedef.
2976         (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2977         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2978         information for aggregate jump function.
2979         (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2980         record last definition statement.
2981         (load_from_unmodified_param_or_agg): New function.
2982         (ipa_known_agg_contents_list): Add new field type and value, remove
2983         field constant.
2984         (build_agg_jump_func_from_list): Rename parameter const_count to
2985         value_count, build aggregate jump function from ipa_load_agg_data.
2986         (analyze_agg_content_value): New function.
2987         (extract_mem_content): Analyze memory store assignment to prepare
2988         information for aggregate jump function generation.
2989         (determine_known_aggregate_parts): Add new parameter fbi, remove
2990         parameter aa_walk_budeget_p.
2991         (update_jump_functions_after_inlining): Update aggregate jump function.
2992         (ipa_find_agg_cst_for_param): Change type of parameter agg.
2993         (try_make_edge_direct_simple_call): Add new parameter new_root.
2994         (try_make_edge_direct_virtual_call): Add new parameter new_root and
2995         new_root_info.
2996         (update_indirect_edges_after_inlining): Pass new argument to
2997         try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2998         (ipa_write_jump_function): Write aggregate jump function to file.
2999         (ipa_read_jump_function): Read aggregate jump function from file.
3000         (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3001         * ipa-cp.c (ipa_get_jf_arith_result): New function.
3002         (ipa_agg_value_from_node): Likewise.
3003         (ipa_agg_value_set_from_jfunc): Likewise.
3004         (propagate_vals_across_arith_jfunc): Likewise.
3005         (propagate_aggregate_lattice): Likewise.
3006         (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3007         (propagate_vals_across_pass_through): Call
3008         propagate_vals_across_arith_jfunc.
3009         (get_clone_agg_value): Move forward.
3010         (propagate_aggs_across_jump_function): Handle value propagation for
3011         aggregate jump function.
3012         (agg_jmp_p_vec_for_t_vec): Remove.
3013         (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3014         with vec<ipa_agg_value>.
3015         (copy_plats_to_inter, intersect_with_plats): Likewise.
3016         (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3017         (intersect_aggregate_with_edge): Likewise.
3018         (find_aggregate_values_for_callers_subset): Likewise.
3019         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3020         (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3021         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3022         (gather_context_independent_values): Likewise.
3023         (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3024         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3025         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3026         (evaluate_properties_for_edge): Likewise.
3027         (estimate_edge_devirt_benefit): Likewise.
3028         (estimate_edge_size_and_time):  Likewise.
3029         (estimate_calls_size_and_time): Likewise.
3030         (ipa_call_context::ipa_call_context): Likewise.
3031         (estimate_ipcp_clone_size_and_time):  Likewise.
3032         * ipa-fnsummary.h (ipa_call_context): Replace
3033         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3034         * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3035         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3036         (do_estimate_edge_size): Likewise.
3037         (do_estimate_edge_hints): Likewise.
3039 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3041         * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3042         binary operations.
3044 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3046         * ipa-profile.c (check_argument_count): Check properly that e_info
3047         is non-NULL; do not check descriptors.
3049 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3051         * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3052         check for ipa profiles.
3054 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3056         PR c++/92421
3057         * ipa-prop.c (update_indirect_edges_after_inlining):
3058         Mark parameter as used.
3059         * ipa-inline.c (recursive_inlining): Reset node cache
3060         after inlining.
3061         (inline_small_functions): Remove checking ifdef.
3062         * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3063         cache consistency.
3065 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3067         PR ipa/92498
3068         * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3069         is NULL.
3070         (ipa_profile): Fix reversed test.
3072 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3074         * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3075         (propagate_constants_topo): Fix typo.
3077 2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
3079         * Makefile.in (OBJS): Add value-range.o.
3080         (GTFILES): Add value-range.h.
3081         * gengtype.c (open_base_files): Add value-range.h to list of
3082         header files.
3083         * tree-vrp.c: Move the following value_range related functions:
3084         ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3085         constant_p, set_undefined, set_varying, may_contain_p,
3086         singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3087         vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3088         set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3089         value_inside_range, ranges_from_anti_range, union_ranges,
3090         intersect_ranges, intersect_helper, union_helper, union_,
3091         normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3092         upper_bound, contains_p, invert, intersect...
3093         * value-range.cc: ...to here.
3094         * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3095         associated inline methods from here...
3096         * value-range.h: ...to here.
3098 2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
3100         * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3101         instead of asserting its value.
3103 (2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
3105         * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3106         constructors and set methods so value_range_kind is the last
3107         argument and defaults to VR_RANGE.
3108         * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3109         * ipa-cp.c (propagate_vr_across_jump_function): Same.
3110         * ipa-prop.c (ipa_get_value_range): Same.
3111         (ipa_compute_jump_functions_for_edge): Same.
3112         * range-op.cc (value_range_from_overflowed_bounds): Same.
3113         (operator_cast::op1_range): Same.
3114         (range_tests): Same.
3115         * range.cc (range_nonzero): Same.
3116         * tree-ssanames.c (get_range_info): Same.
3117         * tree-vrp.c (value_range_equiv::set): Same.
3118         (value_range::value_range): Same.
3119         (value_range_equiv::value_range_equiv): Same.
3120         (value_range_equiv::update): Same.
3121         (value_range_equiv::deep_copy): Same.
3122         (value_range_equiv::move): Same.
3123         (value_range_equiv::set_undefined): Same.
3124         (value_range::set): Same.
3125         (value_range::set_nonzero): Same.
3126         (ranges_from_anti_range): Same.
3127         (extract_range_from_plus_minus_expr): Same.
3128         (value_range::intersect_helper): Same.
3129         (value_range_equiv::intersect): Same.
3130         (value_range::union_helper): Same.
3131         (value_range_equiv::union_): Same.
3132         (value_range::normalize_symbolics): Same.
3133         (value_range::invert): Same.
3134         (determine_value_range_1): Same.
3135         * tree-vrp.h (class value_range): Same.
3136         (class value_range_equiv): Same.
3137         * vr-values.c (set_value_range_to_nonnegative): Same.
3138         (set_value_range_to_truthvalue): Same.
3139         (vr_values::update_value_range): Same.
3140         (vr_values::extract_range_for_var_from_comparison_expr): Same.
3141         (vr_values::extract_range_from_binary_expr): Same.
3142         (vr_values::extract_range_from_comparison): Same.
3143         (vr_values::extract_range_basic): Same.
3144         (vr_values::adjust_range_with_scev): Same.
3145         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3146         (vr_values::extract_range_from_phi_node): Same.
3148 2019-11-13  Ulrich Drepper  <drepper@redhat.com>
3150         * tree-dump.c (dequeue_and_dump): Print first tree operand
3151         for VIEW_CONVERT_EXPR.
3153 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
3155         * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3156         DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3157         * real.c (get_max_float): Add norm_max argument.
3158         * real.h (get_max_float): Update prototype.
3159         * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3160         get_max_float.
3162 2019-11-13  Martin Liska  <mliska@suse.cz>
3164         * dbgcnt.c (test_sorted_dbg_counters): New.
3165         (dbgcnt_c_tests): Likewise.
3166         * selftest-run-tests.c (selftest::run_tests): Likewise.
3167         * selftest.h (dbgcnt_c_tests): Likewise.
3169 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3170             Martin Jambor  <mjambor@suse.cz>
3172         PR ipa/92454
3173         * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3174         (identify_dead_nodes): Likewise.
3176 2019-11-13  Martin Liska  <mliska@suse.cz>
3178         * ipa-icf.c (sem_function::equals_private): Do not overuse
3179         push/pop_cfun functions.
3181 2019-11-13  Martin Liska  <mliska@suse.cz>
3183         * common.opt: Document change of -fdbg-cnt option.
3184         * dbgcnt.c (DEBUG_COUNTER): Remove.
3185         (dbg_cnt_is_enabled): Remove.
3186         (dbg_cnt): Work with new intervals.
3187         (dbg_cnt_set_limit_by_index): Set to new
3188         list of intervals.
3189         (dbg_cnt_set_limit_by_name): Likewise.
3190         (dbg_cnt_process_single_pair): Process new format.
3191         (dbg_cnt_process_opt): Likewise.
3192         (dbg_cnt_list_all_counters): Likewise.
3193         * doc/invoke.texi: Document change of -fdbg-cnt option.
3194         (cmp_tuples): New.
3196 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3198         * ipa-inline.c (ipa_inline): Check that function is defined before
3199         flattening.
3201 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3202             Julian Brown  <julian@codesourcery.com>
3204         * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3205         flag_worker_partitioning is not set.
3206         (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3207         * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3209 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3211         * config/gcn/gcn-run.c (heap_region): New global variable.
3212         (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3213         (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3214         (get_kernarg_region): Move contents to ....
3215         (get_memory_region): .... here.
3216         (get_heap_region): New function.
3217         (init_device): Initialize the heap_region.
3218         (device_malloc): Add region parameter.
3219         (struct kernargs): Move heap ....
3220         (heap): ... to global scope.
3221         (main): Allocate heap separate to kernargs.
3223 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3225         * ipa-prop.c (ipa_print_node_jump_functions,
3226         ipa_print_node_params): Print info about missing summaries.
3228 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3230         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3231         the cost of generating loop masks.
3233 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3235         * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3236         New function.
3237         * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3238         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3239         (vect_transform_loop): Likewise.
3240         (vect_analyze_loop_costing): Don't take the cost of versioning
3241         into account for the static profitability threshold if it turns
3242         out that no versioning is needed.
3244 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
3246         * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3247         and target_option_default_node to get -fprofile-generate ctors working
3248         right with LTO.
3250 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3252         * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3253         * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3254         (vectorizable_assignment): Don't add a cost for nop conversions.
3255         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3256         Likewise.
3257         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3259 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3261         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3262         number of ncopies as an additional argument.
3263         (vectorizable_conversion): Update call accordingly.  Use "modifier"
3264         to check whether a conversion is between vectors with the same
3265         numbers of units.
3267 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3269         * config/aarch64/aarch64-sve-builtins-functions.h
3270         (unary_count::expand): Use aarch64_sve_int_mode instead of
3271         mode_for_int_vector.
3273 2019-11-13  Martin Liska  <mliska@suse.cz>
3275         * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3277 2019-11-13  Martin Liska  <mliska@suse.cz>
3279         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3280         Remove call to finalize_options_struct.
3282 2019-11-13  Georg-Johann Lay  <avr@gjlay.de>
3284         PR target/92055
3285         * config/avr/t-avr (avr-mcus): Do not depend on
3286         $(srcdir)/config/avr/t-multilib.
3288 2019-11-13  Richard Biener  <rguenther@suse.de>
3290         PR tree-optimization/92473
3291         * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3292         direct optab reduction in the correct type.
3294 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
3296         * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3297         hexadecimal literal.
3299 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
3301         * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3302         UNORDERED if !HONOR_NANS (DFmode).
3303         (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3304         if !HONOR_NANS (<MODE>mode).
3306 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
3308         * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3309         (ipcp_verify_propagated_values): Likewise.
3310         (propagate_constants_across_call): Likewise.
3311         (propagate_constants_topo): Likewise.
3312         (ipcp_propagate_stage): Likewise.
3314 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
3316         PR ipa/92471
3317         * ipa-profile.c (check_argument_count): Break out from ...;
3318         watch for missing summaries.
3319         (ipa_profile): Here.
3321 2019-11-12  Martin Sebor  <msebor@redhat.com>
3323         PR tree-optimization/92412
3324         * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3325         extern variables.
3327 2019-11-12  Martin Sebor  <msebor@redhat.com>
3329         PR middle-end/83688
3330         * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3331         (directive::argno): New member.
3332         (format_result::aliases, format_result::alias_count): New data members.
3333         (format_result::append_alias): New member function.
3334         (fmtresult::dst_offset): New data member.
3335         (pass_sprintf_length::call_info::dst_origin): New data member.
3336         (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3337         (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3338         (get_origin_and_offset): Same.
3339         (format_string): Call it.
3340         (format_directive): Call append_alias and set directive argument
3341         number.
3342         (maybe_warn_overlap): New function.
3343         (pass_sprintf_length::compute_format_length): Call it.
3344         (pass_sprintf_length::handle_gimple_call): Initialize new members.
3345         * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3347 2019-11-12  Ilya Leoshkevich  <iii@linux.ibm.com>
3349         PR rtl-optimization/92430
3350         * cfgcleanup.c (pass_jump_after_combine::execute): Free
3351         dominance info at the beginning.
3353 2019-11-12  Richard Biener  <rguenther@suse.de>
3355         PR tree-optimization/92460
3356         * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3357         expression before gimplifying.
3359 2019-11-12  Richard Biener  <rguenther@suse.de>
3361         PR tree-optimization/92461
3362         * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3363         stmt after propagation.
3365 2019-11-12  Martin Liska  <mliska@suse.cz>
3367         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3368         Use SET_OPTION_IF_UNSET.
3369         (ix86_option_override_internal): Likewise.
3370         * opts.c (default_options_optimization): Likewise.
3371         (finish_options): Likewise.
3372         (enable_fdo_optimizations): Likewise.
3373         (common_handle_option): Likewise.
3375 2019-11-12  Martin Liska  <mliska@suse.cz>
3377         * common/common-target.def: Remove option_validate_param and
3378         option_default_params.
3379         * common/common-targhooks.c (default_option_validate_param):
3380         Remove.
3381         * common/common-targhooks.h (default_option_validate_param):
3382         Remove.
3383         * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3384         Remove usage of this.
3385         (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3386         (aarch64_option_validate_param): Likewise.
3387         (aarch64_option_default_params): Likewise
3388         * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3389         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3390         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3391         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3392         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3393         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3394         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3395         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3396         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3397         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3398         * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3399         guard_size here.
3400         * doc/tm.texi: Remove option_default_params and option_validate_param.
3401         * doc/tm.texi.in: Likewise.
3403 2019-11-12  Martin Liska  <mliska@suse.cz>
3405         * common/common-target.def:
3406         Do not mention set_default_param_value
3407         and set_param_value.
3408         * doc/tm.texi: Likewise.
3410 2019-11-12  Martin Liska  <mliska@suse.cz>
3412         * common.opt: Remove param_values.
3413         * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3414         Remove finalize_options_struct.
3415         * gcc.c (driver::decode_argv): Do not call global_init_params
3416         and finish_params.
3417         (driver::finalize): Do not call params_c_finalize
3418         and finalize_options_struct.
3419         * opt-suggestions.c (option_proposer::get_completions): Remove
3420         special casing of params.
3421         (option_proposer::find_param_completions): Remove.
3422         (test_completion_partial_match): Update expected output.
3423         * opt-suggestions.h: Remove find_param_completions.
3424         * opts-common.c (add_misspelling_candidates): Add
3425         --param with a space.
3426         * opts.c (handle_param): Remove.
3427         (init_options_struct):. Remove init_options_struct and
3428         similar calls.
3429         (finalize_options_struct): Remove.
3430         (common_handle_option): Use SET_OPTION_IF_UNSET.
3431         * opts.h (finalize_options_struct): Remove.
3432         * toplev.c (general_init): Do not call global_init_params.
3433         (toplev::finalize): Do not call params_c_finalize and
3434         finalize_options_struct.
3436 2019-11-12  Martin Liska  <mliska@suse.cz>
3438         * Makefile.in: Remove PARAMS_H and params.list
3439         and params.options.
3440         * params-enum.h: Remove.
3441         * params-list.h: Remove.
3442         * params-options.h: Remove.
3443         * params.c: Remove.
3444         * params.def: Remove.
3445         * params.h: Remove.
3446         * asan.c: Do not include params.h.
3447         * auto-profile.c: Likewise.
3448         * bb-reorder.c: Likewise.
3449         * builtins.c: Likewise.
3450         * cfgcleanup.c: Likewise.
3451         * cfgexpand.c: Likewise.
3452         * cfgloopanal.c: Likewise.
3453         * cgraph.c: Likewise.
3454         * combine.c: Likewise.
3455         * common/config/aarch64/aarch64-common.c: Likewise.
3456         * common/config/gcn/gcn-common.c: Likewise.
3457         * common/config/ia64/ia64-common.c: Likewise.
3458         * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3459         * common/config/rs6000/rs6000-common.c: Likewise.
3460         * common/config/sh/sh-common.c: Likewise.
3461         * config/aarch64/aarch64.c: Likewise.
3462         * config/alpha/alpha.c: Likewise.
3463         * config/arm/arm.c: Likewise.
3464         * config/avr/avr.c: Likewise.
3465         * config/csky/csky.c: Likewise.
3466         * config/i386/i386-builtins.c: Likewise.
3467         * config/i386/i386-expand.c: Likewise.
3468         * config/i386/i386-features.c: Likewise.
3469         * config/i386/i386-options.c: Likewise.
3470         * config/i386/i386.c: Likewise.
3471         * config/ia64/ia64.c: Likewise.
3472         * config/rs6000/rs6000-logue.c: Likewise.
3473         * config/rs6000/rs6000.c: Likewise.
3474         * config/s390/s390.c: Likewise.
3475         * config/sparc/sparc.c: Likewise.
3476         * config/visium/visium.c: Likewise.
3477         * coverage.c: Likewise.
3478         * cprop.c: Likewise.
3479         * cse.c: Likewise.
3480         * cselib.c: Likewise.
3481         * dse.c: Likewise.
3482         * emit-rtl.c: Likewise.
3483         * explow.c: Likewise.
3484         * final.c: Likewise.
3485         * fold-const.c: Likewise.
3486         * gcc.c: Likewise.
3487         * gcse.c: Likewise.
3488         * ggc-common.c: Likewise.
3489         * ggc-page.c: Likewise.
3490         * gimple-loop-interchange.cc: Likewise.
3491         * gimple-loop-jam.c: Likewise.
3492         * gimple-loop-versioning.cc: Likewise.
3493         * gimple-ssa-split-paths.c: Likewise.
3494         * gimple-ssa-sprintf.c: Likewise.
3495         * gimple-ssa-store-merging.c: Likewise.
3496         * gimple-ssa-strength-reduction.c: Likewise.
3497         * gimple-ssa-warn-alloca.c: Likewise.
3498         * gimple-ssa-warn-restrict.c: Likewise.
3499         * graphite-isl-ast-to-gimple.c: Likewise.
3500         * graphite-optimize-isl.c: Likewise.
3501         * graphite-scop-detection.c: Likewise.
3502         * graphite-sese-to-poly.c: Likewise.
3503         * graphite.c: Likewise.
3504         * haifa-sched.c: Likewise.
3505         * hsa-gen.c: Likewise.
3506         * ifcvt.c: Likewise.
3507         * ipa-cp.c: Likewise.
3508         * ipa-fnsummary.c: Likewise.
3509         * ipa-inline-analysis.c: Likewise.
3510         * ipa-inline.c: Likewise.
3511         * ipa-polymorphic-call.c: Likewise.
3512         * ipa-profile.c: Likewise.
3513         * ipa-prop.c: Likewise.
3514         * ipa-split.c: Likewise.
3515         * ipa-sra.c: Likewise.
3516         * ira-build.c: Likewise.
3517         * ira-conflicts.c: Likewise.
3518         * loop-doloop.c: Likewise.
3519         * loop-invariant.c: Likewise.
3520         * loop-unroll.c: Likewise.
3521         * lra-assigns.c: Likewise.
3522         * lra-constraints.c: Likewise.
3523         * modulo-sched.c: Likewise.
3524         * opt-suggestions.c: Likewise.
3525         * opts.c: Likewise.
3526         * postreload-gcse.c: Likewise.
3527         * predict.c: Likewise.
3528         * reload.c: Likewise.
3529         * reorg.c: Likewise.
3530         * resource.c: Likewise.
3531         * sanopt.c: Likewise.
3532         * sched-deps.c: Likewise.
3533         * sched-ebb.c: Likewise.
3534         * sched-rgn.c: Likewise.
3535         * sel-sched-ir.c: Likewise.
3536         * sel-sched.c: Likewise.
3537         * shrink-wrap.c: Likewise.
3538         * stmt.c: Likewise.
3539         * targhooks.c: Likewise.
3540         * toplev.c: Likewise.
3541         * tracer.c: Likewise.
3542         * trans-mem.c: Likewise.
3543         * tree-chrec.c: Likewise.
3544         * tree-data-ref.c: Likewise.
3545         * tree-if-conv.c: Likewise.
3546         * tree-inline.c: Likewise.
3547         * tree-loop-distribution.c: Likewise.
3548         * tree-parloops.c: Likewise.
3549         * tree-predcom.c: Likewise.
3550         * tree-profile.c: Likewise.
3551         * tree-scalar-evolution.c: Likewise.
3552         * tree-sra.c: Likewise.
3553         * tree-ssa-ccp.c: Likewise.
3554         * tree-ssa-dom.c: Likewise.
3555         * tree-ssa-dse.c: Likewise.
3556         * tree-ssa-ifcombine.c: Likewise.
3557         * tree-ssa-loop-ch.c: Likewise.
3558         * tree-ssa-loop-im.c: Likewise.
3559         * tree-ssa-loop-ivcanon.c: Likewise.
3560         * tree-ssa-loop-ivopts.c: Likewise.
3561         * tree-ssa-loop-manip.c: Likewise.
3562         * tree-ssa-loop-niter.c: Likewise.
3563         * tree-ssa-loop-prefetch.c: Likewise.
3564         * tree-ssa-loop-unswitch.c: Likewise.
3565         * tree-ssa-math-opts.c: Likewise.
3566         * tree-ssa-phiopt.c: Likewise.
3567         * tree-ssa-pre.c: Likewise.
3568         * tree-ssa-reassoc.c: Likewise.
3569         * tree-ssa-sccvn.c: Likewise.
3570         * tree-ssa-scopedtables.c: Likewise.
3571         * tree-ssa-sink.c: Likewise.
3572         * tree-ssa-strlen.c: Likewise.
3573         * tree-ssa-structalias.c: Likewise.
3574         * tree-ssa-tail-merge.c: Likewise.
3575         * tree-ssa-threadbackward.c: Likewise.
3576         * tree-ssa-threadedge.c: Likewise.
3577         * tree-ssa-uninit.c: Likewise.
3578         * tree-switch-conversion.c: Likewise.
3579         * tree-vect-data-refs.c: Likewise.
3580         * tree-vect-loop.c: Likewise.
3581         * tree-vect-slp.c: Likewise.
3582         * tree-vrp.c: Likewise.
3583         * tree.c: Likewise.
3584         * value-prof.c: Likewise.
3585         * var-tracking.c: Likewise.
3587 2019-11-12  Martin Liska  <mliska@suse.cz>
3589         * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3590         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
3591         macro.
3592         (asan_sanitize_allocas_p): Likewise.
3593         (asan_emit_stack_protection): Likewise.
3594         (asan_protect_global): Likewise.
3595         (instrument_derefs): Likewise.
3596         (instrument_builtin_call): Likewise.
3597         (asan_expand_mark_ifn): Likewise.
3598         * auto-profile.c (auto_profile): Likewise.
3599         * bb-reorder.c (copy_bb_p): Likewise.
3600         (duplicate_computed_gotos): Likewise.
3601         * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3602         * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3603         (try_crossjump_bb): Likewise.
3604         * cfgexpand.c (defer_stack_allocation): Likewise.
3605         (stack_protect_classify_type): Likewise.
3606         (pass_expand::execute): Likewise.
3607         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3608         (estimate_reg_pressure_cost): Likewise.
3609         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3610         * combine.c (combine_instructions): Likewise.
3611         (record_value_for_reg): Likewise.
3612         * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3613         (aarch64_option_default_params): Likewise.
3614         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3615         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3616         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3617         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3618         * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3619         (aarch64_allocate_and_probe_stack_space): Likewise.
3620         (aarch64_expand_epilogue): Likewise.
3621         (aarch64_override_options_internal): Likewise.
3622         * config/alpha/alpha.c (alpha_option_override): Likewise.
3623         * config/arm/arm.c (arm_option_override): Likewise.
3624         (arm_valid_target_attribute_p): Likewise.
3625         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3626         * config/i386/i386.c (get_probe_interval): Likewise.
3627         (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3628         (ix86_max_noce_ifcvt_seq_cost): Likewise.
3629         * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3630         * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3631         (get_stack_clash_protection_guard_size): Likewise.
3632         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3633         * config/s390/s390.c (allocate_stack_space): Likewise.
3634         (s390_emit_prologue): Likewise.
3635         (s390_option_override_internal): Likewise.
3636         * config/sparc/sparc.c (sparc_option_override): Likewise.
3637         * config/visium/visium.c (visium_option_override): Likewise.
3638         * coverage.c (get_coverage_counts): Likewise.
3639         (coverage_compute_profile_id): Likewise.
3640         (coverage_begin_function): Likewise.
3641         (coverage_end_function): Likewise.
3642         * cse.c (cse_find_path): Likewise.
3643         (cse_extended_basic_block): Likewise.
3644         (cse_main): Likewise.
3645         * cselib.c (cselib_invalidate_mem): Likewise.
3646         * dse.c (dse_step1): Likewise.
3647         * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3648         (get_max_insn_count): Likewise.
3649         (make_debug_insn_raw): Likewise.
3650         (init_emit): Likewise.
3651         * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3652         * final.c (compute_alignments): Likewise.
3653         * fold-const.c (fold_range_test): Likewise.
3654         (fold_truth_andor): Likewise.
3655         (tree_single_nonnegative_warnv_p): Likewise.
3656         (integer_valued_real_single_p): Likewise.
3657         * gcse.c (want_to_gcse_p): Likewise.
3658         (prune_insertions_deletions): Likewise.
3659         (hoist_code): Likewise.
3660         (gcse_or_cprop_is_too_expensive): Likewise.
3661         * ggc-common.c: Likewise.
3662         * ggc-page.c (ggc_collect): Likewise.
3663         * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3664         (MAX_DATAREFS): Likewise.
3665         (OUTER_STRIDE_RATIO): Likewise.
3666         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3667         * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3668         * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3669         * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3670         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3671         (imm_store_chain_info::output_merged_store): Likewise.
3672         (pass_store_merging::process_store): Likewise.
3673         * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3674         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3675         (scop_to_isl_ast): Likewise.
3676         * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3677         (optimize_isl): Likewise.
3678         * graphite-scop-detection.c (build_scops): Likewise.
3679         * haifa-sched.c (set_modulo_params): Likewise.
3680         (rank_for_schedule): Likewise.
3681         (model_add_to_worklist): Likewise.
3682         (model_promote_insn): Likewise.
3683         (model_choose_insn): Likewise.
3684         (queue_to_ready): Likewise.
3685         (autopref_multipass_dfa_lookahead_guard): Likewise.
3686         (schedule_block): Likewise.
3687         (sched_init): Likewise.
3688         * hsa-gen.c (init_prologue): Likewise.
3689         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3690         (cond_move_process_if_block): Likewise.
3691         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3692         (merge_agg_lats_step): Likewise.
3693         (devirtualization_time_bonus): Likewise.
3694         (hint_time_bonus): Likewise.
3695         (incorporate_penalties): Likewise.
3696         (good_cloning_opportunity_p): Likewise.
3697         (ipcp_propagate_stage): Likewise.
3698         * ipa-fnsummary.c (decompose_param_expr): Likewise.
3699         (set_switch_stmt_execution_predicate): Likewise.
3700         (analyze_function_body): Likewise.
3701         (compute_fn_summary): Likewise.
3702         * ipa-inline-analysis.c (estimate_growth): Likewise.
3703         * ipa-inline.c (caller_growth_limits): Likewise.
3704         (inline_insns_single): Likewise.
3705         (inline_insns_auto): Likewise.
3706         (can_inline_edge_by_limits_p): Likewise.
3707         (want_early_inline_function_p): Likewise.
3708         (big_speedup_p): Likewise.
3709         (want_inline_small_function_p): Likewise.
3710         (want_inline_self_recursive_call_p): Likewise.
3711         (edge_badness): Likewise.
3712         (recursive_inlining): Likewise.
3713         (compute_max_insns): Likewise.
3714         (early_inliner): Likewise.
3715         * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3716         * ipa-profile.c (ipa_profile): Likewise.
3717         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3718         (ipa_analyze_node): Likewise.
3719         (ipcp_transform_function): Likewise.
3720         * ipa-split.c (consider_split): Likewise.
3721         * ipa-sra.c (allocate_access): Likewise.
3722         (process_scan_results): Likewise.
3723         (ipa_sra_summarize_function): Likewise.
3724         (pull_accesses_from_callee): Likewise.
3725         * ira-build.c (loop_compare_func): Likewise.
3726         (mark_loops_for_removal): Likewise.
3727         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3728         * loop-doloop.c (doloop_optimize): Likewise.
3729         * loop-invariant.c (gain_for_invariant): Likewise.
3730         (move_loop_invariants): Likewise.
3731         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3732         (decide_unroll_runtime_iterations): Likewise.
3733         (decide_unroll_stupid): Likewise.
3734         (expand_var_during_unrolling): Likewise.
3735         * lra-assigns.c (spill_for): Likewise.
3736         * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3737         * modulo-sched.c (sms_schedule): Likewise.
3738         (DFA_HISTORY): Likewise.
3739         * opts.c (default_options_optimization): Likewise.
3740         (finish_options): Likewise.
3741         (common_handle_option): Likewise.
3742         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3743         (if): Likewise.
3744         * predict.c (get_hot_bb_threshold): Likewise.
3745         (maybe_hot_count_p): Likewise.
3746         (probably_never_executed): Likewise.
3747         (predictable_edge_p): Likewise.
3748         (predict_loops): Likewise.
3749         (expr_expected_value_1): Likewise.
3750         (tree_predict_by_opcode): Likewise.
3751         (handle_missing_profiles): Likewise.
3752         * reload.c (find_equiv_reg): Likewise.
3753         * reorg.c (redundant_insn): Likewise.
3754         * resource.c (mark_target_live_regs): Likewise.
3755         (incr_ticks_for_insn): Likewise.
3756         * sanopt.c (pass_sanopt::execute): Likewise.
3757         * sched-deps.c (sched_analyze_1): Likewise.
3758         (sched_analyze_2): Likewise.
3759         (sched_analyze_insn): Likewise.
3760         (deps_analyze_insn): Likewise.
3761         * sched-ebb.c (schedule_ebbs): Likewise.
3762         * sched-rgn.c (find_single_block_region): Likewise.
3763         (too_large): Likewise.
3764         (haifa_find_rgns): Likewise.
3765         (extend_rgns): Likewise.
3766         (new_ready): Likewise.
3767         (schedule_region): Likewise.
3768         (sched_rgn_init): Likewise.
3769         * sel-sched-ir.c (make_region_from_loop): Likewise.
3770         * sel-sched-ir.h (MAX_WS): Likewise.
3771         * sel-sched.c (process_pipelined_exprs): Likewise.
3772         (sel_setup_region_sched_flags): Likewise.
3773         * shrink-wrap.c (try_shrink_wrapping): Likewise.
3774         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3775         * toplev.c (print_version): Likewise.
3776         (process_options): Likewise.
3777         * tracer.c (tail_duplicate): Likewise.
3778         * trans-mem.c (tm_log_add): Likewise.
3779         * tree-chrec.c (chrec_fold_plus_1): Likewise.
3780         * tree-data-ref.c (split_constant_offset): Likewise.
3781         (compute_all_dependences): Likewise.
3782         * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3783         * tree-inline.c (remap_gimple_stmt): Likewise.
3784         * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3785         * tree-parloops.c (MIN_PER_THREAD): Likewise.
3786         (create_parallel_loop): Likewise.
3787         * tree-predcom.c (determine_unroll_factor): Likewise.
3788         * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3789         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3790         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3791         * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3792         (dse_optimize_redundant_stores): Likewise.
3793         (dse_classify_store): Likewise.
3794         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3795         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3796         * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3797         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3798         (try_peel_loop): Likewise.
3799         (tree_unroll_loops_completely): Likewise.
3800         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3801         (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3802         (MAX_CONSIDERED_GROUPS): Likewise.
3803         (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3804         * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3805         * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3806         * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3807         (L1_CACHE_SIZE_BYTES): Likewise.
3808         (L2_CACHE_SIZE_BYTES): Likewise.
3809         (should_issue_prefetch_p): Likewise.
3810         (schedule_prefetches): Likewise.
3811         (determine_unroll_factor): Likewise.
3812         (volume_of_references): Likewise.
3813         (add_subscript_strides): Likewise.
3814         (self_reuse_distance): Likewise.
3815         (mem_ref_count_reasonable_p): Likewise.
3816         (insn_to_prefetch_ratio_too_small_p): Likewise.
3817         (loop_prefetch_arrays): Likewise.
3818         (tree_ssa_prefetch_arrays): Likewise.
3819         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3820         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3821         (convert_mult_to_fma): Likewise.
3822         (math_opts_dom_walker::after_dom_children): Likewise.
3823         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3824         (hoist_adjacent_loads): Likewise.
3825         (gate_hoist_loads): Likewise.
3826         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3827         (compute_partial_antic_aux): Likewise.
3828         * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3829         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3830         (vn_reference_lookup): Likewise.
3831         (do_rpo_vn): Likewise.
3832         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3833         * tree-ssa-sink.c (select_best_block): Likewise.
3834         * tree-ssa-strlen.c (new_stridx): Likewise.
3835         (new_addr_stridx): Likewise.
3836         (get_range_strlen_dynamic): Likewise.
3837         (class ssa_name_limit_t): Likewise.
3838         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3839         (create_variable_info_for_1): Likewise.
3840         (init_alias_vars): Likewise.
3841         * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3842         (tail_merge_optimize): Likewise.
3843         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3844         (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3845         (thread_jumps::find_jump_threads_backwards): Likewise.
3846         * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3847         * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3848         * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3849         (jump_table_cluster::can_be_handled): Likewise.
3850         * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3851         (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3852         (param_switch_conversion_branch_ratio): Likewise.
3853         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3854         (vect_enhance_data_refs_alignment): Likewise.
3855         (vect_prune_runtime_alias_test_list): Likewise.
3856         * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3857         (vect_get_datarefs_in_loop): Likewise.
3858         (vect_analyze_loop): Likewise.
3859         * tree-vect-slp.c (vect_slp_bb): Likewise.
3860         * tree-vectorizer.h: Likewise.
3861         * tree-vrp.c (find_switch_asserts): Likewise.
3862         (vrp_prop::check_mem_ref): Likewise.
3863         * tree.c (wide_int_to_tree_1): Likewise.
3864         (cache_integer_cst): Likewise.
3865         * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3866         (reverse_op): Likewise.
3867         (vt_find_locations): Likewise.
3869 2019-11-12  Martin Liska  <mliska@suse.cz>
3871         * Makefile.in: Include params.opt.
3872         * flag-types.h (enum parloops_schedule_type): Add
3873         parloops_schedule_type used in params.opt.
3874         * params.opt: New file.
3876 2019-11-12  Martin Liska  <mliska@suse.cz>
3878         * common.opt: Remove --param and --param= options.
3879         * opt-functions.awk: Mark CL_PARAMS for options
3880         that have Param keyword.
3881         * opts-common.c (decode_cmdline_options_to_array):
3882         Replace --param key=value with --param=key=value.
3883         * opts.c (print_filtered_help): Remove special
3884         printing of params.
3885         (print_specific_help): Update title for params.
3886         (common_handle_option): Do not handle OPT__param.
3887         opts.h (SET_OPTION_IF_UNSET): New macro.
3888         * doc/options.texi: Document Param keyword.
3890 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
3891             Frederik Harwath  <frederik@codesourcery.com>
3892             Thomas Schwinge  <thomas@codesourcery.com>
3894         gcc/
3895         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3896         enumeration constant.
3897         (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3898         (is_gimple_omp_offloaded): Likewise.
3899         * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3900         constant.  Adjust the value of ORT_NONE accordingly.
3901         (is_gimple_stmt): Handle OACC_SERIAL.
3902         (oacc_default_clause): Handle ORT_ACC_SERIAL.
3903         (gomp_needs_data_present): Likewise.
3904         (gimplify_adjust_omp_clauses): Likewise.
3905         (gimplify_omp_workshare): Handle OACC_SERIAL.
3906         (gimplify_expr): Likewise.
3907         * omp-expand.c (expand_omp_target):
3908         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3909         (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3910         * omp-low.c (is_oacc_parallel): Rename function to...
3911         (is_oacc_parallel_or_serial): ... this.
3912         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3913         (scan_sharing_clauses): Adjust accordingly.
3914         (scan_omp_for): Likewise.
3915         (lower_oacc_head_mark): Likewise.
3916         (convert_from_firstprivate_int): Likewise.
3917         (lower_omp_target): Likewise.
3918         (check_omp_nesting_restrictions): Handle
3919         GF_OMP_TARGET_KIND_OACC_SERIAL.
3920         (lower_oacc_reductions): Likewise.
3921         (lower_omp_target): Likewise.
3922         * tree.def (OACC_SERIAL): New tree code.
3923         * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3925         * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3927 2019-11-12  Jakub Jelinek  <jakub@redhat.com>
3929         PR target/92449
3930         * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3931         don't emit UNORDERED_EXPR guarded libcall.  Formatting fixes.
3933         PR tree-optimization/92452
3934         * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3935         into NULL_TREE, set up_bound to NULL_TREE instead of computing
3936         MINUS_EXPR on it.
3938 2019-11-12  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3940         * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3941         safelen with 0.
3943 2019-11-12  Alan Modra  <amodra@gmail.com>
3945         * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3946         element of unspec vec.
3947         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3948         PC-relative TLS.
3949         * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3950         (tls_gd_pcrel, tls_ld_pcrel): New insns.
3951         (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3952         (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3954 2019-11-12  Alan Modra  <amodra@gmail.com>
3956         * config/rs6000/rs6000.opt (mtls-markers): Delete.
3957         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3958         (IS_NOMARK_TLSGETADDR): Likewise.
3959         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3960         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3961         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3962         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3963         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3964         (rs6000_indirect_call_template_1): Likewise.
3965         (rs6000_pltseq_template): Likewise.
3966         (rs6000_opt_vars): Remove "tls-markers" entry.
3967         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3968         with TARGET_ELF.
3969         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3970         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3971         (pltseq_plt_pcrel<mode>): Likewise.
3972         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3973         (call_value_local64): Likewise.
3974         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3975         output and length attribute sub-expression.
3976         (call_value_nonlocal_sysv<mode>),
3977         (call_value_nonlocal_sysv_secure<mode>),
3978         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3979         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3980         (call_value_indirect_pcrel<mode>): Likewise.
3981         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3982         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3983         * configure: Regenerate.
3984         * config.in: Regenerate.
3986 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
3988         * config/rs6000/predicates.md (prefixed_memory): New predicate.
3989         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3990         address being a prefixed load/store.
3991         (stack_protect_testdi): Deal with either address being a prefixed
3992         load.
3994 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
3996         PR bootstrap/92433
3997         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3998         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
3999         std::swap.
4001 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
4003         PR tree-optimization/92420
4004         * tree-vect-stmts.c (get_negative_load_store_type): Move further
4005         up file.
4006         (get_group_load_store_type): Use it for reversed SLP accesses.
4008 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
4010         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4011         summary.
4012         (ipcp_transformation_t::duplicate): Break out from ...
4013         (ipa_node_params_t::duplicate): ... here; add copying of agg
4014         replacements.
4015         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4016         (ipcp_transformation_t): Add duplicate.
4018 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
4020         PR fortran/91828
4021         * doc/install.texi: Document that the minimum MPFR version is
4022         3.1.0.
4024 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
4026         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4027         use new register constraint letters.
4029 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
4031         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4032         as well, if interesting recover the symbol and re-legitimize the
4033         pic address.
4035 2019-11-11  Martin Liska  <mliska@suse.cz>
4037         * dbgcnt.def (DEBUG_COUNTER): Sort counters
4038         alphabetically.
4040 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4042         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4043         account when checking if there are enough iterations to vectorize
4044         epilogue.
4046 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4047             Kwok Cheung Yeung  <kcy@codesourcery.com>
4049         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4050         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4051         (LANG_HOOKS_DECLS): Rename also here.
4052         * langhooks.h (lang_hooks_for_decls): Rename
4053         omp_is_optional_argument to omp_check_optional_argument; take
4054         additional bool argument.
4055         * omp-general.h (omp_check_optional_argument): Likewise.
4056         * omp-general.h (omp_check_optional_argument): Likewise.
4057         * omp-low.c (lower_omp_target): Update calls; handle absent
4058         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4060 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
4062         PR target/87833
4063         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4064         -fPIC and -shared the last to create offload image.
4066 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4068         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4069         of 'offset'.
4071         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4072         (config.status): Use/depend on it.
4073         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4074         * configure: Regenerate.
4076 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
4078         PR tree-optimization/88760
4079         * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4080         * gcc/common/config/rs6000/rs6000-common.c
4081         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4082         Turn on -funroll-loops and -munroll-only-small-loops.
4083         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4084         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4085         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4086         Turn off -munroll-only-small-loops for explicit -funroll-loops.
4087         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4088         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
4090 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
4092         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4093         Make scalar_load, vector_load, unaligned_load and
4094         vector_gather_load cost more to conform hardware latency and
4095         insn cost settings.
4097 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
4099         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4100         (MACHO_SYMBOL_LINKER_VIS_P): New.
4102 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
4104         * lra-spills.c (assign_spill_hard_regs): Do not spill into
4105         registers in eliminable_regset.
4107 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4109         * ipa-inline.c (compute_uninlined_call_time,
4110         compute_inlined_call_time): Take edge frequency as
4111         parameter rather than computing it by itself.
4112         (big_speedup_p, edge_badness): Manually CSE sreal
4113         frequency calculations.
4115 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4117         * profile-count.c (profile_count::to_sreal_scale): Short circuit
4118         case where profiles are same.
4120 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4122         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4124 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
4126         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4127         args summaries of inlined edge unless it holds info about
4128         described reference.
4130 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
4132         * config/rs6000/rs6000.md (CC_any): New mode iterator.
4133         (*movcc_internal1): Rename to...
4134         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
4136 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4138         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4139         (cgraph_node::create_virtual_clone): Copy it.
4140         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4141         summaries.
4142         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4143         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4144         is disabled.
4145         (propagate_constants_across_call): If callee is not analyzed, give up.
4146         (propagate_constants_topo): Lower to bottom latties of all callees of
4147         functions with ipa-cp disabled.
4148         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4149         (cgraph_edge_brings_value_p): Check for availability first.
4150         (create_specialized_node): Set ipcp_clone.
4151         (ipcp_store_bits_results): Check that info is present.
4152         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4153         thunks.
4154         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4155         conservative when callee summary is missing.
4156         (remap_edge_summaries): Lookup call summary only when needed.
4157         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4158         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4159         Use get_create.
4160         (ipa_analyze_node): Use get_create.
4161         (propagate_controlled_uses): Do not propagate when function is not
4162         analyzed.
4163         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4164         (ipa_read_node_info): Use get_create.
4165         * ipa-prop.h (IPA_NODE_REF): Use get.
4166         (IPA_NODE_REF_GET_CREATE): New.
4168 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4170         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4171         on function symbol.
4173 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4175         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4176         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4177         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4178         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4180 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4182         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4183         capping the growth cumulated.
4184         (offline_size): Break out from ...
4185         (estimate_growth): ... here.
4186         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4187         parameters.
4188         (growth_likely_positive): Turn to ...
4189         (growth_positive_p): Re-implement.
4190         * ipa-inline.h (growth_likely_positive): Remove.
4191         (growth_positive_p): Declare.
4192         * ipa-inline.c (want_inline_small_function_p): Use
4193         growth_positive_p.
4194         (want_inline_function_to_all_callers_p): Likewise.
4196 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4198         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4199         calculation of min_size.
4200         (ipa_update_overall_fn_summary): Likewise.
4202 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
4204         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4205         estimate_edge_devirt_benefit when not computing hints;
4206         do not compute time when not asked for.
4207         (estimate_calls_size_and_time): Pass NULL hints and time when
4208         these are not computed; do not evaluate hint predicates when these are
4209         not computed.
4210         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4211         frequency.
4213 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
4215         PR tree-optimization/92401
4216         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4217         if res_op->code is an expression with code length 1.
4218         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4219         if res_op->code is an expression with code length 2.
4220         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4221         if res_op->code is an expression with code length 3.
4223 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
4225         * config/darwin.c (machopic_mcount_stub_name): Validate the
4226         symbol stub name when it is created.
4227         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4228         stub validation.
4230 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
4232         * symtab.c: Fix comment typos.
4233         * cgraphunit.c: Likewise.
4234         * cgraph.h: Likewise.
4235         * cgraphclones.c: Likewise.
4236         * cgraph.c: Likewise.
4237         * varpool.c: Likewise.
4238         * tree-ssa-strlen.c: Likewise.
4239         * ipa-sra.c: Likewise.
4240         (scan_expr_access, check_all_callers_for_issues): Fix typo
4241         in a dump message.
4243 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
4245         * config/darwin-protos.h: Add include quard.
4247 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
4249         * range-op.h (range_operator::fold_range): Return result in a
4250         reference parameter instead of by value.
4251         (range_operator::wi_fold): Same.
4252         * range-op.cc (range_operator::wi_fold): Return result in a reference
4253         parameter instead of by value.
4254         (range_operator::fold_range): Same.
4255         (value_range_from_overflowed_bounds): Same.
4256         (value_range_with_overflow): Same
4257         (create_possibly_reversed_range): Same.
4258         (operator_equal::fold_range): Same.
4259         (operator_not_equal::fold_range): Same.
4260         (operator_lt::fold_range): Same.
4261         (operator_le::fold_range): Same.
4262         (operator_gt::fold_range): Same.
4263         (operator_ge::fold_range): Same.
4264         (operator_plus::wi_fold): Same.
4265         (operator_plus::op1_range): Change call to fold_range.
4266         (operator_plus::op2_range): Change call to fold_range.
4267         (operator_minus::wi_fold): Return result via reference parameter.
4268         (operator_minus::op1_range): Change call to fold_range.
4269         (operator_minus::op2_range): Change call to fold_range.
4270         (operator_min::wi_fold): Return result via reference parameter.
4271         (operator_max::wi_fold): Same.
4272         (cross_product_operator::wi_cross_product): Same.
4273         (operator_mult::wi_fold): Same.
4274         (operator_div::wi_fold): Same.
4275         (operator_div op_floor_div): Fix whitespace.
4276         (operator_exact_divide::op1_range): Change call to fold_range.
4277         (operator_lshift::fold_range): Return result via reference parameter.
4278         (operator_lshift::wi_fold): Same.
4279         (operator_rshift::fold_range): Same.
4280         (operator_rshift::wi_fold): Same.
4281         (operator_cast::fold_range): Same.
4282         (operator_cast::op1_range): Change calls to fold_range.
4283         (operator_logical_and::fold_range): Return result via reference.
4284         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4285         (operator_bitwise_and::wi_fold): Return result via reference.
4286         (operator_logical_or::fold_range): Same.
4287         (operator_bitwise_or::wi_fold): Same.
4288         (operator_bitwise_xor::wi_fold): Same.
4289         (operator_trunc_mod::wi_fold): Same.
4290         (operator_logical_not::fold_range): Same.
4291         (operator_bitwise_not::fold_range): Same.
4292         (operator_bitwise_not::op1_range): Change call to fold_range.
4293         (operator_cst::fold_range): Return result via reference.
4294         (operator_identity::fold_range): Same.
4295         (operator_abs::wi_fold): Same.
4296         (operator_absu::wi_fold): Same.
4297         (operator_negate::fold_range): Same.
4298         (operator_negate::op1_range): Change call to fold_range.
4299         (operator_addr_expr::fold_range): Return result via reference.
4300         (operator_addr_expr::op1_range): Change call to fold_range.
4301         (operator_pointer_plus::wi_fold): Return result via reference.
4302         (operator_pointer_min_max::wi_fold): Same.
4303         (operator_pointer_and::wi_fold): Same.
4304         (operator_pointer_or::wi_fold): Same.
4305         (range_op_handler): Change call to fold_range.
4306         (range_cast): Same.
4307         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4308         fold_range.
4309         (range_fold_unary_symbolics_p): Same.
4310         (range_fold_binary_expr): Same.
4311         (range_fold_unary_expr): Same.
4313 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4315         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4316         vector type as an argument rather than reading it from the
4317         stmt_vec_info.
4318         (vect_create_epilog_for_reduction): Update accordingly.
4319         (vectorizable_reduction): Likewise.
4320         (vect_transform_cycle_phi): Likewise.
4322 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
4324         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4325         the comparison codes that make sense for the mode used, and only the
4326         codes that can be done with a single branch instruction.
4328 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4330         PR tree-optimization/92351
4331         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4332         peeling the main loop for alignment, make sure to set the misalignment
4333         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4335 2019-11-08  Richard Biener  <rguenther@suse.de>
4337         * dbgcnt.def (ivopts_loop): Add.
4338         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4339         ivopts_loop before optimizing a loop.
4341 2019-11-08  Richard Biener  <rguenther@suse.de>
4343         PR ipa/92409
4344         * tree-inline.c (declare_return_variable): Properly handle
4345         type mismatches for the return slot.
4347 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4349         PR target/92095
4350         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4351         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4352         change.
4353         (got_helper_needed): New static variable.
4354         (output_load_pcrel_sym): New function.
4355         (get_pc_thunk_name): Remove after inlining...
4356         (load_got_register): ...here.  Rework the initialization of the GOT
4357         register and of the GOT helper.
4358         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4359         (sparc_file_end): Test got_helper_needed to decide whether the GOT
4360         helper must be emitted.  Use output_asm_insn instead of fprintf.
4361         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4362         if optimization is enabled.
4363         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4364         by calling output_load_pcrel_sym.
4366 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4368         * tree-sra.c (create_access): Delay disqualifying the base
4369         for poly_int values until we know we have a base.
4371 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4373         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4374         for loops with SIMDUID set.  Enable epilogue vectorization for loops
4375         with SIMDLEN set after finding a main loop with a VF that matches it.
4377 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
4379         PR target/92038
4380         * gimple-ssa-store-merging.c (find_constituent_stores): For return
4381         value only, return non-NULL if there is a single non-clobber
4382         constituent store even if there are constituent clobbers and return
4383         one of clobber constituent stores if all constituent stores are
4384         clobbers.
4385         (split_group): Handle clobbers.
4386         (imm_store_chain_info::output_merged_store): When computing
4387         bzero_first, look after all clobbers at the start.  Don't count
4388         clobber stmts in orig_num_stmts, except if the first orig store is
4389         a clobber covering the whole area and split_stores cover the whole
4390         area, consider equal number of stmts ok.  Punt if split_stores
4391         contains only ->orig stores and their number plus number of original
4392         clobbers is equal to original number of stmts.  For ->orig, look past
4393         clobbers in the constituent stores.
4394         (imm_store_chain_info::output_merged_stores): Don't remove clobber
4395         stmts.
4396         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4397         rhs.
4398         (store_valid_for_store_merging_p): Allow clobber stmts.
4399         (verify_clear_bit_region_be): Fix up a thinko in function comment.
4401         PR c++/92384
4402         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4403         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4404         slot.
4405         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4406         force creation of a unique data.stack_parm slot.
4408 2019-11-08  Richard Biener  <rguenther@suse.de>
4410         * genmatch.c (expr::gen_transform): Use the resimplify
4411         member function instead of hard-coding the gimple_resimplifyN variant.
4412         (dt_simplify::gen_1): Likewise.
4414 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4416         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4417         POLY_INT_CST.
4419 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4421         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4422         instead of INTEGER_CST.
4424 2019-11-08  Richard Biener  <rguenther@suse.de>
4426         PR tree-optimization/92324
4427         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4428         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4429         sign-conversions as necessary.
4430         (vectorizable_reduction): Reject conversions in the chain
4431         that are not sign-conversions, base analysis on a non-converting
4432         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
4433         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4434         for debug stmts.
4435         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4436         (STMT_VINFO_REDUC_VECTYPE): Likewise.
4438 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
4440         PR target/92055
4441         * config/avr/avr.opt (-mdouble=, -mlong-double=):
4442         Fix a missing '-' when displaying these options in the
4443         help screen.
4445 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4447         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4449 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4451         * config/aarch64/aarch64-builtins.c
4452         (aarch64_builtin_vectorized_function): Remove bswap handling.
4454 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4456         * tree-core.h (tree_type_common::indivisible_p): New member variable.
4457         * tree.h (TYPE_INDIVISIBLE_P): New macro.
4458         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4459         Treat the vector types as indivisible.
4461 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4463         * optabs.def (gather_load_optab, mask_gather_load_optab)
4464         (scatter_store_optab, mask_scatter_store_optab): Turn into
4465         conversion optabs, with the offset mode given explicitly.
4466         * doc/md.texi: Update accordingly.
4467         * config/aarch64/aarch64-sve-builtins-base.cc
4468         (svld1_gather_impl::expand): Likewise.
4469         (svst1_scatter_impl::expand): Likewise.
4470         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4471         (expand_scatter_store_optab_fn): Likewise.
4472         (direct_gather_load_optab_supported_p): Likewise.
4473         (direct_scatter_store_optab_supported_p): Likewise.
4474         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
4475         to be argument 4.
4476         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4477         (internal_gather_scatter_fn_supported_p): Replace the offset sign
4478         argument with the offset vector type.  Require the two vector
4479         types to have the same number of elements but allow their element
4480         sizes to be different.  Treat the optabs as conversion optabs.
4481         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4482         prototype accordingly.
4483         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4484         (supports_vec_convert_optab_p): ...this new function.
4485         (supports_vec_gather_load_p): Update accordingly.
4486         (supports_vec_scatter_store_p): Likewise.
4487         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4488         Replace the offset sign and bits parameters with a scalar type tree.
4489         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4490         Pass back the offset vector type instead of the scalar element type.
4491         Allow the offset to be wider than the memory elements.  Search for
4492         an offset type that the target supports, stopping once we've
4493         reached the maximum of the element size and pointer size.
4494         Update call to internal_gather_scatter_fn_supported_p.
4495         (vect_check_gather_scatter): Update calls accordingly.
4496         When testing a new scale before knowing the final offset type,
4497         check whether the scale is supported for any signed or unsigned
4498         offset type.  Check whether the target supports the source and
4499         target types of a conversion before deciding whether to look
4500         through the conversion.  Record the chosen offset_vectype.
4501         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4502         (vect_recog_gather_scatter_pattern): Get the scalar offset type
4503         directly from the gs_info's offset_vectype instead.  Pass a zero
4504         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4505         * tree-vect-stmts.c (check_load_store_masking): Update call to
4506         internal_gather_scatter_fn_supported_p, passing the offset vector
4507         type recorded in the gs_info.
4508         (vect_truncate_gather_scatter_offset): Update call to
4509         vect_check_gather_scatter, leaving it to search for a valid
4510         offset vector type.
4511         (vect_use_strided_gather_scatters_p): Convert the offset to the
4512         element type of the gs_info's offset_vectype.
4513         (vect_get_gather_scatter_ops): Get the offset vector type directly
4514         from the gs_info.
4515         (vect_get_strided_load_store_ops): Likewise.
4516         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4517         and IFN_MASK_GATHER_LOAD.
4518         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4519         (gather_load<mode><v_int_equiv>): ...this.
4520         (mask_gather_load<mode>): Rename to...
4521         (mask_gather_load<mode><v_int_equiv>): ...this.
4522         (scatter_store<mode>): Rename to...
4523         (scatter_store<mode><v_int_equiv>): ...this.
4524         (mask_scatter_store<mode>): Rename to...
4525         (mask_scatter_store<mode><v_int_equiv>): ...this.
4527 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
4529         PR target/92132
4530         * config/rs6000/predicates.md
4531         (signed_or_equality_comparison_operator): New predicate.
4532         (unsigned_or_equality_comparison_operator): Likewise.
4533         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4534         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4535         * config/rs6000/vector.md
4536         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4537         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4538         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4539         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4540         vector modes and same-size integer vector modes.
4541         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4542         (vector_lt<mode> for VEC_F): New expand.
4543         (vector_le<mode> for VEC_F): Likewise.
4544         (vector_ne<mode> for VEC_F): Likewise.
4545         (vector_unge<mode> for VEC_F): Likewise.
4546         (vector_ungt<mode> for VEC_F): Likewise.
4547         (vector_unle<mode> for VEC_F): Likewise.
4548         (vector_unlt<mode> for VEC_F): Likewise.
4549         (vector_uneq<mode>): Expose name.
4550         (vector_ltgt<mode>): Likewise.
4551         (vector_unordered<mode>): Likewise.
4552         (vector_ordered<mode>): Likewise.
4554 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
4556         PR target/92295
4557         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4558         Enhance ix86_expand_vector_init_concat.
4560 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
4562         * doc/invoke.texi (-Wold-style-definition): Document () not being
4563         considered an old-style definition for C2x.
4565 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
4567         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4568         Enhance comment.
4569         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4570         insn patterns using ldcw instruction.
4571         (memory_barrier): Remove insn pattern using sync instruction.
4572         * config/pa/pa.opt (coherent-ldcw): New option.
4573         (ordered): New option.
4575 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4577         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4578         valid conditions.
4580 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
4582         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4583         typo - mistmatch -> mismatch.
4584         * ipa-profile.c (ipa_profile): Likewise.
4585         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4586         - mistmatch -> mismatch.
4588 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4590         * simplify-rtx.c (comparison_to_mask): New function.
4591         (mask_to_comparison): New function.
4592         (simplify_logical_relational_operation): New function.
4593         (simplify_binary_operation_1): Call
4594         simplify_logical_relational_operation.
4596 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
4598         PR other/92090
4599         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4600         modes for integer constants.
4602 2019-11-07  Jan Hubicka  <jh@suse.cz>
4604         PR ipa/92406
4605         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4606         summary.
4608 2019-11-07  Jan Hubicka  <jh@suse.cz>
4610         * optc-save-gen.awk: Generate cl_target_option_free
4611         and cl_optimization_option_free.
4612         * opth-en.awk: Declare cl_target_option_free
4613         and cl_optimization_option_free.
4614         * tree.c (free_node): Use it.
4616 2019-11-06  Jan Hubicka  <jh@suse.cz>
4618         * lto-streamer-in.c: Include alloc-pool.h.
4619         (freeing_string_slot_hasher): Remove.
4620         (string_slot_allocator): New object allocator.
4621         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4622         (file_name_obstack): New obstack.
4623         (canon_file_name): Allocate in obstack and allocator.
4624         (lto_reader_init): Initialize obstack and allocator.
4625         (lto_free_file_name_hash): New function.
4626         * lto-streamer.h (lto_free_file_name_hash): New.
4628 2019-11-07  Feng Xue  <fxue@os.amperecomputing.com>
4630         PR tree-optimization/89134
4631         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4632         * params.def: Add min-loop-cond-split-prob.
4633         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4634         outside checks on loop into the function.
4635         (split_info): New class.
4636         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4637         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4638         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4639         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4640         (stmt_semi_invariant_p, branch_removable_p): Likewise.
4641         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4642         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4643         (split_loop_on_cond): Likewise.
4644         (tree_ssa_split_loops): Add loop split on conditional statement.
4646 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
4648         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4649         pattern.
4651 2019-11-07  Richard Biener  <rguenther@suse.de>
4653         PR tree-optimization/92405
4654         * tree-vect-loop.c (vectorizable_reduction): Appropriately
4655         restrict lane-reducing ops to single stmt chains.
4657 2019-11-07  Martin Jambor  <mjambor@suse.cz>
4659         PR lto/70929
4660         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4661         * cgraph.h (gimple_check_call_matching_types): Remove
4662         * cgraph.c (gimple_check_call_args): Likewise.
4663         (gimple_check_call_matching_types): Likewise.
4664         (symbol_table::create_edge): Do not call
4665         gimple_check_call_matching_types.
4666         (cgraph_edge::make_direct): Likewise.
4667         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4668         * value-prof.h (check_ic_target): Remove.
4669         * value-prof.c (check_ic_target): Remove.
4670         (gimple_ic_transform): Do nat call check_ic_target.
4671         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4672         (afdo_indirect_call): Likewise.
4673         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4674         gimple_check_call_matching_types.
4675         * ipa-inline.c (early_inliner): Likewise.
4677 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4679         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4680         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4681         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4682         * config/arm/arm_acle_builtins.def: Define builtins for the above.
4683         * config/arm/iterators.md (USSAT16): New int_iterator.
4684         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4685         (sup): Likewise.
4686         * config/arm/predicates.md (ssat16_imm): New predicate.
4687         (usat16_imm): Likewise.
4688         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4690 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4692         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4693         New define_insns.
4694         (arm_<simd32_op>): New define_expands.
4695         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4696         __smuad, __smuadx): Define.
4697         * config/arm/arm_acle_builtins.def: Define builtins for the above.
4698         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4699         (SIMD32_BINOP_Q): Likewise.
4700         (simd32_op): Handle the above.
4701         * config/arm/unspecs.md: Define unspecs for the above.
4703 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4705         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4706         * config/arm/arm.md (APSRGE_REGNUM): Define.
4707         (arm_<simd32_op>): New define_insn.
4708         (arm_sel): Likewise.
4709         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4710         (CALL_USED_REGISTERS): Likewise.
4711         (REG_ALLOC_ORDER): Likewise.
4712         (FIRST_PSEUDO_REGISTER): Update value.
4713         (ARM_GE_BITS_READ): Define.
4714         * config/arm/arm.c (arm_conditional_register_usage): Clear
4715         APSRGE_REGNUM from operand_reg_set.
4716         (arm_ge_bits_access): Define.
4717         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4718         ARM_BUIILTIN_sel.
4719         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4720         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4721         FAIL if ARM_GE_BITS_READ.
4722         (*arm_add<mode>3): New define_insn.
4723         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
4724         (*arm_sub<mode>3): New define_insn.
4725         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4726         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4727         __usub16): Define.
4728         * config/arm/arm_acle_builtins.def: Define builtins for the above.
4729         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4730         (simd32_op): Handle the above.
4731         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4732         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4733         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4734         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4736 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4738         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4739         (arm_smlabb): New define_expand.
4740         (*maddhisi4tb): Rename to...
4741         (maddhisi4tb): ... This.
4742         (*maddhisi4tt): Rename to...
4743         (maddhisi4tt): ... This.
4744         (arm_smlatb_setq): New define_insn.
4745         (arm_smlatb): New define_expand.
4746         (arm_smlatt_setq): New define_insn.
4747         (arm_smlatt): New define_expand.
4748         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4749         (arm_<smlaw_op>): New define_expand.
4750         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4751         __smlawb, __smlawt): Define.
4752         * config/arm_acle_builtins.def: Define builtins for the above.
4753         * config/arm/iterators.md (SMLAWBT): New int_iterator.
4754         (slaw_op): New int_attribute.
4755         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4757 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4759         * config/arm/arm.md (arm_<ss_op>): New define_expand.
4760         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4761         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4762         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4763         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4764         (ss_op): New code_attr.
4766 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4768         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4769         * config/arm/arm.md (APSRQ_REGNUM): Define.
4770         (add_setq): New define_subst.
4771         (add_clobber_q_name): New define_subst_attr.
4772         (add_clobber_q_pred): Likewise.
4773         (maddhisi4): Change to define_expand.  Split into mult and add if
4774         ARM_Q_BIT_READ.
4775         (arm_maddhisi4): New define_insn.
4776         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4777         (*maddhisi4tt): Likewise.
4778         (arm_ssat): New define_expand.
4779         (arm_usat): Likewise.
4780         (arm_get_apsr): New define_insn.
4781         (arm_set_apsr): Likewise.
4782         (arm_saturation_occurred): New define_expand.
4783         (arm_set_saturation): Likewise.
4784         (*satsi_<SAT:code>): Rename to...
4785         (satsi_<SAT:code><add_clobber_q_name>): ... This.
4786         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4787         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4788         (CALL_USED_REGISTERS): Mark apsrq.
4789         (FIRST_PSEUDO_REGISTER): Update value.
4790         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4791         (machine_function): Add q_bit_access.
4792         (ARM_Q_BIT_READ): Define.
4793         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4794         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4795         operand_reg_set.
4796         (arm_q_bit_access): Define.
4797         * config/arm/arm-builtins.c: Include stringpool.h.
4798         (arm_sat_binop_imm_qualifiers,
4799         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4800         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4801         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4802         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4803         SET_SAT_QUALIFIERS): Likewise.
4804         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4805         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4806         Handle 0 argument expander.
4807         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4808         (arm_check_builtin_call): Define.
4809         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4810         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4811         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4812         (arm_q_bit_access): Likewise.
4813         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4814         __saturation_occurred, __set_saturation_occurred): Define.
4815         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4816         saturation_occurred, set_saturation_occurred.
4817         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4818         (UNSPEC_APSR_READ): Likewise.
4819         (VUNSPEC_APSR_WRITE): Likewise.
4820         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4821         (*arm_ssadd<mode>3): New define_insn.
4822         (sssub<mode>3): Convert to define_expand.
4823         (*arm_sssub<mode>3): New define_insn.
4824         (ssmulsa3): Convert to define_expand.
4825         (*arm_ssmulsa3): New define_insn.
4826         (usmulusa3): Convert to define_expand.
4827         (*arm_usmulusa3): New define_insn.
4828         (ssmulha3): FAIL if ARM_Q_BIT_READ.
4829         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4830         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4832 2019-11-07  Martin Liska  <mliska@suse.cz>
4834         PR c++/92354
4835         * cgraph.c (delete_function_version): Clear global
4836         variable version_info_node if equal to deleted
4837         function.
4839 2019-11-07  Martin Liska  <mliska@suse.cz>
4841         * fold-const.c (operand_compare::operand_equal_p): Add comparison
4842         of CONSTRUCTOR_NO_CLEARING.
4843         (operand_compare::hash_operand): Likewise.
4845 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
4847         Support 64-bit double and 64-bit long double configurations.
4849         PR target/92055
4850         * config.gcc (tm_defines) [avr]: Set from --with-double=,
4851         --with-long-double=.
4852         * config/avr/t-multilib: Remove.
4853         * config/avr/t-avr: Output of genmultilib.awk is now fully
4854         dynamically generated and no more part of the repo.
4855         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4856         Pass them down to...
4857         * config/avr/genmultilib.awk: ...here and handle them.
4858         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4859         (-mlong-double=, avr_long_double). New option and var.
4860         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4861         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4862         Set default as requested by --with-double=
4863         (TARGET_HANDLE_OPTION): Define to this...
4864         (avr_handle_option): ...new hook worker.
4865         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4866         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4867         (avr_double_lib): New proto for spec function.
4868         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4869         (DRIVER_SELF_SPECS): Call %:double-lib.
4870         * config/avr/avr.c (avr_option_override): Assert
4871         sizeof(long double) >= sizeof(double) for the target.
4872         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4873         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4874         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4875         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4876         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4877         New built-in define depending on --with-double=, --with-long-double=.
4878         * config/avr/driver-avr.c (avr_double_lib): New spec function.
4879         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4880         * doc/install.texi (Cross-Compiler-Specific Options)
4881         <--with-double=, --with-long-double=>: Doc.
4883 2019-11-07  Richard Biener  <rguenther@suse.de>
4885         * dbgcnt.def (gimple_unroll): New.
4886         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4887         gimple_unroll debug counter before applying transform.
4888         (try_peel_loop): Likewise.
4890 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
4892         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4893         frame pointer in multiple registers.
4894         (ira_setup_eliminable_regset): Setup eliminable_regset,
4895         ira_no_alloc_regs and regs_ever_live for frame pointer in
4896         multiple registers.
4898 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4900         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4901         V2DI modes.
4903 2019-11-06  Jan Hubicka  <jh@suse.cz>
4905         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4906         allocations.
4907         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4908         Do not silently ignore summary corruptions.
4910 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
4912         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4913         the epilogue if there are peeled iterations for it to handle.
4915 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
4917         * config/arc/arc.c (arc_split_ior): Add asserts.
4918         (arc_split_mov_const): Likewise.
4919         (arc_check_ior_const): Do not match known short immediate values.
4920         * config/arc/arc.md (movsi): Don't split predicated instructions
4921         (iorsi): Likewise.
4923 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
4925         * config/arc/arc.opt (mea): Update help string.
4926         * doc/invoke.texi(ARC): Update mea option info.
4928 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
4930         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4931         (zero_extendqisi2_ac): Likewise.
4932         (zero_extendhisi2_i): Likewise.
4933         (extendqihi2_i): Likewise.
4934         (extendqisi2_ac): Likewise.
4935         (extendhisi2_i): Likewise.
4937 2019-11-06  Richard Biener  <rguenther@suse.de>
4939         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4940         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4941         Simplify single_defuse_cycle condition.
4943 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
4945         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4946         epilogue loop, make sure that the VF is small enough or that
4947         the epilogue loop can be fully-masked.
4949 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
4951         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4952         loop when we've finished, rather than returning directly from
4953         the loop.  Use a local variable to track whether we're still
4954         searching for the preferred simdlen.  Make vect_epilogues
4955         record whether the next iteration should try to treat the
4956         loop as an epilogue.
4958 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
4960         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4961         __arc_hard_float__, __ARC_HARD_FLOAT__,
4962         __arc_soft_float__, __ARC_SOFT_FLOAT__
4964 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4966         PR tree-optimization/92317
4967         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4968         update phi's with constant phi arguments.
4970 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4971             Alexandre Oliva  <oliva@adacore.com>
4973         * common.opt (-fcallgraph-info[=]): New option.
4974         * doc/invoke.texi (Developer options): Document it.
4975         * opts.c (common_handle_option): Handle it.
4976         * builtins.c (expand_builtin_alloca): Record allocation if
4977         -fcallgraph-info=da.
4978         * calls.c (expand_call): If -fcallgraph-info, record the call.
4979         (emit_library_call_value_1): Likewise.
4980         * flag-types.h (enum callgraph_info_type): New type.
4981         * explow.c: Include stringpool.h.
4982         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4983         * function.c (allocate_stack_usage_info): New.
4984         (allocate_struct_function): Call it for -fcallgraph-info.
4985         (prepare_function_start): Call it otherwise.
4986         (record_final_call, record_dynamic_alloc): New.
4987         * function.h (struct callinfo_callee): New.
4988         (CALLEE_FROM_CGRAPH_P): New.
4989         (struct callinfo_dalloc): New.
4990         (struct stack_usage): Add callees and dallocs.
4991         (record_final_call, record_dynamic_alloc): Declare.
4992         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4993         object if -fcallgraph-info=da.
4994         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4995         * print-tree.h (print_decl_identifier): Declare.
4996         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4997         * print-tree.c: Include print-tree.h.
4998         (print_decl_identifier): New function.
4999         * toplev.c: Include print-tree.h.
5000         (callgraph_info_file): New global variable.
5001         (callgraph_info_external_printed): Likewise.
5002         (output_stack_usage): Rename to...
5003         (output_stack_usage_1): ... this.  Make it static, add cf
5004         parameter.  If -fcallgraph-info=su, print stack usage to cf.
5005         If -fstack-usage, use print_decl_identifier for
5006         pretty-printing.
5007         (INDIRECT_CALL_NAME): New.
5008         (dump_final_node_vcg_start): New.
5009         (dump_final_callee_vcg, dump_final_node_vcg): New.
5010         (output_stack_usage): New.
5011         (lang_dependent_init): Open and start file if
5012         -fcallgraph-info.  Allocated callgraph_info_external_printed.
5013         (finalize): If callgraph_info_file is not null, finish it,
5014         close it, and release callgraph_info_external_printed.
5016 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
5017             Frederik Harwath  <frederik@codesourcery.com>
5018             Thomas Schwinge  <thomas@codesourcery.com>
5020         * omp-low.c (struct omp_context): New fields
5021         local_reduction_clauses, outer_reduction_clauses.
5022         (new_omp_context): Initialize these.
5023         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5024         (scan_omp_for): Check reduction clauses for incorrect nesting.
5026 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
5028         PR inline-asm/92352
5029         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5030         operands with non-memory constraints.
5032 2019-11-05  Martin Sebor  <msebor@redhat.com>
5034         PR tree-optimization/92373
5035         * tree.c (component_ref_size): Only consider initializers of objects
5036         of matching struct types.
5037         Return null for instances of interior zero-length arrays.
5039 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
5041         * doc/md.texi (Insn Splitting): Fix combiner documentation.
5043 2019-11-05  Jason Merrill  <jason@redhat.com>
5045         PR tree-optimization/91825
5046         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5048 2019-11-05  Jim Wilson  <jimw@sifive.com>
5050         PR middle-end/92263
5051         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5052         optimize_insn_for_speed_p is true.
5054 2019-11-05  Martin Sebor  <msebor@redhat.com>
5056         PR middle-end/92333
5057         PR middle-end/82608
5058         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5059         size.
5060         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5061         name and location for a temporary variable.
5063 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5065         * tree-vrp.c (value_range::value_range): Fix whitespace.
5066         (defined_ranges_p): Same.
5067         (range_fold_binary_symbolics_p): Same.
5068         (value_range::intersect_helper): Same.
5069         (value_range::union_helper): Same.
5070         * tree-vrp.h (range_fold_binary_expr): Same.
5072 2019-11-04  Martin Sebor  <msebor@redhat.com>
5074         PR middle-end/92341
5075         PR middle-end/82612
5076         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5077         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5078         of message printed in a warning for empty arrays.
5079         (vrp_prop::check_mem_ref): Also handle function parameters and
5080         empty arrays.
5082 2019-11-05  Richard Biener  <rguenther@suse.de>
5084         PR tree-optimization/92371
5085         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5086         on the original stmt of live stmts in the chain.
5087         (vectorizable_live_operation): Look at the original stmt when
5088         checking STMT_VINFO_REDUC_DEF.
5090 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5092         * gimple-fold.c, gimple-loop-versioning.cc,
5093         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5094         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5095         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5096         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5097         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5098         value_range_equiv, and value_range_base to value_range.
5100 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
5102         * expr.c (build_personality_function): Fix generated type to
5103         match actual personality functions.
5105 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
5107         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5108         enough bytes for the NULL character.
5110 2019-11-05  Richard Biener  <rguenther@suse.de>
5112         PR tree-optimization/92280
5113         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5114         had a single use do not create a new CTOR.
5115         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5116         BIT_FIELD_REF of a CTOR via GENERIC.
5118 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
5120         * config/s390/s390.c (s390_vector_alignment): Check if the value
5121         fits into uhwi before using it.
5123 2019-11-05  Martin Liska  <mliska@suse.cz>
5125         * symbol-summary.h: Use ggc_delete.
5127 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
5129         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5130         Change vec_perm field to 10.
5132 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
5134         * doc/install.texi: Further fix syntax for html generation.
5136 2019-11-05  Martin Liska  <mliska@suse.cz>
5138         * symbol-summary.h: Rename allocator to m_allocator and
5139         add comment.
5141 2019-11-05  Richard Biener  <rguenther@suse.de>
5143         PR tree-optimization/92324
5144         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5145         all signed or unsigned operations.
5147 2019-11-05  Jan Hubicka  <jh@suse.cz>
5149         * hsa-brig.c: Include alloc-pool.h
5150         * hsa-dump.c: Likewise.
5151         * hsa-gen.c: Likewise.
5152         * hse-regalloc.c: Likewise.
5153         * ipa-hsa.c: Likewise.
5154         * ipa-predicate.c: Likewise.
5155         * ipa-reference.c: Likewise.
5156         * ipa-sra.c: Likewise.
5157         * omp-expand.c: Likewise.
5158         * omp-general.c: Likewise.
5159         * omp-low.c: Likewise.
5160         * sumbol-summary.h (function_summary_base): Add allocator.
5161         (function_summary<T *>::function_summary): Update construction.
5162         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5163         (call_summary_base): Add allcator.
5164         (call_summary<T *>::call_summary): Update construction.
5165         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5167 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
5169         PR tree-optimization/91945
5170         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5171         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5172         Formatting fix.
5174 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5176         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5177         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5178         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5179         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5180         (vrp_set_zero_nonzero_bits): Move to...
5181         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5182         (vr_values::simplify_bit_ops_using_ranges): Rename
5183         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5185 2019-11-05  Martin Liska  <mliska@suse.cz>
5187         PR c++/92339
5188         * fold-const.c (operand_compare::hash_operand): Remove
5189         FIELD_DECL handling.
5191 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5193         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5194         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5195         static.
5197 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
5199         * tree-vrp.c (value_range_base::operator==): Use equal_p to
5200         properly handle symbolics.
5201         (range_compatible_p): Remove.
5203 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
5205         * common.opt (-fabi-version): Document =14.
5206         * doc/invoke.texi (C++ Dialect Options): Likewise.
5208 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5210         * tree-vrp.c (value_range_base::set): Do not special case pointers.
5212 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
5214         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5215         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5216         gcn_omp_device_kind_arch_isa.
5217         * config/gcn/t-omp-device: New file.
5218         * configure.ac: Support gcn for omp_device_property.
5219         * configure: Regenerate.
5221 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5223         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5224         (vrp_val_max): Same.
5225         (vrp_val_is_min): Same.
5226         (vrp_val_is_max): Same.
5227         (value_range_base::nonzero_p): Remove last argument to
5228         vrp_val_is_max.
5229         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5230         (vrp_val_max): Same.
5231         (vrp_val_is_min): Same.
5232         (vrp_val_is_max): Same.
5233         (value_range_base::set_varying): Remove last argument to vrp_val*.
5234         (value_range_base::dump): Same.
5235         (value_range_base::set): Same.
5236         (value_range_base::normalize_symbolics): Same.
5237         (value_range_base::num_pairs): Same.
5238         (value_range_base::lower_bound): Same.
5239         (value_range_base::upper_bound): Same.
5240         (ranges_from_anti_range): Remove handle_pointers argument.
5241         (value_range_base::singleton_p): Remove last argument to
5242         ranges_from_anti_range.
5244 2019-11-04  Jan Hubicka  <jh@suse.cz>
5246         * ipa-reference.c (init_function_info): Initialize
5247         info->global.statics_read.
5249 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5251         * tree-vrp.c (value_range_base::invert): Use constructors to build
5252         range.
5254 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5256         * tree-vrp.c (range_int_cst_singleton_p): Remove.
5257         * tree-vrp.h (range_int_cst_singleton_p): Remove.
5259 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5261         * tree-vrp.c (value_range_base::normalize_addresses): Handle
5262         VR_UNDEFINED.
5264 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
5266         * tree-vrp.c (dump_assert_info): New.
5267         (dump_asserts_info): New.
5269 2019-11-04  Jan Hubicka  <jh@suse.cz>
5271         * ipa-inline-transform.c: Include ipa-utils.h
5272         (inline_call): Set thunk_expansion flag.
5273         * ipa-utils.h (thunk_expansion): Declare.
5274         * ipa-devirt.c (thunk_expansion): New global var.
5275         (devirt_node_removal_hook): Do not invalidate cache while
5276         doing thunk expansion.
5278 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
5280         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5282 2019-11-04  Martin Sebor  <msebor@redhat.com>
5284         PR tree-optimization/92349
5285         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5286         memebers have constant sizes.
5288 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5290         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5291         parameter.
5292         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5293         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5294         vect_analyze_loop.
5296 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
5298         * expr.c (store_constructor): Modify to handle single element vectors.
5299         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5300         constructors.
5301         (vect_slp_check_for_constructors): New function.
5302         (vect_slp_analyze_bb_1): Call new function to check for vector
5303         constructors.
5304         (vectorize_slp_instance_root_stmt): New function.
5305         (vect_schedule_slp): Call new function to vectorize root stmt of vector
5306         constructors.
5307         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5309 2019-11-04  Richard Biener  <rguenther@suse.de>
5311         PR tree-optimization/92345
5312         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5313         we produced a reduction chain.
5314         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5315         LOOP_VINFO_REDUCTIONS.
5317 2019-11-04  Jan Hubicka  <jh@suse.cz>
5319         * cgraphclones.c (cgraph_node::create_version_clone): Do not
5320         duplicate summaries.
5321         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5322         first.
5323         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5324         access call summaries.
5325         (dump_ipa_call_summary): Be ready for missing edge summaries.
5326         (analyze_function_body): Use get instead of get_create to access
5327         edge summary.
5328         (estimate_calls_size_and_time): Do not access summaries of
5329         inlined edges; sanity check they are missing.
5330         (ipa_call_context::estimate_size_and_time): Use get instead
5331         of get_create to access node summary.
5332         (inline_update_callee_summaries): Do not update depth of
5333         inlined edge.
5334         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5335         growth caches.
5336         (ipa_merge_fn_summary_after_inlining): Use get instead
5337         of get_create.
5338         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5339         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5340         fast summary.
5341         (initialize_growth_caches): Update.
5342         (do_estimate_edge_time): Remove redundant copy of context.
5343         (ipa_remove_from_growth_caches): New function.
5344         * ipa-inline.c (flatten_function): Update overall summary
5345         only when optimizing.
5346         (inline_to_all_callers): Update overall summary of function
5347         inlined to.
5348         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5349         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5350         to false.
5352 2019-11-04  Richard Biener  <rguenther@suse.de>
5354         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5355         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5357 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
5359         * ggc-common.c: Include system.h before malloc.h.
5361 2019-11-04  Alexandre Oliva <oliva@adacore.com>
5363         * configure.ac: Pass --enable-obsolete=* and
5364         --enable-option-checking=* down to build configure, and fail
5365         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
5366         * configure: Rebuild.
5367         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5368         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5370 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5372         * config.in: Regenerate.
5373         * config/msp430/msp430.c (msp430_option_override): Emit an error if
5374         -mtiny-printf is used without GCC being configured with
5375         --enable-newlib-nano-formatted-io.
5376         * config/msp430/msp430.h (LINK_SPEC): Pass 
5377         "--wrap puts --wrap printf" when -mtiny-printf is used.
5378         * config/msp430/msp430.opt: Document -mtiny-printf.
5379         * configure: Regenerate.
5380         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5381         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5382         --enable-newlib-nano-formatted-io is passed.
5383         * doc/invoke.texi: Document -mtiny-printf.
5385 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5387         * configure: Regenerate.
5389 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5391         * config/msp430/driver-msp430.c
5392         (msp430_get_linker_devices_include_path): New spec function.
5393         * config/msp430/msp430-devices.c (msp430_dirname): New function.
5394         (extract_devices_dir_from_exec_prefix): New function.
5395         (extract_devices_dir_from_collect_gcc): New function.
5396         (msp430_check_env_var_for_devices): New function.
5397         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5398         (parse_devices_csv): Call msp430_check_env_var_for_devices if
5399         devices.csv was not found using other methods.
5400         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5401         New prototype.
5402         (msp430_dirname): Likewise.
5403         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5404         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5405         msp430_get_linker_devices_include_path.
5406         (TARGET_EXTRA_PRE_INCLUDES): Define.
5407         * doc/invoke.texi: Document new ways of searching for support files.
5409 2019-11-04  Richard Biener  <rguenther@suse.de>
5411         PR tree-optimization/92301
5412         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5413         as required by epilogue generation
5415 2019-11-04  Martin Liska  <mliska@suse.cz>
5417         PR ipa/92304
5418         * fold-const.c (operand_compare::hash_operand): Fix field
5419         hashing of CONSTRUCTOR.
5421 2019-11-04  Martin Liska  <mliska@suse.cz>
5423         * ggc.h (ggc_delete): New function.
5424         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5425         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5426         (ipa_free_all_node_params): Likewise.
5427         * ipa-sra.c (ipa_sra_analysis): Likewise.
5429 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5431         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5432         set_switch_stmt_execution_predicate, compute_bb_predicates,
5433         will_be_nonconstant_expr_predicate,
5434         phi_result_unknown_predicate,
5435         analyze_function_body): Pass arround params summary.
5436         (ipa_call_context::duplicate_from): New comment;
5437         only duplicate useful values.
5438         (ipa_call_context::equal_to): Only compare useful values.
5439         (remap_edge_summaries): Pass params_summary.
5440         (remap_hint_predicate): Likewise.
5441         (ipa_merge_fn_summary_after_inlining): Likewise.
5442         (inline_read_section): Initialize params summary used flags.
5443         * ipa-predicate.c (predicate::remap_after_inlining): Pass
5444         around param_summary.
5445         (add_condition): Initialized used params summary flags.
5446         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5447         (inline_param_summary::useless_p): New predicate.
5448         (remap_after_inlining, add_condition): Update prototype
5449         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5450         move_cost.
5451         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5452         summaries.
5453         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5454         (ipa_analyze_virtual_call_uses): Likewise.
5455         (update_indirect_edges_after_inlining): Update param summaries.
5456         (ipa_print_node_params): Print used flags.
5457         (ipa_read_indirect_edge_info): Update param summareis.
5458         * ipa-prop.h (ipa_param_descriptor): Add
5459         used_by_ipa_predicates, used_by_indirect_call
5460         and used_by_polymorphic_call.
5461         (ipa_set_param_used_by_ipa_predicates,
5462         ipa_set_param_used_by_indirect_call,
5463         ipa_set_param_used_by_polymorphic_call,
5464         ipa_is_param_used_by_ipa_predicates,
5465         ipa_is_param_used_by_indirect_call,
5466         ipa_is_param_used_by_polymorphic_call): New inline functions.
5468 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5470         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5471         member function.
5472         (ipa_call_context::release): Add ALL parameter.
5473         (ipa_call_context::equal_to): New member function.
5474         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5475         duplicate_form, release, equal_to and exists_p member functoins.
5476         * ipa-inline-analysis.c (node_context_cache_entry): New
5477         class.
5478         (node_context_summary): Likewise.
5479         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5480         node_context_clear): New static vars.
5481         (initialize_growth_caches): New function.
5482         (free_growth_caches): Also delete node_context_cache; output stats.
5483         (do_estimate_edge_time): Cache contexts.
5484         (reset_node_cache): New function.
5485         * ipa-inline.c (reset_edge_caches): Reset also node cache.
5486         (inline_small_functions): Initialize growth caches.
5487         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5488         Declare.
5489         * ipa-predicate.h (inline_param_summary::equal_to): New.
5490         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5491         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5492         (ipa_agg_jump_function): Implement equal_to member function.
5494 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5496         * ipa-fnsummary.c (inline_read_section): Set vector size
5497         ahead of time.
5499 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5501         * ipa-fnsummary.c (ipa_call_context): New constructor.
5502         (estimate_node_size_and_time): Turn to ...
5503         (ipa_call_context::estimate_size_and_time): ... this one.
5504         (ipa_call_context::release): New.
5505         * ipa-fnsummary.h (ipa_call_context): New class.
5506         (estimate_node_size_and_time): Remove.
5507         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5508         do_estimate_edge_hints): Update.
5510 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
5512         * config.in: Regenerate.
5513         * configure: Regenerate.
5514         * configure.ac: Check for mallinfo.
5515         * ggc-common.c: Include malloc.h if available;
5516         include options.h
5517         (report_heap_memory_use): New functoin.
5518         * ggc-page.c (ggc_grow): Do not print "start".
5519         * ggc.h (report_heap_memory_use): Declare.
5520         * pases.c (execute_one_pass): Report memory after IPA passes.
5521         (ipa_read_summaries_1): Likewise.
5522         (ipa_read_optimization_summaries_1): Likewise.
5524 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
5526         * gimplify.h (omp_construct_selector_matches): Change return
5527         type to int, add a new SCORES argument.
5528         * gimplify.c (omp_construct_selector_matches): Likewise.  If
5529         SCORES is non-NULL, compute scores of each construct.
5530         * omp-general.h (omp_get_context_selector): Declare.
5531         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5532         Adjust omp_construct_selector_matches callers.
5533         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5534         (omp_context_compute_score): New function.
5535         (omp_resolve_declare_variant): Compute scores and decide based on
5536         that.
5538         PR bootstrap/92314
5539         * configure.ac: Don't look for omp-device-properties files from
5540         installed offloading compilers.  Instead add tmake_file snippets
5541         for configured offloading targets and use files they generate.
5542         * Makefile.in (install): Don't depend on
5543         install-omp-device-properties.
5544         (install-omp-device-properties): Remove goal.
5545         * config/i386/t-omp-device: New file.
5546         * config/i386/t-intelmic (omp-device-properties): Remove goal.
5547         * config/nvptx/t-omp-device: New file.
5548         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5549         * configure: Regenerated.
5551         * omp-general.h (omp_context_selector_set_compare): Declare.
5552         * omp-general.c (omp_construct_simd_compare,
5553         omp_context_selector_props_compare, omp_context_selector_set_compare,
5554         omp_context_selector_compare): New functions.
5555         (omp_resolve_declare_variant): Prune variants that are strict subset
5556         of another variant.
5558 2019-11-01  Martin Sebor  <msebor@redhat.com>
5560         PR middle-end/91679
5561         PR middle-end/91647
5562         PR middle-end/91463
5563         PR middle-end/92312
5564         * doc/invoke.texi (-Wzero-length-bounds): Document.
5565         * gimple-match-head.c (try_conditional_simplification): Use memcpy
5566         instead of a hand-rolled loop to avoid PR 92323.
5567         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5568         with initializers.
5569         (vrp_prop::check_mem_ref): Handle declared struct objects.
5570         * tree.c (last_field): New function.
5571         (array_at_struct_end_p): Handle MEM_REF.
5572         (get_initializer_for): New helper.
5573         (component_ref_size): Add argument.  Rename locals.  Call
5574         get_initializer_for instead of fold_ctor_reference.  Correct handling
5575         of flexible array members.
5576         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5578 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
5580         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5581         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5582         UNSPEC_VSX_CVSPUXDS): Remove.
5583         (vsx_xvcvspdp): New define_expand, old define_insn split to...
5584         (vsx_xvcvspdp_be): ... this.  New.  And...
5585         (vsx_xvcvspdp_le): ... this.  New.
5586         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5587         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
5588         (vsx_xvcv<su>xwdp_le): ... this.  New.
5589         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5590         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
5591         (vsx_xvcvsp<su>xds_le): ... this.  New.
5593 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
5595         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5596         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5597         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5598         UNSPEC_VSX_XVCVSPSXWS): Remove.
5599         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5600         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5602 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
5604         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5605         (UNSPEC_VSX_XVCDPSP): Remove.
5606         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5607         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5609 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
5611         * hooks.c (hook_tree_tree_bool_null): New.
5612         * hooks.h (hook_tree_tree_bool_null): Declare.
5613         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5614         (LANG_HOOKS_DECLS): Add it.
5615         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5616         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5617         (lower_omp_target): Handle Fortran array with descriptor in
5618         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5620 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
5622         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5623         Assert that the type we store in abi_vector_types is its own
5624         main variant.
5625         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5627 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
5629         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5630         from a CONST_INT address when TARGET_THUMB2.
5632 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
5634         * config/arm/arm.md (add_not_cin): New insn.
5635         (add_not_shift_cin): Likewise.
5637 2019-10-31  Martin Liska  <mliska@suse.cz>
5639         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5640         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5641         and compare_memory_operand.
5643 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
5645         * configure.ac: Compute and substitute omp_device_properties and
5646         omp_device_property_deps.
5647         * Makefile.in (generated_files): Add omp-device-properties.h.
5648         (omp-general.o): Depend on omp-device-properties.h.
5649         (omp_device_properties): New make variable.
5650         (omp-device-properties.h, s-omp-device-properties-h,
5651         install-omp-device-properties): New goals.
5652         (install): Depend on install-omp-device-properties for accelerators.
5653         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5654         * target.h (enum omp_device_kind_arch_isa): New enum.
5655         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5656         documentation.
5657         * omp-general.c: Include omp-device-properties.h.
5658         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5659         colon instead of comma.
5660         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5661         functions.
5662         (omp_context_selector_matches): Implement device set arch/isa
5663         selectors, improve device set kind selector handling.
5664         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5665         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5666         TARGET_SIMD_CLONE_USABLE): Formatting fix.
5667         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5668         ix86_omp_device_kind_arch_isa.
5669         * config/i386/i386-options.c (struct ix86_target_opts): Move type
5670         definition from ix86_target_string to file scope.
5671         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5672         to file scope.
5673         (ix86_omp_device_kind_arch_isa): New function.
5674         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5675         isa_opts definitions to file scope.
5676         * config/i386/t-intelmic (omp-device-properties): New goal.
5677         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5678         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5679         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5680         nvptx_omp_device_kind_arch_isa.
5681         * configure: Regenerate.
5682         * doc/tm.texi: Regenerate.
5684         PR middle-end/92231
5685         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5686         DECL_BUILT_IN in comment.  Remove redundant ()s around return
5687         argument.
5688         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5689         before calling fndecl_built_in_p.
5690         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5691         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5692         fndecl_built_in_p on it.
5694 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5696         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5698 2019-10-31  Martin Liska  <mliska@suse.cz>
5700         * config/arm/arm.c (arm_get_pcs_model): Remove usage
5701         of cgraph_local_info and use local_info_node instead.
5702         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5703         (bfin_function_ok_for_sibcall): Likewise.
5704         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5705         (must_reload_pic_reg_p): Likewise.
5707 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
5709         PR c++/90947
5710         * tree.h (type_initializer_zero_p): Remove.
5711         * tree.c (type_initializer_zero_p): Remove.
5713 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5715         * doc/invoke.texi (-Wshadow, -Wshadow=global
5716         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5718 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
5720         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5721         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5722         and 'target exit data'.
5724 2019-10-30  Martin Jambor  <mjambor@suse.cz>
5726         ipa/92278
5727         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5728         availability comparison.
5730 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5732         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5733         calls to __mspabi_mpy* functions.
5734         * config/msp430/msp430.md (mulhisi3): New define_expand.
5735         (umulhisi3): New define_expand.
5736         (*mulhisi3_inline): Use old mulhisi3 define_insn.
5737         (*umulhisi3_inline): Use old umulhisi3 define_insn.
5739 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5741         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5742         (msp430_check_plus_not_high_mem): New.
5743         (msp430_op_not_in_high_mem): Use new functions to check if the operand
5744         might be in low memory.
5745         Indicate that a 16-bit absolute address is in lower memory.
5747 2019-10-30  Martin Jambor  <mjambor@suse.cz>
5749         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5750         ultimate_alias_target.
5752 2019-10-30  Richard Biener  <rguenther@suse.de>
5754         PR tree-optimization/92275
5755         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5756         Copy all loop-closed PHIs.
5758 2019-10-30  Martin Liska  <mliska@suse.cz>
5760         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5761         const_tree as function argument.
5762         (func_checker::compare_decl): Likewise.
5763         (func_checker::operand_equal_p): Likewise.
5764         (func_checker::compare_variable_decl): Likewise.
5765         (func_checker::parse_labels): Likewise.
5766         * ipa-icf-gimple.h: Likewise.
5768 2019-10-30  Martin Liska  <mliska@suse.cz>
5770         * ipa-icf-gimple.c (func_checker::compatible_types_p):
5771         Do not compare alias sets.  It's handled by operand_equal_p.
5773 2019-10-30  Martin Liska  <mliska@suse.cz>
5775         * ipa-icf-gimple.c (func_checker::func_checker): Do not
5776         initialize m_compare_polymorphic.
5777         (func_checker::compare_decl): Do not compare polymorphic types.
5778         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5779         * ipa-icf.c (sem_function::equals_private): Do not call
5780         compare_polymorphic_p.
5782 2019-10-30  Martin Liska  <mliska@suse.cz>
5784         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5785         compare_operand.
5786         (func_checker::compare_memory_operand): Remove.
5787         (func_checker::compare_cst_or_decl): Remove.
5788         (func_checker::operand_equal_valueize): Do not handle
5789         FIELD_DECL.
5790         (func_checker::compare_gimple_call): Call compare_operand.
5791         (func_checker::compare_gimple_assign): Likewise.
5792         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5793         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5794         * ipa-icf.h (icf_handled_component_p): Remove.
5796 2019-10-30  Martin Liska  <mliska@suse.cz>
5798         * ipa-icf-gimple.c (func_checker::hash_operand): New.
5799         (func_checker::compare_cst_or_decl): Remove handling
5800         of FIELD_DECL.
5801         (func_checker::compare_operand): Transform to ...
5802         (func_checker::operand_equal_p): ... this.
5803         * ipa-icf-gimple.h (class func_checker): Add
5804         operand_equal_p and hash_operand.
5805         * ipa-icf.c (sem_function::equals_private): Fix
5806         pushing and popping of cfun.
5808 2019-10-30  Martin Liska  <mliska@suse.cz>
5810         * fold-const.c (operand_equal_p): Move to ...
5811         (operand_compare::operand_equal_p): ... here.
5812         (operand_compare::verify_hash_value): New.
5813         (add_expr): Move to ...
5814         (operand_compare::hash_operand): ... here.
5815         * fold-const.h (operand_equal_p): Move to the class.
5816         (class operand_compare): New.
5817         * tree.c (add_expr): Remove.
5819 2019-10-30  Martin Liska  <mliska@suse.cz>
5821         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5822         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5824 2019-10-30  Martin Liska  <mliska@suse.cz>
5826         PR lto/91393
5827         PR lto/88220
5828         * cgraph.c (cgraph_node::get_create): Overwrite node->order
5829         from a first_clone in order to get proper LTO section
5830         in LTO stream.
5831         (cgraph_node::get_untransformed_body):
5832         Use lto_get_section_data where symtab_node::order
5833         must be provided.
5834         * cgraphclones.c (cgraph_node::find_replacement):
5835         Update also symbol order.
5836         * ipa-fnsummary.c (ipa_fn_summary_read):
5837         Use new function lto_get_summary_section_data.
5838         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5839         * ipa-icf.c (sem_item_optimizer::read_summary):
5840         Likewise.
5841         * ipa-prop.c (ipa_prop_read_jump_functions):
5842         Likewise.
5843         (ipcp_read_transformation_summaries): Likewise.
5844         * ipa-sra.c (ipa_sra_read_summary): Likewise.
5845         * lto-cgraph.c (input_node): Add also order_base.
5846         (input_varpool_node): Likewise.
5847         (input_cgraph_1): Assign the order_base.
5848         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5849         * lto-opts.c (lto_write_options): Pass new argument.
5850         * lto-section-in.c (lto_get_section_data): Add new argumente order.
5851         (lto_get_summary_section_data): New.
5852         (lto_get_raw_section_data): Add order argument.
5853         (lto_create_simple_input_block): Likewise.
5854         * lto-section-out.c (lto_destroy_simple_output_block):
5855         Likewise.
5856         * lto-streamer-in.c (lto_input_toplevel_asms):
5857         Use lto_get_summary_section_data.
5858         (lto_input_mode_table): Likewise.
5859         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5860         (lto_output_toplevel_asms): Pass new argument.
5861         (copy_function_or_variable): Likewise.
5862         (produce_lto_section):Likewise.
5863         (produce_symtab): Likewise.
5864         (lto_write_mode_table): Likewise.
5865         (produce_asm_for_decls): Likewise.
5866         * lto-streamer.c (lto_get_section_name): Concat symbol name
5867         and symbol order.
5868         * lto-streamer.h (lto_get_section_data): Add order argument.
5869         (lto_get_summary_section_data): New.
5870         (lto_get_raw_section_data): Add order argument.
5871         (lto_get_section_name): Likewise.
5872         * varpool.c (varpool_node::get_constructor): Pass order argument.
5874 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
5876         PR tree-optimization/92262
5877         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5878         ubase or cbase here.
5879         (remove_unused_ivs): Unshare comp before using it.
5881 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
5883         * ipa-prop.c (update_jump_functions_after_inlining):
5884         Watch for missing summaries.
5886 2019-10-30  Richard Biener  <rguenther@suse.de>
5888         PR tree-optimization/65930
5889         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5890         chains also allow a leading and trailing conversion.
5891         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5892         intermediate reduction chains.
5893         (vect_analyze_slp_instance): Likewise.  Build a SLP
5894         node for a trailing conversion manually.
5896 2019-10-30  Martin Liska  <mliska@suse.cz>
5898         * cgraph.c (cgraph_node::local_info): Transform to ...
5899         (cgraph_node::local_info_node): ... this.
5900         (cgraph_node::dump): Remove cgraph_local_info and
5901         put its fields directly into cgraph_node.
5902         (cgraph_node::get_availability): Likewise.
5903         (cgraph_node::make_local): Likewise.
5904         (cgraph_node::verify_node): Likewise.
5905         * cgraph.h (struct GTY): Likewise.
5906         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5907         (duplicate_thunk_for_node): Likewise.
5908         (cgraph_node::create_clone): Likewise.
5909         (cgraph_node::create_virtual_clone): Likewise.
5910         (cgraph_node::create_version_clone): Likewise.
5911         * cgraphunit.c (cgraph_node::reset): Likewise.
5912         (cgraph_node::finalize_function): Likewise.
5913         (cgraph_node::add_new_function): Likewise.
5914         (analyze_functions): Likewise.
5915         * combine.c (setup_incoming_promotions): Likewise.
5916         * config/i386/i386.c (ix86_function_regparm): Likewise.
5917         (ix86_function_sseregparm): Likewise.
5918         (init_cumulative_args): Likewise.
5919         * ipa-cp.c (determine_versionability): Likewise.
5920         (count_callers): Likewise.
5921         (set_single_call_flag): Likewise.
5922         (initialize_node_lattices): Likewise.
5923         (estimate_local_effects): Likewise.
5924         (create_specialized_node): Likewise.
5925         (identify_dead_nodes): Likewise.
5926         * ipa-fnsummary.c (compute_fn_summary): Likewise.
5927         (ipa_fn_summary_generate): Likewise.
5928         * ipa-hsa.c (check_warn_node_versionable): Likewise.
5929         (process_hsa_functions): Likewise.
5930         * ipa-icf.c (set_local): Likewise.
5931         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5932         * ipa-inline.c (speculation_useful_p): Likewise.
5933         * ipa-profile.c (ipa_propagate_frequency): Likewise.
5934         (ipa_profile): Likewise.
5935         * ipa-split.c (split_function): Likewise.
5936         (execute_split_functions): Likewise.
5937         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5938         (ipa_sra_ipa_function_checks): Likewise.
5939         * ipa-visibility.c (function_and_variable_visibility): Likewise.
5940         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5941         * lto-cgraph.c (lto_output_node): Likewise.
5942         (input_overwrite_node): Likewise.
5943         * multiple_target.c (expand_target_clones): Likewise.
5944         * omp-simd-clone.c (simd_clone_create): Likewise.
5945         * trans-mem.c (expand_call_tm): Likewise.
5946         (ipa_tm_mayenterirr_function): Likewise.
5947         (ipa_tm_diagnose_tm_safe): Likewise.
5948         (ipa_tm_diagnose_transaction): Likewise.
5949         (ipa_tm_create_version): Likewise.
5950         (ipa_tm_transform_calls_redirect): Likewise.
5951         (ipa_tm_execute): Likewise.
5952         * tree-inline.c (expand_call_inline): Likewise.
5954 2019-10-29  Martin Liska  <mliska@suse.cz>
5956         * symbol-summary.h (function_summary): Pass memory location
5957         to underlaying hash_map (or vec).
5958         (V>::fast_function_summary): Likewise.
5960 2019-10-29  Martin Liska  <mliska@suse.cz>
5962         * ggc.h (ggc_alloc_no_dtor): New function.
5963         * ipa-fnsummary.c (ipa_free_fn_summary): Call
5964         destructor and ggc_free.
5965         (ipa_free_size_summary): Call delete instead
5966         of release.
5967         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5968         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5969         (ipa_free_all_edge_args): Call destructor and ggc_free.
5970         (ipa_free_all_node_params): Likewise.
5971         (ipcp_free_transformation_sum): Likewise.
5972         * ipa-prop.h (ipa_check_create_node_params):
5973         Call new ggc_alloc_no_dtor.
5974         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5975         (ipa_sra_analysis): Call destructor and ggc_free.
5976         Replace release with delete operator.
5977         * symbol-summary.h (release): Remove ..
5978         (V>::~fast_function_summary): and move logic here.
5979         Likewise for other classes.
5981 2019-10-29  Richard Biener  <rguenther@suse.de>
5983         PR tree-optimization/92260
5984         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5985         lane-reducing ops.
5987 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5989         PR tree-optimization/88915
5990         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5991         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5992         and make the valueize function pointer also take a void pointer.
5993         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5994         around vn_valueize, to call it without a context.
5995         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5996         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5997         (~_loop_vec_info): Release epilogue_vinfos.
5998         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5999         number of iterations of epilogue.
6000         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6001         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
6002         versioning threshold needed for main loop.
6003         (vect_analyze_loop): Likewise.
6004         (find_in_mapping): New helper function.
6005         (update_epilogue_loop_vinfo): New function.
6006         (vect_transform_loop): When vectorizing epilogues re-use analysis done
6007         on main loop and call update_epilogue_loop_vinfo to update it.
6008         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6009         stmts on loop preheader edge.
6010         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6011         we decided to vectorize epilogues.  Update epilogues NITERS and
6012         construct ADVANCE to update epilogues data references where needed.
6013         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6014         (vect_do_peeling, vect_update_inits_of_drs,
6015          determine_peel_for_niter, vect_analyze_loop): Add or update
6016         declarations.
6017         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6018         created loop_vec_info's for epilogues when available.  Otherwise analyse
6019         epilogue separately.
6021 2019-10-29  Richard Biener  <rguenther@suse.de>
6023         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6024         example.
6026 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6028         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6029         index for the COND_EXPR from stmt_info rather than reduc_info.
6031 2019-10-29  Richard Biener  <rguenther@suse.de>
6033         PR tree-optimization/65930
6034         * tree-vect-loop.c (check_reduction_path): Relax single-use
6035         check allowing out-of-loop uses.
6036         (vect_is_simple_reduction): SLP reduction chains cannot have
6037         intermediate stmts used outside of the loop.
6038         (vect_create_epilog_for_reduction): The adjustment might need
6039         to be converted.
6040         (vectorizable_reduction): Annotate live stmts of the reduction
6041         chain with STMT_VINFO_REDUC_DEF.
6042         * tree-vect-stms.c (process_use): Remove no longer true asserts.
6044 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6046         * calls.c (pass_by_reference): Leave the target to decide whether
6047         POLY_INT_CST-sized arguments should be passed by value or reference,
6048         rather than forcing them to be passed by reference.
6049         (must_pass_in_stack_var_size): Likewise.
6050         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6051         V31_REGNUM to P15_REGNUM.
6052         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6053         Take an extra "silent_p" parameter, defaulting to false.
6054         (aarch64_sve::svbool_type_p): Declare.
6055         (aarch64_sve::nvectors_if_data_type): Likewise.
6056         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6057         (aarch64_frame::reg_offset): Turn into poly_int64s.
6058         (aarch64_frame::save_regs_size): Likewise.
6059         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6060         (aarch64_frame::sve_callee_adjust): Likewise.
6061         (aarch64_frame::spare_reg_reg): Likewise.
6062         (ARM_PCS_SVE): New arm_pcs value.
6063         (CUMULATIVE_ARGS::aapcs_nprn): New field.
6064         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6065         (CUMULATIVE_ARGS::silent_p): Likewise.
6066         (BITS_PER_SVE_PRED): New macro.
6067         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6068         function.  Reject aarch64_vector_pcs attributes on SVE functions.
6069         (aarch64_attribute_table): Use the above handler.
6070         (aarch64_sve_abi): New function.
6071         (aarch64_sve_argument_p): Likewise.
6072         (aarch64_returns_value_in_sve_regs_p): Likewise.
6073         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6074         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6075         descriptor for them.
6076         (aarch64_simd_decl_p): Delete.
6077         (aarch64_emit_cfi_for_reg_p): New function.
6078         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6079         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
6080         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6081         as partly clobbered for the SVE PCS.
6082         (aarch64_function_ok_for_sibcall): Check whether the two functions
6083         use the same ABI, rather than checking specifically for whether
6084         they're aarch64_vector_pcs functions.
6085         (aarch64_pass_by_reference): Raise an error for attempts to pass
6086         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
6087         if there are not enough free registers left, or if the argument is
6088         variadic.
6089         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6090         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6091         tuples in memory.
6092         (aarch64_layout_arg): Take a function_arg_info rather than
6093         individual properties.  Handle SVE predicates, vectors and tuples.
6094         Raise an error if they are passed to unprototyped functions.
6095         (aarch64_function_arg): If the silent_p flag is set, suppress the
6096         usual error about using float registers without TARGET_FLOAT.
6097         (aarch64_init_cumulative_args): Take a silent_p parameter and store
6098         it in the cumulative_args structure.  Initialize aapcs_nprn and
6099         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
6100         error about using float registers without TARGET_FLOAT.
6101         If the silent_p flag is not set, also raise an error about
6102         using SVE functions when SVE is disabled.
6103         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6104         and call it for SVE functions too.  Update aapcs_nprn similarly
6105         to the other register counts.
6106         (aarch64_layout_frame): If a big-endian function needs to save
6107         and restore Z8-Z15, search for a spare predicate that it can use.
6108         Store SVE predicates at the bottom of the register save area,
6109         followed by SVE vectors, then followed by the normal slots.
6110         Keep pointing the hard frame pointer at the base of the normal slots,
6111         above the SVE vectors.  Update the various frame creation and
6112         tear-down strategies for the new layout, initializing the new
6113         sve_callee_adjust field.  Add an additional layout for frames
6114         whose saved registers are all SVE registers.
6115         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6116         (aarch64_return_address_signing_enabled): Likewise.
6117         (aarch64_push_regs, aarch64_pop_regs): Update calls to
6118         aarch64_reg_save_mode.
6119         (aarch64_adjust_sve_callee_save_base): New function.
6120         (aarch64_add_cfa_expression): Move earlier in file.  Take the
6121         saved register as an rtx rather than a register number and use
6122         its mode for the MEM slot.
6123         (aarch64_save_callee_saves): Remove the mode argument and instead
6124         use aarch64_reg_save_mode to get the mode of each save slot.
6125         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
6126         offsets.  Allow GP offsets to be saved at a VL-based offset from
6127         the stack, handling this case using the frame pointer if available
6128         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
6129         big-endian SVE functions; use normal moves for other SVE saves.
6130         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6131         returns true.  Add explicit CFA notes when not storing via the
6132         stack pointer.  Do not try to pair SVE saves.
6133         (aarch64_restore_callee_saves): Cope with poly_int64 register
6134         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6135         use normal moves for other SVE restores.  Only add CFA restore notes
6136         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
6137         SVE restores.
6138         (aarch64_get_separate_components): Always keep the first SVE save
6139         in the prologue if we need to use it as a stack probe.  Don't allow
6140         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6141         Likewise the spare predicate register that they need.  Update the
6142         offset calculation to account for the SVE save area.  Use the
6143         appropriate range check for SVE LDR and STR instructions.
6144         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6145         (aarch64_process_components): Likewise.  Update the offset
6146         calculation to account for the SVE save area.  Only mark the
6147         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6148         Do not try to pair SVE saves.
6149         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6150         reg_offsets.  When handling the final allocation, expect the
6151         first SVE register save to be part of the initial allocation
6152         and for it to act as a probe at SP.  Account for the SVE callee
6153         save area in the dump information.
6154         (aarch64_expand_prologue): Update the frame diagram.  Fold the
6155         SVE callee allocation into the initial allocation if stack clash
6156         protection is enabled.  Use new variables to track the offset
6157         of the frame chain (and hard frame pointer) from the current
6158         stack pointer, and likewise the offset of the bottom of the
6159         register save area.  Update calls to aarch64_save_callee_saves
6160         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
6161         saving the FP&SIMD registers.  Save the predicate registers.
6162         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6163         into account when setting the stack pointer from the frame pointer,
6164         and when deciding whether we can inherit the initial adjustment
6165         amount from the prologue.  Restore the predicate registers after
6166         the vector registers, then apply sve_callee_adjust, then restore
6167         the general registers.
6168         (aarch64_secondary_reload): Don't use secondary SVE reloads
6169         for VNx16BImode.
6170         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6171         (aarch64_short_vector_p): Return false for SVE types.
6172         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6173         at the start of the function.  Return false for SVE types.
6174         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6175         functions too.
6176         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6177         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6178         to big-endian targets for bytewise moves.
6179         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6181 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6182             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6183             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6185         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6186         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6187         aarch64-sve-builtins-base.o to extra_objs.  Add
6188         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6189         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6190         (aarch64-sve-builtins-shapes.o): Likewise.
6191         (aarch64-sve-builtins-base.o): New rules.
6192         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6193         (aarch64_resolve_overloaded_builtin): Likewise.
6194         (aarch64_check_builtin_call): Likewise.
6195         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6196         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
6197         pragma.
6198         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6199         (aarch64_svprfop): New enum.
6200         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6201         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6202         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6203         (aarch64_output_sve_cnt_pat_immediate): Likewise.
6204         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6205         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6206         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6207         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6208         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6209         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6210         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6211         (aarch64_sve::mangle_builtin_type): Likewise.
6212         (aarch64_sve::resolve_overloaded_builtin): Likewise.
6213         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6214         (aarch64_sve::expand_builtin): Likewise.
6215         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6216         (aarch64_sve_int_mode): Likewise.
6217         (aarch64_ptrue_all_mode): New function.
6218         (aarch64_convert_sve_data_to_pred): Make public.
6219         (svprfop_token): New function.
6220         (aarch64_output_sve_prefetch): Likewise.
6221         (aarch64_fold_sve_cnt_pat): Likewise.
6222         (aarch64_output_sve_cnt_pat_immediate): Likewise.
6223         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6224         instead of gen_while_ult.
6225         (aarch64_replace_reg_mode): Make public.
6226         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6227         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6228         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6229         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6230         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6231         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6232         (aarch64_sve_ptrue_svpattern_p): Likewise.
6233         (aarch64_sve_pred_valid_immediate): Check
6234         aarch64_sve_ptrue_svpattern_p.
6235         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6236         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6237         functions.
6238         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6239         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6240         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6241         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6242         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6243         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6244         New unspecs.
6245         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6246         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6247         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6248         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6249         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6250         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6251         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6252         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6253         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6254         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6255         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6256         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6257         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6258         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6259         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6260         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6261         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6262         (Vesize): Handle partial vector modes.
6263         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6264         mode attributes.
6265         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6266         iterators.
6267         (s, paired_extend, inc_dec): New code attributes.
6268         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6269         (SVE_INT_UNARY): Add UNSPEC_RBIT.
6270         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6271         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6272         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6273         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6274         UNSPEC_COND_FMULX.
6275         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6276         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6277         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6278         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6279         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6280         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6281         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6282         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6283         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6284         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6285         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6286         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6287         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6288         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6289         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6290         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6291         UNSPEC_COND_FSCALE.
6292         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6293         (binqops_op, binqops_op_rev, last_op): New int attributes.
6294         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6295         (fn, ab): New int attributes.
6296         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6297         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6298         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6299         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6300         UNSPEC_RBIT.
6301         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6302         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6303         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6304         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6305         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6306         UNSPEC_COND_FMULX.
6307         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6308         (brk_reg_con, brk_reg_opno): New int attributes.
6309         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6310         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6311         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6312         UNSPEC_COND_FMIN.
6313         (max_elem_bits): New int attribute.
6314         (min_elem_bits): Handle UNSPEC_RBIT.
6315         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6316         TRUNCATE as well as SUBREG.
6317         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6318         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6319         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6320         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6321         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6322         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6323         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6324         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6325         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6326         (aarch64_gather_scale_operand_h): New predicates.
6327         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6328         (vgd, vgh, vgw, vsQ, vsS): New constraints.
6329         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6330         (*aarch64_sve_reinterpret<mode>): Allow any source register
6331         instead of requiring an exact match.
6332         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6333         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6334         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6335         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6336         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6337         (aarch64_update_ffrt): New patterns.
6338         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6339         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6340         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6341         (@aarch64_ld<fn>f1<mode>): New patterns.
6342         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6343         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6344         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6345         (@aarch64_ldnt1<mode>): New patterns.
6346         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6347         the scalar part of the address.
6348         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6349         scalar part of the addresse and add an alternative for handling
6350         nonzero offsets.
6351         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6352         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6353         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6354         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6355         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6356         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6357         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6358         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6359         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6360         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6361         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6362         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6363         (@aarch64_sve_prefetch<mode>): New patterns.
6364         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6365         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6366         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6367         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6368         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6369         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6370         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6371         (@aarch64_stnt1<mode>): New patterns.
6372         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6373         the scalar part of the address.
6374         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6375         the scalar part of the addresse and add an alternative for handling
6376         nonzero offsets.
6377         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6378         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6379         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6380         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6381         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6382         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6383         New patterns.
6384         (vec_duplicate<mode>): Use QI as the mode of the input operand.
6385         (extract_last_<mode>): Generalize to...
6386         (@extract_<LAST:last_op>_<mode>): ...this.
6387         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6388         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6389         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6390         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6391         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6392         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6393         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6394         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6395         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6396         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6397         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6398         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6399         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6400         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6401         (*aarch64_adr_uxtw_unspec): Likewise.
6402         (*aarch64_adr_uxtw): Rename to...
6403         (*aarch64_adr_uxtw_and): ...this.
6404         (@aarch64_adr<mode>_shift): New expander.
6405         (*aarch64_adr_shift_sxtw): New pattern.
6406         (aarch64_<su>abd<mode>_3): Rename to...
6407         (@aarch64_pred_<su>abd<mode>): ...this.
6408         (<su>abd<mode>_3): Update accordingly.
6409         (@aarch64_cond_<su>abd<mode>): New expander.
6410         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6411         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6412         (*<su>mul<mode>3_highpart): Rename to...
6413         (@aarch64_pred_<optab><mode>): ...this.
6414         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6415         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6416         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6417         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6418         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6419         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6420         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6421         (*v<ASHIFT:optab><mode>3): Rename to...
6422         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6423         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6424         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6425         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6426         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6427         (@cond_asrd<mode>): New expander.
6428         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6429         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6430         (*sdiv_pow2<mode>3): Delete.
6431         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6432         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6433         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6434         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6435         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6436         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6437         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6438         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6439         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6440         (*add<SVE_F:mode>3): Rename to...
6441         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6442         for SVE_STRICT_GP.
6443         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6444         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6445         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6446         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6447         (*sub<SVE_F:mode>3): Rename to...
6448         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6449         for SVE_STRICT_GP.
6450         (@aarch64_pred_abd<SVE_F:mode>): New expander.
6451         (*fabd<SVE_F:mode>3): Rename to...
6452         (*aarch64_pred_abd<SVE_F:mode>): ...this.
6453         (@aarch64_cond_abd<SVE_F:mode>): New expander.
6454         (*mul<SVE_F:mode>3): Rename to...
6455         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6456         for SVE_STRICT_GP.
6457         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6458         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6459         to...
6460         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6461         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6462         (*<nlogical><PRED_ALL:mode>3): Rename to...
6463         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6464         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6465         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6466         (*<logical_nn><PRED_ALL:mode>3): Rename to...
6467         (aarch64_pred_<logical_nn><mode>_z): ...this.
6468         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6469         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6470         (*fma<SVE_I:mode>4): Rename to...
6471         (@aarch64_pred_fma<SVE_I:mode>): ...this.
6472         (*fnma<SVE_I:mode>4): Rename to...
6473         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6474         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6475         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6476         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6477         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6478         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6479         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6480         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6481         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6482         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6483         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6484         (@aarch64_sve_tmad<mode>): Likewise.
6485         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6486         (*aarch64_sel_dup<mode>): Rename to...
6487         (@aarch64_sel_dup<mode>): ...this.
6488         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6489         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6490         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6491         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6492         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6493         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6494         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6495         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6496         (*fcm<cmp_op><mode>): Rename to...
6497         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
6498         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6499         (*fcmuo<mode>): Rename to...
6500         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
6501         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6502         (@aarch64_pred_fac<cmp_op><mode>): New expander.
6503         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6504         (fold_extract_last_<mode>): Generalize to...
6505         (@fold_extract_<last_op>_<mode>): ...this.
6506         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6507         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6508         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6509         DImode result explicit.
6510         (reduc_plus_scal_<mode>): Update accordingly.
6511         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6512         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6513         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6514         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6515         (*aarch64_sve_tbl<mode>): Rename to...
6516         (@aarch64_sve_tbl<mode>): ...this.
6517         (@aarch64_sve_compact<mode>): New pattern.
6518         (*aarch64_sve_dup_lane<mode>): Rename to...
6519         (@aarch64_sve_dup_lane<mode>): ...this.
6520         (@aarch64_sve_dupq_lane<mode>): New pattern.
6521         (@aarch64_sve_splice<mode>): Likewise.
6522         (aarch64_sve_<perm_insn><mode>): Rename to...
6523         (@aarch64_sve_<perm_insn><mode>): ...this.
6524         (*aarch64_sve_ext<mode>): Rename to...
6525         (@aarch64_sve_ext<mode>): ...this.
6526         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6527         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6528         to...
6529         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6530         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6531         Rename to...
6532         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6533         ...this.
6534         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6535         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6536         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6537         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6538         to...
6539         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6540         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6541         a "@" marker.
6542         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6543         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6544         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6545         pattern.
6546         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6547         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6548         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6549         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6550         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6551         "@" marker.
6552         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6553         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6554         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6555         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6556         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6557         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6558         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6559         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6560         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6561         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6562         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6563         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6564         (aarch64_sve_cnt_pat): Likewise.
6565         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6566         (*aarch64_sve_incsi_pat): Likewise.
6567         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6568         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6569         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6570         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6571         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6572         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6573         (*aarch64_sve_decsi_pat): Likewise.
6574         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6575         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6576         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6577         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6578         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6579         (@aarch64_pred_cntp<mode>): Likewise.
6580         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6581         New expander.
6582         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6583         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6584         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6585         New expander.
6586         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6587         New pattern.
6588         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6589         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6590         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6591         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6592         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6593         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6594         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6595         New expander.
6596         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6597         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6598         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6599         New expander.
6600         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6601         New pattern.
6602         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6603         expander.
6604         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6605         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6606         expander.
6607         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6608         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6609         expander.
6610         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6611         * config/aarch64/arm_sve.h: New file.
6612         * config/aarch64/aarch64-sve-builtins.h: Likewise.
6613         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6614         * config/aarch64/aarch64-sve-builtins.def: Likewise.
6615         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6616         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6617         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6618         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6619         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6620         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6622 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6624         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6625         New pattern.
6626         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6627         SVE modes.
6629 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6631         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6632         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6633         FFRT_REGNUM + 1.
6634         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6635         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6636         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6637         (aarch64_hard_regno_nregs): Handle the new register classes.
6638         (aarch64_hard_regno_mode_ok): Likewise.
6639         (aarch64_regno_regclass): Likewise.
6640         (aarch64_class_max_nregs): Likewise.
6641         (aarch64_register_move_cost): Likewise.
6642         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6643         as general register_operands.
6645 2019-10-29  Martin Liska  <mliska@suse.cz>
6647         * ggc-common.c: One can't subtract unsigned types
6648         in compare function.
6650 2019-10-29  Martin Liska  <mliska@suse.cz>
6652         * cgraphunit.c (symbol_table::compile): Pass
6653         title as dump_memory_report argument.
6654         * toplev.c (dump_memory_report):  New argument.
6655         (finalize): Pass new argument.
6656         * toplev.h (dump_memory_report): Add argument.
6658 2019-10-29  Martin Liska  <mliska@suse.cz>
6660         * ggc-common.c: Move Leak to the first column.
6662 2019-10-29  Martin Liska  <mliska@suse.cz>
6664         * cgraphunit.c (symbol_table::compile): Remove argument
6665         for dump_memory_report.
6666         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6667         (compare_final): Remove in order to make report
6668         better readable.
6669         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
6670         * mem-stats.h (mem_alloc_description::get_list):
6671         Do not pass cmp.
6672         (mem_alloc_description::dump): Likewise here.
6673         * toplev.c (dump_memory_report): Remove final
6674         argument.
6675         (finalize): Likewise.
6676         * toplev.h (dump_memory_report): Remove argument.
6678 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6680         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6681         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6682         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6683         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6684         accept "const".
6686 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6688         * coretypes.h (string_int_pair): New typedef.
6689         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6690         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6691         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6693 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6695         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6696         (simulate_builtin_function_decl): Declare.
6697         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6698         (LANG_HOOKS_INITIALIZER): Include it.
6699         * langhooks.c (add_builtin_function_common): Rename to...
6700         (build_builtin_function): ...this.  Add a location parameter and use
6701         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
6702         the decl instead.
6703         (add_builtin_function): Update accordingly, passing the returned
6704         decl to the lang hook.
6705         (add_builtin_function_ext_scope): Likewise
6706         (simulate_builtin_function_decl): New function.
6708 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
6710         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6711         example, use actual names of supported offload targets.
6713         PR target/92258
6714         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6716 2019-10-28  Martin Sebor  <msebor@redhat.com>
6718         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6719         (handle_store): Pass argument to get_addr_stridx.
6721 2019-10-28  Martin Sebor  <msebor@redhat.com>
6723         PR tree-optimization/92226
6724         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6725         the offset is in the open range outlined by SI's length.
6727 2019-10-28  Martin Sebor  <msebor@redhat.com>
6729         PR c/66970
6730         * doc/cpp.texi (__has_builtin): Document.
6731         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6733 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
6735         PR target/82981
6736         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6737         doubleword and low doubleword result of multiplication on
6738         MIPS64R6.
6740         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6741         pure qualifier to the built-in.
6742         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6743         built-ins.
6744         (struct mips_builtin_description): Add is_pure flag.
6745         (mips_init_builtins): Mark built-in as pure if the flag in the
6746         corresponding mips_builtin_description struct is set.
6748         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6749         alternative which covers the floating-point input value. Also
6750         forbid the split of insert.d pattern for floating-point values.
6752 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6754         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6755         * config/riscv/riscv-sr.c: New file.
6756         * config/riscv/riscv.c (riscv_reorg): New function.
6757         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6758         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6759         (riscv_remove_unneeded_save_restore_calls): Declare.
6760         * config/riscv/t-riscv (riscv-sr.o): New build rule.
6762 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6764         PR tree-optimization/92163
6765         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6766         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6767         before calling bitmap_set_bit.
6768         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6769         delete_dead_or_redundant_assignment.
6770         (dse_dom_walker::dse_optimize_stmt): Likewise.
6771         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6773 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6775         PR middle-end/91272
6776         * tree-vect-stmts.c (vectorizable_condition): Support
6777         EXTRACT_LAST_REDUCTION with fully-masked loops.
6779 2019-10-28  Richard Biener  <rguenther@suse.de>
6781         PR tree-optimization/92252
6782         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6783         STMT_VINFO_REDUC_IDX when swapping operands.
6785 2019-10-28  Richard Biener  <rguenther@suse.de>
6787         PR tree-optimization/92241
6788         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6789         we failed to update the reduction index do not use the pattern
6790         stmts for the reduction chain.
6791         (vectorizable_reduction): When the reduction chain is corrupt,
6792         fail.
6793         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6794         fail to update the reduction chain.
6796 2019-10-28  Richard Biener  <rguenther@suse.de>
6798         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6799         STMT_VINFO_REDUC_IDX from the actual stmt.
6800         (vect_transform_reduction): Likewise.
6801         (vectorizable_reduction): Compute the reduction chain length,
6802         do not recompute the reduction operand index.  Remove no longer
6803         necessary restriction for condition reduction chains.
6805 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
6807         PR target/92225
6808         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6809         condition for V2DImode.
6811 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
6813         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6814         Remove %k operand modifier.
6815         (*vec_extractv2df_1_sse): Remove %q operand modifier.
6817 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
6819         PR rtl-optimization/92007
6820         * cfgcleanup.c (thread_jump): Add an assertion that we don't
6821         call it after reload if hot/cold partitioning has been done.
6822         (class pass_postreload_jump): Rename to
6823         pass_jump_after_combine.
6824         (make_pass_postreload_jump): Rename to
6825         make_pass_jump_after_combine.
6826         * passes.def(pass_postreload_jump): Move before reload, rename
6827         to pass_jump_after_combine.
6828         * tree-pass.h (make_pass_postreload_jump): Rename to
6829         make_pass_jump_after_combine.
6831 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
6833         PR ipa/92242
6834         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6835         for missing EDGE_REF
6836         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6838 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
6840         PR tree-optimization/88760
6841         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6842         Enable -funroll-loops for -O2 and above.
6843         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6844         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6845         do not turn on web and rngreg implicitly, if the unroller is not
6846         explicitly enabled.
6848 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
6850         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6851         jump functions.
6853 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
6855         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6856         * cgraph.h (cgraph_node::rtl_info): Likewise.
6858 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
6860         * ipa-cp.c (propagate_constants_across_call): If args are not available
6861         just drop everything to varying.
6862         (find_aggregate_values_for_callers_subset): Watch for missing
6863         edge summary.
6864         (find_more_scalar_values_for_callers_subs): Likewise.
6865         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6866         update_jump_functions_after_inlining, propagate_controlled_uses):
6867         Watch for missing summaries.
6868         (ipa_propagate_indirect_call_infos): Remove summary after propagation
6869         is finished.
6870         (ipa_write_node_info): Watch for missing summaries.
6871         (ipa_read_edge_info): Create new ref.
6872         (ipa_edge_args_sum_t): Add remove.
6873         (IPA_EDGE_REF_GET_CREATE): New macro.
6874         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6875         edge summary.
6876         (remap_edge_change_prob): Likewise.
6878 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
6880         * ipa-inline-transform.c (inline_call): update function summaries
6881         after expanidng thunk.
6883 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
6885         * ipa-icf.c (sem_function::merge): Update function summaries.
6886         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6888 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
6890         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6891         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6892         operand already has scalar mode.
6893         (iptr): Remove SF/DF.
6895 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
6897         PR target/91289
6898         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6899         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
6900         this.
6902 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
6904         * config/i386/sse.md
6905         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6906         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6907         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6908         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6909         <sse>_vmmaskcmp<mode>3):
6910         Change predicates from vector_operand to nonimmediate_operand,
6911         constraints xBm to xm, since scalar operations don't need
6912         memory address alignment.
6913         (avx512f_vmcmp<mode>3<round_saeonly_name>,
6914         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6915         round_saeonly_nimm_predicate with
6916         round_saeonly_nimm_scalar_predicate.
6917         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6918         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6919         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6920         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6921         avx512f_vmfmadd_<mode>_mask3<round_name>,
6922         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6923         *avx512f_vmfmsub_<mode>_mask<round_name>,
6924         avx512f_vmfmsub_<mode>_mask3<round_name>,
6925         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6926         *avx512f_vmfnmadd_<mode>_mask<round_name>,
6927         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6928         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6929         *avx512f_vmfnmsub_<mode>_mask<round_name>,
6930         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6931         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6932         cvtusi2<ssescalarmodesuffix>32<round_name>,
6933         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6934         round_nimm_predicate with round_nimm_scalr_predicate.
6935         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6936         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6937         avx512er_vmrcp28<mode><round_saeonly_name>,
6938         avx512er_vmrsqrt28<mode><round_saeonly_name>,
6939         ): Replace round_saeonly_nimm_predicate with
6940         round_saeonly_nimm_scalar_predicate.
6941         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6942         vector_operand with nonimmediate_operand.
6943         * config/i386/subst.md (round_scalar_nimm_predicate,
6944         round_saeonly_scalar_nimm_predicate): Replace
6945         vector_operand with nonimmediate_operand.
6947 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
6949         PR target/89071
6950         * config/i386/i386.md (*rcpsf2_sse): Add
6951         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6952         (*rsqrtsf2_sse): Ditto.
6953         (*sqrt<mode>2_sse): Ditto.
6954         (sse4_1_round<mode>2): separate constraint vm, add
6955         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6956         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6957         by pass rpad.
6958         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6959         Ditto.
6960         (*sse_vmrsqrtv4sf2): Ditto.
6961         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6962         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6963         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6964         <iptr> pointer size modifier since vround support memory operand.
6966 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
6968         PR target/85969
6969         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6970         static function.
6972 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
6973             Tobias Burnus  <tobias@codesourcery.com>
6975         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6976         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6977         common block decls.
6979 2019-10-25  Richard Biener  <rguenther@suse.de>
6981         PR tree-optimization/92222
6982         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6983         (_slp_oprnd_info::second_pattern): Likewise.
6984         (_slp_oprnd_info::any_pattern): New.
6985         (vect_create_oprnd_info): Adjust.
6986         (vect_get_and_check_slp_defs): Compute whether any stmt is
6987         in a pattern.
6988         (vect_build_slp_tree_2): Avoid building up a node from scalars
6989         if any of the operand defs, not just the first, is in a pattern.
6991 2019-10-25  Richard Biener  <rguenther@suse.de>
6993         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6994         swapping if we actually have to modify the IL on a shared stmt.
6995         (vect_build_slp_tree_2): Never fail swapping on shared stmts
6996         because we no longer modify the IL.
6998 2019-10-25  Martin Liska  <mliska@suse.cz>
7000         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7002 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
7004         * tree-vect-loop.c (vectorizable_reduction): Restrict the
7005         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7006         handled by vect_transform_reduction.  Allow fully-masked loops
7007         to be used with reduction chains.
7008         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7009         operations in fully-masked loops.
7010         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7011         operations in fully-masked loops.
7013 2019-10-25  Richard Biener  <rguenther@suse.de>
7015         * tree-vect-loop.c (vectorizable_reduction): Verify
7016         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7017         correctly.
7018         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7019         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7020         stmts.
7022 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
7024         * gimplify.h (omp_construct_selector_matches): Declare.
7025         * gimplify.c (struct gimplify_omp_ctx): Add code member.
7026         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7027         called function if needed for flag_openmp.
7028         (gimplify_scan_omp_clauses): Set ctx->code.
7029         (omp_construct_selector_matches): New function.
7030         * omp-general.h (omp_constructor_traits_to_codes,
7031         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7032         * omp-general.c (omp_constructor_traits_to_codes,
7033         omp_context_selector_matches, omp_resolve_declare_variant): New
7034         functions.
7036         * config/arc/arc.c (hwloop_optimize): Add missing space in string
7037         literal.
7038         * config/rx/rx.c (rx_print_operand): Likewise.
7039         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7040         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7041         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7042         Likewise.
7043         * genemit.c (emit_c_code): Likewise.
7044         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
7046 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7048         * symbols-summary.h (fast_function_summary<T *, V>::release,
7049         fast_call_summary<T *, V>::release): Free m_vector.
7051 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7053         * cgraphunit.c (symbol_table::process_new_functions): Call
7054         ipa_free_size_summary.
7055         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7056         (devirtualization_time_bonus): Update.
7057         (ipcp_propagate_stage): Update.
7058         * ipa-fnsummary.c (ipa_size_summaries): New.
7059         (ipa_fn_summary_alloc): Alloc size summary.
7060         (dump_ipa_call_summary): Update.
7061         (ipa_dump_fn_summary): Update.
7062         (analyze_function_body): Update.
7063         (compute_fn_summary): Likewise.
7064         (ipa_get_stack_frame_offset): New function.
7065         (inline_update_callee_summaries): Do not update frame offsets.
7066         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7067         remove call and function summary.
7068         (ipa_update_overall_fn_summary): Update.
7069         (inline_read_section): Update.
7070         (ipa_fn_summary_write): Update.
7071         (ipa_free_fn_summary): Do not remove summaries.
7072         (ipa_free_size_summary): New.
7073         (release summary pass): Also run at WPA.
7074         * ipa-fnsummary.h (ipa_size_summary): Declare.
7075         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7076         estimated_self_stack_size.
7077         (ipa_size_summary_t): New type.
7078         (ipa_size_summaries): Declare.
7079         (ipa_free_size_summary): Declare.
7080         (ipa_get_stack_frame_offset): Declare.
7081         * ipa-icf.c (sem_function::merge): Update.
7082         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7083         (estimate_growth): Update.
7084         (growth_likely_positive): Update.
7085         (clone_inlined_nodes): Update.
7086         (inline_call): Update.
7087         * ipa-inline.c (caller_growth_limits): Update.
7088         (edge_badness): Update.
7089         (recursive_inlining): Update.
7090         (inline_small_functions): Update.
7091         (inline_to_all_callers_1): Update.
7092         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7094 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
7096         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7097         (uavg<mode>3_ceil): ... This.
7098         (altivec_vavgs<VI_char>): Rename to...
7099         (avg<mode>3_ceil): ... This.
7100         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7101         VAVGUW, VAVGSW): Adjust.
7103 2019-10-24  Nathan Sidwell  <nathan@acm.org>
7105         * dumpfile.c (dump_begin): Reorder decls to use RAII.
7107 2019-10-24  Martin Liska  <mliska@suse.cz>
7109         * symbol-summary.h (gt_pch_nx): Mark all functions
7110         with gcc_unreachable as we do not expect to be called.
7112 2019-10-24  Richard Biener  <rguenther@suse.de>
7114         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7115         chains try harder with operand swapping and instead of
7116         putting a shifted chain into the reduction operands put
7117         a repetition of the final reduction op there as if we'd
7118         reassociate the expression.
7120 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
7122         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7123         statics_not_read and statics_not_written to statics_read and
7124         statics_written respectively.
7125         (no_module_statics): New static var.
7126         (ipa_reference_get_not_read_global): Rename to ...
7127         (ipa_reference_get_read_global): ... this.
7128         (ipa_reference_get_not_written_global): Rename to ...
7129         (ipa_reference_get_written_global): ... this.
7130         (dump_static_vars_set_to_file): Dump no_module_statics.
7131         (copy_static_var_set): Add for propagation parameter.
7132         (ipa_init): Initialize no_module_statics.
7133         (ipa_ref_opt_summary_t::duplicate): Update.
7134         (ipa_ref_opt_summary_t::remove): Update.
7135         (propagate): Update.
7136         (write_node_summary_p): Look correctly for bitmap differences.
7137         (ipa_reference_write_optimization_summary): Update.
7138         (ipa_reference_read_optimization_summary): Update.
7139         * ipa-reference.h
7140         (ipa_reference_get_not_read_global): Rename to ...
7141         (ipa_reference_get_read_global): ... this.
7142         (ipa_reference_get_not_written_global): Rename to ...
7143         (ipa_reference_get_written_global): ... this.
7144         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7145         (call_may_clobber_ref_p_1): Update.
7147 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7149         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7150         and add comment.
7151         (msp430_hard_regno_nregs_with_padding): Remove.
7153 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7155         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7156         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7157         shift amount is between 1 and 4.
7158         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7159         is between 1 and 4.
7161 2019-10-24  Richard Biener  <rguenther@suse.de>
7163         PR tree-optimization/92205
7164         * tree-vect-loop.c (vectorizable_reduction): Restrict
7165         search for alternate vectype_in to lane-reducing patterns
7166         we support.
7168 2019-10-24  Richard Biener  <rguenther@suse.de>
7170         PR tree-optimization/92203
7171         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7172         Skip eliminating conversion stmts inserted by insertion.
7174 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
7176         * config/s390/s390.c (s390_get_thread_pointer): Use
7177         gen_get_thread_pointer.
7178         (s390_expand_split_stack_prologue): Likewise.
7179         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7180         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7181         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7182         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7183         parameterized name.
7185 2019-10-24  Richard Biener  <rguenther@suse.de>
7187         * tree-vect-slp.c (vect_analyze_slp): When reduction group
7188         SLP discovery fails try to handle the reduction as part
7189         of SLP reduction discovery.
7191 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
7193         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7194         declaration.
7195         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7196         attribute if it exists, rather than the insn size.  If we use the
7197         insn size, adjust the size to remove the extra size that prefixed
7198         instructions take.
7199         (rs6000_adjust_insn_length): New function.
7200         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7201         update the instruction sized if prefixed instructions are used.
7202         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7203         (non_prefixed_length attribute): Delete.
7204         (num_insns attribute): New insn attribute to return the number of
7205         instructions.
7206         (max_prefixed_insns attribute): New insn attribute to return the
7207         maximum number of prefixed instructions in an insn.
7208         (length attribute): Do not adjust for prefix instructions here,
7209         punt to ADJUST_INSN_LENGTH.
7210         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7211         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7212         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7213         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7214         max_prefixed_insns and num_insns.
7216         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7217         (movtd_64bit_nodm): Reformat.
7218         (mov<mode>_32bit): Reformat.
7219         (mov<mode>_softfloat): Reformat.
7220         (FMOVE128_GPR splitter): Reformat.
7221         (DIFD splitter): Reformat.
7222         (TI2 splitter): Reformat.
7223         * config/rs6000/predicates.md (lwa_operand): If the bottom two
7224         bits of the offset for the memory address are non-zero, use PLWA
7225         if prefixed instructions are available.
7227 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7229         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7231 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7233         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7234         previous patch.
7236 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7238         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7239         (cmp_symbol_files): New.
7240         (lto_output): Copy sections in file order.
7241         * lto-streamer.h (lto_file_decl_data): Add field order.
7243 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7245         * ipa-reference.h (ipa_reference_var_uid): Move offline.
7246         * ipa-reference.c (reference_vars_map_t): new type.
7247         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7248         (ipa_reference_var_uid): Implement.
7249         (varpool_node_hooks): New static var.
7250         (varpool_removal_hook): New function.
7251         (is_improper): Do not check bitmap for id==-1
7252         (get_static_name): Update.
7253         (ipa_init): Initialize new datastructures.
7254         (analyze_function): Do not recompute ids.
7255         (propagate): Free reference_vars_to_consider.
7256         (stream_out_bitmap): Update.
7257         (ipa_reference_read_optimization_summary): Update.
7259 2019-10-23  qing zhao  <qing.zhao@oracle.com>
7261         PR gcov-profile/91971
7262         * coverage.c (coverage_init): Mangle the full path of filename when
7263         filename is a absolute path.
7265 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7267         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7268         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7269         (msp430_has_hwmult): New.
7270         (msp430_output_labelref):
7271         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7272         * config/msp430/msp430.md (mulhisi3): Likewise.
7273         (umulhisi3): Likewise.
7274         (mulsidi3): Likewise.
7275         (umulsidi3): Likewise.
7277 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
7279         PR ipa/92074
7280         * params.def (inline-heuristics-hint-percent): Set to 600.
7282 2019-10-23  Richard Biener  <rguenther@suse.de>
7284         PR tree-optimization/65930
7285         * tree-vect-loop.c (check_reduction_path): Allow conversions
7286         that only change the sign.
7287         (vectorizable_reduction): Relax latch def stmts we handle further.
7289 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
7291         PR debug/90231
7292         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7293         (remove_unused_ivs): Use it instead of get_computation_at.  When
7294         choosing best candidate, only consider candidates where
7295         get_debug_computation_at actually returns non-NULL.
7297 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
7299         PR tree-optimization/92131
7300         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7301         range would be symbolic, drop to varying for any explicit overflow
7302         in the constant part or if neither range is a singleton.
7304 2019-10-23  Martin Liska  <mliska@suse.cz>
7306         PR middle-end/81669
7307         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7308         Initialize m_data.
7310 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
7312         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7313         int_mode_for_mode rather than mode_for_int_vector for scalars.
7315 2019-10-23  Richard Biener  <rguenther@suse.de>
7317         PR tree-optimization/92179
7318         * tree-vect-stmts.c (vectorizable_shift): For shift args
7319         that are all the same remove type restriction in the SLP case.
7320         Adjust SLP code to handle converting of the shift arg to
7321         only apply in case the modes are different.
7323 2019-10-23  Martin Liska  <mliska@suse.cz>
7325         PR ipa/91969
7326         * ipa-inline.c (recursive_inlining): Do not print
7327         when curr->count is not initialized.
7329 2019-10-23  Richard Biener  <rguenther@suse.de>
7331         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7332         op from scalars in case there's a constant operand in its
7333         definition.
7335 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
7337         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7338         against out of range max skip or log values.
7340 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
7342         * cgraph.c (dump_graphviz): Change name to dump_name
7344 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
7346         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7347         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7348         subtraction from a carry operation.
7350 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
7352         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7354 2019-10-22  Richard Biener  <rguenther@suse.de>
7356         PR tree-optimization/92173
7357         * tree-vect-loop.c (vectorizable_reduction): If
7358         vect_transform_reduction cannot handle code-generation try without
7359         the single-def-use-cycle optimization.  Pass optab_vector to
7360         optab_for_tree_code to get vector shifts as that's what we'd
7361         generate.
7363 2019-10-22  Michael Matz  <matz@suse.de>
7365         PR middle-end/90796
7366         * gimple-loop-jam.c (any_access_function_variant_p): New function.
7367         (adjust_unroll_factor): Use it to constrain safety, new parameter.
7368         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7370 2019-10-22  Richard Biener  <rguenther@suse.de>
7372         PR tree-optimization/92173
7373         * tree-vect-loop.c (vectorizable_reduction): If
7374         vect_transform_reduction cannot handle code-generation try without
7375         the single-def-use-cycle optimization.  Pass optab_vector to
7376         optab_for_tree_code to get vector shifts as that's what we'd
7377         generate.
7379 2019-10-22  Martin Liska  <mliska@suse.cz>
7381         * diagnostic-format-json.cc (json_from_expanded_location):
7382         Use json::integer_number.
7383         * gcov.c (output_intermediate_json_line): Use new
7384         json::integer_number.
7385         (output_json_intermediate_file): Likewise.
7386         * json.cc (number::print): Move to ...
7387         (float_number::print): ... this.
7388         (integer_number::print): New.
7389         (test_writing_numbers): Move to ...
7390         (test_writing_float_numbers): ... this.
7391         (test_writing_integer_numbers): New.
7392         (json_cc_tests): Register test_writing_integer_numbers.
7393         * json.h (class value): Add forward declaration
7394         for float_number and integer_number.
7395         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7396         (class number): Move to ...
7397         (class float_number): ... this.
7398         (class integer_number): New.
7399         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7400         Use json::integer_number.
7401         (optrecord_json_writer::location_to_json): Likewise.
7402         (optrecord_json_writer::profile_count_to_json): Likewise.
7403         (optrecord_json_writer::pass_to_json): Likewise.
7405 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7407         * tree-vect-slp.c (vect_slp_bb_region): Check whether
7408         autodetected_vector_size rather than vector_size is zero.
7409         * tree-vect-loop.c (vect_analyze_loop): Likewise.
7410         Set autodetected_vector_size immediately after calling
7411         vect_analyze_loop_2.  Check for a fatal error before advancing
7412         next_size.
7414 2019-10-21  Jason Merrill  <jason@redhat.com>
7416         * lock-and-run.sh: Check for process existence rather than timeout.
7418 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7420         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7421         widening multiplication.
7423 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
7425         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7426         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7427         type attribute.
7428         (subsi3_carryin_shift): Separate into register and constant controlled
7429         alternatives.  Use shift_amount_operand for operand 4.  Set shift
7430         attribute and simplify type attribute.
7431         (subsi3_carryin_shift_alt): Likewise.
7432         (rsbsi3_carryin_shift): Likewise.
7433         (rsbsi3_carryin_shift_alt): Likewise.
7434         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
7435         and register controlled shifts into distinct alternatives.
7436         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7437         (andsi_not_shiftsi_si_scc): Likewise.
7438         (arm_cmpsi_negshiftsi_si): Likewise.
7439         (not_shiftsi): Remove redundant M constraint from alternative 1.
7440         (not_shiftsi_compare0): Likewise.
7441         (arm_cmpsi_insn): Remove redundant alternative 2.
7442         (cmpsi_shift_swp): Likewise.
7443         (sub_shiftsi): Likewise.
7444         (sub_shiftsi_compare0_scratch): Likewise.
7445         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7446         (thumb2_cmpsi_neg_shiftsi): Likewise.
7448 2019-10-21  Richard Biener  <rguenther@suse.de>
7450         PR tree-optimization/92162
7451         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7452         STMT_VINFO_REDUC_IDX in reduc_info.
7453         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7455 2019-10-21  Richard Biener  <rguenther@suse.de>
7457         * tree-vectorizer.h (_slp_tree::ops): New member.
7458         (SLP_TREE_SCALAR_OPS): New.
7459         (vect_get_slp_defs): Adjust prototype.
7460         * tree-vect-slp.c (vect_free_slp_tree): Release
7461         SLP_TREE_SCALAR_OPS.
7462         (vect_create_new_slp_node): Initialize it.  New overload for
7463         initializing by an operands array.
7464         (_slp_oprnd_info::ops): New member.
7465         (vect_create_oprnd_info): Initialize it.
7466         (vect_free_oprnd_info): Release it.
7467         (vect_get_and_check_slp_defs): Populate the operands array.
7468         Do not swap operands in the IL when not necessary.
7469         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7470         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
7471         swap operands in the operands array.  Do not swap operands in
7472         the IL.
7473         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7474         (vect_gather_slp_loads): Fix.
7475         (vect_detect_hybrid_slp_stmts): Likewise.
7476         (vect_slp_analyze_node_operations_1): Search for a internal
7477         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7478         (vect_slp_analyze_node_operations): Skip ops-only stmts for
7479         the def-type push/pop dance.
7480         (vect_get_constant_vectors): Compute number_of_vectors here.
7481         Use SLP_TREE_SCALAR_OPS and simplify greatly.
7482         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7483         (vect_get_slp_defs): Simplify greatly.
7484         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7485         (vect_transform_reduction): Likewise.
7486         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7487         (vectorizable_call): Likewise.
7488         (vectorizable_operation): Likewise.
7489         (vectorizable_load): Likewise.
7490         (vectorizable_condition): Likewise.
7491         (vectorizable_comparison): Likewise.
7493 2019-10-21  Richard Biener  <rguenther@suse.de>
7495         PR tree-optimization/92161
7496         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7497         for reductions.
7499 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7501         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7502         (aarch64_rndr): New define_insn.
7503         (aarch64_rndrrs): Likewise.
7504         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7505         (TARGET_RNG): Likewise.
7506         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7507         argument.
7508         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7509         Add fourth argument in prototype.
7510         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7511         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7512         (aarch64_init_rng_builtins): Define.
7513         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7514         (aarch64_expand_rng_builtin): Define.
7515         (aarch64_general_expand_builtin): Use IGNORE argument, handle
7516         RNG builtins.
7517         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7518         __ARM_FEATURE_RNG when TARGET_RNG.
7519         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7521 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7523         * tree-vect-stmts (ensure_base_align): Only change alignment if new
7524         alignment is more restrictive.
7526 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7528         * tree-vectorizer.h (vec_info::vector_size): New member variable.
7529         (vect_update_max_nunits): Update comment.
7530         (current_vector_size): Delete.
7531         * tree-vect-stmts.c (current_vector_size): Likewise.
7532         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7533         of current_vector_size.
7534         (get_mask_type_for_scalar_type): Likewise.
7535         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7536         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7537         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7538         (vect_double_mask_nunits, vect_transform_loop): Likewise.
7539         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7540         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7542 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7544         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7545         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7546         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
7547         accordingly.
7549 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7551         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7552         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7553         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7554         call accordingly.
7555         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7557 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7559         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7560         a loop_vec_info.
7561         (vect_set_loop_condition_masked): Update call accordingly.
7563 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7565         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7566         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7567         (simple_integer_narrowing): Update call accordingly.
7568         (vectorizable_conversion): Likewise.
7570 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7572         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7573         (vectorizable_call): Update call accordingly.
7575 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7577         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7578         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7579         (duplicate_and_interleave): Update call accordingly.
7580         * tree-vect-loop.c (vectorizable_reduction): Likewise.
7582 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7584         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7585         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7586         (vect_get_constant_vectors): Update call accordingly.
7587         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7589 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7591         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7592         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7593         (vect_prologue_cost_for_slp_op): Update call accordingly.
7594         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7595         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7596         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7597         (get_mask_type_for_scalar_type): Likewise.
7598         (vect_get_vector_types_for_stmt): Likewise.
7599         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7600         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7601         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7602         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7603         (vect_split_statement, vect_convert_input): Likewise.
7604         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7605         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7606         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7607         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7608         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7609         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7610         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7611         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7612         (vect_recog_mask_conversion_pattern): Likewise.
7613         (vect_add_conversion_to_pattern): Likewise.
7614         (vect_recog_gather_scatter_pattern): Likewise.
7615         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7616         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7618 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7620         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7621         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7622         (vect_check_load_store_mask): Update call accordingly.
7623         (vect_get_mask_type_for_stmt): Likewise.
7624         * tree-vect-patterns.c (check_bool_pattern): Likewise.
7625         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7626         (vect_convert_mask_for_vectype): Likewise.
7628 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7630         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7631         a vec_info.
7632         (vect_recog_dot_prod_pattern): Update call accordingly.
7633         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7634         (vect_recog_widen_sum_pattern): Likewise.
7636 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7638         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7639         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7640         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7641         accordingly.
7643 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7645         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7646         get_vectype_for_scalar_type_and_size instead of
7647         get_vectype_for_scalar_type.
7649 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7651         * common.opt (-fcommon): Fix description.
7653 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
7655         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7656         * config/i386/i386.c (ix86_pre_reload_split): New function.
7657         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7658         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7659         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7660         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7661         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7662         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7663         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7664         *<shift_insn><dwi>3_doubleword_mask,
7665         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7666         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7667         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7668         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7669         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7670         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7671         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7672         *avx2_<code>v8qiv8si2<mask_name>_2,
7673         *sse4_1_<code>v4qiv4si2<mask_name>_2,
7674         *sse4_1_<code>v4hiv4si2<mask_name>_2,
7675         *avx512f_<code>v8qiv8di2<mask_name>_2,
7676         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7677         *sse4_1_<code>v2hiv2di2<mask_name>_2,
7678         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7679         sse4_2_pcmpistr): Likewise.
7681 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
7683         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7684         now defaults to https.
7686 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
7688         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7689         skip non-zero array accesses.
7691 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
7693         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7694         and return a boolean success value.  Move the allocation and
7695         initialization of the bb_vec_info to...
7696         (vect_slp_bb_region): ...here.  Update call accordingly.
7697         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7698         than in vect_slp_analyze_bb_1.
7700 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
7702         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7703         when processing the given datarefs for the first time and
7704         check_datarefs subsequently.
7705         (vect_slp_bb_region): New function, split out of...
7706         (vect_slp_bb): ...here.  Don't recompute the region bounds and
7707         dataref sets when retrying with a different vector size.
7709 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
7710             Uroš Bizjak  <ubizjak@gmail.com>
7712         PR target/92140
7713         * config/i386/predicates.md (int_nonimmediate_operand): New special
7714         predicate.
7715         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7716         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7717         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7718         define_insn_and_split patterns.
7720 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
7722         * config/rs6000/rs6000.md: Delete out--of-date comment about
7723         special-casing integer loads.
7725 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
7727         * escaped_string.h (escaped_string): New header.
7728         * tree.c (escaped_string): Remove escaped_string class.
7730 2019-10-18  Martin Sebor  <msebor@redhat.com>
7732         PR tree-optimization/92157
7733         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7734         compute_string_length to return a negative result.
7736 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7738         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7739         (negvsi3, negvdi3): Delete.
7740         (negdi2_compare): Delete.
7742 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7744         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7745         operations.
7746         (subdi3_compare1): Delete pattern.
7747         (subvsi3_borrow): New insn pattern.
7748         (subvsi3_borrow_imm): Likewise.
7750 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7752         * config/arm/arm.md (subv<mode>4): Delete.
7753         (subvdi4): New expander pattern.
7754         (subvsi4): Likewise.  Handle some immediate values.
7755         (subvsi3_intmin): New insn pattern.
7756         (subvsi3): Likewise.
7757         (subvsi3_imm1): Likewise.
7758         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7759         idioms.
7761 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7763         * config/arm/arm.md (usubvdi4): Allow registers or integers for
7764         incoming operands.  Early split the calculation into SImode
7765         operations.
7766         (usubvsi3_borrow): New insn pattern.
7767         (usubvsi3_borrow_imm): Likewise.
7769 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7771         * config/arm/arm.md (usubv<mode>4): Delete expansion.
7772         (usubvsi4): New pattern.  Allow some immediate values for inputs.
7773         (usubvdi4): New pattern.
7775 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7777         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7778         or second operand of the PLUS inside a DImode equality test to be
7779         sign-extend when selecting CC_Vmode.
7780         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7781         instructions.
7782         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7783         expand patterns.
7784         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7785         (addsi3_cin_vout_0): Likewise.
7786         (adddi3_compareV): Delete.
7788 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7790         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7791         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
7792         to transform this back into the summation version when that leads
7793         to smaller code.
7795 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7797         * config/arm/arm.md (addv<mode>4): Delete.
7798         (addvsi4): New pattern.  Handle immediate values that the architecture
7799         supports.
7800         (addvdi4): New pattern.
7801         (addsi3_compareV): Rename to ...
7802         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
7803         and use COMPARE rather than NE.
7804         (addsi3_compareV_imm): New pattern.
7805         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7806         a signed-overflow check.
7808 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7810         * config/arm/arm-modes.def (CC_ADC): New CC mode.
7811         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7812         CC_ADCmode.
7813         (maybe_get_arm_condition_code): Handle CC_ADCmode.
7814         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7815         with overflow.
7816         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7817         expand patterns.
7818         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7819         (addsi3_cin_cout_imm_insn): Likewise.
7820         (adddi3_compareC): Delete insn.
7821         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7823 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7825         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7826         * (uaddv<mode>4): Delete expansion pattern.
7827         (uaddvsi4): New pattern.
7828         (uaddvdi4): Likewise.
7829         (addsi3_compareC): Delete pattern, change callers to use
7830         addsi3_compare_op1.
7831         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
7832         reduce the number of alternatives and re-work type attribute handling.
7833         (addsi3_compare_op2): Clean up constraints to reduce the number of
7834         alternatives and re-work type attribute handling.
7835         (compare_addsi2_op0): Likewise.
7836         (compare_addsi2_op1): Likewise.
7838 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7840         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7841         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7842         for DImode operands.
7843         (arm_gen_dicompare_reg): Remove unreachable expansion code.
7844         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7845         CC_NCVmode.
7846         * config/arm/arm.md (arm_cmpdi_insn): Delete.
7847         (arm_cmpdi_unsigned): Delete.
7849 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7851         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7852         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7853         unchanged only if that will be cheaper.
7854         (arm_select_cc_mode): Recognize a swapped comparison that will
7855         be regenerated using RSBS or RSCS.  Relax restriction on selecting
7856         CC_RSBmode.
7857         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7858         a constant.
7859         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7860         is CC_RSBmode.
7861         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7862         as CCmode.
7863         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7864         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7866 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7868         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7869         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7870         need these modes.
7871         (arm_gen_dicompare_reg): New code to early expand the sub-operations
7872         of EQ, NE, LT, GE, LTU and GEU.
7873         * config/arm/iterators.md (CC_EXTEND): New code attribute.
7874         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7875         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7876         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7877         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7879 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7881         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7882         operand 2.
7883         (cstoredi4): Similarly, but for operand 3.
7884         * config/arm/arm.c (arm_canoncialize_comparison): Allow
7885         canonicalization of unsigned compares with a constant on Arm.
7886         Prefer using const+1 and adjusting the comparison over swapping the
7887         operands whenever the original constant was not valid.
7888         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7889         register here.
7890         (arm_validize_comparison): Do not force invalid DImode operands to
7891         registers here.
7893 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7895         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7896         return CC_Zmode if comparing against a constant where one word is
7897         zero.
7898         (arm_gen_compare_reg): Split DImode handling to ...
7899         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
7900         against simple constants.
7901         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7903 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7905         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7906         (rsbsi3_carryin_shift_alt): Likewise.
7908 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7910         * config/arm/arm.md (negscc_borrow): New pattern.
7911         (mov_negscc): Don't split if the insn would match negscc_borrow.
7912         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7913         (thumb2_mov_negscc_strict_it): Likewise.
7915 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7917         * config/arm/arm.c (arm_insn_cost): New function.
7918         (TARGET_INSN_COST): Override default definition.
7920 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7922         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7923         borrow operations.
7925 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7927         * config/arm/arm.c (strip_carry_operation): New function.
7928         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7929         for SImode.
7931 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7933         * config/arm/predicates.md (arm_carry_operation): New special
7934         predicate.
7935         * config/arm/iterators.md (LTUGEU): Delete iterator.
7936         (cnb): Delete code attribute.
7937         (optab): Delete ltu and geu elements.
7938         * config/arm/arm.md (addsi3_carryin): Renamed from
7939         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
7940         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7941         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7942         (addsi3_carryin_clobercc): Similarly.
7943         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
7944         Thumb2 state.
7946 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7948         * config/arm/arm.md (arm_subdi3): Delete insn.
7949         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7951 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7953         * config/arm/arm-modes.def (CC_RSB): New CC mode.
7954         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7955         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7956         return CC_RSBmode.
7957         (maybe_get_arm_condition_code): Handle CC_RSBmode.
7958         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7959         expand.
7960         (subdi3): Rewrite to early-expand the sub-operations.
7961         (rsb_im_compare): New pattern.
7962         (negdi2): Delete.
7963         (negdi2_insn): Delete.
7964         (arm_negsi2): Correct type attribute to alu_imm.
7965         (negsi2_0compare): New insn pattern.
7966         (negsi2_carryin): New insn pattern.
7968 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7970         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7971         operand 2.
7973 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7975         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7976         to match canonical form.
7978 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7980         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7981         (extend<mode>di2): Likewise.
7983 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7985         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7986         * config/arm/arm.c (arm_decompose_di_binop): New function.
7987         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7988         If not generating Thumb-1 code, decompose the operation into 32-bit
7989         pieces.
7990         * add0si_carryin_<optab>: New pattern.
7992 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
7994         * arm.md (adddi3): Only accept register operands.
7995         (arm_adddi3): Convert to simple insn with no split.  Do not accept
7996         constants.
7997         (adddi_sesidi_di): Delete patern.
7998         (adddi_zesidi_di): Likewise.
7999         (uaddv<mode>4): Use LTU as condition for branch.
8000         (adddi3_compareV): Convert to simple insn with no split.
8001         (addsi3_compareV_upper): Delete pattern.
8002         (adddi3_compareC): Convert to simple insn with no split.  Correct
8003         flags setting expression.
8004         (addsi3_compareC_upper): Delete pattern.
8005         (addsi3_compareC): Correct flags setting expression.
8006         (subdi3_compare1): Convert to simple insn with no split.
8007         (subsi3_carryin_compare): Delete pattern.
8008         (arm_subdi3): Convert to simple insn with no split.
8009         (subdi_zesidi): Delete pattern.
8010         (subdi_di_sesidi): Delete pattern.
8011         (subdi_zesidi_di): Delete pattern.
8012         (subdi_sesidi_di): Delete pattern.
8013         (subdi_zesidi_zesidi): Delete pattern.
8014         (negvdi3): Use s_register_operand.
8015         (negdi2_compare): Convert to simple insn with no split.
8016         (negdi2_insn): Likewise.
8017         (negsi2_carryin_compare): Delete pattern.
8018         (negdi_zero_extendsidi): Delete pattern.
8019         (arm_cmpdi_insn): Convert to simple insn with no split.
8020         (negdi2): Don't call gen_negdi2_neon.
8021         * config/arm/neon.md (adddi3_neon): Delete pattern.
8022         (subdi3_neon): Delete pattern.
8023         (negdi2_neon): Delete pattern.
8024         (splits for negdi2_neon): Delete splits.
8026 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
8028         PR middle-end/92153
8029         * ggc-page.c (release_pages): Read g->alloc_size before free rather
8030         than after it.
8032 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8034         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8035         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
8036         new multilib variants and new mappings.
8038 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
8040         PR target/86040
8041         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8043 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8044             Richard Sandiford  <richard.sandiford@arm.com>
8046         PR target/86753
8047         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8048         and define hashmap traits for it.
8049         (loop_vec_info::scalar_cond_masked_set): New member.
8050         (vect_record_loop_mask): Adjust prototype.
8051         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8052         Implement method.
8053         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8054         vect_record_loop_mask.
8055         (vectorizable_live_operation): Likewise.
8056         (vect_record_loop_mask): New param scalar_mask. Add entry
8057         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8058         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8059         Pass it as last arg to vect_record_loop_mask.
8060         (vectorizable_call): Pass scalar_mask as last arg to
8061         vect_record_loop_mask.
8062         (vectorizable_store): Likewise.
8063         (vectorizable_load): Likewise.
8064         (vectorizable_condition): Check if another part of vectorized code
8065         applies loop_mask to condition or to it's inverse, and if yes,
8066         apply loop_mask to result of vector comparison.
8068 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
8070         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8072 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
8074         PR tree-optimization/92056
8075         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8076         before calling compute_builtin_object_size.
8078 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
8080         PR target/65342
8081         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8082         (movdi_low_st): Delete.
8083         * config/rs6000/rs6000.c
8084         (darwin_rs6000_legitimate_lo_sum_const_p): New.
8085         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8086         * config/rs6000/rs6000.md (movsi_low): Delete.
8088 2019-10-17  Jason Merrill  <jason@redhat.com>
8090         * gimplify.h (get_initialized_tmp_var): Add default argument to
8091         post_p.
8092         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8093         NULL post_p argument.
8094         * targhooks (std_gimplify_va_arg_expr): Likewise.
8096 2019-10-17  Richard Biener  <rguenther@suse.de>
8098         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8099         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8100         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8101         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8102         * tree-vect-loop.c (vect_is_simple_reduction): Set
8103         STMT_VINFO_REDUC_CODE.
8104         (vectorizable_reduction): Remove dead and redundant code, use
8105         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8107 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
8109         Fix breakage introduced by r276985.
8111         * config/avr/avr.c (avr_option_override): Remove set of
8112         PARAM_ALLOW_STORE_DATA_RACES.
8113         * common/config/avr/avr-common.c (avr_option_optimization_table)
8114         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8116 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8118         * config/i386/i386.h (processor_costs): Add clear_ratio.
8119         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8120         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8121         of 6 and move_ratio in all cost models.
8123 2019-10-17  Richard Biener  <rguenther@suse.de>
8125         * tree-vect-loop.c (check_reduction_path): Compute reduction
8126         operation here.
8127         (vect_is_simple_reduction): Remove special-case of single-stmt
8128         reduction path detection.
8130 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
8132         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8134 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
8136         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8137         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8138         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8139         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8140         New combine patterns.
8141         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8142         above.
8143         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8145 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
8147         * tree-vrp.c (value_range_base::dump): Display +INF for both
8148         pointers and integers when appropriate.
8150 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8152         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8153         when to use versioning threshold.
8155 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8157         * tree-vect-loop.c (determine_peel_for_niter): New function contained
8158         outlined code from ...
8159         (vect_analyze_loop_2): ... here.
8161 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8163         * tree-vect-loop.c (vect_transform_loop): Move code from here...
8164         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8165         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8167 2019-10-17  Richard Biener  <rguenther@suse.de>
8169         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8170         (vect_is_simple_reduction): Move all validity checks ...
8171         (vectorizable_reduction): ... here.  Compute whether we
8172         need a fold-left reduction here.
8173         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8174         both overloads, check needs_fold_left_reduction_p directly.
8175         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8177 2019-10-17  Richard Biener  <rguenther@suse.de>
8179         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8180         TARGET_MEM_REF creation.
8182 2019-10-17  Richard Biener  <rguenther@suse.de>
8184         PR tree-optimization/92129
8185         * tree-vect-loop.c (vectorizable_reduction): Also fail
8186         on GIMPLE_SINGLE_RHS.
8188 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
8190         PR tree-optimization/92056
8191         * tree-object-size.c (cond_expr_object_size): Return early if then_
8192         processing resulted in unknown size.
8194         PR tree-optimization/92115
8195         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8196         temporary if it could trap.
8198 2019-10-17  Richard Biener  <rguenther@suse.de>
8200         PR debug/91887
8201         * dwarf2out.c (gen_formal_parameter_die): Also try to match
8202         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8204 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
8206         * tree-ssa-strlen.c (maybe_invalidate): Use
8207         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8209 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
8210             Jim Wilson  <jimw@sifive.com>
8212         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8213         regs to SIBCALL_REGS.
8214         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8215         passing regs to SIBCALL_REGS.
8217 2019-10-16  Martin Sebor  <msebor@redhat.com>
8219         PR tree-optimization/83821
8220         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
8221         the length of a string when available.
8222         (handle_builtin_memset) Add argument.
8223         (handle_store, strlen_check_and_optimize_call): Same.
8224         (check_and_optimize_stmt): Same.  Pass it to callees.
8226 2019-10-16  Martin Sebor  <msebor@redhat.com>
8228         PR tree-optimization/91996
8229         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8230         information.
8231         (compare_nonzero_chars): Add an overload.
8232         (count_nonzero_bytes): Add an argument.  Call overload above.
8233         Handle non-constant lengths in some range.
8234         (handle_store): Add an argument.
8235         (check_and_optimize_stmt): Pass an argument to handle_store.
8237 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
8239         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8241 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8243         * config/mips/mips.c (mips_expand_builtin_insn): Force the
8244         operands which correspond to the same input-output register to
8245         have the same pseudo assigned to them.
8247 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
8249         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8251 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
8253         * config/aarch64/aarch64.c (aarch64_classify_symbol):
8254         Apply reasonable limit to symbol offsets.
8256 2019-10-16  Richard Biener  <rguenther@suse.de>
8258         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8259         (vect_is_simple_reduction): Delay checking to
8260         vectorizable_reduction and relax the checking.
8261         (vectorizable_reduction): Check we have a simple use.  Check
8262         for bogus condition reductions.
8263         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8264         are looking at the last stmt in a pattern sequence when
8265         filling in backedge PHI values.
8267 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
8268             Jiufu Guo  <guojiufu@linux.ibm.com>
8270         PR target/70010
8271         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8272         the callee explicitly disables some isa_flags the caller is using.
8274 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8276         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8278 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8280         * genmodes.c (mode_data::order): New field.
8281         (blank_mode): Update accordingly.
8282         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8283         (make_vector_modes): Likewise.
8284         (VECTOR_MODES): Update use accordingly.
8285         (cmp_modes): Sort by the new order field ahead of sorting by size.
8286         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8287         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8288         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8289         (aarch64_classify_vector_mode): Handle the new partial modes.
8290         (aarch64_vl_bytes): New function.
8291         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8292         when counting the number of registers in an SVE mode.
8293         (aarch64_class_max_nregs): Likewise.
8294         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8295         in registers yet.
8296         (aarch64_classify_address): Treat partial vectors analogously
8297         to full vectors.
8298         (aarch64_print_address_internal): Consolidate the printing of
8299         MUL VL addresses, using aarch64_vl_bytes as the number of
8300         bytes represented by "VL".
8301         (aarch64_vector_mode_supported_p): Reject partial vector modes.
8303 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8305         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8306         rather than known_lt when choosing frame layouts.
8308 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8310         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8311         that all the adjustments add up to the full frame size.
8312         Use crtl->outgoing_args_size directly as the final adjustment
8313         where appropriate.
8315 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8317         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8318         "frame" reference instead of always referring directly to
8319         "cfun->machine->frame".
8321 2019-10-16  Richard Biener  <rguenther@suse.de>
8323         PR tree-optimization/92119
8324         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8325         against missing bswap lhs.
8327 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
8329         PR middle-end/92033
8330         * poly-int.h (constant_lower_bound_with_limit): New function.
8331         (constant_upper_bound_with_limit): Likewise.
8332         * doc/poly-int.texi: Document them.
8333         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8334         into the worst-case INTEGER_CST bounds.
8336 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
8338         PR ipa/91088
8339         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8340         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8341         * ipa-predicat.h (struct expr_eval_op): New struct.
8342         (expr_eval_ops): New typedef.
8343         (struct condition): Add type and param_ops fields, remove size field.
8344         (add_condition): Replace size parameter with type parameter, add
8345         param_ops parameter.
8346         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8347         (predicate::add_clause): Add comparisons on type and param_ops.
8348         (dump_condition): Add debug dump for param_ops.
8349         (remap_after_inlining): Adjust call arguments to add_condition.
8350         (add_condition): Replace size parameter with type parameter, add
8351         param_ops parameter. Unshare constant value used in conditions.
8352         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8353         parameter expressions using param_ops.
8354         (decompose_param_expr):  New function.
8355         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8356         to replace call to unmodified_parm_or_parm_agg_item.
8357         (set_switch_stmt_execution_predicate): Likewise.
8358         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8359         with type.
8360         (inline_read_section): Read param_ops from summary stream.
8361         (ipa_fn_summary_write): Write param_ops to summary stream.
8363 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
8365         PR rtl-optimization/92107
8366         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8367         expression written.
8369 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
8371         * config/darwin.c: Update description of fix and continue.
8373 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
8375         * config/darwin.c (darwin_binds_local_p): Update to call
8376         default_binds_local_p_3 () directly. amend comments.
8378 2019-10-15  Richard Biener  <rguenther@suse.de>
8380         * lto-streamer-out.c (lto_variably_modified_type_p): New.
8381         (tree_is_indexable): Use it.
8382         * tree-streamer-out.c (pack_ts_type_common_value_fields):
8383         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8384         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8386 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8388         * config/msp430/msp430.md (zero_extendqipsi2): New.
8389         (zero_extendqisi2): Optimize case where src register and base dst
8390         register are the same.
8391         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8392         (zero_extendpsisi2): Optimize r->m case.
8393         Add unnamed insn patterns to catch insns combine searches for when
8394         optimizing pointer manipulation.
8396 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8398         * config/msp430/msp430.md: Group zero_extend* insns together.
8400 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8402         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8403         constraint.
8404         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8405         POST_INC.
8406         (msp430_subreg): Likewise.
8407         (msp430_split_addsi): Likewise.
8408         (msp430_print_operand_addr): Likewise.
8409         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8410         (USE_STORE_POST_INCREMENT): Define.
8411         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8412         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8413         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8414         (msp430_general_dst_operand): New.
8415         (msp430_general_dst_nonv_operand): New.
8416         (msp430_nonsubreg_operand): Remove.
8417         (msp430_nonsubreg_dst_operand): New.
8418         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8419         of defunct msp430_nonsubreg_operand.
8420         (msp430_nonsubregnonpostinc_or_imm_operand): New.
8422 2019-10-15  Richard Biener  <rguenther@suse.de>
8424         PR tree-optimization/91929
8425         * tree-ssa-pre.c (pre_expr_d::loc): New member.
8426         (get_or_alloc_expr_for_name): Initialize it.
8427         (get_or_alloc_expr_for_constant): Likewise.
8428         (phi_translate_1): Copy it.
8429         (create_expression_by_pieces): Use the original location
8430         of the expression for the inserted stmt.
8431         (compute_avail): Record the location of the stmt for the
8432         expressions created.
8434 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
8436         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8437         before using tree_to_uhwi.
8439 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
8441         * config/s390/s390.md: Run %a0:DI splitters only after reload.
8443 2019-10-15  Richard Biener  <rguenther@suse.de>
8445         PR tree-optimization/92094
8446         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8447         do not adjust the reduction definition def type.
8448         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8449         defines the latch argument of the PHI.
8451 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
8453         PR target/92035
8454         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8455         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8456         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8457         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8458         _mm_maskz_roundscale_round_sd): New intrinsics.
8459         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8460         __builtin_ia32_rndscales?_mask_round builtins instead of
8461         __builtin_ia32_rndscales?_round.
8462         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8463         __builtin_ia32_rndscalesd_round): Remove.
8464         (__builtin_ia32_rndscaless_mask_round,
8465         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8466         * config/i386/sse.md
8467         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8468         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8469          ... this, adjust and add subst atrributes to make it maskable.
8471 2019-10-15  Richard Biener  <rguenther@suse.de>
8473         PR middle-end/92046
8474         * common.opt (fallow-store-data-races): New.
8475         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8476         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8477         * doc/invoke.texi (fallow-store-data-races): Document.
8478         (--param allow-store-data-races): Remove docs.
8479         * opts.c (default_options_table): Enable -fallow-store-data-races
8480         at -Ofast.
8481         (default_options_optimization): Do not enable --param
8482         allow-store-data-races at -Ofast.
8483         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8484         instead of PARAM_ALLOW_STORE_DATA_RACES.
8485         * tree-ssa-loop-im.c (execute_sm): Likewise.
8487 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8489         PR tree-optimization/92085
8490         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8491         instead of calling it unconditionally after
8492         delete_dead_or_redundant_assignment and fix indentation.
8494 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
8496         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8497         TARGET_VFP_DOUBLE.
8498         (*fmsub<SDF:mode>4): Likewise.
8499         *fnmsub<SDF:mode>4): Likewise.
8500         (*fnmadd<SDF:mode>4): Likewise.
8502 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
8504         * doc/tree-ssa.texi: Update renamed macro name.
8506 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8508         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8509         vector constants.
8511 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
8513         * config/darwin.c: Use unsigned ints for the picbase label
8514         counters, initialise the vars explicitly.
8515         (update_pic_label_number_if_needed): Move a variable declaration
8516         to where it's needed.
8517         (machopic_output_function_base_name): Use a more strict checking
8518         assert, and and unsigned int for the picbase label counter.
8519         (machopic_get_function_picbase): Likewise.
8521 2019-10-14  Richard Biener  <rguenther@suse.de>
8523         PR middle-end/92046
8524         * dse.c (scan_insn): Use param max_active_local_stores.
8525         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8526         based on optimization level.
8527         * loop-invariant.c (move_loop_invariants): Adjust
8528         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8529         * opts.c (default_options_optimization): Do not adjust
8530         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8531         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8533 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
8535         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8537 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
8539         * config/arm/arm.c (arm_option_override): Don't override sched
8540         pressure algorithm.
8542 2019-10-14  Richard Biener  <rguenther@suse.de>
8544         PR tree-optimization/92069
8545         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8546         cycles do not set vect_nested_cycle on the latch definition.
8548 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
8550         * function-abi.h (expr_callee_abi): Declare.
8551         * function-abi.cc (expr_callee_abi): New function.
8553 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
8555         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8556         into [1,MAX].
8557         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8558         non-zero being represented as [1,MAX].
8560 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
8562         * tree-sra.c (dump_access): Add missing braces.
8564 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
8566         * config/darwin.c (machopic_indirection_name): Rework the
8567         function to emit linker-visible symbols only for indirections
8568         in the data section.  Clean up the code and update comments.
8570 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
8572         * config/darwin.c (machopic_indirect_data_reference): Remove
8573         redundant code.
8575 2019-10-13  Nathan Sidwell  <nathan@acm.org>
8577         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8579 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8581         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8582         c99_runtime.
8584 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
8586         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8587         so non-virutal are before virutals.
8588         (output_function): Avoid body modifications.
8590 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
8592         * config/pa/pa.c (pa_output_call): Load descriptor address to register
8593         %r22.  Load function address before global pointer.
8594         (pa_attr_length_indirect_call): Adjust length of inline versions of
8595         $$dyncall.
8596         (pa_output_indirect_call): Remove fast inline version of $$dyncall
8597         before normal cases.  Update inline $$dyncall sequences to preserve
8598         function descriptor address in register %r22.
8599         (TRAMPOLINE_CODE_SIZE): Adjust.
8600         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
8601         register %r22 contains trampoline address.
8602         (pa_trampoline_init): Adjust offsets.
8603         (pa_trampoline_adjust_address): Likewise.
8604         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8606 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
8608         PR target/67183
8609         * config/darwin.c (machopic_indirection): New field to flag
8610         non-lazy-symbol-pointers in the data section.
8611         (machopic_indirection_name): Compute if an indirection should
8612         appear in the data section.
8613         (machopic_output_data_section_indirection): New callback split
8614         from machopic_output_indirection.
8615         (machopic_output_stub_indirection): Likewise.
8616         (machopic_output_indirection): Retain the code for non-lazy
8617         symbol pointers in their regular section.
8618         (machopic_finish): Use the new callbacks to order the indirection
8619         output.
8621 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
8623         * config/darwin-protos.h (machopic_finish): Delete.
8624         * config/darwin.c (machopic_finish): Make static.
8626 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
8628         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8629         sections when building kernel extension code.
8631 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
8633         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8634         later standard."
8636 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
8638         * config/pa/pa.c (pa_option_override): Remove trailing comma
8639         from warning.
8641 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
8643         PR middle-end/92063
8644         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8645         <case VEC_COND_EXPR>: Return false with *handled = false.
8646         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8647         recursing on the first operand.
8648         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8649         instead of tree_could_trap_p.
8650         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8652 2019-10-11  Jim Wilson  <jimw@sifive.com>
8654         PR rtl-optimization/91860
8655         * combine.c (subst): If new_rtx is a constant, also check for
8656         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8658 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
8660         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8661         INTVAL when calling store_bit_field.
8663 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
8665         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8666         size.
8668 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8670         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8671         vectorizable_live_operation.
8672         (vectorizable_live_operation): Adjust parameters.
8673         * tree-vect-stmts.c (vect_init_vector,
8674         vect_gen_widened_results_half): Fix typo in function comment.
8675         (can_vectorize_live_stmts): Adjust function comment.
8676         Adjust parameters.  Adjust call to vectorizable_live_operation.
8677         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8678         (vect_transform_stmt): Adjust function comment.  Adjust call to
8679         can_vectorize_live_stmts.
8680         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8682 2019-10-11  Richard Biener  <rguenther@suse.de>
8684         PR tree-optimization/90883
8685         PR tree-optimization/91091
8686         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8687         alias-sets both for recording VN table entries and continuing
8688         walking after translating through copies.  Handle same-sized
8689         reads from SSA names by returning the plain SSA name.
8690         (eliminate_dom_walker::eliminate_stmt): Properly handle
8691         non-size precision stores in redundant store elimination.
8693 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
8695         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8696         (ggc_collect): Dump later to not interfere with release_page dump.
8697         (ggc_trim): New function.
8698         * ggc-none.c (ggc_trim): New.
8699         * ggc.h (ggc_trim): Declare.
8701 2019-10-11  Richard Biener  <rguenther@suse.de>
8703         PR tree-optimization/92066
8704         PR tree-optimization/92046
8705         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8706         Fix bogus cost model check.
8708 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8710         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8711         (LANG_HOOKS_DECLS): Add it.
8712         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8713         update comment for omp_is_optional_argument.
8714         * omp-general.c (omp_is_allocatable_or_ptr): New.
8715         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8716         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8717         Fortran's optional arguments and allocatable/pointer scalars
8718         with use_device_addr.
8720 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
8722         PR target/77918
8723         * config/s390/2827.md: Add new opcodes.
8724         * config/s390/2964.md: Likewise.
8725         * config/s390/3906.md: Likewise.
8726         * config/s390/8561.md: Likewise.
8727         * config/s390/s390-builtins.def (s390_vfchesb): Use
8728         the new vec_cmpgev4sf_quiet_nocc.
8729         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8730         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8731         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8732         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8733         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8734         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8735         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8736         * config/s390/s390-modes.def (CCSFPS): New mode.
8737         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8738         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8739         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8740         (s390_expand_vec_compare): Use non-signaling patterns where
8741         necessary.
8742         (s390_reverse_condition): Support CCSFPS.
8743         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8744         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8745         (asm_fcmp_op): Likewise.
8746         (*smaxv2df3_vx): Use pattern for quiet comparison.
8747         (*sminv2df3_vx): Likewise.
8748         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8749         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8750         (vec_cmpgt<mode>_quiet_nocc): Likewise.
8751         (vec_cmplt<mode>_quiet_nocc): New expander.
8752         (vec_cmpge<mode>_quiet_nocc): New pattern.
8753         (vec_cmple<mode>_quiet_nocc): New expander.
8754         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8755         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8756         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8757         (*vec_cmpge<mode>_signaling_nocc): Likewise.
8758         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8759         (vec_cmpungt<mode>): New expander.
8760         (vec_cmpunge<mode>): Likewise.
8761         (vec_cmpuneq<mode>): Use quiet patterns.
8762         (vec_cmpltgt<mode>): Allow only on z14+.
8763         (vec_cmpordered<mode>): Use quiet patterns.
8764         (vec_cmpunordered<mode>): Likewise.
8765         (VEC_CMP_EXPAND): Add ungt and unge.
8767 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
8769         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8770         parameter.
8771         * lto-streamer-out.c: Include tree-dfa.h.
8772         (output_cfg): Do not use cfun.
8773         (lto_prepare_function_for_streaming): New.
8774         (output_function): Do not push cfun; do not initialize loop optimizer.
8775         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8776         * passes.c (ipa_write_summaries): Use it.
8777         (ipa_write_optimization_summaries): Do not modify bodies.
8778         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8779         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8780         * tree-ssa-dse.c (pass_dse::execute): Update use of
8781         renumber_gimple_stmt_uids.
8782         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8784 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
8786         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8787         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8789 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
8791         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8792         macros.
8793         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8794         Also define DFP macros for these conditions.
8795         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8796         DEC128_SUBNORMAL_MIN): Do not define.
8797         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8798         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8800 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
8801             Sandra Loosemore  <sandra@codesourcery.com>
8803         PR middle-end/26241
8804         * doc/lto.texi (IPA): Reference to the IPA passes.
8805         * doc/passes.texi (Pass manager): Add node IPA passes and
8806           description for each IPA pass.
8808 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
8810         * ipa-reference.c: Do not include splay-tree.h
8811         (reference_vars_to_consider): Turn to hash map.
8812         (get_static_name, ipa_init, analyze_function, propagate,
8813         stream_out_bitmap, ipa_reference_write_optimization_summary,
8814         ipa_reference_write_optimization_summary): Update.
8816 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
8818         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8820 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
8822         * config/darwin.c: Lookup Objective C metadata and force indirection
8823         for IVAR refs.
8825 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
8827         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8828         addresses.
8829         (mem_operand_gpr): Add check for prefixed addresses.
8830         (mem_operand_ds_form): Add check for prefixed addresses.
8831         (rs6000_legitimate_offset_address_p): If we support prefixed
8832         addresses, check for a 34-bit offset instead of 16-bit.
8833         (rs6000_legitimate_address_p): Add check for prefixed addresses.
8834         Do not allow load/store with update if the address is prefixed.
8835         (rs6000_mode_dependent_address):  If we support prefixed
8836         addresses, check for a 34-bit offset instead of 16-bit.
8838 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8840         PR target/77918
8841         * config/s390/vector.md (vcond_comparison_operator): New
8842         predicate.
8843         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8845 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
8847         PR 87488
8848         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8849         -D.
8850         * configure.ac (--with-documentation-root-url): New option.
8851         * configure: Regenerate.
8852         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8853         option URL, add it as a new string field of the diagnostic option.
8854         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8855         (print_option_information): If get_option_url is non-NULL, call
8856         it, and if the result is non-NULL, potentially emit an escape
8857         sequence to markup the option text with the resulting URL.
8858         * diagnostic.h (diagnostic_context::get_option_url): New callback.
8859         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8860         example of JSON output.
8861         * opts-diagnostic.h (get_option_url): New decl.
8862         * opts.c (get_option_url): New function.
8863         * toplev.c (general_init): Initialize the get_option_url callback.
8865 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
8867         PR 87488
8868         * common.opt (fdiagnostics-urls=): New option.
8869         (diagnostic-url.h): Add SourceInclude.
8870         (diagnostic_url_rule): New enum.
8871         * diagnostic-color.c: Include "diagnostic-url.h".
8872         (diagnostic_urls_enabled_p): New function.
8873         * diagnostic-url.h: New file.
8874         * diagnostic.c: Include "diagnostic-url.h".
8875         (diagnostic_urls_init): New function.
8876         * diagnostic.h (diagnostic_urls_init): New decl.
8877         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8878         -fdiagnostics-urls to the list.
8879         (-fdiagnostics-urls): New option.
8880         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8881         (driver::global_initializations): Call diagnostic_urls_init.
8882         * opts-global.c (init_options_once): Likewise.
8883         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8884         * pretty-print.c (pretty_printer::pretty_printer): Initialize
8885         show_urls.
8886         (pp_begin_url): New function.
8887         (pp_end_url): New function.
8888         (selftest::test_urls): New selftest.
8889         (selftest::pretty_print_c_tests): Call it.
8890         * pretty-print.h (pretty_printer::show_urls): New field.
8891         (pp_begin_url): New decl.
8892         (pp_end_url): New decl.
8894 2019-10-10  Uroš Bizjak  <ubizjak@gmail.com>
8896         PR target/92022
8897         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8899 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
8901         PR target/88630
8902         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8903         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8904         also for TARGET_FPU_SH4_300.
8905         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8906         TARGET_SH4_300.
8907         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8908         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8909         (*negsf2_i): Split into ...
8910         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8911         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8912         (**abssf2_i): Split into ...
8913         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8914         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8915         (*negdf2_i): Split into ...
8916         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8917         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8918         (**abssf2_i): Split into ...
8919         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8921 2019-10-10  Richard Biener  <rguenther@suse.de>
8923         PR middle-end/92046
8924         * opts.c (finish_options): Do not influence global --params
8925         from options that are adjustable per function.
8926         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8927         Apply --param adjustment based on active cost-model.
8928         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8929         further store-sinking when vectorization or if-conversion
8930         are not enabled.
8932 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
8934         PR middle-end/92037
8935         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8936         rather than ggc_alloc_cleared to alloc symbol table.
8937         * toplev.c (general_init): Likewise.
8938         * cgraph.h (symbol_table): Explicitly construct every field.
8940 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
8942         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8943         (PF_Z15): ... this.
8944         * config.gcc: Add z15 as option for --with-arch and --with-tune
8945         configure switches.
8946         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8947         error reporting for unsupported builtins.
8948         * config/s390/s390-opts.h (enum processor_type): Rename
8949         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8950         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8951         * config/s390/driver-native.c (s390_host_detect_local_cpu):
8952         Likewise.
8953         * config/s390/s390-builtins.def: Likewise.
8954         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8955         (s390_expand_builtin): Add missing check for unsupported builtins.
8956         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8957         (s390_rtx_costs): Likewise.
8958         (s390_get_sched_attrmask): Rename arch13 to z15.
8959         (s390_get_unit_mask): Likewise.
8960         (s390_is_fpd): Likewise.
8961         (s390_is_fxd): Likewise.
8962         * config/s390/s390.h (enum processor_flags): Likewise.
8963         * config/s390/s390.md: Likewise.
8964         * config/s390/vector.md: Likewise.
8965         * config/s390/vx-builtins.md: Likewise.
8966         * config/s390/s390.opt: Add z15 to processor_type value.
8968 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
8970         PR target/91035
8971         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8972         prototype.
8973         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8974         ("split_stack_data", "split_stack_call")
8975         ("split_stack_call_<mode>", "split_stack_cond_call")
8976         ("split_stack_cond_call_<mode>"): Remove.
8977         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8978         insn definition.
8979         * config/s390/s390.c (s390_output_split_stack_data): New function.
8980         (s390_expand_split_stack_prologue): Use the merged expander.
8982 2019-10-09  Martin Sebor  <msebor@redhat.com>
8984         PR tree-optimization/90879
8985         * builtins.c (check_access): Avoid using maxbound when null.
8986         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8987         * doc/invoke.texi (-Wstring-compare): Document new warning option.
8988         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8989         conditional.
8990         (get_range_strlen): Overwrite initial maxbound when non-null.
8991         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8992         changes.
8993         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8994         (used_only_for_zero_equality): New function.
8995         (handle_builtin_memcmp): Call it.
8996         (determine_min_objsize): Return an integer instead of tree.
8997         (get_len_or_size, strxcmp_eqz_result): New functions.
8998         (maybe_warn_pointless_strcmp): New function.
8999         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
9000         between a longer string and a smaller array.
9001         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9003 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
9005         * config/darwin.c (darwin_override_options): Make the check for
9006         Objective-C ABI version more specific for 64bit code.
9008 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
9010         * config/darwin.c (machopic_indirect_data_reference): Set flag to
9011         indicate that the new symbol is an indirection.
9012         (machopic_indirect_call_target): Likewise.
9013         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9014         (MACHO_SYMBOL_INDIRECTION_P): New.
9015         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9017 2019-10-08  Jason Merrill  <jason@redhat.com>
9019         * doc/invoke.texi: Document -fconcepts-ts.
9021 2019-10-09  Richard Biener  <rguenther@suse.de>
9023         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9024         allow stmts other than GIMPLE_ASSIGN in nested cycles.
9026 2019-10-08  Richard Biener  <rguenther@suse.de>
9028         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9029         (_stmt_vec_info::force_single_cycle): Likewise.
9030         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9031         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9032         * tree-vect-loop.c (vectorizable_reduction): Set
9033         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9034         (vect_transform_reduction): Use them to remove redundant code.
9035         (vect_transform_cycle_phi): Likewise.
9037 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9039         PR tree-optimization/90836
9040         * match.pd (popcount): New pattern.
9042 2019-10-08  Martin Sebor  <msebor@redhat.com>
9044         PR middle-end/92026
9045         PR middle-end/92014
9046         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9047         again once nbytes has been set.  Set the access size when not yet set.
9049 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
9051         * config/darwin.c (machopic_select_section): Remove dead code for
9052         old Objective-C section selection method, replace with unreachable.
9054 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
9056         * config/darwin.c (machopic_indirect_data_reference): Check for
9057         required indirections before making direct access to defined
9058         values.
9059         (machopic_output_indirection): Place the indirected pointes for
9060         required indirections into the non-lazy symbol pointers section.
9061         (darwin_encode_section_info):
9062         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9063         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9065 2019-10-08  Uroš Bizjak  <ubizjak@gmail.com>
9067         PR target/91994
9068         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9069         instead of ALL_SSE_REG to check if function call preserves some
9070         256-bit SSE registers.
9072 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
9074         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9075         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9076         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9078 2019-10-08  Richard Biener  <rguenther@suse.de>
9080         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9081         (_stmt_vec_info::is_reduc_info): Add.
9082         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9083         (vectorizable_condition): Remove.
9084         (vectorizable_shift): Likewise.
9085         (vectorizable_reduction): Adjust.
9086         (info_for_reduction): New.
9087         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9088         (vect_analyze_scalar_cycles_1): ... here.
9089         (vect_analyze_loop_operations): Adjust.
9090         (needs_fold_left_reduction_p): Simplify for single caller.
9091         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
9092         for nested cycles not part of double reductions.
9093         (vect_model_reduction_cost): Pass in the reduction type.
9094         (info_for_reduction): New function.
9095         (vect_create_epilog_for_reduction): Use it, access reduction
9096         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
9097         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9098         (vectorize_fold_left_reduction): Remove pointless assert.
9099         (vectorizable_reduction): Analyze the full reduction when
9100         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
9101         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
9102         stmt code-generation to vectorizable_* in most cases.  Verify
9103         code-generation only for cases handled by
9104         vect_transform_reductuon.
9105         (vect_transform_reduction): Use info_for_reduction to get at
9106         reduction meta.  Simplify.
9107         (vect_transform_cycle_phi): Likewise.
9108         (vectorizable_live_operation): Likewise.
9109         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9110         at the PHI node for STMT_VINFO_REDUC_TYPE.
9111         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9112         longer necessary code.
9113         * tree-vect-stmts.c (vectorizable_shift): Make static again.
9114         (vectorizable_condition): Likewise.  Get at reduction related
9115         info via info_for_reduction.
9116         (vect_analyze_stmt): Adjust.
9117         (vect_transform_stmt): Likewise.
9118         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9119         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9121 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
9123         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9124         -fno-fp-int-builtin-inexact default for C2X.
9126 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9127             Richard Biener  <rguenther@suse.de>
9129         PR tree-optimization/91532
9130         * tree-if-conv.c: Include tree-ssa-dse.h.
9131         (ifcvt_local_dce): Change param from bb to loop,
9132         and call dse_classify_store.
9133         (tree_if_conversion): Pass loop instead of loop->header as arg
9134         to ifcvt_local_dce.
9135         * tree-ssa-dse.c: Include tree-ssa-dse.h.
9136         (delete_dead_or_redundant_assignment): Remove static qualifier from
9137         declaration, and add prototype in tree-ssa-dse.h.
9138         (dse_store_status): Move to tree-ssa-dse.h.
9139         (dse_classify_store): Remove static qualifier and add new tree param
9140         stop_at_vuse, and add prototype in tree-ssa-dse.h.
9141         * tree-ssa-dse.h: New header.
9143 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
9145         * config/darwin.c (machopic_output_indirection): Don't put
9146         hidden symbol indirections into the .data section, use the
9147         non-lazy symbol pointers section as normal.
9148         (darwin_encode_section_info): Record if a symbol is hidden.
9149         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9150         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9152 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
9154         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9155         predicates instead of accessing bits directly.
9156         (machopic_indirect_call_target): Likewise.
9157         (machopic_output_indirection): Likewise.
9158         (darwin_encode_section_info): Improve description.  Use renamed
9159         symbol flags.  Use predicate macros for variables and functions.
9160         * config/darwin.h:
9161         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9162         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9163         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9164         (MACHO_SYMBOL_VARIABLE_P): New.
9165         (MACHO_SYMBOL_DEFINED_P):New.
9166         (MACHO_SYMBOL_STATIC_P): New.
9167         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9168         (SYMBOL_FLAG_SUBT_DEP): New.
9169         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9171 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9173         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9174         (msp430_expand_epilogue): Likewise.
9175         * config/msp430/predicates.md: Likewise.
9176         * config/msp430/msp430.md: Likewise.
9177         Replace blocks of 8 spaces with tabs.
9179 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9181         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9182         * config/msp430/msp430.c (msp430_split_addsi): New.
9183         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9184         a block of C code for splitting addsi.
9186 2019-10-07  Uroš Bizjak  <ubizjak@gmail.com>
9188         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9189         ix86_expand_rounddf_32): Reorder functions.
9190         * config/i386/i386-protos.h: Update.
9192 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9194         * config.in: Regenerate.
9195         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9196         Add new "Yx" constraint.
9197         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9198         function.
9199         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9200         prototype.
9201         * config/msp430/msp430.c (msp430_option_override): Allow the lower
9202         code/data region to be selected in the small memory model.
9203         (msp430_section_attr): Don't warn if the "section" and "lower"
9204         attributes are used together.
9205         (msp430_handle_generic_attribute): Likewise.
9206         (msp430_var_in_low_mem): New function.
9207         (TARGET_ENCODE_SECTION_INFO): Define.
9208         (msp430_encode_section_info): New function.
9209         (gen_prefix): Return early in the small memory model.
9210         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9211         ".lower" prefix if -m{code,data}-region=lower have been passed.
9212         (msp430_output_aligned_decl_common): Emit common symbols when
9213         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9214         set.
9215         (TARGET_ASM_FILE_END): Define.
9216         (msp430_file_end): New function.
9217         (msp430_do_not_relax_short_jumps): Allow relaxation when
9218         function will be in the lower region.
9219         (msp430_op_not_in_high_mem): New function.
9220         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9221         the 'X' operand selector.
9222         Clarify comment for 'x' operand selector.
9223         * config/msp430/msp430.h (LINK_SPEC): Propagate
9224         -m{code,data}-region to the linker via spec function
9225         msp430_propagate_region_opt.
9226         (msp430_propagate_region_opt): New prototype.
9227         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9228         (SYMBOL_FLAG_LOW_MEM): Define.
9229         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9230         selector.
9231         (zero_extendqihi2): Fix operand number used by "%X" selector.
9232         (zero_extendqisi2): Likewise.
9233         (zero_extendhisi2): Likewise.
9234         (movqi): Use "Yx" constraint in place of "%X" operand selector.
9235         (movhi): Likewise.
9236         (addqi3): Likewise.
9237         (addhi3): Likewise.
9238         (addsi3): Likewise.
9239         (addhi3_cy): Likewise.
9240         (addchi4_cy): Likewise.
9241         (subqi3): Likewise.
9242         (subhi3): Likewise.
9243         (subsi3): Likewise.
9244         (bic<mode>3): Likewise.
9245         (and<mode>3): Likewise.
9246         (ior<mode>3): Likewise.
9247         (xor<mode>3): Likewise.
9248         (slli_1): Add missing "%X" operand selector.
9249         (slll_1): Likewise.
9250         (slll_2): Likewise.
9251         (srai_1): Likewise.
9252         (sral_1): Likewise.
9253         (sral_2): Likewise.
9254         (srli_1): Likewise.
9255         (srll_1): Likewise.
9256         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9257         selector.
9258         (cbranchhi4_real): Likewise.
9259         (cbranchqi4_reversed): Likewise.
9260         (cbranchhi4_reversed): Likewise.
9261         (*bitbranch<mode>4): Likewise.
9262         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9263         * config/msp430/msp430.opt (mcode-region=): Set default to
9264         MSP430_REGION_LOWER. Improve docstring.
9265         (mdata-region=): Likewise.
9266         (muse-lower-region-prefix): New option.
9267         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9268         mdata-region=none multilib.
9269         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9270         mdata-region=none multilib.
9271         MULTILIB_EXCEPTIONS: Remove.
9272         MULTILIB_REQUIRED: Define.
9273         * configure: Regenerate.
9274         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9275         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9276         * doc/extend.texi: Clarify comment for {upper,lower,either}
9277         function attributes.
9278         Add separate description for "lower" variable attribute.
9280 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
9282         PR target/77918
9283         * optabs-tree.c (vcond_icode_p): New function.
9284         (vcond_eq_icode_p): Likewise.
9285         (expand_vec_cond_expr_p): Use vcond_icode_p and
9286         vcond_eq_icode_p.
9287         * optabs.c (can_vcond_compare_p): New function.
9288         * optabs.h (can_vcond_compare_p): Likewise.
9290 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
9292         PR target/77918
9293         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9294         caller passes a non-trapping condition.
9295         (is_gimple_condexpr): Allow trapping conditions.
9296         (is_gimple_condexpr_1): New helper function.
9297         (is_gimple_condexpr_for_cond): New function, acts like old
9298         is_gimple_condexpr.
9299         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9300         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9301         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9302         * gimplify.c (gimplify_cond_expr): Use
9303         is_gimple_condexpr_for_cond.
9304         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9305         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9306         VEC_COND_EXPR.
9307         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9308         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9309         is_gimple_condexpr_for_cond, remove pointless tmp check
9310         (forward_propagate_into_cond): Remove pointless tmp check.
9312 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
9314         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9315         match that of other gsi_next_* functions.  Adjust the comment.
9316         (gsi_start_nonvirtual_phis): New function.
9317         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9318         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
9320 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
9322         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9323         setjmp situation here.  Fix a verb's ending: "the exact variables or
9324         elements for which there are warnings depends" -> "... depend".
9326 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9328         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9330 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9332         * ipa-prop.c (ipa_vr::nonzero_p): New.
9333         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9334         non-zero range.
9335         * ipa-prop.h (class ipa_vr): Add nonzero_p.
9336         * tree-vrp.c (range_has_numeric_bounds_p): New.
9337         (range_int_cst_p): Use range_has_numeric_bounds_p.
9338         (get_range_op_handler): New.
9339         (supported_types_p): New.
9340         (defined_ranges_p): New.
9341         (drop_undefines_to_varying): New.
9342         (range_fold_binary_symbolics_p): New.
9343         (range_fold_unary_symbolics_p): New.
9344         (range_fold_unary_expr): Extract out into above functions.
9345         (range_fold_binary_expr): Same.
9346         (value_range_base::normalize_addresses): New.
9347         (value_range_base::normalize_symbolics): Normalize addresses.
9348         * tree-vrp.h (class value_range_base): Add normalize_addresses.
9350 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
9352         * tree-vrp.c (value_range_base::singleton_p): Use
9353         value_range_base::num_pairs instead of vrp_val_is* to check
9354         if a range has one sub-range.
9356 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9358         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9359         DEF is not a true earlyclobber but is tied to a specific input
9360         operand, and so is effectively earlyclobber wrt inputs that have
9361         different values.
9362         (make_early_clobber_and_input_conflicts): Pass this case to the above.
9364 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9366         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9367         (pod_mode): Mark operators likewise.
9368         (scalar_int_mode): Mark non-default constructors and
9369         operators with CONSTEXPR.
9370         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9371         (fixed_size_mode): Likewise.
9373 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9375         PR target/91994
9376         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9377         and wrap the unspec_volatile in a parallel.
9378         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
9379         the unspec_volatile.
9380         * config/i386/predicates.md (vzeroupper_pattern): Expect the
9381         unspec_volatile to be wrapped in a parallel.
9382         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9383         (ix86_add_reg_usage_to_vzerouppers): New functions.
9384         (rest_of_handle_insert_vzeroupper): Use them to add register
9385         usage information to the vzeroupper instructions.
9387 2019-10-07  Richard Biener  <rguenther@suse.de>
9389         PR tree-optimization/91975
9390         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9391         handle invariants.
9393 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
9395         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9396         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9398 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
9400         * config/darwin.c (darwin_override_options): Adjust objective-c
9401         ABI version error messages to avoid punctuation and contracted
9402         negations.
9404 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
9406         * ipa-inline.c: Fix type; compute size rather than self_size
9407         for size of caller function.
9409 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
9411         PR target/59888
9412         * config/darwin.c (darwin_rodata_section): Add relocation flag,
9413         choose const_data section for constants with relocations.
9414         (machopic_select_section): Pass relocation flag to
9415         darwin_rodata_section ().
9417 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
9419         PR tree-optimization/91734
9420         * generic-match-head.c: Include fold-const-call.h.
9421         * match.pd (sqrt(x) cmp c): Check the boundary value and
9422         in case inexact computation of c*c affects comparison of the boundary,
9423         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9424         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
9425         for -frounding-math.  For c2, try the next smaller or larger floating
9426         point constant depending on comparison code and if it has the same
9427         sqrt as c2, use it instead of c2.
9429 2019-10-04  Martin Sebor  <msebor@redhat.com>
9431         PR middle-end/91977
9432         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9433         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
9434         uninitialized objects.
9436 2019-10-04  Martin Sebor  <msebor@redhat.com>
9438         * builtins.c (compute_objsize): Add an argument.
9439         * tree-object-size.c (addr_object_size): Same.
9440         (compute_builtin_object_size): Same.
9441         * tree-object-size.h (compute_builtin_object): Same.
9443 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
9445         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9447 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
9449         * match.pd (sinh (x) / cosh (x)): New simplification rule.
9451 2019-10-04  Martin Jambor  <mjambor@suse.cz>
9453         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9454         fntype when switching to calling memcpy instead of memset.
9456 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9458         * hash-table.h (hash_table::empty_slow): Don't assign
9459         size_t values to int variables.
9461 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9463         * expr.c (convert_mode_scalar): Remove shadowing local var.
9464         (emit_block_move): Rename local vars.
9465         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9466         (emit_push_insn): Rename local vars.
9467         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
9468         shadowing local vars.
9469         (store_constructor): Remove shadowing local vars.  Rename local var.
9470         (store_field, expand_cond_expr_using_cmove,
9471         expand_expr_real_2): Remove shadowing local vars.
9472         (expand_expr_real_1,
9473         do_store_flag): Remove shadowing local vars.  Rename local vars.
9475 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9477         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9479 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9481         * genmatch.c (commutate): Rename local var.
9482         (lower_cond): Reuse local var.
9483         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9484         dt_operand::gen, dt_operand::gen_gimple_expr,
9485         dt_simplify::gen): Add a param.  Rename generated vars.
9486         (decision_tree::insert_operand,
9487         (capture_info::walk_match, capture_info::walk_result,
9488         capture_info::walk_c_expr): Rename local vars.
9489         (expr::gen_transform): Rename generated vars.
9490         Use snprintf.  Rename local vars.
9491         (capture::gen_transform, dt_operand::get_name,
9492         dt_operand::gen_opname): Rename generated vars.
9493         (write_predicate): Adjust call to gen_kids.
9494         (parser::get_internal_capture_id): Rename generated vars.
9495         (parser::parse_expr): Rename local vars.
9496         (parser::parse_if): Remove local var.
9497         (parser::parse_pattern, add_operator): Rename local vars.
9499 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
9501         * builtins.def (DEF_C2X_BUILTIN): New macro.
9502         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9503         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9504         (strndup): Use DEF_C2X_BUILTIN.
9505         * coretypes.h (enum function_class): Add function_c2x_misc.
9507 2019-10-04  Maya Rashish  <coypu@sdf.org>
9509         * ira-color.c (update_costs_from_allocno): Call
9510         ira_init_register_move_cost_if_necessary.
9512 2019-10-04  Jeff Law  <law@redhat.com>
9514         * config/h8300/h8300.md (cpymemsi): Disable.
9515         (movmd, movmd_internal_<mode>, movstr, movsd):
9516         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9517         (movmd splitter, movsd splitter): Likewise.
9519         * range-op.cc (range_tests): Avoid two tests when ints and
9520         shorts are the same size.
9522 2019-10-04  Richard Biener  <rguenther@suse.de>
9524         PR lto/91968
9525         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9526         BLOCK_VARS.
9528 2019-10-04  Richard Biener  <rguenther@suse.de>
9530         PR tree-optimization/91982
9531         * tree-vect-loop.c (vectorizable_live_operation): Also guard
9532         against EXTRACT_LAST_REDUCTION.
9533         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9535 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
9537         * range-op.o (value_range_from_overflowed_bounds): Rename from
9538         adjust_overflow_bound.
9539         (value_range_with_overflow): Rename from
9540         create_range_with_overflow.
9541         (create_possibly_reversed_range): Adjusted for above renames.
9542         (operator_*::wi_fold): Same.
9543         (cross_product_operator::wi_cross_productor): Same.
9545 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9547         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9548         -Wshadow=compatible-local): Fix description.
9549         Add an example where -Wshadow=compatible-local does not
9550         warn.
9552 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
9554         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9556         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9557         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9559 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
9561         * expr.c (emit_block_move_hints): Slightly cleaner fix to
9562         can_move_by_pieces issue.
9564 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
9566         PR target/87243
9567         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9568         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9569         is available and the user has not set one on the command line.
9571 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
9573         PR target/91769
9574         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9575         instead of REGNO equality check on addr.reg.
9577 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
9579         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9580         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9581         * doc/invoke.texi (inline-heuristics-hint-percent,
9582         inline-heuristics-hint-percent-O2): Document.
9583         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9584         hint attribute.
9585         (can_inline_edge_by_limits_p): Use it.
9587 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
9589         * config/arm/arm.c (arm_print_value): Use real_to_decimal
9590         to print CONST_DOUBLEs.
9592 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
9594         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9595         * ipa-prop.c (ipcp_free_transformation_sum): New function.
9596         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9598 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
9600         * Makefile.in (OBJS): Add range.o and range-op.o.
9601         Remove wide-int-range.o.
9602         * function-tests.c (test_ranges): New.
9603         (function_tests_c_tests): Call test_ranges.
9604         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9605         range_fold_unary_expr instead of extract_range_from_unary_expr.
9606         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9607         * range-op.cc: New file.
9608         * range-op.h: New file.
9609         * range.cc: New file.
9610         * range.h: New file.
9611         * selftest.h (range_tests): New prototype.
9612         * ssa.h: Include range.h.
9613         * tree-vrp.c (value_range_base::value_range_base): New
9614         constructors.
9615         (value_range_base::singleton_p): Do not call
9616         ranges_from_anti_range until sure we will need to.
9617         (value_range_base::type): Rename gcc_assert to
9618         gcc_checking_assert.
9619         (vrp_val_is_max): New argument.
9620         (vrp_val_is_min): Same.
9621         (wide_int_range_set_zero_nonzero_bits): Move from
9622         wide-int-range.cc.
9623         (extract_range_into_wide_ints): Remove.
9624         (extract_range_from_multiplicative_op): Remove.
9625         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9626         from extract_range_from_binary_expr.
9627         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9628         from extract_range_from_binary_expr.
9629         (extract_range_from_binary_expr): Remove.
9630         (normalize_for_range_ops): New.
9631         (range_fold_binary_expr): New.
9632         (range_fold_unary_expr): New.
9633         (value_range_base::num_pairs): New.
9634         (value_range_base::lower_bound): New.
9635         (value_range_base::upper_bound): New.
9636         (value_range_base::upper_bound): New.
9637         (value_range_base::contains_p): New.
9638         (value_range_base::invert): New.
9639         (value_range_base::union_): New.
9640         (value_range_base::intersect): New.
9641         (range_compatible_p): New.
9642         (value_range_base::operator==): New.
9643         (determine_value_range_1): Call range_fold_*expr instead of
9644         extract_range_from_*expr.
9645         * tree-vrp.h (class value_range_base): Add new constructors.
9646         Add methods for union_, intersect, operator==, contains_p,
9647         num_pairs, lower_bound, upper_bound, invert.
9648         (vrp_val_is_min): Add handle_pointers argument.
9649         (vrp_val_is_max): Same.
9650         (extract_range_from_unary_expr): Remove.
9651         (extract_range_from_binary_expr): Remove.
9652         (range_fold_unary_expr): New.
9653         (range_fold_binary_expr): New.
9654         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9655         range_fold_binary_expr instead of extract_range_from_binary_expr.
9656         (vr_values::extract_range_basic): Same.
9657         (vr_values::extract_range_from_unary_expr): Call
9658         range_fold_unary_expr instead of extract_range_from_unary_expr.
9659         * wide-int-range.cc: Remove.
9660         * wide-int-range.h: Remove.
9662 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
9664         * config/rs6000/rs6000.c (mem_operand_gpr): Use
9665         SIGNED_16BIT_OFFSET_EXTRA_P macro.
9666         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9667         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9668         macro.
9670 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
9672         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9673         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9674         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9675         * glimits.h: Likewise.
9677 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
9679         PR rtl-optimization/91976
9680         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9681         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
9682         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
9684 2019-10-02  Martin Sebor  <msebor@redhat.com>
9686         PR tree-optimization/80936
9687         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9689 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
9691         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9692         instead of reg_class_contents[ALL_REGS].
9694 2019-09-30  Jason Merrill  <jason@redhat.com>
9696         Add some hash_map_safe_* functions like vec_safe_*.
9697         * hash-map.h (default_hash_map_size): New variable.
9698         (create_ggc): Use it as default argument.
9699         (hash_map_maybe_create, hash_map_safe_get)
9700         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9702 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
9704         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9705         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9706         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9707         (can_inline_edge_by_limits_p): Use it.
9708         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9709         (want_inline_small_function_p): Use O2 bounds.
9710         (edge_badness): LIkewise.
9711         * opts.c (default_options): Add OPT_finline_functions.
9712         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9713         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9714         New parameters.
9715         * doc/invoke.texi (-finline-functions): Update documentation.
9716         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9717         inline-min-speedup-O2): Document.
9718         (early-inlining-insns-O2): Simplify docs.
9720 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
9722         PR rtl-optimization/87047
9723         * ifcvt.c (average_cost): New static function.  Use it...
9724         (noce_process_if_block): ... here.
9726 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
9728         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9729         * config/rs6000/rs6000-string.c (expand_block_move): Add
9730         might_overlap parm.
9731         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9732         (cpymemsi): Add might_overlap parm to expand_block_move() call.
9734 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
9736         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9737         (expand_builtin_memcpy): Use might_overlap parm.
9738         (expand_builtin_mempcpy_args): Use might_overlap parm.
9739         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9740         (expand_builtin_memory_copy_args): Add might_overlap parm.
9741         * expr.c (emit_block_move_via_cpymem): Rename to
9742         emit_block_move_via_pattern, add might_overlap parm, use cpymem
9743         or movmem optab as appropriate.
9744         (emit_block_move_hints): Add might_overlap parm, do the right
9745         thing for might_overlap==true.
9746         * expr.h (emit_block_move_hints): Update prototype.
9748 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
9750         * tree-eh.h (unsplit_eh_edges): Declare.
9751         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9752         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9753         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9754         (struct store_immediate_info): Add lp_nr field.
9755         (store_immediate_info::store_immediate_info): Add NR2 parameter and
9756         initialize lp_nr with it.
9757         (struct merged_store_group): Add lp_nr and only_constants fields.
9758         (merged_store_group::merged_store_group): Initialize them.
9759         (merged_store_group::can_be_merged_into): Deal with them.
9760         (pass_store_merging): Rename terminate_and_release_chain into
9761         terminate_and_process_chain.
9762         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9763         renaming and remove useless assertions.
9764         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9765         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9766         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9767         instead of always recomputing it and compare lp_nr.
9768         (imm_store_chain_info::output_merged_store): If the group is in an
9769         active EH region, register new stores if they can throw.  Moreover,
9770         if the insertion has created new basic blocks, adjust the PHI nodes
9771         of the post landing pad.
9772         (imm_store_chain_info::output_merged_stores): If the original stores
9773         are in an active EH region, deregister them.
9774         (lhs_valid_for_store_merging_p): Prettify.
9775         (adjust_bit_pos): New function extracted from...
9776         (mem_valid_for_store_merging): ...here.  Use it for the base address
9777         and also for the offset if it is the addition of a constant.
9778         (lp_nr_for_store): New function.
9779         (pass_store_merging::process_store): Change return type to bool.
9780         Call lp_nr_for_store to initialize the store info.  Propagate the
9781         return status of various called functions to the return value.
9782         (store_valid_for_store_merging_p): New predicate.
9783         (enum basic_block_status): New enumeration.
9784         (get_status_for_store_merging): New function.
9785         (pass_store_merging::execute): If the function can throw and catch
9786         non-call exceptions, unsplit the EH edges on entry and clean up the
9787         CFG on exit if something changed.  Call get_status_for_store_merging
9788         for every basic block and keep the chains open across basic blocks
9789         when possible.  Terminate and process open chains at the end, if any.
9791 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
9793         * reginfo.c (globalize_reg): Fix shadowed variable in
9794         function_abis walk.
9796 2019-10-02  Martin Jambor  <mjambor@suse.cz>
9798         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9799         do not compute some stuff when set.
9800         (cgraph_node::create_edge): Likewise.
9801         (cgraph_node::create_indirect_edge): Renamed last parameter to
9802         coning_p and flipped its meaning, don't even calculate
9803         inline_failed when set.
9804         * cgraph.h (cgraph_node::create_edge): Add new parameter.
9805         (symbol_table::::create_edge): Likewise.
9806         (cgraph_node::create_indirect_edge): Rename last parameter, flip
9807         the default value.
9808         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9809         call graph edge creating functions.
9811 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
9813         PR c++/91222
9814         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9815         namespace types.
9817 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
9819         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9821 2019-10-02  Richard Biener  <rguenther@suse.de>
9823         * tree-vectorizer.h (vect_transform_reduction): Declare.
9824         * tree-vect-stmts.c (vect_transform_stmt): Use it.
9825         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9826         stmt transform to ...
9827         (vect_transform_reduction): ... this.
9829 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
9831         * omp-low.c (lower_omp_target): Dereference optional argument
9832         to work with the right pointer.
9834 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
9836         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9837         false.
9838         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9839         * langhooks.h (omp_is_optional_argument): New hook.
9840         * omp-general.c (omp_is_optional_argument): New.
9841         * omp-general.h (omp_is_optional_argument): New declaration.
9842         * omp-low.c (lower_omp_target): Create temporary for received value
9843         and take the address for new_var if the original variable was a
9844         DECL_BY_REFERENCE.  Use size of referenced object when a
9845         pass-by-reference optional argument used as argument to firstprivate.
9847 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
9849         PR tree-optimization/91940
9850         * tree-vect-patterns.c: Include tree-vector-builder.h and
9851         vec-perm-indices.h.
9852         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9853         unpromoting the argument back to uint16_t, or by converting into a
9854         rotate, or into shifts plus ior.
9856 2019-10-02  Richard Biener  <rguenther@suse.de>
9858         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9859         New.
9860         (vect_transform_cycle_phi): Declare.
9861         * tree-vect-stmts.c (vect_transform_stmt): Call
9862         vect_transform_cycle_phi.
9863         * tree-vect-loop.c (vectorizable_reduction): Split out
9864         PHI transformation stage to ...
9865         (vect_transform_cycle_phi): ... here.
9867 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
9869         PR middle-end/91957
9870         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9871         eliminable registers.
9872         (make_hard_regno_live): Likewise, and don't make them live.
9874 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
9876         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9877         Call pp_emit_prefix.
9878         (layout::print_source_line): Likewise.
9879         (layout::start_annotation_line): Likewise.
9880         (diagnostic_show_locus): Remove call to temporarily clear the
9881         prefix.
9882         (selftest::test_one_liner_fixit_remove): Add test coverage for the
9883         interaction of pp_set_prefix with rulers and fix-it hints.
9884         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9885         prefix when calling diagnostic_show_locus, rather than destroying
9886         it afterwards.
9887         (print_parseable_fixits): Temporarily clear prefix.
9888         * pretty-print.c (pp_format): Save and restore line_length, rather
9889         than assuming it is zero.
9890         (pp_output_formatted_text): Remove assertion that line_length is
9891         zero.
9893 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
9895         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9896         Rename to ...
9897         (nonoverlapping_refs_since_match_p): ... this; handle also
9898         ARRAY_REFs.
9899         (alias_stats): Update stats.
9900         (dump_alias_stats): Likewise.
9901         (cheap_array_ref_low_bound): New function.
9902         (aliasing_matching_component_refs_p): Add partial_overlap
9903         argument;
9904         pass it to nonoverlapping_refs_since_match_p.
9905         (aliasing_component_refs_walk): Update call of
9906         aliasing_matching_component_refs_p
9907         (nonoverlapping_array_refs_p): New function.
9908         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9909         indirect_refs_may_alias_p): Update calls of
9910         nonoverlapping_refs_since_match_p.
9912 2019-10-01  Maya Rashish  <coypu@sdf.org>
9914         PR target/85401
9915         * ira-color.c (allocno_copy_cost_saving): Call
9916         ira_init_register_move_cost_if_necessary.
9918 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
9920         * Makefile.in (gnat_install_lib): New variable.
9921         * configure.ac: Substitute it.
9922         * configure: Regenerate.
9924 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
9926         PR lto/91222
9927         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9928         is matched with non-C++ type
9930 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9932         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9933         after local CSE.
9935 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
9937         * doc/invoke.texi (early-inlining-insns-O2): Document.
9938         (early-inlining-insns): Update.
9939         * params.def (early-inlining-insns-O2): New bound.
9940         (early-inlining-insns): Update docs.
9941         * ipa-inline.c (want_early_inline_function_p): Use new bound.
9943 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
9945         PR target/88562
9946         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9947         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9948         a memory access insn.
9950 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
9952         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9953         vpmsumd.
9955 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
9957         PR target/77918
9958         * config/s390/s390.c (s390_expand_vec_compare): Use
9959         gen_vec_cmpordered and gen_vec_cmpunordered.
9960         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9961         vec_unordered): Delete.
9962         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9963         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9964         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9965         (vec_cmp<code>): Generic dispatcher.
9967 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
9969         PR target/77918
9970         * config/s390/vector.md (V_HW): Add V1TI in order to make
9971         vcond$a$b generate vcondv1tiv1tf.
9973 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
9975         PR rtl-optimization/91948
9976         * ira-build.c (ira_create_allocno): Initialize
9977         ALLOCNO_CROSSED_CALLS_ABIS.
9978         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9979         than regno to ira_need_caller_save_p.
9981 2019-10-01  Alexandre Oliva <oliva@adacore.com>
9983         * config/i386/i386-options.c
9984         (ix86_recompute_optlev_based_flags): New, moved out of...
9985         (ix86_option_override_internal): ... this.  Call it.
9986         (ix86_override_options_after_change): Call it here too.
9988         PR debug/91507
9989         * dwarf2out.c (override_type_for_decl_p): New.
9990         (gen_variable_die): Use it.
9992 2019-10-01  Richard Biener  <rguenther@suse.de>
9994         * tree-vect-loop.c (vectorizable_reduction): Move variables
9995         to where they are used.
9997 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9999         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10000         (build_def_use): Use PC instead of CC0 in a comment.
10002 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10004         * rtl.def (CLOBBER_HIGH): Delete.
10005         * doc/rtl.texi (clobber_high): Remove documentation.
10006         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10007         (reg_is_clobbered_by_clobber_high): Delete.
10008         (gen_hard_reg_clobber_high): Likewise.
10009         * alias.c (record_set): Remove CLOBBER_HIGH handling.
10010         * cfgexpand.c (expand_gimple_stmt): Likewise.
10011         * combine-stack-adj.c (single_set_for_csa): Likewise.
10012         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10013         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10014         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10015         * cse.c (invalidate_reg): Remove clobber_high parameter.
10016         (invalidate): Update call accordingly.
10017         (canonicalize_insn): Remove CLOBBER_HIGH handling.
10018         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10019         (count_reg_usage, insn_live_p): Likewise.
10020         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10021         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10022         (cselib_invalidate_rtx_note_stores): Update call accordingly.
10023         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10024         (cselib_invalidate_regno, cselib_process_insn): Likewise.
10025         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10026         (mark_nonreg_stores_2): Likewise.
10027         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10028         (df_get_call_refs): Likewise.
10029         * dwarf2out.c (mem_loc_descriptor): Likewise.
10030         * emit-rtl.c (verify_rtx_sharing): Likewise.
10031         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10032         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10033         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10034         * genemit.c (gen_exp, gen_insn): Likewise.
10035         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10036         * haifa-sched.c (haifa_classify_rtx): Likewise.
10037         * ira-build.c (create_insn_allocnos): Likewise.
10038         * ira-costs.c (scan_one_insn): Likewise.
10039         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10040         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10041         * jump.c (mark_jump_label_1): Likewise.
10042         * lra-int.h (lra_insn_reg::clobber_high): Delete.
10043         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10044         handling.
10045         (mark_not_eliminable): Likewise.
10046         * lra-lives.c (process_bb_lives): Likewise.
10047         * lra.c (new_insn_reg): Remove clobber_high parameter.
10048         (collect_non_operand_hard_regs): Likewise.  Update call to new
10049         insn_reg.  Remove CLOBBER_HIGH handling.
10050         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
10051         to collect_non_operand_hard_regs.
10052         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10053         Update call to new_insn_reg.
10054         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10055         * postreload.c (reload_cse_simplify, reload_combine_note_use)
10056         (move2add_note_store): Likewise.
10057         * print-rtl.c (print_pattern): Likewise.
10058         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10059         (if_test_bypass_p): Likewise.
10060         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10061         * reginfo.c (reg_scan_mark_refs): Likewise.
10062         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10063         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10064         (forget_old_reloads_1): Likewise.
10065         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10066         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10067         (dbr_schedule): Likewise.
10068         * resource.c (update_live_status, mark_referenced_resources)
10069         (mark_set_resources): Likewise.
10070         * rtl.c (copy_rtx): Likewise.
10071         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10072         (note_pattern_stores): Likewise.
10073         (reg_is_clobbered_by_clobber_high): Delete.
10074         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10075         CLOBBER_HIGH handling.
10077 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10079         PR target/91452
10080         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10081         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10082         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10083         Handle ARM_PCS_TLSDESC.
10084         (aarch64_tlsdesc_abi_id): New function.
10085         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10086         rtx instead of a list of clobbers and clobber_highs.
10087         (tlsdesc_small_<mode>): Update accordingly.
10089 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10091         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10092         extra callee_abi argument.
10093         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10094         Insert a CALLEE_ABI unspec into the call pattern as the second
10095         element in the PARALLEL.
10096         (aarch64_simd_call_p): Delete.
10097         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10098         the new CALLEE_ABI element of the PARALLEL.
10099         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10100         from the function type, if given.
10101         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10102         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
10103         when passed the function_arg_info end marker.
10104         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10105         final argument of gen_sibcall.
10106         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10107         (call): Make operand 2 a const_int_operand and pass it to expand_call.
10108         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10109         pattern.
10110         (call_value): Likewise operand 3.
10111         (sibcall): Likewise operand 2.  Place the unspec before rather than
10112         after the return.
10113         (sibcall_value): Likewise operand 3.
10114         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10115         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10116         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
10117         constraint strings.
10118         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10120 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
10122         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10123         choose_hard_reg_mode.
10124         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10126 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10128         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10129         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10130         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10132 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
10134         * diagnostic-show-locus.c (line_label::line_label): Initialize
10135         m_has_vbar.
10136         (line_label::comparator): Reverse the sort order by m_state_idx,
10137         so that when the list is walked backwards the labels appear in
10138         order of insertion into the rich_location.
10139         (line_label::m_has_vbar): New field.
10140         (layout::print_any_labels): When dealing with multiple labels at
10141         the same line and column, only print vertical bars for the one
10142         with the highest label_line.
10143         (selftest::test_one_liner_labels): Update test for multiple labels
10144         to expect the labels to be in the order of insertion into the
10145         rich_location.  Add a test for many such labels, where the column
10146         numbers are out-of-order relative to the insertion order.
10148 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10150         * config/i386/i386.h (ix86_frame::expensive_p): New field.
10151         (ix86_frame::expensive_count): Likewise.
10152         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10153         of use_fast_prologue_epilogue robust against incidental changes
10154         in function size.
10156 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
10158         PR target/77918
10159         * config/s390/vector.md (vec_unordered<mode>): Call
10160         gen_vec_ordered<mode>.
10162 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
10164         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10165         New pattern for ASRD.
10166         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10167         * internal-fn.def (IFN_DIV_POW2): New internal function.
10168         * optabs.def (sdiv_pow2_optab): New optab.
10169         * tree-vect-patterns.c (vect_recog_divmod_pattern):
10170         Modify pattern to support new operation.
10171         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10172         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10173         Document new target selector.
10175 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10177         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10178         to test whether we're compiling a vector PCS function and to test
10179         whether the function needs to save a particular register.
10180         Remove the vector PCS handling of df_set_regs_ever_live.
10181         (aarch64_components_for_bb): Use crtl->abi to test whether
10182         the function needs to save a particular register.
10183         (aarch64_process_components): Use crtl->abi to test whether
10184         we're compiling a vector PCS function.
10185         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10186         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10188 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10190         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10191         Delete.
10192         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10193         whether the block calls a function that clobbers more registers
10194         than the current function is allowed to.
10195         (aarch64_use_simple_return_insn_p): Delete.
10196         * config/aarch64/aarch64.md (simple_return): Remove condition.
10198 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10200         * function-abi.h (function_abi_aggregator): New class.
10201         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10202         function.
10203         * ira.c (update_equiv_regs_prescan): New function.  Call
10204         set_paradoxical_subreg here rather than...
10205         (update_equiv_regs): ...here.
10206         (ira): Call update_equiv_regs_prescan.
10208 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10210         * hard-reg-set.h (regs_invalidated_by_call): Only define if
10211         IN_TARGET_CODE.
10212         (call_used_or_fixed_regs): Likewise.
10213         (call_used_or_fixed_reg_p): Likewise.
10214         * reginfo.c (regs_invalidated_by_call): New macro.
10216 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10218         * shrink-wrap.c: Include function-abi.h.
10219         (requires_stack_frame_p): Use crtl->abi to test whether the
10220         current function can use a register without saving it first.
10222 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10224         * sel-sched-ir.h (_def::crosses_call): Replace with...
10225         (_def::crossed_call_abis): ..this new field.
10226         (def_list_add): Take a mask of ABIs instead of a crosses_call
10227         boolean.
10228         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
10229         of _def accordingly.
10230         * sel-sched.c: Include function-abi.h.
10231         (hard_regs_data::regs_for_call_clobbered): Delete.
10232         (reg_rename::crosses_call): Replace with...
10233         (reg_rename::crossed_call_abis): ...this new field.
10234         (fur_static_params::crosses_call): Replace with...
10235         (fur_static_params::crossed_call_abis): ...this new field.
10236         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10237         (init_hard_regs_data): Use crtl->abi to test which registers the
10238         current function would need to save before it uses them.
10239         (mark_unavailable_hard_regs): Update handling of call-clobbered
10240         registers, using call_clobbers_in_region to find out which registers
10241         might be call-clobbered (but without taking -fipa-ra into account
10242         for now).  Remove separate handling of partially call-clobbered
10243         registers.
10244         (verify_target_availability): Use crossed_call_abis instead of
10245         crosses_call.
10246         (get_spec_check_type_for_insn, find_used_regs): Likewise.
10247         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10249 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10251         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10252         function to test whether a register is fully or partly clobbered.
10254 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10256         * rtlanal.c: Include function-abi.h.
10257         (reg_set_p): Use insn_callee_abi to get the ABI of the called
10258         function and clobbers_reg_p to test whether the register
10259         is call-clobbered.
10260         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10261         to get the ABI of the called function and full_reg_clobbers to
10262         get the set of fully call-clobbered registers.  Warn about the
10263         pitfalls of using this mode.
10265 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10267         * reload.c: Include function-abi.h.
10268         (find_equiv_reg): Use clobbers_reg_p to test whether either
10269         of the equivalent registers is clobbered by a call.
10270         * reload1.c: Include function-abi.h.
10271         (reg_reloaded_call_part_clobbered): Delete.
10272         (reload): Use crtl->abi to test which registers would need
10273         saving in the prologue before use.
10274         (find_reg): Likewise.
10275         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10276         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
10277         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10279 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10281         * regrename.h (du_head::call_clobber_mask): New field.
10282         (du_head::need_caller_save_reg): Replace with...
10283         (du_head::call_abis): ...this new field.
10284         * regrename.c: Include function-abi.h.
10285         (call_clobbered_in_chain_p): New function.
10286         (check_new_reg_p): Use crtl->abi when deciding whether a register
10287         is free for use after RA.  Use call_clobbered_in_chain_p to test
10288         whether a candidate register would be clobbered by a call.
10289         (find_rename_reg): Don't add call-clobber conflicts here.
10290         (rename_chains): Check call_abis instead of need_caller_save_reg.
10291         (merge_chains): Update for changes to du_head.
10292         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10293         target.  Record the ABI identifier in call_abis and the set of
10294         fully or partially clobbered registers in call_clobber_mask.
10295         Add fully-clobbered registers to hard_conflicts here rather
10296         than in find_rename_reg.
10297         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10298         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10299         * config/aarch64/falkor-tag-collision-avoidance.c: Include
10300         function-abi.h.
10301         * config/c6x/c6x.c: Likewise.
10303 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10305         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10306         mode of the register when deciding whether it is no longer
10307         available after a call.
10309 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10311         * recog.c: Include function-abi.h.
10312         (peep2_find_free_register): Use crtl->abi when deciding whether
10313         a register is free for use after RA.
10315 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10317         * postreload-gcse.c: Include regs.h and function-abi.h.
10318         (record_opr_changes): Use insn_callee_abi to get the ABI of the
10319         call insn target.  Conservatively assume that partially-clobbered
10320         registers are altered.
10322 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10324         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10325         when deciding whether a register is free for use after RA.
10326         (reload_combine): Remove unnecessary use of fixed_reg_set.
10327         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10328         call insn target.  Use reg_mode when testing whether a register
10329         is no longer available.
10331 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10333         * target.def (return_call_with_max_clobbers): Delete.
10334         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10335         * doc/tm.texi: Regenerate.
10336         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10337         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10338         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10339         (lra_reg::call_insn): Delete.
10340         * lra.c: Include function-abi.h.
10341         (initialize_lra_reg_info_element): Don't initialize the fields above.
10342         (lra): Use crtl->abi to test whether the current function needs to
10343         save a register in the prologue.  Remove special pre-inheritance
10344         lra_create_live_ranges pass for flag_ipa_ra.
10345         * lra-assigns.c: Include function-abi.h
10346         (find_hard_regno_for_1): Use crtl->abi to test whether the current
10347         function needs to save a register in the prologue.
10348         (lra_assign): Assert that registers aren't allocated to a
10349         conflicting register, rather than checking only for overlaps
10350         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
10351         and for registers that are not live across a call.
10352         * lra-constraints.c (last_call_for_abi): New variable.
10353         (full_and_partial_call_clobbers): Likewise.
10354         (setup_next_usage_insn): Remove the register from
10355         full_and_partial_call_clobbers.
10356         (need_for_call_save_p): Use call_clobbered_in_region_p to test
10357         whether the register needs a caller save.
10358         (need_for_split_p): Use full_and_partial_reg_clobbers instead
10359         of call_used_or_fixed_regs.
10360         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10361         full_and_partial_call_clobbers.
10362         * lra-lives.c (check_pseudos_live_through_calls): Replace
10363         last_call_used_reg_set and call_insn arguments with an abi argument.
10364         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
10365         as the set of conflicting registers.
10366         (calls_have_same_clobbers_p): Delete.
10367         (process_bb_lives): Track the ABI of the last call instead of an
10368         insn/HARD_REG_SET pair.  Update calls to
10369         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
10370         the set of registers that could be clobbered by an EH edge.
10371         Include partially-clobbered as well as fully-clobbered registers.
10372         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10373         * lra-remat.c: Include function-abi.h.
10374         (call_used_regs_arr_len, call_used_regs_arr): Delete.
10375         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10376         registers and bitmap_view to combine them into dead_regs.
10377         (call_used_input_regno_present_p): Take a function_abi argument
10378         and use it to test whether a register is call-clobbered.
10379         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10380         call insn target.  Update tje call to call_used_input_regno_present_p.
10381         (do_remat): Likewise.
10382         (lra_remat): Remove the initialization of call_used_regs_arr_len
10383         and call_used_regs_arr.
10385 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10387         * loop-iv.c: Include regs.h and function-abi.h.
10388         (simplify_using_initial_values): Use insn_callee_abi to get the
10389         ABI of the call insn target.  Conservatively assume that
10390         partially-clobbered registers are altered.
10392 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10394         * function-abi.h (call_clobbers_in_region): Declare.
10395         (call_clobbered_in_region_p): New function.
10396         * function-abi.cc (call_clobbers_in_region): Likewise.
10397         * ira-int.h: Include function-abi.h.
10398         (ira_allocno::crossed_calls_abis): New field.
10399         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10400         (ira_need_caller_save_regs): New function.
10401         (ira_need_caller_save_p): Likewise.
10402         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10403         of call_used_or_fixed_regs.
10404         (do_reload): Use crtl->abi to test whether the current function
10405         needs to save a register in the prologue.  Count registers that
10406         need to be saved rather than registers that don't.
10407         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10408         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10409         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10410         (propagate_some_info_from_allocno): Likewise.
10411         (copy_info_to_removed_store_destinations): Likewise.
10412         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10413         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10414         (ira_build): Use ira_need_caller_save_regs instead of
10415         call_used_or_fixed_regs.
10416         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10417         whether the current function would need to save a register
10418         before using it.
10419         (calculate_spill_cost): Likewise.
10420         (allocno_reload_assign): Use ira_need_caller_save_regs and
10421         ira_need_caller_save_p instead of call_used_or_fixed_regs.
10422         * ira-conflicts.c (ira_build_conflicts): Use
10423         ira_need_caller_save_regs rather than call_used_or_fixed_regs
10424         as the set of call-clobbered registers.  Remove the
10425         call_used_or_fixed_regs mask from the calculation of
10426         temp_hard_reg_set and mask its use instead.  Remove special
10427         handling of partially-clobbered registers.
10428         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10429         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10430         calculate the set of conflicting registers for calls that
10431         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10432         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10433         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10434         Use eh_edge_abi to calculate the set of registers that could
10435         be clobbered by an EH edge.  Include partially-clobbered as
10436         well as fully-clobbered registers.
10438 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10440         * haifa-sched.c: Include function-abi.h.
10441         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10442         the function would need to save a register before using it.
10444 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10446         * gcse.c: Include function-abi.h.
10447         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10448         the call insn target.  Invalidate partially call-clobbered
10449         registers as well as fully call-clobbered ones.
10451 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10453         * function.c (aggregate_value_p): Work out which ABI the
10454         function is using before testing which registers are at least
10455         partly preserved by a call.
10457 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10459         * early-remat.c: Include regs.h and function-abi.h.
10460         (early_remat::maybe_add_candidate): Don't check for call-clobbered
10461         registers here.
10462         (early_remat::restrict_remat_for_unavail_regs): New function.
10463         (early_remat::restrict_remat_for_call): Likewise.
10464         (early_remat::process_block): Before calling emit_remat_insns
10465         for a previous call in the block, invalidate any candidates
10466         that would clobber call-preserved registers.
10467         (early_remat::emit_remat_insns_for_block): Likewise for the
10468         final call in a block.  Do the same thing for live-in registers
10469         when calling emit_remat_insns at the head of a block.
10471 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10473         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10474         whether the current function needs to save at least part of a
10475         register before using it.
10476         (df_get_exit_block_use_set): Likewise for epilogue restores.
10478 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10480         * df-problems.c: Include regs.h and function-abi.h.
10481         (df_rd_problem_data): Rename sparse_invalidated_by_call to
10482         sparse_invalidated_by_eh and dense_invalidated_by_call to
10483         dense_invalidated_by_eh.
10484         (df_print_bb_index): Update accordingly.
10485         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10486         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10487         that are clobbered by an EH edge.  Clobber partially-clobbered
10488         registers as well as fully-clobbered ones.
10489         (df_md_confluence_n): Likewise.
10490         (df_rd_local_compute): Likewise.  Update for changes to
10491         df_rd_problem_data.
10492         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10493         of registers that are clobbered by an EH edge.  Includde partially-
10494         clobbered registers as well as fully-clobbered ones.
10496 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10498         * cselib.c (cselib_process_insn): If we know what mode a
10499         register was set in, check whether it is clobbered in that
10500         mode by a call.  Only fall back to reg_raw_mode if that fails.
10502 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10504         * cse.c: Include regs.h and function-abi.h.
10505         (invalidate_for_call): Take the call insn as an argument.
10506         Use insn_callee_abi to get the ABI of the call and invalidate
10507         partially clobbered registers as well as fully clobbered ones.
10508         (cse_insn): Update call accordingly.
10510 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10512         * combine.c: Include function-abi.h.
10513         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10514         of the target of call insns.  Invalidate partially-clobbered
10515         registers as well as fully-clobbered ones.
10517 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10519         * cfgloopanal.c: Include regs.h and function-abi.h.
10520         (init_set_costs): Use default_function_abi to test whether
10521         a general register is call-clobbered.
10523 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10525         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10526         instead of the call-clobbered sets.
10528 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10530         * caller-save.c (setup_save_areas): Remove redundant |s of
10531         fixed_reg_set.
10532         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
10533         than call_used_or_fixed_regs to decide whether a REG_RETURNED
10534         value is useful.
10536 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10538         * rtl.h (predefined_function_abi): Declare.
10539         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10540         instead of a boolean call_save flag.
10541         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10542         accordingly.
10543         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10544         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10545         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10546         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10547         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10548         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10549         * reginfo.c (init_reg_modes_target): Likewise.
10550         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10551         instead of a boolean call_save flag.
10552         * targhooks.c: Include function-abi.h.
10553         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10554         using eh_edge_abi to choose the mode.
10556 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10558         * target.def (hard_regno_call_part_clobbered): Take an ABI
10559         identifier instead of an rtx_insn.
10560         * doc/tm.texi: Regenerate.
10561         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10562         (hook_bool_uint_uint_mode_false): New function.
10563         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10564         (hook_bool_uint_uint_mode_false): New function.
10565         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10566         Take an ABI identifier instead of an rtx_insn.
10567         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10568         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10569         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10570         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10571         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10572         Likewise.
10573         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10574         * cselib.c: Include function-abi.h.
10575         (cselib_process_insn): Update call to
10576         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10577         to get the appropriate ABI identifier.
10578         * function-abi.cc (predefined_function_abi::initialize): Update call
10579         to targetm.hard_regno_call_part_clobbered.
10580         * ira-conflicts.c (ira_build_conflicts): Likewise.
10581         * ira-costs.c (ira_tune_allocno_costs): Likewise.
10582         * lra-constraints.c: Include function-abi.h.
10583         (need_for_call_save_p): Update call to
10584         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10585         to get the appropriate ABI identifier.
10586         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10587         * regcprop.c (copyprop_hardreg_forward_1): Update call
10588         to targetm.hard_regno_call_part_clobbered.
10589         * reginfo.c (choose_hard_reg_mode): Likewise.
10590         * regrename.c (check_new_reg_p): Likewise.
10591         * reload.c (find_equiv_reg): Likewise.
10592         * reload1.c (emit_reload_insns): Likewise.
10593         * sched-deps.c: Include function-abi.h.
10594         (deps_analyze_insn): Update call to
10595         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10596         to get the appropriate ABI identifier.
10597         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10598         call to targetm.hard_regno_call_part_clobbered.
10599         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10601 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10603         * config/i386/i386.c: Include function-abi.h.
10604         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10605         if they preserve some 256-bit or 512-bit SSE registers.
10607 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10609         * target.def (insn_callee_abi): New hook.
10610         (remove_extra_call_preserved_regs): Delete.
10611         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10612         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10613         * doc/tm.texi: Regenerate.
10614         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10615         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10616         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10617         insn argument.
10618         (aarch64_remove_extra_call_preserved_regs): Delete.
10619         (aarch64_insn_callee_abi): New function.
10620         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10621         (TARGET_INSN_CALLEE_ABI): New macro.
10622         * rtl.h (get_call_fndecl): Declare.
10623         (cgraph_rtl_info): Fix formatting.  Tweak comment for
10624         function_used_regs.  Remove function_used_regs_valid.
10625         * rtlanal.c (get_call_fndecl): Moved from final.c
10626         * function-abi.h (insn_callee_abi): Declare.
10627         (target_function_abi_info): Mention insn_callee_abi.
10628         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10629         way to get_call_reg_set_usage did.
10630         (insn_callee_abi): New function.
10631         * regs.h (get_call_reg_set_usage): Delete.
10632         * final.c: Include function-abi.h.
10633         (collect_fn_hard_reg_usage): Add fixed and stack registers to
10634         function_used_regs before the main loop rather than afterwards.
10635         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
10636         if function_used_regs ends up not being useful.
10637         (get_call_fndecl): Move to rtlanal.c
10638         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10639         * caller-save.c: Include function-abi.h.
10640         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10641         instead of get_call_reg_set_usage.
10642         * cfgcleanup.c: Include function-abi.h.
10643         (old_insns_match_p): Use insn_callee_abi instead of
10644         get_call_reg_set_usage.
10645         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10646         a tree.
10647         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
10648         function_used_regs.
10649         * df-scan.c: Include function-abi.h.
10650         (df_get_call_refs): Use insn_callee_abi instead of
10651         get_call_reg_set_usage.
10652         * ira-lives.c: Include function-abi.h.
10653         (process_bb_node_lives): Use insn_callee_abi instead of
10654         get_call_reg_set_usage.
10655         * lra-lives.c: Include function-abi.h.
10656         (process_bb_lives): Use insn_callee_abi instead of
10657         get_call_reg_set_usage.
10658         * postreload.c: Include function-abi.h.
10659         (reload_combine): Use insn_callee_abi instead of
10660         get_call_reg_set_usage.
10661         * regcprop.c: Include function-abi.h.
10662         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10663         get_call_reg_set_usage.
10664         * resource.c: Include function-abi.h.
10665         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10666         instead of get_call_reg_set_usage.
10667         * var-tracking.c: Include function-abi.h.
10668         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10669         get_call_reg_set_usage.
10671 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10673         * target.def (fntype_abi): New target hook.
10674         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10675         * doc/tm.texi: Regenerate.
10676         * target.h (predefined_function_abi): Declare.
10677         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10678         if defined.
10679         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10680         * config/aarch64/aarch64.c: Include function-abi.h.
10681         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10682         (TARGET_FNTYPE_ABI): Define.
10684 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10686         * Makefile.in (OBJS): Add function-abi.o.
10687         (GTFILES): Add function-abi.h.
10688         * function-abi.cc: New file.
10689         * function-abi.h: Likewise.
10690         * emit-rtl.h (rtl_data::abi): New field.
10691         * function.c: Include function-abi.h.
10692         (prepare_function_start): Initialize crtl->abi.
10693         * read-rtl-function.c: Include regs.h and function-abi.h.
10694         (read_rtl_function_body): Initialize crtl->abi.
10695         (read_rtl_function_body_from_file_range): Likewise.
10696         * reginfo.c: Include function-abi.h.
10697         (init_reg_sets_1): Initialize default_function_abi.
10698         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10699         when making a register global.
10700         * target-globals.h (this_target_function_abi_info): Declare.
10701         (target_globals::function_abi_info): New field.
10702         (restore_target_globals): Copy it.
10703         * target-globals.c: Include function-abi.h.
10704         (default_target_globals): Initialize the function_abi_info field.
10705         (target_globals): Allocate it.
10706         (save_target_globals): Free it.
10708 2019-09-30  Nick Clifton  <nickc@redhat.com>
10710         PR target/85978
10711         * config/frv/frv.c (frv_register_move_cost): Add break statements
10712         to avoid falling through to the wrong cases.  Tidy code.
10714 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
10716         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10717         For multi-registers modes, test how big each register part is.
10719 2019-09-30  Nick Clifton  <nickc@redhat.com>
10721         PR target/59205
10722         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10723         (TARGET_ASM_SELECT_SECTION): Remove definition.
10724         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10726 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
10728         * emit-rtl.c (init_raw_REG): New function.
10729         (gen_raw_REG): Use init_raw_REG.
10730         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10731         macros.
10732         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10733         * rtl.h (rtx_init): New function.
10734         (rtx_alloca): New function.
10735         (init_raw_REG): New function.
10736         (alloca_raw_REG): New macro.
10738 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
10740         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10741         (pcrel_local_address): Replace pcrel_address predicate, use the
10742         new function address_to_insn_form.
10743         (pcrel_external_address): Replace with new implementation using
10744         address_to_insn_form..
10745         (prefixed_mem_operand): Delete predicate which is now unused.
10746         (pcrel_external_mem_operand): Delete predicate which is now
10747         unused.
10748         * config/rs6000/rs6000-protos.h (enum insn_form): New
10749         enumeration.
10750         (enum non_prefixed_form): New enumeration.
10751         (address_to_insn_form): New declaration.
10752         (prefixed_load_p): New declaration.
10753         (prefixed_store_p): New declaration.
10754         (prefixed_paddi_p): New declaration.
10755         (rs6000_asm_output_opcode): New declaration.
10756         (rs6000_final_prescan_insn): Move declaration and update calling
10757         signature.
10758         (address_is_prefixed): New helper inline function.
10759         * config/rs6000/rs6000.c(print_operand_address): Check for either
10760         PC-relative local symbols or PC-relative external symbols.
10761         (rs6000_emit_move): Support loading PC-relative addresses.
10762         (mode_supports_prefixed_address_p): Delete, no longer used.
10763         (rs6000_prefixed_address_mode_p): Delete, no longer used.
10764         (address_to_insn_form): New function to decode an address format.
10765         (reg_to_non_prefixed): New function to identify what the
10766         non-prefixed memory instruction format is for a register.
10767         (prefixed_load_p): New function to identify prefixed loads.
10768         (prefixed_store_p): New function to identify prefixed stores.
10769         (prefixed_paddi_p): New function to identify prefixed load
10770         immediates.
10771         (next_insn_prefixed_p): New static state variable.
10772         (rs6000_final_prescan_insn): New function to determine if an insn
10773         uses a prefixed instruction.
10774         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10775         prefixed instruction.
10776         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10777         (ASM_OUTPUT_OPCODE): New target hook.
10778         * config/rs6000/rs6000.md (prefixed): New insn attribute for
10779         prefixed instructions.
10780         (prefixed_length): New insn attribute for the size of prefixed
10781         instructions.
10782         (non_prefixed_length): New insn attribute for the size of
10783         non-prefixed instructions.
10784         (pcrel_local_addr): New insn to load up a local PC-relative
10785         address.
10786         (pcrel_extern_addr): New insn to load up an external PC-relative
10787         address.
10788         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10789         GPR and loading a 128-bit floating point type to a GPR.
10791 2019-09-30  Richard Biener  <rguenther@suse.de>
10793         * gimple.c (gimple_get_lhs): For PHIs return the result.
10794         * tree-vectorizer.h (vectorizable_live_operation): Also get the
10795         SLP instance as argument.
10796         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10797         double-reduction PHIs with vectorizable_lc_phi.
10798         (vect_analyze_loop_operations): Adjust.
10799         (vect_create_epilog_for_reduction): Remove all code not dealing
10800         with reduction LC PHI or epilogue generation.
10801         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10802         for live stmts of reductions.
10803         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10804         do not handle defs that are not vect_internal_def.
10805         (can_vectorize_live_stmts): Adjust.
10806         (vect_analyze_stmt): When the vectorized stmt defined a value
10807         used on backedges adjust the backedge uses of vectorized PHIs.
10809 2019-09-30  Martin Jambor  <mjambor@suse.cz>
10811         PR ipa/91853
10812         * tree-inline.c (force_value_to_type): New function.
10813         (setup_one_parameter): Use force_value_to_type to convert type.
10814         * tree-inline.c (force_value_to_type): Declare.
10815         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10816         with register type mismatches.
10818 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
10820         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10821         32-bit PowerPC.
10822         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10823         * config/rs6000/t-freebsd64: Make use of the above define and build
10824         the 32-bit libraries with secure-plt.
10826 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
10828         PR target/91931
10829         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10830         gen_int_mode instead of GEN_INT.
10832 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
10834         * config/darwin.c (gen_macho_low): Amend to include the mode
10835         argument.
10836         (machopic_indirect_data_reference): Amend gen_macho_low call
10837         to include mode argument
10838         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10839         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10840         the macho_high expander and two define_insn entries.
10842 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
10844         PR bootstrap/90543
10845         * optc-save-gen.awk: Fix up printing string option differences.
10847 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
10849         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10850         vec_perm cost to 1 for non-Power7 VSX architectures.
10852 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
10854         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10855         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10856         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10858 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
10860         * config/darwin.c (gen_macho_high): Amend to include the mode
10861         argument.
10862         (machopic_indirect_data_reference): Amend gen_macho_high call
10863         to include mode argument.
10864         (machopic_legitimize_pic_address): Likewise.
10865         * config/rs6000/rs6000.c (rs6000_legitimize_address):
10866         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10867         the macho_high expander and two define_insn entries.
10869 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10871         PR target/86805
10872         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10874 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10876         PR target/80672
10877         * config/sh/sh.c (parse_validate_atomic_model_option): Use
10878         std::string::compare instead of std::string::find.
10880 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
10882         * configure: Regenerate.
10884 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
10886         PR middle-end/91920
10887         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10888         variables as shared.
10890 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
10892         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10893         replaces the expander and two define_insn entries.
10894         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10895         call.
10896         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10898 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
10900         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10901         (fibonacci_heap::nodes): Likewise.
10902         (fibonacci_heap::min_key): Likewise.
10903         (fibonacci_heap::min): Likewise.
10905 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
10907         * cgraph.c (cgraph_node::get_fun): Make const.
10908         * cgraph.h (cgraph_node::get_fun): Likewise.
10910 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
10912         PR target/91919
10913         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10914         of SImode MULT.
10916 2019-09-27  Richard Biener  <rguenther@suse.de>
10918         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10919         (STMT_VINFO_REDUC_FN): Likewise.
10920         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10921         STMT_VINFO_REDUC_FN.
10922         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10923         for condition reductions.
10924         (vect_create_epilog_for_reduction): Compute all required state
10925         from the stmt to be vectorized.
10926         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10927         invocation and remove then dead code.  For single def-use chains
10928         record only a single vector stmt.
10930 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
10932         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10933         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10934         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10935         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10936         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10937         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10938         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10939         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10940         (aarch64_general_builtin_rsqrt): Declare.
10941         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10942         New function.
10943         (aarch64_mangle_builtin_type): Rename to...
10944         (aarch64_general_mangle_builtin_type): ...this.
10945         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10946         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10947         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10948         aarch64_general_add_builtin instead of add_builtin_function.
10949         (aarch64_init_builtins): Rename to...
10950         (aarch64_general_init_builtins): ...this.  Use
10951         aarch64_general_add_builtin instead of add_builtin_function.
10952         (aarch64_builtin_decl): Rename to...
10953         (aarch64_general_builtin_decl): ...this and remove the unused
10954         arguments.
10955         (aarch64_expand_builtin): Rename to...
10956         (aarch64_general_expand_builtin): ...this and remove the unused
10957         arguments.
10958         (aarch64_builtin_rsqrt): Rename to...
10959         (aarch64_general_builtin_rsqrt): ...this.
10960         (aarch64_fold_builtin): Rename to...
10961         (aarch64_general_fold_builtin): ...this.  Take the function subcode
10962         and return type as arguments.  Remove the "ignored" argument.
10963         (aarch64_gimple_fold_builtin): Rename to...
10964         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
10965         subcode and gcall as arguments, and return the new function call.
10966         * config/aarch64/aarch64.c (aarch64_init_builtins)
10967         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10968         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10969         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10970         instead of aarch64_builtin_rsqrt.
10971         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10972         instead of aarch64_mangle_builtin_type.
10974 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
10976         * target.def (check_builtin_call): New target hook.
10977         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10978         * doc/tm.texi: Regenerate.
10980 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
10982         PR tree-optimization/91909
10983         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10984         reduc_index parameter.  When handling COND_REDUCTION, make sure
10985         that the reduction phi operand is in the correct arm of the
10986         VEC_COND_EXPR.
10987         (vectorizable_reduction): Pass reduc_index to the above.
10989 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
10991         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10992         New combine pattern.
10994 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
10996         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10997         loop instruction into new basic block before the loop when basic
10998         block that precedes the loop is empty.
11000 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
11002         * function.c (gimplify_parameters): Use build_clobber function.
11003         * tree-ssa.c (execute_update_addresses_taken): Likewise.
11004         * tree-inline.c (expand_call_inline): Likewise.
11005         * tree-sra.c (clobber_subtree): Likewise.
11006         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11007         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11008         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11009         lower_omp_target): Likewise.
11010         * omp-expand.c (expand_omp_for_generic): Likewise.
11011         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11013 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
11015         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11016         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11017         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11018         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11019         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11020         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11021         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11022         LD_ELEMREV_V16QI): Use the PURE attribute.
11024 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
11026         * config/rs6000/darwin.md: Replace the expanders for
11027         load_macho_picbase and reload_macho_picbase with use of '@'
11028         and <mode> in their respective define_insns.
11029         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11030         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11031         Pmode to gen_load_macho_picbase.
11032         * config/rs6000/rs6000.md: Likewise.
11034 2019-09-25  Richard Biener  <rguenther@suse.de>
11036         PR tree-optimization/91896
11037         * tree-vect-loop.c (vectorizable_reduction): The single
11038         def-use cycle optimization cannot apply when there's more
11039         than one pattern stmt involved.
11041 2019-09-26  Richard Biener  <rguenther@suse.de>
11043         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11044         loop-closed PHIs that are vect_internal_def.
11045         (vect_create_epilog_for_reduction): Exit early for nested cycles.
11046         Simplify.
11047         (vectorizable_lc_phi): New.
11048         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11049         (vect_transform_stmt): Likewise.
11050         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11051         (vectorizable_lc_phi): Declare.
11053 2019-09-26  Richard Biener  <rguenther@suse.de>
11055         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11056         vectorizable_reduction for vect_double_reduction_def.
11057         (vect_transform_loop): Likewise.
11058         (vect_create_epilog_for_reduction): Move double-reduction
11059         PHI creation and preheader argument setting of PHIs ...
11060         (vectorizable_reduction): ... here.  Also process
11061         vect_double_reduction_def PHIs, creating the vectorized
11062         PHI nodes, remembering the scalar adjustment computed for
11063         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11064         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11065         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11066         Initialize STMT_VINFO_REDUC_CODE.
11067         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11068         (_stmt_vec_info::reduc_code): Likewise.
11069         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11070         (STMT_VINFO_REDUC_CODE): Likewise.
11072 2019-09-26  Matt Turner  <mattst88@gmail.com>
11074         PR driver/69471
11075         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11076         (mtune=): Add Negative(mtune=).
11077         (mcpu=): Add Negative(mcpu=).
11078         * config/arm/arm.opt: Likewise.
11080 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11082         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11083         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11084         Define.
11085         * config/arm/arm_acle.h: Define builtins for the above.
11086         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11087         (simd32_op): Handle the above.
11088         * config/arm/unspecs.md: Define unspecs for the above.
11090 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11092         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11093         (arm_<sup>xtb16): Likewise.
11094         (arm_usada8): Likewise.
11095         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11096         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11097         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11098         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11099         __sxtb16, __uxtab16, __uxtb16): Define.
11100         * config/arm/arm_acle_builtins.def: Define builtins for the above.
11101         * config/arm/unspecs.md: Define unspecs for the above.
11102         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11103         (USXTB16): Likewise.
11104         (simd32_op): New int_attribute.
11105         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11106         * doc/sourcebuild.exp (arm_simd32_ok): Document.
11108 2019-09-26  Martin Jambor  <mjambor@suse.cz>
11110         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11111         internal_error.
11113 2019-09-26  Martin Jambor  <mjambor@suse.cz>
11115         * ipa-sra.c (process_scan_results): Fix continue condition.
11117 2019-09-26  Martin Liska  <mliska@suse.cz>
11119         PR tree-optimization/91885
11120         * tree-vectorizer.c (try_vectorize_loop_1): Add
11121         TODO_update_ssa_only_virtuals similarly to what slp pass does.
11123 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
11125         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11126         aarch64_plus_immediate rather than aarch64_uimm12_shift
11127         to test for valid PLUS immediates.
11129 2019-09-25  Martin Jambor  <mjambor@suse.cz>
11131         * tree-sra.c (no_accesses_p): Remove.
11132         (no_accesses_representant): Likewise.
11134 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11136         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11137         consistenly.
11138         (vaba_s16): Likewise.
11139         (vaba_s32): Likewise.
11140         (vaba_u8): Likewise.
11141         (vaba_u16): Likewise.
11142         (vaba_u32): Likewise.
11143         (vabal_high_s8): Likewise.
11144         (vabal_high_s16): Likewise.
11145         (vabal_high_s32): Likewise.
11146         (vabal_high_u8): Likewise.
11147         (vabal_high_u16): Likewise.
11148         (vabal_high_u32): Likewise.
11149         (vabal_s8): Likewise.
11150         (vabal_s16): Likewise.
11151         (vabal_s32): Likewise.
11152         (vabal_u8): Likewise.
11153         (vabal_u16): Likewise.
11154         (vabal_u32): Likewise.
11155         (vabaq_s8): Likewise.
11156         (vabaq_s16): Likewise.
11157         (vabaq_s32): Likewise.
11158         (vabaq_u8): Likewise.
11159         (vabaq_u16): Likewise.
11160         (vabaq_u32): Likewise.
11161         (vabd_s8): Likewise.
11162         (vabd_s16): Likewise.
11163         (vabd_s32): Likewise.
11164         (vabd_u8): Likewise.
11165         (vabd_u16): Likewise.
11166         (vabd_u32): Likewise.
11167         (vabdl_high_s8): Likewise.
11168         (vabdl_high_s16): Likewise.
11169         (vabdl_high_s32): Likewise.
11170         (vabdl_high_u8): Likewise.
11171         (vabdl_high_u16): Likewise.
11172         (vabdl_high_u32): Likewise.
11173         (vabdl_s8): Likewise.
11174         (vabdl_s16): Likewise.
11175         (vabdl_s32): Likewise.
11176         (vabdl_u8): Likewise.
11177         (vabdl_u16): Likewise.
11178         (vabdl_u32): Likewise.
11179         (vabdq_s8): Likewise.
11180         (vabdq_s16): Likewise.
11181         (vabdq_s32): Likewise.
11182         (vabdq_u8): Likewise.
11183         (vabdq_u16): Likewise.
11184         (vabdq_u32): Likewise.
11185         (vaddlv_s8): Likewise.
11186         (vaddlv_s16): Likewise.
11187         (vaddlv_u8): Likewise.
11188         (vaddlv_u16): Likewise.
11189         (vaddlvq_s8): Likewise.
11190         (vaddlvq_s16): Likewise.
11191         (vaddlvq_s32): Likewise.
11192         (vaddlvq_u8): Likewise.
11193         (vaddlvq_u16): Likewise.
11194         (vaddlvq_u32): Likewise.
11195         (vcvtx_f32_f64): Likewise.
11196         (vcvtx_high_f32_f64): Likewise.
11197         (vcvtxd_f32_f64): Likewise.
11198         (vmla_n_f32): Likewise.
11199         (vmla_n_s16): Likewise.
11200         (vmla_n_s32): Likewise.
11201         (vmla_n_u16): Likewise.
11202         (vmla_n_u32): Likewise.
11203         (vmla_s8): Likewise.
11204         (vmla_s16): Likewise.
11205         (vmla_s32): Likewise.
11206         (vmla_u8): Likewise.
11207         (vmla_u16): Likewise.
11208         (vmla_u32): Likewise.
11209         (vmlal_high_n_s16): Likewise.
11210         (vmlal_high_n_s32): Likewise.
11211         (vmlal_high_n_u16): Likewise.
11212         (vmlal_high_n_u32): Likewise.
11213         (vmlal_high_s8): Likewise.
11214         (vmlal_high_s16): Likewise.
11215         (vmlal_high_s32): Likewise.
11216         (vmlal_high_u8): Likewise.
11217         (vmlal_high_u16): Likewise.
11218         (vmlal_high_u32): Likewise.
11219         (vmlal_n_s16): Likewise.
11220         (vmlal_n_s32): Likewise.
11221         (vmlal_n_u16): Likewise.
11222         (vmlal_n_u32): Likewise.
11223         (vmlal_s8): Likewise.
11224         (vmlal_s16): Likewise.
11225         (vmlal_s32): Likewise.
11226         (vmlal_u8): Likewise.
11227         (vmlal_u16): Likewise.
11228         (vmlal_u32): Likewise.
11229         (vmlaq_n_f32): Likewise.
11230         (vmlaq_n_s16): Likewise.
11231         (vmlaq_n_s32): Likewise.
11232         (vmlaq_n_u16): Likewise.
11233         (vmlaq_n_u32): Likewise.
11234         (vmlaq_s8): Likewise.
11235         (vmlaq_s16): Likewise.
11236         (vmlaq_s32): Likewise.
11237         (vmlaq_u8): Likewise.
11238         (vmlaq_u16): Likewise.
11239         (vmlaq_u32): Likewise.
11240         (vmls_n_f32): Likewise.
11241         (vmls_n_s16): Likewise.
11242         (vmls_n_s32): Likewise.
11243         (vmls_n_u16): Likewise.
11244         (vmls_n_u32): Likewise.
11245         (vmls_s8): Likewise.
11246         (vmls_s16): Likewise.
11247         (vmls_s32): Likewise.
11248         (vmls_u8): Likewise.
11249         (vmls_u16): Likewise.
11250         (vmls_u32): Likewise.
11251         (vmlsl_high_n_s16): Likewise.
11252         (vmlsl_high_n_s32): Likewise.
11253         (vmlsl_high_n_u16): Likewise.
11254         (vmlsl_high_n_u32): Likewise.
11255         (vmlsl_high_s8): Likewise.
11256         (vmlsl_high_s16): Likewise.
11257         (vmlsl_high_s32): Likewise.
11258         (vmlsl_high_u8): Likewise.
11259         (vmlsl_high_u16): Likewise.
11260         (vmlsl_high_u32): Likewise.
11261         (vmlsl_n_s16): Likewise.
11262         (vmlsl_n_s32): Likewise.
11263         (vmlsl_n_u16): Likewise.
11264         (vmlsl_n_u32): Likewise.
11265         (vmlsl_s8): Likewise.
11266         (vmlsl_s16): Likewise.
11267         (vmlsl_s32): Likewise.
11268         (vmlsl_u8): Likewise.
11269         (vmlsl_u16): Likewise.
11270         (vmlsl_u32): Likewise.
11271         (vmlsq_n_f32): Likewise.
11272         (vmlsq_n_s16): Likewise.
11273         (vmlsq_n_s32): Likewise.
11274         (vmlsq_n_u16): Likewise.
11275         (vmlsq_n_u32): Likewise.
11276         (vmlsq_s8): Likewise.
11277         (vmlsq_s16): Likewise.
11278         (vmlsq_s32): Likewise.
11279         (vmlsq_u8): Likewise.
11280         (vmlsq_u16): Likewise.
11281         (vmlsq_u32): Likewise.
11282         (vmovl_high_s8): Likewise.
11283         (vmovl_high_s16): Likewise.
11284         (vmovl_high_s32): Likewise.
11285         (vmovl_high_u8): Likewise.
11286         (vmovl_high_u16): Likewise.
11287         (vmovl_high_u32): Likewise.
11288         (vmovl_s8): Likewise.
11289         (vmovl_s16): Likewise.
11290         (vmovl_s32): Likewise.
11291         (vmovl_u8): Likewise.
11292         (vmovl_u16): Likewise.
11293         (vmovl_u32): Likewise.
11294         (vmovn_high_s16): Likewise.
11295         (vmovn_high_s32): Likewise.
11296         (vmovn_high_s64): Likewise.
11297         (vmovn_high_u16): Likewise.
11298         (vmovn_high_u32): Likewise.
11299         (vmovn_high_u64): Likewise.
11300         (vmovn_s16): Likewise.
11301         (vmovn_s32): Likewise.
11302         (vmovn_s64): Likewise.
11303         (vmovn_u16): Likewise.
11304         (vmovn_u32): Likewise.
11305         (vmovn_u64): Likewise.
11306         (vmull_high_n_s16): Likewise.
11307         (vmull_high_n_s32): Likewise.
11308         (vmull_high_n_u16): Likewise.
11309         (vmull_high_n_u32): Likewise.
11310         (vmull_high_p8): Likewise.
11311         (vmull_high_s8): Likewise.
11312         (vmull_high_s16): Likewise.
11313         (vmull_high_s32): Likewise.
11314         (vmull_high_u8): Likewise.
11315         (vmull_high_u16): Likewise.
11316         (vmull_high_u32): Likewise.
11317         (vmull_n_s16): Likewise.
11318         (vmull_n_s32): Likewise.
11319         (vmull_n_u16): Likewise.
11320         (vmull_n_u32): Likewise.
11321         (vmull_p8): Likewise.
11322         (vmull_s8): Likewise.
11323         (vmull_s16): Likewise.
11324         (vmull_s32): Likewise.
11325         (vmull_u8): Likewise.
11326         (vmull_u16): Likewise.
11327         (vmull_u32): Likewise.
11328         (vpadal_s8): Likewise.
11329         (vpadal_s16): Likewise.
11330         (vpadal_s32): Likewise.
11331         (vpadal_u8): Likewise.
11332         (vpadal_u16): Likewise.
11333         (vpadal_u32): Likewise.
11334         (vpadalq_s8): Likewise.
11335         (vpadalq_s16): Likewise.
11336         (vpadalq_s32): Likewise.
11337         (vpadalq_u8): Likewise.
11338         (vpadalq_u16): Likewise.
11339         (vpadalq_u32): Likewise.
11340         (vpaddl_s8): Likewise.
11341         (vpaddl_s16): Likewise.
11342         (vpaddl_s32): Likewise.
11343         (vpaddl_u8): Likewise.
11344         (vpaddl_u16): Likewise.
11345         (vpaddl_u32): Likewise.
11346         (vpaddlq_s8): Likewise.
11347         (vpaddlq_s16): Likewise.
11348         (vpaddlq_s32): Likewise.
11349         (vpaddlq_u8): Likewise.
11350         (vpaddlq_u16): Likewise.
11351         (vpaddlq_u32): Likewise.
11352         (vpaddq_s8): Likewise.
11353         (vpaddq_s16): Likewise.
11354         (vpaddq_s32): Likewise.
11355         (vpaddq_s64): Likewise.
11356         (vpaddq_u8): Likewise.
11357         (vpaddq_u16): Likewise.
11358         (vpaddq_u32): Likewise.
11359         (vpaddq_u64): Likewise.
11360         (vqdmulh_n_s16): Likewise.
11361         (vqdmulh_n_s32): Likewise.
11362         (vqdmulhq_n_s16): Likewise.
11363         (vqdmulhq_n_s32): Likewise.
11364         (vqmovn_high_s16): Likewise.
11365         (vqmovn_high_s32): Likewise.
11366         (vqmovn_high_s64): Likewise.
11367         (vqmovn_high_u16): Likewise.
11368         (vqmovn_high_u32): Likewise.
11369         (vqmovn_high_u64): Likewise.
11370         (vqmovun_high_s16): Likewise.
11371         (vqmovun_high_s32): Likewise.
11372         (vqmovun_high_s64): Likewise.
11373         (vqrdmulh_n_s16): Likewise.
11374         (vqrdmulh_n_s32): Likewise.
11375         (vqrdmulhq_n_s16): Likewise.
11376         (vqrdmulhq_n_s32): Likewise.
11377         (vrsqrte_u32): Likewise.
11378         (vrsqrteq_u32): Likewise.
11379         (vtst_p8): Likewise.
11380         (vtst_p16): Likewise.
11381         (vtst_p64): Likewise.
11382         (vtstq_p8): Likewise.
11383         (vtstq_p16): Likewise.
11384         (vtstq_p64): Likewise.
11385         (vaddlv_s32): Likewise.
11386         (vaddlv_u32): Likewise.
11387         (vqtbl1_p8): Likewise.
11388         (vqtbl1_s8): Likewise.
11389         (vqtbl1_u8): Likewise.
11390         (vqtbl1q_p8): Likewise.
11391         (vqtbl1q_s8): Likewise.
11392         (vqtbl1q_u8): Likewise.
11393         (vqtbx1_s8): Likewise.
11394         (vqtbx1_u8): Likewise.
11395         (vqtbx1_p8): Likewise.
11396         (vqtbx1q_s8): Likewise.
11397         (vqtbx1q_u8): Likewise.
11398         (vqtbx1q_p8): Likewise.
11399         (vtbl1_s8): Likewise.
11400         (vtbl1_u8): Likewise.
11401         (vtbl1_p8): Likewise.
11402         (vtbl2_s8): Likewise.
11403         (vtbl2_u8): Likewise.
11404         (vtbl2_p8): Likewise.
11405         (vtbl3_s8): Likewise.
11406         (vtbl3_u8): Likewise.
11407         (vtbl3_p8): Likewise.
11408         (vtbl4_s8): Likewise.
11409         (vtbl4_u8): Likewise.
11410         (vtbl4_p8): Likewise.
11411         (vtbx2_s8): Likewise.
11412         (vtbx2_u8): Likewise.
11413         (vtbx2_p8): Likewise.
11414         (vld1_f32): Likewise.
11415         (vld1_f64): Likewise.
11416         (vld1_p8): Likewise.
11417         (vld1_p16): Likewise.
11418         (vld1_p64): Likewise.
11419         (vld1_s8): Likewise.
11420         (vld1_s16): Likewise.
11421         (vld1_s32): Likewise.
11422         (vld1_s64): Likewise.
11423         (vld1_u8): Likewise.
11424         (vld1_u16): Likewise.
11425         (vld1_u32): Likewise.
11426         (vld1_u64): Likewise.
11427         (vld1q_f32): Likewise.
11428         (vld1q_f64): Likewise.
11429         (vld1q_p8): Likewise.
11430         (vld1q_p16): Likewise.
11431         (vld1q_p64): Likewise.
11432         (vld1q_s8): Likewise.
11433         (vld1q_s16): Likewise.
11434         (vld1q_s32): Likewise.
11435         (vld1q_s64): Likewise.
11436         (vld1q_u8): Likewise.
11437         (vld1q_u16): Likewise.
11438         (vld1q_u32): Likewise.
11439         (vld1q_u64): Likewise.
11440         (vpmax_s8): Likewise.
11441         (vpmax_s16): Likewise.
11442         (vpmax_s32): Likewise.
11443         (vpmax_u8): Likewise.
11444         (vpmax_u16): Likewise.
11445         (vpmax_u32): Likewise.
11446         (vpmaxq_s8): Likewise.
11447         (vpmaxq_s16): Likewise.
11448         (vpmaxq_s32): Likewise.
11449         (vpmaxq_u8): Likewise.
11450         (vpmaxq_u16): Likewise.
11451         (vpmaxq_u32): Likewise.
11452         (vpmax_f32): Likewise.
11453         (vpmaxq_f32): Likewise.
11454         (vpmaxq_f64): Likewise.
11455         (vpmaxqd_f64): Likewise.
11456         (vpmaxs_f32): Likewise.
11457         (vpmaxnm_f32): Likewise.
11458         (vpmaxnmq_f32): Likewise.
11459         (vpmaxnmq_f64): Likewise.
11460         (vpmaxnmqd_f64): Likewise.
11461         (vpmaxnms_f32): Likewise.
11462         (vpmin_s8): Likewise.
11463         (vpmin_s16): Likewise.
11464         (vpmin_s32): Likewise.
11465         (vpmin_u8): Likewise.
11466         (vpmin_u16): Likewise.
11467         (vpmin_u32): Likewise.
11468         (vpminq_s8): Likewise.
11469         (vpminq_s16): Likewise.
11470         (vpminq_s32): Likewise.
11471         (vpminq_u8): Likewise.
11472         (vpminq_u16): Likewise.
11473         (vpminq_u32): Likewise.
11474         (vpmin_f32): Likewise.
11475         (vpminq_f32): Likewise.
11476         (vpminq_f64): Likewise.
11477         (vpminqd_f64): Likewise.
11478         (vpmins_f32): Likewise.
11479         (vpminnm_f32): Likewise.
11480         (vpminnmq_f32): Likewise.
11481         (vpminnmq_f64): Likewise.
11482         (vpminnmqd_f64): Likewise.
11483         (vpminnms_f32): Likewise.
11484         (vmla_f32): Likewise.
11485         (vmlaq_f32): Likewise.
11486         (vmlaq_f64): Likewise.
11487         (vmls_f32): Likewise.
11488         (vmlsq_f32): Likewise.
11489         (vmlsq_f64): Likewise.
11490         (vqtbl2_s8): Likewise.
11491         (vqtbl2_u8): Likewise.
11492         (vqtbl2_p8): Likewise.
11493         (vqtbl2q_s8): Likewise.
11494         (vqtbl2q_u8): Likewise.
11495         (vqtbl2q_p8): Likewise.
11496         (vqtbl3_s8): Likewise.
11497         (vqtbl3_u8): Likewise.
11498         (vqtbl3_p8): Likewise.
11499         (vqtbl3q_s8): Likewise.
11500         (vqtbl3q_u8): Likewise.
11501         (vqtbl3q_p8): Likewise.
11502         (vqtbl4_s8): Likewise.
11503         (vqtbl4_u8): Likewise.
11504         (vqtbl4_p8): Likewise.
11505         (vqtbl4q_s8): Likewise.
11506         (vqtbl4q_u8): Likewise.
11507         (vqtbl4q_p8): Likewise.
11508         (vqtbx2_s8): Likewise.
11509         (vqtbx2_u8): Likewise.
11510         (vqtbx2_p8): Likewise.
11511         (vqtbx2q_s8): Likewise.
11512         (vqtbx2q_u8): Likewise.
11513         (vqtbx2q_p8): Likewise.
11514         (vqtbx3_s8): Likewise.
11515         (vqtbx3_u8): Likewise.
11516         (vqtbx3_p8): Likewise.
11517         (vqtbx3q_s8): Likewise.
11518         (vqtbx3q_u8): Likewise.
11519         (vqtbx3q_p8): Likewise.
11520         (vqtbx4_s8): Likewise.
11521         (vqtbx4_u8): Likewise.
11522         (vqtbx4_p8): Likewise.
11523         (vqtbx4q_s8): Likewise.
11524         (vqtbx4q_u8): Likewise.
11525         (vqtbx4q_p8): Likewise.
11526         (vrev16_p8): Likewise.
11527         (vrev16_s8): Likewise.
11528         (vrev16_u8): Likewise.
11529         (vrev16q_p8): Likewise.
11530         (vrev16q_s8): Likewise.
11531         (vrev16q_u8): Likewise.
11532         (vrev32_p8): Likewise.
11533         (vrev32_p16): Likewise.
11534         (vrev32_s8): Likewise.
11535         (vrev32_s16): Likewise.
11536         (vrev32_u8): Likewise.
11537         (vrev32_u16): Likewise.
11538         (vrev32q_p8): Likewise.
11539         (vrev32q_p16): Likewise.
11540         (vrev32q_s8): Likewise.
11541         (vrev32q_s16): Likewise.
11542         (vrev32q_u8): Likewise.
11543         (vrev32q_u16): Likewise.
11544         (vrev64_f32): Likewise.
11545         (vrev64_p8): Likewise.
11546         (vrev64_p16): Likewise.
11547         (vrev64_s8): Likewise.
11548         (vrev64_s16): Likewise.
11549         (vrev64_s32): Likewise.
11550         (vrev64_u8): Likewise.
11551         (vrev64_u16): Likewise.
11552         (vrev64_u32): Likewise.
11553         (vrev64q_f32): Likewise.
11554         (vrev64q_p8): Likewise.
11555         (vrev64q_p16): Likewise.
11556         (vrev64q_s8): Likewise.
11557         (vrev64q_s16): Likewise.
11558         (vrev64q_s32): Likewise.
11559         (vrev64q_u8): Likewise.
11560         (vrev64q_u16): Likewise.
11561         (vrev64q_u32): Likewise.
11562         (vsha1cq_u32): Likewise.
11563         (vsha1mq_u32): Likewise.
11564         (vsha1pq_u32): Likewise.
11565         (vsha1h_u32): Likewise.
11566         (vsha1su0q_u32): Likewise.
11567         (vsha1su1q_u32): Likewise.
11568         (vsha256hq_u32): Likewise.
11569         (vsha256h2q_u32): Likewise.
11570         (vsha256su0q_u32): Likewise.
11571         (vsha256su1q_u32): Likewise.
11572         (vmull_p64): Likewise.
11573         (vmull_high_p64): Likewise.
11574         (vsqrt_f32): Likewise.
11575         (vsqrtq_f32): Likewise.
11576         (vsqrt_f64): Likewise.
11577         (vsqrtq_f64): Likewise.
11578         (vst1_f32): Likewise.
11579         (vst1_f64): Likewise.
11580         (vst1_p8): Likewise.
11581         (vst1_p16): Likewise.
11582         (vst1_p64): Likewise.
11583         (vst1_s8): Likewise.
11584         (vst1_s16): Likewise.
11585         (vst1_s32): Likewise.
11586         (vst1_s64): Likewise.
11587         (vst1_u8): Likewise.
11588         (vst1_u16): Likewise.
11589         (vst1_u32): Likewise.
11590         (vst1_u64): Likewise.
11591         (vst1q_f32): Likewise.
11592         (vst1q_f64): Likewise.
11593         (vst1q_p8): Likewise.
11594         (vst1q_p16): Likewise.
11595         (vst1q_p64): Likewise.
11596         (vst1q_s8): Likewise.
11597         (vst1q_s16): Likewise.
11598         (vst1q_s32): Likewise.
11599         (vst1q_s64): Likewise.
11600         (vst1q_u8): Likewise.
11601         (vst1q_u16): Likewise.
11602         (vst1q_u32): Likewise.
11603         (vst1q_u64): Likewise.
11604         (vst1_s64_x2): Likewise.
11605         (vst1_u64_x2): Likewise.
11606         (vst1_f64_x2): Likewise.
11607         (vst1_s8_x2): Likewise.
11608         (vst1_p8_x2): Likewise.
11609         (vst1_s16_x2): Likewise.
11610         (vst1_p16_x2): Likewise.
11611         (vst1_s32_x2): Likewise.
11612         (vst1_u8_x2): Likewise.
11613         (vst1_u16_x2): Likewise.
11614         (vst1_u32_x2): Likewise.
11615         (vst1_f16_x2): Likewise.
11616         (vst1_f32_x2): Likewise.
11617         (vst1_p64_x2): Likewise.
11618         (vst1q_s8_x2): Likewise.
11619         (vst1q_p8_x2): Likewise.
11620         (vst1q_s16_x2): Likewise.
11621         (vst1q_p16_x2): Likewise.
11622         (vst1q_s32_x2): Likewise.
11623         (vst1q_s64_x2): Likewise.
11624         (vst1q_u8_x2): Likewise.
11625         (vst1q_u16_x2): Likewise.
11626         (vst1q_u32_x2): Likewise.
11627         (vst1q_u64_x2): Likewise.
11628         (vst1q_f16_x2): Likewise.
11629         (vst1q_f32_x2): Likewise.
11630         (vst1q_f64_x2): Likewise.
11631         (vst1q_p64_x2): Likewise.
11632         (vst1_s64_x3): Likewise.
11633         (vst1_u64_x3): Likewise.
11634         (vst1_f64_x3): Likewise.
11635         (vst1_s8_x3): Likewise.
11636         (vst1_p8_x3): Likewise.
11637         (vst1_s16_x3): Likewise.
11638         (vst1_p16_x3): Likewise.
11639         (vst1_s32_x3): Likewise.
11640         (vst1_u8_x3): Likewise.
11641         (vst1_u16_x3): Likewise.
11642         (vst1_u32_x3): Likewise.
11643         (vst1_f16_x3): Likewise.
11644         (vst1_f32_x3): Likewise.
11645         (vst1_p64_x3): Likewise.
11646         (vst1q_s8_x3): Likewise.
11647         (vst1q_p8_x3): Likewise.
11648         (vst1q_s16_x3): Likewise.
11649         (vst1q_p16_x3): Likewise.
11650         (vst1q_s32_x3): Likewise.
11651         (vst1q_s64_x3): Likewise.
11652         (vst1q_u8_x3): Likewise.
11653         (vst1q_u16_x3): Likewise.
11654         (vst1q_u32_x3): Likewise.
11655         (vst1q_u64_x3): Likewise.
11656         (vst1q_f16_x3): Likewise.
11657         (vst1q_f32_x3): Likewise.
11658         (vst1q_f64_x3): Likewise.
11659         (vst1q_p64_x3): Likewise.
11660         (vst2_s64): Likewise.
11661         (vst2_u64): Likewise.
11662         (vst2_f64): Likewise.
11663         (vst2_s8): Likewise.
11664         (vst2_p8): Likewise.
11665         (vst2_s16): Likewise.
11666         (vst2_p16): Likewise.
11667         (vst2_s32): Likewise.
11668         (vst2_u8): Likewise.
11669         (vst2_u16): Likewise.
11670         (vst2_u32): Likewise.
11671         (vst2_f16): Likewise.
11672         (vst2_f32): Likewise.
11673         (vst2_p64): Likewise.
11674         (vst2q_s8): Likewise.
11675         (vst2q_p8): Likewise.
11676         (vst2q_s16): Likewise.
11677         (vst2q_p16): Likewise.
11678         (vst2q_s32): Likewise.
11679         (vst2q_s64): Likewise.
11680         (vst2q_u8): Likewise.
11681         (vst2q_u16): Likewise.
11682         (vst2q_u32): Likewise.
11683         (vst2q_u64): Likewise.
11684         (vst2q_f16): Likewise.
11685         (vst2q_f32): Likewise.
11686         (vst2q_f64): Likewise.
11687         (vst2q_p64): Likewise.
11688         (vst3_s64): Likewise.
11689         (vst3_u64): Likewise.
11690         (vst3_f64): Likewise.
11691         (vst3_s8): Likewise.
11692         (vst3_p8): Likewise.
11693         (vst3_s16): Likewise.
11694         (vst3_p16): Likewise.
11695         (vst3_s32): Likewise.
11696         (vst3_u8): Likewise.
11697         (vst3_u16): Likewise.
11698         (vst3_u32): Likewise.
11699         (vst3_f16): Likewise.
11700         (vst3_f32): Likewise.
11701         (vst3_p64): Likewise.
11702         (vst3q_s8): Likewise.
11703         (vst3q_p8): Likewise.
11704         (vst3q_s16): Likewise.
11705         (vst3q_p16): Likewise.
11706         (vst3q_s32): Likewise.
11707         (vst3q_s64): Likewise.
11708         (vst3q_u8): Likewise.
11709         (vst3q_u16): Likewise.
11710         (vst3q_u32): Likewise.
11711         (vst3q_u64): Likewise.
11712         (vst3q_f16): Likewise.
11713         (vst3q_f32): Likewise.
11714         (vst3q_f64): Likewise.
11715         (vst3q_p64): Likewise.
11716         (vst4_s64): Likewise.
11717         (vst4_u64): Likewise.
11718         (vst4_f64): Likewise.
11719         (vst4_s8): Likewise.
11720         (vst4_p8): Likewise.
11721         (vst4_s16): Likewise.
11722         (vst4_p16): Likewise.
11723         (vst4_s32): Likewise.
11724         (vst4_u8): Likewise.
11725         (vst4_u16): Likewise.
11726         (vst4_u32): Likewise.
11727         (vst4_f16): Likewise.
11728         (vst4_f32): Likewise.
11729         (vst4_p64): Likewise.
11730         (vst4q_s8): Likewise.
11731         (vst4q_p8): Likewise.
11732         (vst4q_s16): Likewise.
11733         (vst4q_p16): Likewise.
11734         (vst4q_s32): Likewise.
11735         (vst4q_s64): Likewise.
11736         (vst4q_u8): Likewise.
11737         (vst4q_u16): Likewise.
11738         (vst4q_u32): Likewise.
11739         (vst4q_u64): Likewise.
11740         (vst4q_f16): Likewise.
11741         (vst4q_f32): Likewise.
11742         (vst4q_f64): Likewise.
11743         (vst4q_p64): Likewise.
11744         (vtbx4_s8): Likewise.
11745         (vtbx4_u8): Likewise.
11746         (vtbx4_p8): Likewise.
11747         (vtrn_f32): Likewise.
11748         (vtrn_p8): Likewise.
11749         (vtrn_p16): Likewise.
11750         (vtrn_s8): Likewise.
11751         (vtrn_s16): Likewise.
11752         (vtrn_s32): Likewise.
11753         (vtrn_u8): Likewise.
11754         (vtrn_u16): Likewise.
11755         (vtrn_u32): Likewise.
11756         (vtrnq_f32): Likewise.
11757         (vtrnq_p8): Likewise.
11758         (vtrnq_p16): Likewise.
11759         (vtrnq_s8): Likewise.
11760         (vtrnq_s16): Likewise.
11761         (vtrnq_s32): Likewise.
11762         (vtrnq_u8): Likewise.
11763         (vtrnq_u16): Likewise.
11764         (vtrnq_u32): Likewise.
11765         (vrsqrte_f16): Likewise.
11766         (vrsqrteq_f16): Likewise.
11767         (vsqrt_f16): Likewise.
11768         (vsqrtq_f16): Likewise.
11769         (vabd_f16): Likewise.
11770         (vabdq_f16): Likewise.
11771         (vpadd_f16): Likewise.
11772         (vpaddq_f16): Likewise.
11773         (vpmax_f16): Likewise.
11774         (vpmaxq_f16): Likewise.
11775         (vpmaxnm_f16): Likewise.
11776         (vpmaxnmq_f16): Likewise.
11777         (vpmin_f16): Likewise.
11778         (vpminq_f16): Likewise.
11779         (vpminnm_f16): Likewise.
11780         (vpminnmq_f16): Likewise.
11781         (vrsqrts_f16): Likewise.
11782         (vrsqrtsq_f16): Likewise.
11784 2019-09-25  Richard Biener  <rguenther@suse.de>
11786         PR tree-optimization/91896
11787         * tree-vect-loop.c (vectorizable_reduction): The single
11788         def-use cycle optimization cannot apply when there's more
11789         than one pattern stmt involved.
11791 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
11793         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11794         the 'P' mode iterator, replacing the (removed) SI and DI variants.
11795         (reload_macho_picbase_<mode>): Likewise.
11797 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
11799         * config/rs6000/rs6000.md: Move darwin.md include until
11800         after the definition of the mode iterators.
11802 2019-09-23  Martin Sebor  <msebor@redhat.com>
11804         PR tree-optimization/91570
11805         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11806         non-constant minlen, maxlen and maxbound.
11808 2019-09-24  Richard Biener  <rguenther@suse.de>
11810         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11811         Rename to...
11812         (_stmt_vec_info::cond_reduc_code): ... this.
11813         (_stmt_vec_info::induc_cond_initial_val): Add.
11814         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11815         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11816         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11817         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11818         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11819         the reduction code.
11820         (vect_create_epilog_for_reduction): Drop special
11821         induction condition reduction params, pass in reduction code
11822         and simplify.
11823         (vectorizable_reduction): Perform condition reduction kind
11824         selection only at analysis time.  Adjust passing on state.
11826 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11828         * config/aarch64/aarch64.md (mov<mode>): Don't call
11829         aarch64_split_dimode_const_store on volatile MEM.
11831 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
11833         * config/aarch64/aarch64-option-extensions.def (fp16fml):
11834         Update hwcap string for fp16fml.
11836 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
11838         PR middle-end/91866
11839         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11840         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11842 2019-09-24  Martin Liska  <mliska@suse.cz>
11844         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11845         instead of if-elseif-elseif-...
11846         * gimple-expr.c (extract_ops_from_tree): Likewise.
11847         * gimple.c (get_gimple_rhs_num_ops): Likewise.
11848         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11850 2019-09-24  Martin Jambor  <mjambor@suse.cz>
11852         PR ipa/91831
11853         * ipa-param-manipulation.c (carry_over_param): Make a method of
11854         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
11855         in case of a context mismatch.
11856         (ipa_param_body_adjustments::common_initialization): Adjust call to
11857         carry_over_param.
11858         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11859         private method carry_over_param.
11861 2019-09-24  Martin Jambor  <mjambor@suse.cz>
11863         PR ipa/91832
11864         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11866 2019-09-24  Richard Biener  <rguenther@suse.de>
11868         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11869         base.
11871 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11873         * config/arm/t-arm (arm-builtins.o): Add dependency on
11874         arm_acle_builtins.def.
11876 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
11878         PR target/91823
11879         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11880         canonical CONST_INTs.  Use gen_rtvec.
11882 2019-09-23  Richard Biener  <rguenther@suse.de>
11884         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11885         avoid adjusting by + 0 or * 1.
11886         (vect_create_epilog_for_reduction): Get reduction code only
11887         when necessary.  Deal with adjustment_def only when necessary.
11889 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
11891         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11892         memmodel index.
11894 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11896         PR ipa/91835
11897         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11898         "ipa-sra".
11900 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
11902         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11903         code.  Merge code blocks with common conditionals. Use declared
11904         macro instead of a magic number for PIC level.
11906 2019-09-21  Martin Sebor  <msebor@redhat.com>
11908         PR middle-end/91830
11909         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11910         Simplify computation of the offset of the referenced subobject.
11912 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
11914         * config/darwin.c (machopic_legitimize_pic_address): Check
11915         for lra not reload.
11917 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
11919         * ira-conflicts.c (can_use_same_reg_p): New function.
11920         (process_reg_shuffles): Take an insn parameter.  Ignore cases
11921         in which input operand op_num could seemingly never be allocated
11922         to the same register as the destination.
11923         (add_insn_allocno_copies): Update call to process_reg_shuffles.
11925 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
11927         * simplify-rtx.c (neg_const_int): Replace with...
11928         (neg_poly_int_rtx): ...this new function.
11929         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11930         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11931         (simplify_plus_minus): Likewise for constant terms here.
11933 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
11935         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11936         HOST_WIDE_PRINT_UNSIGNED.
11938 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
11940         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11941         character.
11943 2019-09-20  Maya Rashish  <coypu@sdf.org>
11945         PR target/86811
11946         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11947         Define to speculation_safe_value_not_needed.
11949 2019-09-20  Richard Biener  <rguenther@suse.de>
11950             Uros Bizjak  <ubizjak@gmail.com>
11952         PR target/91814
11953         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11954         previous change.
11955         (general_scalar_chain::convert_op): Force not suitable memory
11956         operands to a register.
11958 2019-09-20  Richard Biener  <rguenther@suse.de>
11960         PR tree-optimization/91821
11961         * tree-vect-loop.c (check_reduction_path): Check we can compute
11962         reduc_idx.
11963         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11964         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11965         operands in canonical order.
11966         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11967         STMT_VINFO_REDUC_IDX.
11968         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11969         (STMT_VINFO_REDUC_IDX): Likewise.
11971 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11973         PR target/91269
11974         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11976 2019-09-20  Richard Biener  <rguenther@suse.de>
11978         PR tree-optimization/91822
11979         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11980         parameter.
11981         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11982         for reduc_index in nested cycles, adjust vectorizable_condition
11983         calls.
11984         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11985         parameter.
11986         (vect_analyze_stmt): Adjust.
11987         (vect_transform_stmt): Likewise.
11989 2019-09-20  Richard Biener  <rguenther@suse.de>
11991         PR target/91767
11992         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11993         Ensure there's a sequence point between allocating the new register
11994         and passing a reference to a reg via regno_reg_rtx.
11996 2019-09-20  Martin Jambor  <mjambor@suse.cz>
11998         * coretypes.h (cgraph_edge): Declare.
11999         * ipa-param-manipulation.c: Rewrite.
12000         * ipa-param-manipulation.h: Likewise.
12001         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12002         (OBJS): Added ipa-sra.o.
12003         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12004         and ref_p, added fields param_adjustments and performed_splits.
12005         (struct cgraph_clone_info): Remove ags_to_skip and
12006         combined_args_to_skip, new field param_adjustments.
12007         (cgraph_node::create_clone): Changed parameters to use
12008         ipa_param_adjustments.
12009         (cgraph_node::create_virtual_clone): Likewise.
12010         (cgraph_node::create_virtual_clone_with_body): Likewise.
12011         (tree_function_versioning): Likewise.
12012         (cgraph_build_function_type_skip_args): Removed.
12013         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12014         using ipa_param_adjustments.
12015         (clone_of_p): Likewise.
12016         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12017         (build_function_decl_skip_args): Likewise.
12018         (duplicate_thunk_for_node): Adjust parameters using
12019         ipa_param_body_adjustments, copy param_adjustments instead of
12020         args_to_skip.
12021         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12022         (cgraph_node::create_virtual_clone): Likewise.
12023         (cgraph_node::create_version_clone_with_body): Likewise.
12024         (cgraph_materialize_clone): Likewise.
12025         (symbol_table::materialize_all_clones): Likewise.
12026         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12027         ipa_replace_map check.
12028         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12029         (initialize_node_lattices): Make aware that some parameters might have
12030         already been removed.
12031         (want_remove_some_param_p): New function.
12032         (create_specialized_node): Convert to using ipa_param_adjustments and
12033         deal with possibly pre-existing adjustments.
12034         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12035         (output_node_opt_summary): Do not stream removed fields.  Stream
12036         parameter adjustments instead of argumetns to skip.
12037         (input_node_opt_summary): Likewise.
12038         (input_node_opt_summary): Likewise.
12039         * lto-section-in.c (lto_section_name): Added ipa-sra section.
12040         * lto-streamer.h (lto_section_type): Likewise.
12041         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12042         param_body_adjs.
12043         (copy_decl_to_var): Declare.
12044         * tree-inline.c (update_clone_info): Do not remap old_tree.
12045         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12046         statements, walk all extra generated statements and remap their
12047         operands.
12048         (redirect_all_calls): Add killed SSA names to a hash set.
12049         (remap_ssa_name): Do not remap killed SSA names.
12050         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12051         half of functionality moved to ipa_param_body_adjustments.
12052         (copy_decl_to_var): Make exported.
12053         (copy_body): Destroy killed_new_ssa_names hash set.
12054         (expand_call_inline): Remap performed splits.
12055         (update_clone_info): Likewise.
12056         (tree_function_versioning): Simplify tree_map processing.  Updated to
12057         accept ipa_param_adjustments and use ipa_param_body_adjustments.
12058         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12059         for the new interface.
12060         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12061         (simd_clone_compute_base_data_type): Likewise.
12062         (simd_clone_init_simd_arrays): Adjust for the new interface.
12063         (simd_clone_adjust_argument_types): Likewise.
12064         (struct modify_stmt_info): Likewise.
12065         (ipa_simd_modify_stmt_ops): Likewise.
12066         (ipa_simd_modify_function_body): Likewise.
12067         (simd_clone_adjust): Likewise.
12068         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
12069         (type_internals_preclude_sra_p): Make public.
12070         * tree-sra.h: New file.
12071         * ipa-inline-transform.c (save_inline_function_body): Update to
12072         refelct new tree_function_versioning signature.
12073         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12074         ipa_param_adjustments to get current parameter indices.
12075         (ipcp_modif_dom_walker::before_dom_children): Likewise.
12076         (ipcp_update_bits): Likewise.
12077         (ipcp_update_vr): Likewise.
12078         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12079         * ipa-sra.c: New file.
12080         * multiple_target.c (create_target_clone): Update to reflet new type
12081         of create_version_clone_with_body.
12082         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12083         tree_function_versioning.
12084         (modify_function): Update to reflect new type of
12085         tree_function_versioning.
12086         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12087         * passes.def: Remove old IPA-SRA and add new one.
12088         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12089         (make_pass_ipa_sra): Declare.
12090         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
12091         ipa_sra_retvalues.
12092         * doc/invoke.texi (ipa-sra-max-replacements): New.
12094 2019-09-19  Martin Sebor  <msebor@redhat.com>
12096         PR middle-end/91631
12097         * builtins.c (component_size): Correct trailing array computation,
12098         rename to component_ref_size and move...
12099         (compute_objsize): Adjust.
12100         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12101         (builtin_access::strict): Do not consider memmove.
12102         (builtin_access::write_off): New function.
12103         (builtin_memref::builtin_memref): Initialize refsize.
12104         (builtin_memref::set_base_and_offset): Adjust refoff and compute
12105         refsize.
12106         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12107         Handle refsize.
12108         (builtin_access::builtin_access): Initialize dstoff to destination
12109         refeence offset here instead of in maybe_diag_overlap.  Adjust
12110         referencess even to unrelated objects.  Adjust sizrange of bounded
12111         string functions to reflect bound.  For strcat, adjust destination
12112         sizrange by that of source.
12113         (builtin_access::strcat_overlap):  Adjust offsets and sizes
12114         to reflect the increase in destination sizrange above.
12115         (builtin_access::overlap): Do not set dstoff here but instead
12116         in builtin_access::builtin_access.
12117         (check_bounds_or_overlap): Use builtin_access::write_off.
12118         (maybe_diag_access_bounds): Add argument.  Add informational notes.
12119         (dump_builtin_memref, dump_builtin_access): New functions.
12120         * tree.c (component_ref_size): ...to here.
12121         * tree.h (component_ref_size): Declare.
12122         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12123         nul in the size of the source string.
12125 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
12127         PR c/67224
12128         * doc/cpp.texi: Document support for extended characters in
12129         identifiers.
12130         * doc/cppopts.texi: Likewise.
12132 2019-09-19  Richard Biener  <rguenther@suse.de>
12134         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12135         (check_reduction_path): New overload having the path as result.
12136         (vect_is_simple_reduction): From the detected reduction
12137         path build a SLP reduction chain if possible.
12139 2019-09-19  Richard Biener  <rguenther@suse.de>
12141         PR target/91814
12142         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12143         Force operand to a register if it isn't nonimmediate_operand.
12145 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
12147         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12148         * config/arm/iterators.md (optab): Add and, ior, xor entries.
12149         (logical_op): Remove code attribute.
12150         (logical_OP): Likewise.
12152 2019-09-19  Martin Liska  <mliska@suse.cz>
12154         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12155         Use proper casting.
12157 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
12159         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12160         registers with %R.
12162         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12163         for NE comparison of TImode values.
12164         (aarch64_emit_load_exclusive): Add support for TImode.
12165         (aarch64_emit_store_exclusive): Likewise.
12166         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12167         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12168         Change iterator from ALLI to ALLI_TI.
12169         (@atomic_compare_and_swap<JUST_TI>): New.
12170         (@atomic_compare_and_swap<JUST_TI>_lse): New.
12171         (aarch64_load_exclusive_pair): New.
12172         (aarch64_store_exclusive_pair): New.
12173         * config/aarch64/iterators.md (JUST_TI): New.
12175         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12176         strong_zero_p for aarch64_track_speculation; unify some code paths;
12177         use aarch64_gen_compare_reg instead of open-coding.
12179         * config/aarch64/aarch64.opt (-moutline-atomics): New.
12180         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12181         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12182         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12183         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12184         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12185         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12186         (atomic_<atomic_op><ALLI>): Likewise.
12187         (atomic_fetch_<atomic_op><ALLI>): Likewise.
12188         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12189         * doc/invoke.texi: Document -moutline-atomics.
12191 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
12193         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12194         trivial predicate for condition branch.
12195         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12196         for switch case.
12197         (compute_bb_predicates): Update predicate based on post-dominating
12198         relationship.
12199         (analyze_function_body): Calculate post-dominating information.
12201 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
12203         * tree-vectorizer.h (vectorizable_condition): Take an int
12204         reduction index instead of a boolean flag.
12205         * tree-vect-stmts.c (vectorizable_condition): Likewise.
12206         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12207         reductions if the reduction accumulator is the "then" rather
12208         than the "else" value.
12209         (vect_analyze_stmt): Update call accordingly.
12210         (vect_transform_stmt): Likewise.
12211         * tree-vect-loop.c (vectorizable_reduction): Likewise,
12212         asserting that the index is > 0.
12214 2019-09-19  Martin Liska  <mliska@suse.cz>
12216         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12217         (sort_congruence_classes_by_decl_uid): Likewise.
12218         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12219         easier sorting.
12220         (sem_item_optimizer::merge_classes): Likewise.
12222 2019-09-19  Richard Biener  <rguenther@suse.de>
12224         PR tree-optimization/91812
12225         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12226         volatile loads.
12228 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
12230         * defaults.h (TARGET_UNIT): New macro.
12231         (target_unit): New type.
12232         * rtl.h (native_encode_rtx, native_decode_rtx)
12233         (native_decode_vector_rtx, subreg_size_lsb): Declare.
12234         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12235         * rtlanal.c (subreg_lsb_1): Delete.
12236         (subreg_size_lsb): New function.
12237         * simplify-rtx.c: Include rtx-vector-builder.h
12238         (simplify_immed_subreg): Delete.
12239         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12240         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12241         functions.
12242         (simplify_subreg): Use them.
12243         (test_vector_subregs_modes, test_vector_subregs_repeating)
12244         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12245         (test_vector_subregs): New functions.
12246         (test_vector_ops): Call test_vector_subregs for integer vector
12247         modes with at least 2 elements.
12249 2019-09-19  Richard Biener  <rguenther@suse.de>
12251         * tree-parloops.c (parloops_is_slp_reduction): Do not set
12252         LOOP_VINFO_OPERANDS_SWAPPED.
12253         (parloops_is_simple_reduction): Likewise.
12254         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12255         initialize operands_swapped.
12256         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12257         (vect_is_slp_reduction): Do not swap operands.
12258         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12259         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12261 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
12263         PR target/87007
12264         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12265         Add avx_partial_xmm_update.
12267 2019-09-18  Jim Wilson  <jimw@sifive.com>
12269         PR target/91683
12270         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12271         (riscv_move_integer): Likewise.
12272         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12273         riscv_move_integer arg.
12274         (riscv_legitimize_move): Likewise.
12275         (riscv_force_temporary): New parameter in_splitter.  Don't call
12276         force_reg if true.
12277         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12278         arg.
12279         (riscv_add_offset): Likewise.
12280         (riscv_split_symbol): New parameter in_splitter.  Pass to
12281         riscv_force_temporary.
12282         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12283         arg.
12284         (riscv_move_integer): New parameter in_splitter.  New local
12285         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
12286         in_splitter TRUE.
12287         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12288         riscv_split_symbol, and riscv_force_temporary args.
12289         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12290         riscv_move_integer arg.
12291         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12293 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12295         PR target/90878
12296         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12297         hard register store cost to 6.
12299 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12301         PR target/91446
12302         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12303         pseudo register store cost from 3 to 6 to make it the same as
12304         QImode and HImode.
12306 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12308         PR target/91738
12309         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12310         (one_cmpldi2): Likewise.
12311         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12312         of the constant parts is simple.
12313         * config/arm/iterators.md (LOGICAL): Add new code iterator.
12314         (logical_op): Add new code attribute.
12315         (logical_OP): Likewise.
12316         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12317         (arm_iordi_operand): Add predicate.
12318         (arm_xordi_operand): Add predicate.
12320 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12322         * config/arm/arm.md (maddsidi4): Remove expander.
12323         (mulsidi3adddi): Remove pattern.
12324         (mulsidi3adddi_v6): Likewise.
12325         (mulsidi3_nov6): Likewise.
12326         (mulsidi3_v6): Likewise.
12327         (umulsidi3): Remove expander.
12328         (umulsidi3_nov6): Remove pattern.
12329         (umulsidi3_v6): Likewise.
12330         (umulsidi3adddi): Likewise.
12331         (umulsidi3adddi_v6): Likewise.
12332         (<Us>mulsidi3): Add combined expander.
12333         (<Us>maddsidi4): Likewise.
12334         (<US>mull): Add combined umull and smull pattern.
12335         (<US>mlal): Likewise.
12336         * config/arm/iterators.md (Us): Add new iterator.
12338 2019-09-18  Richard Biener  <rguenther@suse.de>
12340         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12341         swapping.
12342         (vectorize_fold_left_reduction): Remove assert.
12343         (vectorizable_reduction): Also expect COND_EXPR non-reduction
12344         operand in position 2.  Remove assert.
12346 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12348         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12349         (smulsi3_highpart_nov6): Remove pattern.
12350         (smulsi3_highpart_v6): Likewise.
12351         (umulsi3_highpart): Likewise.
12352         (umulsi3_highpart_nov6): Likewise.
12353         (umulsi3_highpart_v6): Likewise.
12354         (<US>mull_high): Add new combined multiply pattern.
12356 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12358         * config/arm/arm.md (arm_mulsi3): Remove pattern.
12359         (arm_mulsi3_v6): Likewise.
12360         (mulsi3addsi_v6): Likewise.
12361         (mulsi3subsi): Likewise.
12362         (mul): Add new multiply pattern.
12363         (mla): Likewise.
12364         (mls): Likewise.
12366 2019-09-18  Richard Biener  <rguenther@suse.de>
12368         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12369         (parloops_valid_reduction_input_p): Copy from
12370         valid_reduction_input_p.
12371         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12372         (parloops_needs_fold_left_reduction_p): Copy from
12373         needs_fold_left_reduction_p.
12374         (parloops_is_simple_reduction): Copy from
12375         vect_is_simple_reduction.
12376         (parloops_force_simple_reduction): Copy from
12377         vect_force_simple_reduction.
12378         (gather_scalar_reductions): Adjust.
12379         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12380         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12382 2019-09-18  Richard Biener  <rguenther@suse.de>
12384         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12385         * tree-vect-loop.c (get_initial_def_for_reduction): Make
12386         static.
12387         (vect_create_epilog_for_reduction): Remove dead code.
12389 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12391         * varasm.c (assemble_real): Generate canonical const_ints.
12393 2019-09-18  Richard Biener  <rguenther@suse.de>
12395         PR lto/91763
12396         * lto-streamer-in.c (input_eh_regions): Move EH init to
12397         lto_materialize_function.
12398         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12399         Likewise.
12401 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12403         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12404         are INTEGER_CSTs.
12406 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12408         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12409         of checking specifically for INTEGER_CST.
12411 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12413         * stor-layout.c (compute_record_mode): Operate on poly_uint64
12414         sizes instead of uhwi sizes.
12416 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
12418         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12419         (add_const_value_attribute): Handle CONST_POLY_INT.
12421 2019-09-18  Martin Liska  <mliska@suse.cz>
12423         * dbgcnt.def (store_merging): New counter.
12424         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12425         Use it in store merging.
12427 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12429         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12430         function.
12431         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12432         * config/arm/arm.c (arm_sched_variable_issue): New function.
12433         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12435 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12437         * config/arm/types.md (no_reservation): New reservation.
12438         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12439         no_insn here.
12440         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12441         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12442         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12443         * config/arm/arm1020e.md (1020alu_op): Likewise.
12444         * config/arm/arm1026ejs.md (alu_op): Likewise.
12445         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12446         * config/arm/arm926ejs.md (9_alu_op): Likewise.
12447         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12448         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12449         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12450         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12451         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12452         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12453         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12454         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12455         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12456         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12457         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12458         * config/arm/fa526.md (526_alu_op): Likewise.
12459         * config/arm/fa606te.md (606te_alu_op): Likewise.
12460         * config/arm/fa626te.md (626te_alu_op): Likewise.
12461         * config/arm/fa726te.md (726te_alu_op): Likewise.
12462         * config/arm/xgene1.md (xgene1_nop): Likewise.
12464 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12466         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12467         "no_insn" to "branch".
12469 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12471         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12473 2019-09-17  Richard Biener  <rguenther@suse.de>
12475         PR debug/91772
12476         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12477         was missing generate locations only once.
12479 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
12481         PR ipa/91089
12482         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12483         option.
12484         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12485         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12486         for switch default case using range analysis information.
12488 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
12490         PR target/91749
12491         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12492         mode attributed is supported by FDPIC.
12494 2019-09-17  Richard Biener  <rguenther@suse.de>
12496         PR tree-optimization/91790
12497         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12498         use the correct DR for setting up realignment.
12500 2019-09-16  Uroš Bizjak  <ubizjak@gmail.com>
12502         PR target/91719
12503         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12504         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12505         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12506         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12508 2019-09-16  Jason Merrill  <jason@redhat.com>
12510         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12512 2019-09-16  Martin Liska  <mliska@suse.cz>
12514         * gimple-fold.c (or_comparisons_1): Remove rules moved
12515         to ...
12516         * match.pd: ... here.
12518 2019-09-16  Martin Liska  <mliska@suse.cz>
12520         * gimple-fold.c (or_comparisons_1): Remove rules
12521         moved to ...
12522         * match.pd: ... here.
12524 2019-09-16  Martin Liska  <mliska@suse.cz>
12526         * genmatch.c (dt_node::append_simplify): Do not print
12527         warning when we have duplicate patterns belonging
12528         to a same simplify rule.
12529         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12530         (maybe_fold_comparisons_from_match_pd): Handle
12531         tcc_comparison as a results.
12532         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12534 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
12535             Qi Feng  <ffengqi@linux.ibm.com>
12537         PR middle-end/88784
12538         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
12539         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
12540         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12541         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
12542         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
12543         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12544         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12545         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
12546         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
12547         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12548         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
12549         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
12551 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
12552             Martin Liska  <mliska@suse.cz>
12554         * gimple-fold.c (and_comparisons_1): Add type as first
12555         argument.
12556         (and_var_with_comparison): Likewise.
12557         (and_var_with_comparison_1): Likewise.
12558         (or_comparisons_1): Likewise.
12559         (or_var_with_comparison): Likewise.
12560         (or_var_with_comparison_1): Likewise.
12561         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12562         (maybe_fold_or_comparisons): Likewise.
12563         (maybe_fold_comparisons_from_match_pd): New.
12564         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12565         (maybe_fold_or_comparisons): Likewise.
12566         * gimple.c (gimple_size): Make it public and add num_ops argument.
12567         (gimple_init): New function.
12568         (gimple_alloc): Call gimple_init.
12569         * gimple.h (gimple_size): New.
12570         (gimple_init): Likewise.
12571         * tree-if-conv.c (fold_or_predicates): Pass type.
12572         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12573         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12574         (optimize_vec_cond_expr): Likewise.
12575         (ovce_extract_ops): Return type of conditional expression.
12576         * tree-ssanames.c (init_ssa_name_imm_use): New.
12577         (make_ssa_name_fn): Use init_ssa_name_imm_use.
12578         * tree-ssanames.h (init_ssa_name_imm_use): New.
12580 2019-09-16  Richard Biener  <rguenther@suse.de>
12582         PR tree-optimization/91756
12583         PR tree-optimization/87132
12584         * tree-ssa-alias.h (enum translate_flags): New.
12585         (get_continuation_for_phi): Use it instead of simple bool flag.
12586         (walk_non_aliased_vuses): Likewise.
12587         * tree-ssa-alias.c (maybe_skip_until): Adjust.
12588         (get_continuation_for_phi): When looking across backedges only
12589         disallow valueization.
12590         (walk_non_aliased_vuses): Adjust.
12591         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12592         if requested.
12594 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
12596         PR middle-end/80791
12597         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12598         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12599         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12600         * target.def (have_count_reg_decr_p): New hook.
12601         (doloop_cost_for_generic): Likewise.
12602         (doloop_cost_for_address): Likewise.
12603         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12604         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12605         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12606         * doc/tm.texi: Regenerate.
12607         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12608         addend.
12609         (record_group): Init doloop_p.
12610         (add_candidate_1): Add optional argument doloop, change the handlings
12611         accordingly.
12612         (add_candidate): Likewise.
12613         (generic_predict_doloop_p): Update attribute.
12614         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12615         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12616         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12617         MIN_EXPR.
12618         (get_computation_cost): Update for doloop IV cand extra cost.
12619         (determine_group_iv_cost_cond): Update for doloop IV cand.
12620         (determine_iv_cost): Likewise.
12621         (ivopts_estimate_reg_pressure): Likewise.
12622         (may_eliminate_iv): Update handlings for doloop IV cand.
12623         (add_iv_candidate_for_doloop): New function.
12624         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12625         (iv_ca_set_no_cp): Update for doloop IV cand.
12626         (iv_ca_set_cp): Likewise.
12627         (iv_ca_dump): Dump register cost.
12628         (find_doloop_use): New function.
12629         (analyze_and_mark_doloop_use): Likewise.
12630         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12632 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12634         PR middle-end/91708
12635         * cse.c (cse_insn): Do not replace anything with a
12636         MEM.
12638 2019-09-13  Ian Lance Taylor  <iant@golang.org>
12640         * doc/invoke.texi (Optimize Options): Fix typo.
12642 2019-09-12  Uroš Bizjak  <ubizjak@gmail.com>
12644         PR tree-optimization/89386
12645         * config/i386/sse.md (smulhrs<mode>3): New expander.
12646         (smulhrsv4hi3): Ditto.
12648 2019-09-12  Richard Biener  <rguenther@suse.de>
12650         PR tree-optimization/91750
12651         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12652         in the type of the evolution.
12654 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
12656         PR tree-optimization/89386
12657         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12658         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12659         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12660         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12661         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12662         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12663         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12664         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12665         (su, r): Handle the unspecs above.
12666         (bt): New int attribute.
12667         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12668         * internal-fn.c (first_commutative_argument): Commutativity info for
12669         above.
12670         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12671         (umulhrs_optab): New optabs.
12672         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12673         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12674         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12675         function.
12676         (vect_vect_recog_func_ptrs): Add it.
12678 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
12680         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12681         code.
12683 2019-09-11  Nathan Sidwell  <nathan@acm.org>
12685         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12686         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12688 2019-09-11  Richard Biener  <rguenther@suse.de>
12690         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12691         * lto-wrapper.c (merge_and_complain): Pick up -g.
12692         (append_compiler_options): Likewise.
12693         (run_gcc): Re-instantiate handling -g0 at link-time.
12694         * doc/invoke.texi (flto): Document debug info generation.
12696 2019-09-11  Richard Biener  <rguenther@suse.de>
12698         PR tree-optimization/90387
12699         * vr-values.c (vr_values::extract_range_basic): After inlining
12700         simplify non-constant __builtin_constant_p to false.
12702 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
12704         PR rtl-optimization/89795
12705         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12706         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12708 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
12710         PR tree-optimization/91723
12711         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12712         instead of pointer equality when checking if argument vectypes are
12713         the same.
12715         PR middle-end/91725
12716         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12717         of get_nonzero_bits, only call it for integral types.
12719 2019-09-11  Richard Biener  <rguenther@suse.de>
12721         Revert
12722         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
12724         * match.pd: Add flag_unsafe_math_optimizations check
12725         before deciding on the widest type in a binary math operation.
12727 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12729         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12730         and CALL_REALLY_USED_REGISTERS must be defined, and that
12731         CALL_REALLY_USED_REGISTERS is preferred.
12732         * doc/tm.texi: Regenerate.
12733         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12734         (call_really_used_regs): Likewise.
12735         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12736         CALL_REALLY_USED_REGISTERS are defined.
12737         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12738         initial value if defined.
12739         (initial_call_really_used_regs): Delete.
12740         (saved_call_really_used_regs): Likewise.
12741         (CALL_REALLY_USED_REGNO_P): Likewise.
12742         (init_reg_sets): Remove handling of call_really_used_regs.
12743         (save_register_info, restore_register_info, globalize_reg): Likewise.
12744         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
12745         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
12746         outside operand_reg_set.
12747         (fix_register): Don't change call_used_regs if
12748         CALL_REALLY_USED_REGISTERS is defined.
12749         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12750         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12751         instead of call_really_used_regs.
12752         (csky_conditional_register_usage): Remove the old handling of
12753         call_used_regs and change the handling of call_really_used_regs
12754         to use call_used_regs instead.
12755         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12756         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12757         making a register fixed.
12758         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12759         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12760         instead of call_really_used_regs.
12761         (m32r_conditional_register_usage): Don't set call_used_regs when
12762         making a register fixed.
12763         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12764         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12765         instead of call_really_used_regs.
12766         (mips_interrupt_extra_call_saved_reg_p): Likewise.
12767         (mips_cfun_call_saved_reg_p): Likewise.
12768         (mips_swap_registers): Remove the old handling of call_used_regs
12769         and change the handling of call_really_used_regs to use call_used_regs
12770         instead.
12771         (mips_conditional_register_usage): Likewise.
12772         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12773         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12774         instead of call_really_used_regs.
12775         (mn10300_get_live_callee_saved_regs): Likewise.
12776         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12777         (mn10300_conditional_register_usage): Don't set call_used_regs when
12778         making a register fixed.
12779         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12780         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12781         Remove the old handling of call_used_regs and change the handling
12782         of call_really_used_regs to use call_used_regs instead.
12783         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12784         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12785         instead of call_really_used_regs.
12786         (s390_register_info_gprtofpr, s390_register_info): Likewise.
12787         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12788         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12789         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12790         (s390_conditional_register_usage): Remove the old handling of
12791         call_used_regs and change the handling of call_really_used_regs
12792         to use call_used_regs instead.
12793         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12794         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12795         (sh_fix_range, reg_unused_after): Likewise.
12796         (sh_conditional_register_usage): Remove the old handling of
12797         call_used_regs and change the handling of call_really_used_regs
12798         to use call_used_regs instead.
12799         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12800         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12801         call_used_regs when making a register fixed.
12802         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12803         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12804         call_used_regs when making a register fixed.
12805         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12806         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12807         set call_used_regs when making a register fixed.
12808         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12809         * config/visium/visium.c (visium_conditional_register_usage): Remove
12810         the old handling of call_used_regs and change the handling of
12811         call_really_used_regs to use call_used_regs instead.
12813 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12815         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12816         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12817         * reginfo.c (call_used_regs): New macro.
12819 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12821         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12822         fixed_regs test.
12823         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12824         (bpf_expand_epilogue): Likewise.
12825         * config/c6x/c6x.c (c6x_save_reg): Likewise.
12826         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12827         (ft32_expand_epilogue): Likewise.
12828         * config/i386/i386.c (ix86_save_reg): Likewise.
12829         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12830         (moxie_expand_epilogue): Likewise.
12831         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12832         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12833         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12835 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12837         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12838         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12839         instead of testing call_used_regs directly.
12840         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12841         (aarch64_components_for_bb): Likewise.
12842         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12843         * config/arc/arc.c (arc_must_save_register): Likewise.
12844         (arc_epilogue_uses): Likewise.
12845         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12846         (legitimize_pic_address, callee_saved_reg_p): Likewise.
12847         (arm_compute_save_reg0_reg12_mask): Likewise.
12848         (arm_compute_save_core_reg_mask): Likewise.
12849         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12850         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12851         (cmse_nonsecure_entry_clear_before_return): Likewise.
12852         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12853         (arm_expand_epilogue): Likewise.
12854         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12855         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12856         (_reg_unused_after): Likewise.
12857         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12858         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12859         (add_to_reg, hwloop_optimize): Likewise.
12860         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12861         (bpf_expand_epilogue): Likewise.
12862         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12863         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12864         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12865         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12866         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12867         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12868         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12869         * config/frv/frv.c (frv_stack_info): Likewise.
12870         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12871         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12872         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12873         (move_callee_saved_registers): Likewise.
12874         * config/h8300/h8300.c (byte_reg): Likewise.
12875         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12876         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12877         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12878         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12879         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12880         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12881         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12882         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12883         * config/m32c/m32c.c (need_to_save): Likewise.
12884         * config/m68k/m68k.c (m68k_save_reg): Likewise.
12885         * config/mcore/mcore.c (calc_live_regs): Likewise.
12886         * config/microblaze/microblaze.c (microblaze_must_save_register):
12887         Likewise.
12888         * config/mmix/mmix.c (mmix_local_regno): Likewise.
12889         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12890         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12891         (mmix_expand_epilogue): Likewise.
12892         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12893         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12894         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12895         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12896         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12897         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12898         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12899         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12900         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12901         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12902         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12903         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12904         * config/rl78/rl78.c (need_to_save): Likewise.
12905         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12906         (rs6000_stack_info, generate_set_vrsave): Likewise.
12907         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12908         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12909         * config/rx/rx.c (rx_get_stack_layout): Likewise.
12910         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12911         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12912         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12913         (save_local_or_in_reg_p): Likewise.
12914         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12915         (xstormy16_epilogue_uses): Likewise.
12916         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12917         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12918         * config/v850/v850.c (compute_register_save_size): Likewise.
12919         * config/vax/vax.c (vax_expand_prologue): Likewise.
12920         * config/visium/visium.c (visium_save_reg_p): Likewise.
12921         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12922         * cselib.c (cselib_process_insn): Likewise.
12923         * df-scan.c (df_get_entry_block_def_set): Likewise.
12924         * function.c (aggregate_value_p): Likewise.
12925         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12926         * ira-lives.c (process_bb_node_lives): Likewise.
12927         * ira.c (do_reload): Likewise.
12928         * lra-lives.c (process_bb_lives): Likewise.
12929         * lra-remat.c (lra_remat): Likewise.
12930         * lra.c (lra): Likewise.
12931         * postreload.c (reload_combine_recognize_pattern): Likewise.
12932         (reload_cse_move2add): Likewise.
12933         * recog.c (peep2_find_free_register): Likewise.
12934         * regrename.c (check_new_reg_p): Likewise.
12935         * reload.c (find_equiv_reg): Likewise.
12936         * reload1.c (reload, find_reg): Likewise.
12937         * sel-sched.c (init_hard_regs_data): Likewise.
12939 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12941         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12942         regs_invalidated_by_call & ~fixed_reg_set instead of
12943         call_used_or_fixed_regs & ~fixed_reg_set.
12944         * config/sh/sh.c (output_stack_adjust): Likewise.
12946 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12948         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12949         (call_used_reg_set): Delete.
12950         (call_used_or_fixed_regs): New macro.
12951         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12952         of call_used_reg_set.
12953         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12954         instead of call_used_regs.
12955         (save_call_clobbered_regs): Likewise.
12956         * cfgcleanup.c (old_insns_match_p): Likewise.
12957         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12958         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12959         Likewise.
12960         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12961         * config/sh/sh.c (output_stack_adjust): Likewise.
12962         * final.c (collect_fn_hard_reg_usage): Likewise.
12963         * ira-build.c (ira_build): Likewise.
12964         * ira-color.c (calculate_saved_nregs): Likewise.
12965         (allocno_reload_assign, calculate_spill_cost): Likewise.
12966         * ira-conflicts.c (ira_build_conflicts): Likewise.
12967         * ira-costs.c (ira_tune_allocno_costs): Likewise.
12968         * ira-lives.c (process_bb_node_lives): Likewise.
12969         * ira.c (setup_reg_renumber): Likewise.
12970         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12971         * lra-constraints.c (need_for_call_save_p): Likewise.
12972         (need_for_split_p, inherit_in_ebb): Likewise.
12973         * lra-lives.c (process_bb_lives): Likewise.
12974         * lra-remat.c (call_used_input_regno_present_p): Likewise.
12975         * postreload.c (reload_combine): Likewise.
12976         * regrename.c (find_rename_reg): Likewise.
12977         * reload1.c (reload_as_needed): Likewise.
12978         * rtlanal.c (find_all_hard_reg_sets): Likewise.
12979         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12980         * shrink-wrap.c (requires_stack_frame_p): Likewise.
12982 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12984         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12985         (no_caller_save_reg_set): Delete.
12986         * caller-save.c (init_caller_save): Don't initialize it.
12987         * ira-conflicts.c (ira_build_conflicts): Calculate
12988         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12990 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12992         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12993         (target_hard_regs::x_savable_regs): New field.
12994         (call_fixed_reg_set): Delete.
12995         (savable_regs): New macro,
12996         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12997         (init_reg_sets_1): Likewise.  Initialize savable_regs.
12998         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12999         for all registers.  Set savable_regs instead of call_fixed_reg_set.
13000         (setup_save_areas, save_call_clobbered_regs): Replace uses of
13001         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13002         * config/sh/sh.c (output_stack_adjust): Likewise.
13004 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13006         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13007         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13008         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13010 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13012         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13013         * rtlanal.c (get_call_rtx_from): Likewise.
13014         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13015         than the pattern to get_call_rtx_from.
13016         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13017         an rtx_insn * instead of an rtx.
13018         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13020 2019-09-10  Martin Liska  <mliska@suse.cz>
13022         * common.opt: Use newly added WarnRemoved.
13023         * config/aarch64/aarch64.opt: Likewise.
13024         * config/arm/arm.opt: Likewise.
13025         * config/i386/i386.opt: Likewise.
13026         * config/ia64/ia64.opt: Likewise.
13027         * config/rs6000/rs6000.opt: Likewise.
13028         * doc/options.texi: Document WarnRemoved properly.
13029         * dwarf2out.c (gen_producer_string): Handle renamed
13030         OPT_SPECIAL_warn_removed.
13031         * lto-opts.c (lto_write_options): Likewise.
13032         * lto-wrapper.c (merge_and_complain): Likewise.
13033         * opts-common.c (decode_cmdline_option): Likewise.
13034         (prune_options): Likewise.
13035         (read_cmdline_option): Likewise.
13036         (control_warning_option): Likewise.
13037         * opts.c (print_filtered_help): Likewise.
13038         * optc-gen.awk: Parse for WarnRemoved and make usage
13039         of Deprecated an error.
13040         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13042 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
13044         * doc/install.texi: Fix syntax for html generation.
13046 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
13048         PR middle-end/91680
13049         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13050         the shift type to type.
13052 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13054         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13055         FDPIC mode.
13056         (stack_protect_combined_test_insn): Likewise.
13058 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13059             Mickaël Guêné <mickael.guene@st.com>
13061         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13062         * config/arm/arm.md (FDPIC_REGNUM): New constant.
13063         (load_tp_soft_fdpic): New pattern.
13064         (load_tp_soft): Disable in FDPIC mode.
13066 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13067             Mickaël Guêné <mickael.guene@st.com>
13069         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13070         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13071         (arm_call_tls_get_addr): Add FDPIC support.
13072         (legitimize_tls_address): Likewise.
13073         (arm_emit_tls_decoration): Likewise.
13075 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13076             Mickaël Guêné <mickael.guene@st.com>
13078         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13079         support.
13080         (arm_trampoline_init): Likewise.
13081         (arm_trampoline_adjust_address): Likewise.
13082         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13084 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13085             Mickaël Guêné <mickael.guene@st.com>
13087         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13088         (legitimize_pic_address): Enforce binding rules on function
13089         pointers in FDPIC mode.
13090         (arm_assemble_integer): Likewise.
13092 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13093             Mickaël Guêné <mickael.guene@st.com>
13095         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13096         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13097         FDPIC.
13099 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13100             Mickaël Guêné <mickael.guene@st.com>
13102         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13103         field.
13105 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13106             Mickaël Guêné <mickael.guene@st.com>
13108         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13109         in FDPIC mode.
13110         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13111         new function.
13112         * config/arm/arm.c (arm_option_override): Define pic register to
13113         FDPIC_REGNUM.
13114         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13115         have no decl or go through PLT.
13116         (calculate_pic_address_constant): New function.
13117         (legitimize_pic_address): Call calculate_pic_address_constant.
13118         (arm_load_pic_register): Handle TARGET_FDPIC.
13119         (arm_is_segment_info_known): New function.
13120         (arm_pic_static_addr): Add support for FDPIC.
13121         (arm_load_function_descriptor): New function.
13122         (arm_emit_call_insn): Add support for FDPIC.
13123         (arm_assemble_integer): Add support for FDPIC.
13124         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13125         Define. (FDPIC_REGNUM): New define.
13126         * config/arm/arm.md (call): Add support for FDPIC.
13127         (call_value): Likewise.
13128         (restore_pic_register_after_call): New pattern.
13129         (untyped_call): Disable if FDPIC.
13130         (untyped_return): Likewise.
13131         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13133 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13134             Mickaël Guêné <mickael.guene@st.com>
13136         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13137         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13138         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13139         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13140         (CC1_SPEC): Use FDPIC_CC1_SPEC.
13141         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13142         * config/arm/uclinuxfdpiceabi.h: New file.
13144 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13146         * config.gcc: Handle *-*-uclinuxfdpiceabi.
13148 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
13149             Mickaël Guêné  <mickael.guene@st.com>
13151         * config/arm/arm.opt: Add -mfdpic option.
13152         * doc/invoke.texi: Add documentation for -mfdpic.
13154 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13156         * expmed.c (extract_bit_field): Update function comment
13157         regarding alt_rtl.
13158         * expr.c (expand_expr_real): Update function comment
13159         regarding alt_rtl.
13160         (expand_misaligned_mem_ref): New helper function.
13161         (expand_expr_real_2): Use expand_misaligned_mem_ref.
13162         Remove duplicate assignment to "base" at case MEM_REF.
13163         Remove a shadowed variable "unsignedp" at case VCE. 
13165 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13167         * regset.h (regs_invalidated_by_call_regset): Delete.
13168         (fixed_reg_set_regset): Likewise.
13169         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13170         (fixed_reg_set_regset, persistent_obstack): Likewise.
13171         (init_reg_sets_1, globalize_reg): Update accordingly.
13172         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13173         instead of a bitmap.
13174         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13175         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13176         instead of regs_invalidated_by_call_regset.
13177         (df_lr_confluence_n, df_md_confluence_n): Likewise.
13178         * df-scan.c (df_scan_start_dump): Likewise.
13179         * dse.c (copy_fixed_regs): Likewise.
13180         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13182 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13184         * array-traits.h: New file.
13185         * coretypes.h (array_traits, bitmap_view): New types.
13186         * bitmap.h: Include "array-traits.h"
13187         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13188         (base_bitmap_view, bitmap_view): New classes.
13189         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13190         * hard-reg-set.h: Include array-traits.h.
13191         (array_traits<HARD_REG_SET>): New struct.
13192         * regset.h (IOR_REG_SET_HRS): New macro.
13193         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13194         rather than iterating over each hard register.
13195         * sched-deps.c (sched_analyze_insn): Likewise.
13196         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13198 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13200         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13201         instead of a HARD_REG_SET *.
13202         * ira-build.c (ior_hard_reg_conflicts): Likewise.
13203         (ira_build): Update call accordingly.
13204         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13206 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13208         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13209         (HARD_REG_SET::operator!=): Likewise.
13210         (hard_reg_set_equal_p): Delete.
13211         * cfgcleanup.c (old_insns_match_p): Use == instead of
13212         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13213         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13214         (add_allocno_hard_regs_to_forest): Likewise.
13215         (setup_allocno_available_regs_num): Likewise.
13216         * ira.c (setup_pressure_classes): Likewise.
13217         (setup_allocno_and_important_classes): Likewise.
13218         (setup_reg_class_relations): Likewise.
13219         * lra-lives.c (process_bb_lives): Likewise.
13220         * reg-stack.c (change_stack, convert_regs_1): Likewise.
13222 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13224         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13225         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13226         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13227         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13228         Likewise.
13229         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13230         * ira.c (setup_reg_renumber): Likewise.
13231         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13232         * regrename.c (regrename_find_superclass): Likewise.
13233         * reload1.c (find_reg): Likewise.
13235 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13237         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13238         * caller-save.c (setup_save_areas): Use "&~" instead of
13239         AND_COMPL_HARD_REG_SET.
13240         (save_call_clobbered_regs): Likewise.
13241         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13242         Likewise.
13243         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13244         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13245         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13246         * config/mips/mips.c (mips_class_max_nregs): Likewise.
13247         (mips_conditional_register_usage): Likewise.
13248         * config/sh/sh.c (output_stack_adjust): Likewise.
13249         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13250         (setup_profitable_hard_regs): Likewise.
13251         (get_conflict_and_start_profitable_regs): Likewise.
13252         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13253         (ira_build_conflicts): Likewise.
13254         * ira-costs.c (restrict_cost_classes): Likewise.
13255         (setup_regno_cost_classes_by_aclass): Likewise.
13256         * ira-lives.c (process_bb_node_lives): Likewise.
13257         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13258         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13259         (setup_allocno_and_important_classes, setup_class_translate_array)
13260         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13261         Likewise.
13262         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13263         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13264         (process_alt_operands, inherit_in_ebb): Likewise.
13265         * lra-eliminations.c (update_reg_eliminate): Likewise.
13266         * lra-lives.c (process_bb_lives): Likewise.
13267         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13268         * resource.c (find_dead_or_set_registers): Likewise.
13269         (mark_target_live_regs): Likewise.
13270         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13271         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13272         (implicit_clobber_conflict_p): Likewise.
13273         * shrink-wrap.c (requires_stack_frame_p): Likewise.
13274         (try_shrink_wrapping): Likewise.
13276 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13278         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13279         (HARD_REG_SET::operator|=): Likewise.
13280         (IOR_HARD_REG_SET): Delete.
13281         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13282         IOR_HARD_REG_SET.
13283         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13284         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13285         * final.c (collect_fn_hard_reg_usage): Likewise.
13286         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13287         * ira-build.c (merge_hard_reg_conflicts): Likewise.
13288         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13289         (propagate_some_info_from_allocno): Likewise.
13290         (copy_info_to_removed_store_destinations): Likewise.
13291         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13292         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13293         (fast_allocation): Likewise.
13294         * ira-conflicts.c (ira_build_conflicts): Likewise.
13295         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13296         (process_bb_node_lives): Likewise.
13297         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13298         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13299         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13300         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13301         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13302         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13303         (process_bb_lives): Likewise.
13304         * lra-spills.c (assign_spill_hard_regs): Likewise.
13305         * postreload.c (reload_combine): Likewise.
13306         * reginfo.c (init_reg_sets_1): Likewise.
13307         * regrename.c (merge_overlapping_regs, find_rename_reg)
13308         (merge_chains): Likewise.
13309         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13310         (find_reload_regs, finish_spills, choose_reload_regs_init)
13311         (emit_reload_insns): Likewise.
13312         * reorg.c (redundant_insn): Likewise.
13313         * resource.c (find_dead_or_set_registers, mark_set_resources)
13314         (mark_target_live_regs): Likewise.
13315         * rtlanal.c (find_all_hard_reg_sets): Likewise.
13316         * sched-deps.c (sched_analyze_insn): Likewise.
13317         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13318         (find_best_reg_for_expr): Likewise.
13319         * shrink-wrap.c (try_shrink_wrapping): Likewise.
13321 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13323         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13324         (HARD_REG_SET::operator&): Likewise.
13325         (AND_HARD_REG_SET): Delete.
13326         * caller-save.c (setup_save_areas): Use "&" instead of
13327         AND_HARD_REG_SET.
13328         (save_call_clobbered_regs): Likewise.
13329         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13330         * config/m32c/m32c.c (reduce_class): Likewise.
13331         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13332         * final.c (get_call_reg_set_usage): Likewise.
13333         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13334         (setup_left_conflict_sizes_p): Likewise.
13335         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13336         (ira_build_conflicts): Likewise.
13337         * ira-costs.c (restrict_cost_classes): Likewise.
13338         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13339         (setup_reg_class_relations): Likewise.
13340         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13341         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13342         * resource.c (find_dead_or_set_registers): Likewise.
13343         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13345 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13347         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13348         (COMPL_HARD_REG_SET): Delete.
13349         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13350         of COMPL_HARD_REG_SET.
13351         (try_rename_operands): Likewise.
13352         * config/sh/sh.c (push_regs): Likewise.
13353         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13354         * lra-constraints.c (contains_reg_p): Likewise.
13355         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13357 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13359         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13360         * caller-save.c (save_call_clobbered_regs): Use assignment instead
13361         of COPY_HARD_REG_SET.
13362         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13363         (epiphany_conditional_register_usage): Likewise.
13364         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13365         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13366         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13367         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13368         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13369         * config/mips/mips.c (mips_class_max_nregs): Likewise.
13370         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13371         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13372         * config/sh/sh.c (output_stack_adjust): Likewise.
13373         * final.c (collect_fn_hard_reg_usage): Likewise.
13374         (get_call_reg_set_usage): Likewise.
13375         * ira-build.c (ira_create_object, remove_low_level_allocnos)
13376         (ira_flattening): Likewise.
13377         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13378         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13379         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13380         (ira_reassign_pseudos): Likewise.
13381         * ira-conflicts.c (print_allocno_conflicts): Likewise.
13382         (ira_build_conflicts): Likewise.
13383         * ira-costs.c (restrict_cost_classes): Likewise.
13384         (setup_regno_cost_classes_by_aclass): Likewise.
13385         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13386         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13387         (setup_stack_reg_pressure_class, setup_pressure_classes)
13388         (setup_allocno_and_important_classes, setup_class_translate_array)
13389         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13390         (ira_setup_eliminable_regset): Likewise.
13391         * lra-assigns.c (find_hard_regno_for_1): Likewise.
13392         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13393         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13394         (process_alt_operands, inherit_in_ebb): Likewise.
13395         * lra-lives.c (process_bb_lives): Likewise.
13396         * lra-spills.c (assign_spill_hard_regs): Likewise.
13397         * lra.c (lra): Likewise.
13398         * mode-switching.c (new_seginfo): Likewise.
13399         * postreload.c (reload_combine): Likewise.
13400         * reg-stack.c (straighten_stack): Likewise.
13401         * reginfo.c (save_register_info, restore_register_info): Likewise.
13402         (init_reg_sets_1, record_subregs_of_mode): Likewise
13403         * regrename.c (create_new_chain, rename_chains): Likewise.
13404         * reload1.c (order_regs_for_reload, find_reg): Likewise.
13405         (find_reload_regs): Likewise.
13406         * resource.c (find_dead_or_set_registers): Likewise.
13407         (mark_target_live_regs): Likewise.
13408         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13410 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13412         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13413         (note_pattern_stores): Declare.
13414         (note_stores): Take an rtx_insn *.
13415         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13416         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13417         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13418         (note_stores): Take an rtx_insn * as argument and process
13419         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
13420         (note_pattern_stores): ...this.
13421         (find_first_parameter_load): Pass the insn rather than
13422         its pattern to note_stores.
13423         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13424         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13425         (insert_one_insn): Likewise.
13426         * combine.c (combine_instructions): Likewise.
13427         (likely_spilled_retval_p): Likewise.
13428         (try_combine): Use note_pattern_stores instead of note_stores.
13429         (record_dead_and_set_regs): Pass the insn rather than its pattern
13430         to note_stores.
13431         (reg_dead_at_p): Likewise.
13432         * config/bfin/bfin.c (workaround_speculation): Likewise.
13433         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
13434         rather than an rtx.
13435         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13436         instead of note_stores.
13437         (frv_optimize_membar_local): Pass the insn rather than its pattern
13438         to note_stores.
13439         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13440         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13441         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13442         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13443         (mips_reorg_process_insns): Likewise.
13444         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13445         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
13446         rather than rtxes.
13447         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13448         its pattern to note_stores.
13449         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13450         of note_stores.
13451         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13452         the insn to note_stores.
13453         (prescan_insns_for_dce): Update call accordingly.
13454         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13455         to note_stores.
13456         * df-problems.c (can_move_insns_across): Likewise.
13457         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13458         * function.c (assign_parm_setup_reg): Likewise.
13459         * gcse-common.c (record_last_mem_set_info_common): Likewise.
13460         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13461         (single_set_gcse): Likewise.
13462         * ira.c (validate_equiv_mem): Likewise.
13463         (update_equiv_regs): Use note_pattern_stores rather than note_stores
13464         for no_equiv.
13465         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13466         pattern to note_stores.
13467         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13468         * loop-iv.c (simplify_using_initial_values): Likewise.
13469         * mode-switching.c (optimize_mode_switching): Likewise.
13470         * optabs.c (emit_libcall_block_1): Likewise.
13471         (expand_atomic_compare_and_swap): Likewise.
13472         * postreload-gcse.c (load_killed_in_block_p): Likewise.
13473         (record_opr_changes): Likewise.  Remove explicit handling of
13474         CALL_INSN_FUNCTION_USAGE.
13475         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13476         * regcprop.c (kill_clobbered_values): Likewise.
13477         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13478         to note_stores.
13479         * regrename.c (build_def_use): Likewise.
13480         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
13481         for mark_not_eliminable.
13482         (reload_as_needed): Pass the insn rather than its pattern
13483         to note_stores.
13484         (emit_output_reload_insns): Likewise.
13485         * resource.c (mark_target_live_regs): Likewise.
13486         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13487         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13488         instead of note_stores.
13489         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13490         its pattern to note_stores.
13491         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13492         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13494 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13496         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13497         than a #define.  Use a structure rather than an array as the
13498         fallback definition.  Remove special cases for low array sizes.
13499         (const_hard_reg_set): New typedef.
13500         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13501         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13502         (hard_reg_set_empty_p): Likewise.
13503         (SET_HARD_REG_BIT): Use a function rather than a macro to
13504         handle the case in which HARD_REG_SET is a structure.
13505         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13506         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13507         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13508         (IOR_COMPL_HARD_REG_SET): Likewise.
13509         (hard_reg_set_iterator::pset): Constify the pointer target.
13510         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13511         of a "const HARD_REG_SET".  Update the handling of non-integer
13512         HARD_REG_SETs.
13513         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13514         * reload.h: Likewise.
13515         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13516         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13517         of a "const HARD_REG_SET".
13518         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13519         (range_in_hard_reg_set_p): Likewise.
13520         * ira-costs.c (restrict_cost_classes): Likewise.
13521         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13522         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13523         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13524         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13525         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13526         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13527         take an unsigned int and open-code the HARD_REG_SET operations.
13529 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
13531         * Makefile.in (OBJS): Remove bt-load.o.
13532         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13533         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13534         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13535         document that the option no longer does anything.
13536         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13537         * target.def (branch_target_register_class): Delete.
13538         (branch_target_register_callee_saved): Likewise.
13539         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13540         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13541         * doc/tm.texi: Regenerate.
13542         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13543         (make_pass_branch_target_load_optimize2): Likewise.
13544         * passes.def (pass_branch_target_load_optimize1): Likewise.
13545         (pass_branch_target_load_optimize2): Likewise.
13546         * targhooks.h (default_branch_target_register_class): Likewise.
13547         * targhooks.c (default_branch_target_register_class): Likewise.
13548         * opt-suggestions.c (test_completion_valid_options): Remove
13549         -fbtr-bb-exclusive from the list of test options.
13550         * bt-load.c: Remove.
13552 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
13554         * match.pd: Add flag_unsafe_math_optimizations check
13555         before deciding on the widest type in a binary math operation.
13557 2019-09-09  Martin Liska  <mliska@suse.cz>
13559         * config/i386/i386.opt: Update comment of removed
13560         options that are preserved only for backward
13561         compatibility.
13563 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
13565         PR target/87853
13566         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13567         instead of __v16qs.
13569         PR target/91704
13570         * config/i386/avxintrin.h (__v32qs): New typedef.
13571         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13572         instead of __v32qi.
13574 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
13576         * doc/invoke.texi (Option Summary): Cover eBPF.
13577         (eBPF Options): New section.
13578         * doc/extend.texi (BPF Built-in Functions): Likewise.
13579         (BPF Kernel Helpers): Likewise.
13581 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
13583         * config.gcc: Support for bpf-*-* targets.
13584         * common/config/bpf/bpf-common.c: New file.
13585         * config/bpf/t-bpf: Likewise.
13586         * config/bpf/predicates.md: Likewise.
13587         * config/bpf/constraints.md: Likewise.
13588         * config/bpf/bpf.opt: Likewise.
13589         * config/bpf/bpf.md: Likewise.
13590         * config/bpf/bpf.h: Likewise.
13591         * config/bpf/bpf.c: Likewise.
13592         * config/bpf/bpf-protos.h: Likewise.
13593         * config/bpf/bpf-opts.h: Likewise.
13594         * config/bpf/bpf-helpers.h: Likewise.
13595         * config/bpf/bpf-helpers.def: Likewise.
13597 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
13599         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13600         indirect_calls.
13602 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
13604         * opt-functions.awk (integer_range_info): Make sure values are in
13605         numeric context before operating with them.
13607 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
13609         * genemit.c (gen_split): Print the filename and line number where the
13610         splitter (or peephole2) was defined, to the dump file.
13612 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
13614         PR tree-optimization/91665
13615         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13616         incompatible with the type of PHI result.
13618 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13620         PR target/91684
13621         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13622         gen_unaligned_storedi for 4-byte aligned addresses.
13624 2019-09-06  Jim Wilson  <jimw@sifive.com>
13626         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13627         change.
13629 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
13631         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13633 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
13635         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13636         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13638 2019-09-06  Uroš Bizjak  <ubizjak@gmail.com>
13640         PR target/91654
13641         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13642         cost of SSE->integer and integer->SSE moves from 2 to 6.
13643         (core_cost): Ditto.
13645 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
13647         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13648         before testing TYPE_TRANSPARENT_AGGR.
13649         * calls.c (initialize_argument_information, load_register_parameters):
13650         Likewise.
13652 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
13654         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13655         high regs.
13656         (cmp_ior): Likewise.
13658 2019-09-06  Martin Liska  <mliska@suse.cz>
13660         * doc/match-and-simplify.texi: Separate tuples with ;.
13662 2019-09-06  Martin Liska  <mliska@suse.cz>
13664         PR c++/91125
13665         * Makefile.in: Remove tlink.o.
13666         * collect2.c (do_link): New function isolated
13667         from do_tlink.
13668         (main): Use.
13669         * collect2.h (do_tlink): Remove declaration of do_tlink.
13670         * doc/extend.texi: Remove documentation of -frepo.
13671         * doc/invoke.texi: Likewise.
13672         * doc/sourcebuild.texi: Remove cleanup-repo-files.
13673         * tlink.c: Remove.
13675 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
13676             Jim Wilson  <jimw@sifive.com>
13678         PR target/91635
13679         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13680         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13681         paradoxical_subreg_p (operands[0]).
13682         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13683         use as intermediate value.
13685 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
13687         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13688         (sync_compare_and_swap<mode>_insn): Likewise.
13690 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13692         PR middle-end/91615
13693         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13694         without movmisalign optab.
13696 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
13698         PR middle-end/91001
13699         PR middle-end/91105
13700         PR middle-end/91106
13701         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13702         types, use type of their first field instead of type of
13703         args[i].tree_value.
13705 2019-09-05  Richard Biener  <rguenther@suse.de>
13707         PR rtl-optimization/91656
13708         * postreload-gcse.c (record_last_mem_set_info): Revert addition
13709         of early out.
13711 2019-09-05  Richard Biener  <rguenther@suse.de>
13713         PR middle-end/90501
13714         * tree-inline.c (declare_return_variable): Mark the return
13715         slot as addressable after building an address of it.
13717 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
13719         * doc/install.texi: Update and clarify requirements to build GNAT.
13721 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
13723         PR middle-end/91577
13724         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13725         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13726         call to be in memory.
13727         (pass_expand::execute): Call discover_nonconstant_array_refs before
13728         setting currently_expanding_to_rtl.
13730 2019-09-04  Caroline Tice  <cmtice@google.com>
13732         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13733         specified together.
13735 2019-09-04  Marek Polacek  <polacek@redhat.com>
13737         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13739 2019-09-04  Uroš Bizjak  <ubizjak@gmail.com>
13741         PR target/32413
13742         * config/i386/i386.c (inline_secondary_memory_needed): Return true
13743         for QI and HImode moves between SSE and general registers.
13745 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13747         PR c/78736
13748         * doc/invoke.texi: Document -Wenum-conversion.
13750 2019-09-04  Richard Biener  <rguenther@suse.de>
13752         PR rtl-optimization/36262
13753         * postreload-gcse.c: Include intl.h and gcse.h.
13754         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13755         to avoid linear list walk.
13756         (record_last_mem_set_info): Gate off if not computing transparentness.
13757         (get_bb_avail_insn): If transparentness isn't computed give up
13758         early.
13759         (gcse_after_reload_main): Skip compute_transp and extended PRE
13760         if gcse_or_cprop_is_too_expensive says so.
13762 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13764         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13765         noinit section.
13766         (msp430_select_section): Handle decls with the "noinit" attribute with
13767         default_elf_select_section.
13768         Handle SECCAT_RODATA_MERGE_* section types with
13769         default_elf_select_section.
13770         Add comments about handling of unsupported section types.
13771         (msp430_section_type_flags): Remove handling of the noinit section.
13773 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13775         * config/msp430/msp430.c (msp430_attr): Remove warnings about
13776         conflicting msp430-specific attributes.
13777         (msp430_section_attr): Likewise.
13778         Add warnings about conflicts with generic "noinit" and "section"
13779         attributes.
13780         Fix grammar in -mlarge error message.
13781         (msp430_data_attr): Rename to msp430_persist_attr.
13782         Add warnings about conflicts with generic "noinit" and "section"
13783         attributes.
13784         Add warning for when variable is not initialized.
13785         Chain conditionals which prevent the attribute being added.
13786         (ATTR_EXCL): New helper.
13787         (attr_reent_exclusions): New exclusion table.
13788         (attr_naked_exclusions): Likewise.
13789         (attr_crit_exclusions): Likewise.
13790         (attr_lower_exclusions): Likewise.
13791         (attr_upper_exclusions): Likewise.
13792         (attr_either_exclusions): Likewise.
13793         (attr_persist_exclusions): Likewise.
13794         (msp430_attribute_table): Update with exclusion rules.
13795         (msp430_output_aligned_decl_common): Don't output common symbol if decl
13796         has a section.
13798 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13800         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13801         (msp430_handle_generic_attribute): New function.
13802         * doc/tm.texi: Regenerate.
13803         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13804         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13805         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13806         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13808 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
13810         PR tree-optimization/91504
13811         * match.pd: Add ((~a & b) ^a) --> (a | b).
13813 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
13815         PR target/91604
13816         * config/i386/i386-expand.c (split_double_mode): If there is more than
13817         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13818         already split matching MEM operand instead of calling adjust_address
13819         again.
13821 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
13823         * config.gcc: Obsolete spu target.  Remove references to spu.
13824         * configure.ac: Remove references to spu.
13825         * configure: Regenerate.
13826         * config/spu/: Remove directory.
13827         * common/config/spu/: Remove directory.
13829         * doc/extend.texi: Remove references to spu.
13830         * doc/invoke.texi: Likewise.
13831         * doc/md.texi: Likewise.
13832         * doc/sourcebuild.texi: Likewise.
13834 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13836         PR middle-end/91603
13837         PR middle-end/91612
13838         PR middle-end/91613
13839         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13840         and SSA_NAME referring to CONSTANT_P correctly.
13842 2019-09-03  Richard Biener  <rguenther@suse.de>
13844         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13845         (vn_nary_op_insert): Likewise.
13846         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13847         (vn_nary_op_lookup): Likewise.
13848         (vn_nary_op_insert): Likewise.
13850 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
13852         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13853         (*op0, 1) instead of XEXP (*op1, 0).
13855 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13857         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13858         (aarch64_fjcvtzs): New define_insn.
13859         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13860         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13861         Add AARCH64_JSCVT.
13862         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13863         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13864         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13865         __ARM_FEATURE_JCVT where appropriate.
13866         * config/aarch64/arm_acle.h (__jcvt): Define.
13868 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13870         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13871         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13872         (aarch64_<frintnzs_op><mode>): New define_insn.
13873         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13874         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13875         __ARM_FEATURE_FRINT when appropriate.
13876         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13877         frint32x, frint64z, frint64x.
13878         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13879         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13880         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13881         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13882         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13883         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13884         * config/aarch64/iterators.md (VSFDF): Define.
13885         (FRINTNZX): Likewise.
13886         (frintnzs_op): Likewise.
13888 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
13890         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13891         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13892         Cortex-A34.
13893         * config/aarch64/aarch64-tune.md: Regenerated.
13894         * doc/invoke.texi: Document the new processors.
13896 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13898         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13899         string.
13900         (ssbs): Likewise.
13901         (sve2): Likewise.
13902         (sve2-sm4): Likewise.
13903         (sveaes): Likewise.
13904         (svesha3): Likewise.
13905         (svebitperm): Likewise.
13907 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
13908             Richard Biener  <rguenther@suse.de>
13910         PR tree-optimization/91597
13911         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13912         BIT_AND_EXPR optimization for pointers, even if both operand
13913         ranges don't include NULL, the result can be NULL.
13915 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13917         PR middle-end/91605
13918         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13919         (non_mem_decl_p): ...this.
13920         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13921         (expand_assignment): Call mem_ref_referes_to_non_mem_p
13922         unconditionally as before.
13924 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
13926         PR target/91323
13927         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13928         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
13929         * tree.def (LTGT_EXPR): Likewise.
13930         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13932 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
13934         PR go/91617
13935         * fold-const.c (range_check_type): For enumeral and boolean
13936         type, pass 1 to type_for_size langhook instead of
13937         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
13938         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13939         (build_range_check): Don't call unsigned_type_for for pointer types.
13940         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13941         range_check_type result.
13943 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
13945         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13946         (replace_ref): Do not replace a chain of only two candidates which are
13947         valid memory references.
13949 2019-09-02  Martin Liska  <mliska@suse.cz>
13951         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13952         Bail out when we'll end up with the same number of clusters as
13953         at the beginning.
13954         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13955         (jump_table_cluster::can_be_handled): Remove the guard
13956         as it's already handled in ::is_enabled.  Allocate output
13957         after early bail out.
13959 2019-09-02  Martin Liska  <mliska@suse.cz>
13961         PR gcov-profile/91601
13962         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13963         (path_contains_zero_or_negative_cycle_arc): ... this and handle
13964         also negative edges.
13965         (circuit): Handle also negative edges as they can happen
13966         in some situations.
13968 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
13970         PR target/91472
13971         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13972         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13973         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13975 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
13977         PR middle-end/91623
13978         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13979         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13980         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13981         zero vector.
13983         PR lto/91572
13984         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13985         GIMPLE_ASM TREE_LIST operands.
13987 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
13989         * doc/generic.texi (Unary and Binary Expressions): Mark up
13990         an instance of TYPE_MIN.
13992 2019-08-31  Stafford Horne  <shorne@gmail.com>
13994         * config/or1k/constraints.md (t): New constraint.
13995         * config/or1k/or1k.h (GOT_REGS): New register class.
13996         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13998 2019-08-30  Jim Wilson  <jimw@sifive.com>
14000         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14001         and -fpic and -mplt then disable -msave-restore and warn.
14003 2019-08-30  Martin Sebor  <msebor@redhat.com>
14005         PR middle-end/91599
14006         * tree-ssa-strlen.c (handle_store): Use a fallback location if
14007         the statement doesn't have one.
14008         * gimple-pretty-print.c (percent_G_format): Same.
14010         PR middle-end/91584
14011         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14012         before using them to validate MEM_REF offset.
14014 2019-08-30  Marek Polacek  <polacek@redhat.com>
14016         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14018 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14020         * config/arm/arm.md (unaligned_loaddi,
14021         unaligned_storedi): New unspec insn patterns.
14022         * config/arm/neon.md (unaligned_storev8qi): Likewise.
14023         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14024         and unaligned_storedi for 4-byte aligned memory.
14025         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14026         4-byte aligned memory.
14028 2019-08-30  Martin Jambor  <mjambor@suse.cz>
14030         tree-optimization/91579
14031         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14032         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14033         appropriate.
14034         (arg_needs_copy_p): Removed.
14035         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14036         arg_needs_copy_p.
14037         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
14039 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
14041         * config/i386/i386-features.c
14042         (general_scalar_chain::compute_convert_gain):
14043         Correct cost for double-word shifts.
14044         (general_scalar_to_vector_candidate_p): Reject count operands
14045         greater or equal to mode bitsize.
14047 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
14049         * config/i386/i386.c (inline_secondary_memory_needed): Return true
14050         for moves between SSE and non-general registers and between
14051         mask and non-general registers.
14052         (ix86_register_move_cost): Remove stalled comment.
14054 2019-08-29  Richard Biener  <rguenther@suse.de>
14056         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14057         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14059 2019-08-29  Richard Biener  <rguenther@suse.de>
14061         PR bootstrap/91580
14062         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14063         Do not emit scalar copies for debug-insns, instead replace
14064         their uses with the reg copy used in the chain or reset them
14065         if there is a reaching definition outside of the chain as well.
14067 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
14069         PR target/91560
14070         * config/i386/i386-expand.c (expand_vec_perm_movs,
14071         expand_vec_perm_blend, expand_vec_perm_vpermil,
14072         expand_vec_perm_pshufb, expand_vec_perm_1,
14073         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14074         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14075         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14076         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14077         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14078         comments - replace ix86_expand_vec_perm_builtin_1 with
14079         ix86_expand_vec_perm_const_1.
14080         (expand_vec_perm2_vperm2f128_vblend): New function.
14081         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
14082         expand_vec_perm2_vperm2f128_vblend as last resort.
14083         (canonicalize_perm): Formatting fix.
14085         PR tree-optimization/91351
14086         * tree-cfg.c (generate_range_test): Use range_check_type instead of
14087         unsigned_type_for.
14088         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14089         range_check_type returns NULL.
14090         * tree-switch-conversion.c (switch_conversion::build_one_array):
14091         Use range_check_type instead of unsigned_type_for, don't perform
14092         linear opt if it returns NULL.
14093         (bit_test_cluster::find_bit_tests): Formatting fix.
14094         (bit_test_cluster::emit): Use range_check_type instead of
14095         unsigned_type_for.
14096         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14097         returns NULL.
14099 2019-08-29  Richard Biener  <rguenther@suse.de>
14101         PR tree-optimization/91568
14102         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14103         (vect_update_max_nunits): Add overload for poly_uint64.
14104         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14105         (vect_build_slp_tree): Record max_nunits into the subtree
14106         and merge it upwards.
14107         (vect_print_slp_tree): Print max_nunits.
14109 2019-08-28  Marek Polacek  <polacek@redhat.com>
14111         Implement P1152R4: Deprecating some uses of volatile.
14112         PR c++/91361
14113         * doc/invoke.texi: Document -Wvolatile.
14115 2019-08-28  Marek Polacek  <polacek@redhat.com>
14117         PR c++/91360 - Implement C++20 P1143R2: constinit.
14118         * doc/invoke.texi: Document -Wc++20-compat.
14120 2019-08-28  Martin Sebor  <msebor@redhat.com>
14122         PR tree-optimization/91457
14123         * builtins.c (component_size): New function.
14124         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14125         * builtins.h (compute_objsize): Add argument.
14126         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14127         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14128         (vrp_prop::check_mem_ref): Same.
14129         (vrp_prop::search_for_addr_array): Set no-warning bit.
14130         (check_array_bounds): Same.
14132 2019-08-28  Martin Sebor  <msebor@redhat.com>
14134         PR driver/80545
14135         * opts-common.c (option_enabled): Correct checking for language
14136         options.
14138 2019-08-28  Uroš Bizjak  <ubizjak@gmail.com>
14140         * config/i386/i386.c (ix86_register_move_cost): Do not
14141         limit the cost of moves to/from XMM register to minimum 8.
14143 2019-08-28  Martin Jambor  <mjambor@suse.cz>
14145         PR ipa/91468
14146         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14147         checking assert a normal assert to test it really is redundant.
14148         * ipa-prop.c (compute_complex_assign_jump_func): Removed
14149         redundant test.
14150         (update_jump_functions_after_inlining): Removed combining unary
14151         arithmetic operations with an ancestor jump function.
14152         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14153         instead of t.
14155 2019-08-28  Richard Biener  <rguenther@suse.de>
14157         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14158         add the MD problem.
14160 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14161             Richard Biener  <rguenther@suse.de>
14163         * expr.c (expand_assignment): Handle misaligned DECLs.
14164         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14165         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14166         too.
14167         (assign_parm_setup_stack): Allocate properly aligned stack slots.
14168         * varasm.c (build_constant_desc): Align constants of misaligned types.
14169         * config/arm/predicates.md (aligned_operand): New predicate.
14170         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14171         aligned_operand to check restrictions on memory addresses.
14172         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14173         * config/arm/vec-common.md (mov<VALL>): Likewise.
14175 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
14177         PR libgomp/91530
14178         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14179         V_128 iterator instead of VI_128.
14181 2019-08-28  Martin Liska  <mliska@suse.cz>
14183         PR tree-optimization/90970
14184         * builtins.c (check_access): Remove assignment to maxread
14185         as it hasn't been used since when it was introduced in r255755.
14187 2019-08-27  Martin Sebor  <msebor@redhat.com>
14189         PR tree-optimization/91567
14190         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14191         of unknown strings.
14192         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14193         to PTRDIFF_MAX - 2.
14195 2019-08-27  Jeff Law  <law@redhat.com>
14197         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14198         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14200 2019-08-27  Uroš Bizjak  <ubizjak@gmail.com>
14202         PR target/91528
14203         * config/i386/i386-features.c (convert_scalars_to_vector):
14204         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14205         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
14206         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
14207         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14209 2019-08-27  Richard Biener  <rguenther@suse.de>
14211         * config/i386/i386-features.h
14212         (general_scalar_chain::~general_scalar_chain): Add.
14213         (general_scalar_chain::insns_conv): New bitmap.
14214         (general_scalar_chain::n_sse_to_integer): New.
14215         (general_scalar_chain::n_integer_to_sse): Likewise.
14216         (general_scalar_chain::make_vector_copies): Adjust signature.
14217         * config/i386/i386-features.c
14218         (general_scalar_chain::general_scalar_chain): Outline,
14219         initialize new members.
14220         (general_scalar_chain::~general_scalar_chain): New.
14221         (general_scalar_chain::mark_dual_mode_def): Record insns
14222         we need to insert conversions at and count them.
14223         (general_scalar_chain::compute_convert_gain): Account
14224         for conversion instructions at chain boundary.
14225         (general_scalar_chain::make_vector_copies): Generate a single
14226         copy for a def by a specific insn.
14227         (general_scalar_chain::convert_registers): First populate
14228         defs_map, then make copies at out-of chain insns.
14230 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
14232         * config/arm/arm.md (stack_protect_set_insn): Add security-related
14233         comment.
14234         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14236 2019-08-27  Martin Liska  <mliska@suse.cz>
14238         * cgraph.c (cgraph_node::remove): Remove dead assignment before
14239         loop.
14240         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14241         Enclose in anonymous namespace.
14242         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14243         hard_register initialization in braces.
14244         * tree-vrp.h (value_range_base::supports_type_p): Return false
14245         for function with boolean return type.
14247 2019-08-26  Uroš Bizjak  <ubizjak@gmail.com>
14249         * config/i386/i386.c (emit_i387_cw_initialization)
14250         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14252 2019-08-26  Martin Sebor  <msebor@redhat.com>
14254         PR c++/83431
14255         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14256         (sprintf_dom_walker): Remove class.
14257         (get_int_range): Make argument const.
14258         (directive::fmtfunc, directive::set_precision): Same.
14259         (format_none): Same.
14260         (build_intmax_type_nodes): Same.
14261         (adjust_range_for_overflow): Same.
14262         (format_floating): Same.
14263         (format_character): Same.
14264         (format_string): Same.
14265         (format_plain): Same.
14266         (get_int_range): Cast away constness.
14267         (format_integer): Same.
14268         (get_string_length): Call get_range_strlen_dynamic.  Handle
14269         null lendata.maxbound.
14270         (should_warn_p): Adjust argument scope qualifier.
14271         (maybe_warn): Same.
14272         (format_directive): Same.
14273         (parse_directive): Same.
14274         (is_call_safe): Same.
14275         (try_substitute_return_value): Same.
14276         (sprintf_dom_walker::handle_printf_call): Rename...
14277         (handle_printf_call): ...to this.  Initialize target to host charmap
14278         here instead of in pass_sprintf_length::execute.
14279         (struct call_info): Make global.
14280         (sprintf_dom_walker::compute_format_length): Make global.
14281         (sprintf_dom_walker::handle_gimple_call): Same.
14282         * passes.def (pass_sprintf_length): Replace with pass_strlen.
14283         * print-rtl.c (print_pattern): Reduce the number of spaces to
14284         avoid -Wformat-truncation.
14285         * tree-pass.h (make_pass_warn_printf): New function.
14286         * tree-ssa-strlen.c (strlen_optimize): New variable.
14287         (get_string_length): Add comments.
14288         (get_range_strlen_dynamic): New function.
14289         (check_and_optimize_call): New function.
14290         (handle_integral_assign): New function.
14291         (strlen_check_and_optimize_stmt): Factor code out into
14292         strlen_check_and_optimize_call and handle_integral_assign.
14293         (strlen_dom_walker::evrp): New member.
14294         (strlen_dom_walker::before_dom_children): Use evrp member.
14295         (strlen_dom_walker::after_dom_children): Use evrp member.
14296         (printf_strlen_execute): New function.
14297         (pass_strlen::gate): Update to handle printf calls.
14298         (dump_strlen_info): New function.
14299         (pass_data_warn_printf): New variable.
14300         (pass_warn_printf): New class.
14301         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14302         (handle_printf_call): Same.
14303         * tree-vrp.c (value_range_base::type): Adjust assertion.
14304         * vr-values.c (vr_values::update_value_range): Use type of the first
14305         argument rather than the second.
14307 2019-08-26  Richard Biener  <rguenther@suse.de>
14309         * config/i386/i386-features.c (general_remove_non_convertible_regs):
14310         Remove.
14311         (convert_scalars_to_vector): Do not call it.
14313 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
14314             Uros Bizjak  <ubizjak@gmail.com>
14316         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14317         CASE_MATHFN_FLOATN for roundeven.
14318         * config/i386/i386.c (ix86_i387_mode_needed): Add case
14319         I387_ROUNDEVEN.
14320         (ix86_mode_needed): Likewise.
14321         (ix86_mode_after): Likewise.
14322         (ix86_mode_entry): Likewise.
14323         (ix86_mode_exit): Likewise.
14324         (ix86_emit_mode_set): Likewise.
14325         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14326         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14327         (ix86_entity): Add I387_ROUNDEVEN.
14328         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14329         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14330         (define_int_iterator): Likewise.
14331         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14332         (define_constant): Define ROUND_ROUNDEVEN mode.
14333         (define_attr): Add roundeven mode for i387_cw.
14334         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14335         * internal-fn.def (ROUNDEVEN): New builtin function.
14336         * optabs.def (roundeven_optab): New optab.
14338 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
14340         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14341         for ROUNDEVEN.
14342         * builtins.def: Added function definitions for roundeven function
14343         variants.
14344         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14345         function call.  Adjust condition for floor, ceil, trunc and round.
14346         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14347         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14348         (integer_valued_real_call_p): Added case for roundeven function.
14349         * real.c (is_even): New function. Returns true if real number is even,
14350         otherwise returns false.
14351         (is_halfway_below): New function. Returns true if real number is
14352         halfway between two integers, else return false.
14353         (real_roundeven): New function. Round real number to nearest integer,
14354         rounding halfway cases towards even.
14355         * real.h (real_value): Added descriptive comments.  Added function
14356         declaration for roundeven function.
14357         * doc/extend.texi (Other Builtins): List roundeven variants among
14358         functions which can be handled as builtins.
14360 2019-08-26  Richard Biener  <rguenther@suse.de>
14362         PR target/91522
14363         PR target/91527
14364         * config/i386/i386-features.h (general_scalar_chain::defs_map):
14365         New member.
14366         (general_scalar_chain::replace_with_subreg): Remove.
14367         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14368         (general_scalar_chain::convert_reg): Adjust signature.
14369         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14370         iterate over all defs of a reg.
14371         (general_scalar_chain::replace_with_subreg): Remove.
14372         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14373         (general_scalar_chain::make_vector_copies): Populate defs_map,
14374         place copy only after defs that are used as vectors in the chain.
14375         (general_scalar_chain::convert_reg): Emit a copy for a specific
14376         def in a specific instruction.
14377         (general_scalar_chain::convert_op): All reg uses are converted here.
14378         (general_scalar_chain::convert_insn): Emit copies for scalar
14379         uses of defs here.  Replace uses with the copies we created.
14380         Replace and convert the def.  Adjust REG_DEAD notes, remove
14381         REG_EQUIV/EQUAL notes.
14382         (general_scalar_chain::convert_registers): Only handle copies
14383         into the chain here.
14385 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
14387         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14389 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
14391         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14392         Add nop_convert case.
14393         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14394         Fold all statements if requested.
14395         * tree-ssa-propagate.h (class substitute_and_fold_engine):
14396         Allow to fold all statements.
14397         * tree-vrp.c (class vrp_folder):
14398         Let substitute_and_fold_engine fold all statements.
14400 2019-08-26  Richard Biener  <rguenther@suse.de>
14402         PR tree-optimization/91526
14403         * passes.def: Note that after late FRE we do TODO_update_address_taken.
14404         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14405         TODO_update_address_taken.
14407 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
14409         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14410         __STDC_HOSTED__.
14412 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
14414         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14415         machine mode for unspec_volatile operand.
14417 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
14419         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14420         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14421         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14422         (prefer_neon_for_64bits): Remove.
14423         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14424         (tune_params): Remove PREF_NEON_64_FALSE uses.
14425         (arm_option_override): Remove prefer_neon selection code.
14426         (arm_print_tune_info): Remove prefer_neon_for_64bits.
14427         * config/arm/arm-protos.h (tune_params): Remove
14428         prefer_neon_for_64bits.
14429         (prefer_neon_for_64bits): Remove.
14431 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
14433         PR pch/61250
14434         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14435         and issue any diagnostics needed before collecting the pre-PCH
14436         state.
14438 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
14440         PR middle-end/91283
14441         * common.opt (fexcess-precision=): Add Optimization flag.  Use
14442         flag_excess_precision variable instead of
14443         flag_excess_precision_cmdline.
14444         * flags.h (class target_flag_state): Remove x_flag_excess_precision
14445         member.
14446         (flag_excess_precision): Don't define.
14447         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14448         flag_excess_precision_cmdline.  Remove comment.
14449         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14450         and x_flag_excess_precision instead of
14451         frontend_set_flag_excess_precision_cmdline and
14452         x_flag_excess_precision_cmdline.
14453         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14454         x_flag_excess_precision_cmdline.
14455         * toplev.c (init_excess_precision): Remove.
14456         (lang_dependent_init_target): Don't call it.
14458 2019-08-23  Martin Liska  <mliska@suse.cz>
14460         * lto-wrapper.c (run_gcc): When setting jobserver
14461         set also parallel to 1.  This was done so before r273908.
14463 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
14465         * config/arm/arm-cpus.in (cortex-m35p): New entry.
14466         (cortex-a76ae): Likewise.
14467         (cortex-a77): Likewise
14468         * config/arm/arm-tables.opt: Regenerate.
14469         * config/arm/arm-tune.md: Likewise.
14470         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14471         cortex-a77 CPU options.
14473 2019-08-23  Martin Liska  <mliska@suse.cz>
14475         * profile.c (instrument_values): Do not set
14476         0 as last argument.
14477         * tree-profile.c (gimple_gen_interval_profiler): Remove
14478         last argument.
14479         (gimple_gen_pow2_profiler): Likewise.
14480         (gimple_gen_topn_values_profiler): Likewise.
14481         (gimple_gen_ic_profiler): Likewise.
14482         (gimple_gen_time_profiler): Likewise.
14483         (gimple_gen_average_profiler): Likewise.
14484         (gimple_gen_ior_profiler): Likewise.
14485         * value-prof.c (dump_histogram_value): Use default
14486         in switch statement instead of HIST_TYPE_MAX.
14487         (stream_in_histogram_value): Likewise.
14488         (gimple_duplicate_stmt_histograms): Do not
14489         use NULL for implicitly set arguments.
14490         (gimple_divmod_values_to_profile): Do not use
14491         reserve+quick_push.
14492         (gimple_indirect_call_to_profile): Likewise.
14493         (gimple_find_values_to_profile): Use implicit
14494         function call arguments.
14495         * value-prof.h (gimple_alloc_histogram_value):
14496         Set default values.
14497         (gimple_gen_interval_profiler): Remove last argument.
14498         (gimple_gen_pow2_profiler): Likewise.
14499         (gimple_gen_topn_values_profiler): Likewise.
14500         (gimple_gen_ic_profiler): Likewise.
14501         (gimple_gen_time_profiler): Likewise.
14502         (gimple_gen_average_profiler): Likewise.
14503         (gimple_gen_ior_profiler): Likewise.
14505 2019-08-22  Martin Sebor  <msebor@redhat.com>
14507         PR middle-end/91490
14508         * builtins.c (c_strlen): Rename argument and introduce new local.
14509         Set no-warning bit on original argument.
14510         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14511         Fold empty and zero constructors into empty strings.
14512         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14513         for missing initializers.
14514         * tree.c (build_string_literal): Handle optional argument.
14515         * tree.h (build_string_literal): Add defaulted argument.
14516         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14517         no-warning bit on original expression.
14519 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
14521         PR target/91481
14522         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14523         and UNSPEC_DARN_RAW.
14524         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14525         UNSPECV_DARN_RAW.
14526         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14527         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14528         (darn): Use an unspec_volatile, and UNSPECV_DARN.
14530 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
14532         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14533         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14534         * config/rs6000/rs6000.md (unspec): ... here.
14535         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14536         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14537         cmpeqb, *cmpeqb_internal): Delete, move to...
14538         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14539         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14540         cmpeqb, *cmpeqb_internal): ... here.
14542 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14544         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14545         intrinsics if __ARM_FP.
14546         Use __ARM_FEATURE_CRC32 ifdef guard.
14548 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
14550         * config/arm/arm.md (neon_for_64bits): Remove.
14551         (avoid_neon_for_64bits): Remove.
14552         (arm_adddi3): Always split early.
14553         (arm_subdi3): Always split early.
14554         (negdi2): Remove Neon expansion.
14555         (split zero_extend): Split before reload.
14556         (split sign_extend): Split before reload.
14558 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
14560         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14561         (qhs_extenddi_cstr): Likewise.
14562         * config/arm/arm.md (ashldi3): Always expand early.
14563         (ashlsi3): Likewise.
14564         (ashrsi3): Likewise.
14565         (zero_extend<mode>di2): Remove Neon variants.
14566         (extend<mode>di2): Likewise.
14567         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14568         (signed_shift_di3_neon): Likewise.
14569         (unsigned_shift_di3_neon): Likewise.
14570         (ashrdi3_neon_imm_noclobber): Likewise.
14571         (lshrdi3_neon_imm_noclobber): Likewise.
14572         (<shift>di3_neon): Likewise.
14573         (split extend): Remove DI extend split patterns.
14575 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
14577         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14578         (split not): Add DImode not splitter.
14579         (anddi3): Remove pattern.
14580         (anddi3_insn): Likewise.
14581         (anddi_zesidi_di): Likewise.
14582         (anddi_sesdi_di): Likewise.
14583         (anddi_notdi_di): Likewise.
14584         (anddi_notzesidi_di): Likewise.
14585         (anddi_notsesidi_di): Likewise.
14586         (iordi3): Likewise.
14587         (iordi3_insn): Likewise.
14588         (iordi_zesidi_di): Likewise.
14589         (iordi_sesidi_di): Likewise.
14590         (xordi3): Likewise.
14591         (xordi3_insn): Likewise.
14592         (xordi_sesidi_di): Likewise.
14593         (xordi_zesidi_di): Likewise.
14594         (one_cmpldi2): Likewise.
14595         (one_cmpldi2_insn): Likewise.
14596         * config/arm/constraints.md: Remove De, Df, Dg constraints.
14597         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14598         alternative.
14599         (iwmmxt_xordi3): Likewise.
14600         (iwmmxt_anddi3): Likewise.
14601         * config/arm/neon.md (orndi3_neon): Remove pattern.
14602         (anddi_notdi_di): Likewise.
14603         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14604         (arm_iordi_operand_neon): Likewise.
14605         (arm_xordi_operand_neon): Likewise.
14606         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14607         (iordi_notzesidi_di): Likewise.
14608         (iordi_notdi_zesidi): Likewise.
14609         (iordi_notsesidi_di): Likewise.
14611 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
14613         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14614         insn.
14615         (iorsi3_compare0_scratch): Likewise.
14617 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
14619         * config/aarch64/aarch64-simd-builtins.def:
14620         (ld1x4): New.
14621         (st1x4): Likewise.
14622         * config/aarch64/aarch64-simd.md:
14623         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14624         (aarch64_st1x4<VALLDIF:mode>): Likewise.
14625         (aarch64_ld1_x4_<mode>): Likewise.
14626         (aarch64_st1_x4_<mode>): Likewise.
14627         * config/aarch64/arm_neon.h:
14628         (vld1_s8_x4): New function.
14629         (vld1q_s8_x4): Likewise.
14630         (vld1_s16_x4): Likewise.
14631         (vld1q_s16_x4): Likewise.
14632         (vld1_s32_x4): Likewise.
14633         (vld1q_s32_x4): Likewise.
14634         (vld1_u8_x4): Likewise.
14635         (vld1q_u8_x4): Likewise.
14636         (vld1_u16_x4): Likewise.
14637         (vld1q_u16_x4): Likewise.
14638         (vld1_u32_x4): Likewise.
14639         (vld1q_u32_x4): Likewise.
14640         (vld1_f16_x4): Likewise.
14641         (vld1q_f16_x4): Likewise.
14642         (vld1_f32_x4): Likewise.
14643         (vld1q_f32_x4): Likewise.
14644         (vld1_p8_x4): Likewise.
14645         (vld1q_p8_x4): Likewise.
14646         (vld1_p16_x4): Likewise.
14647         (vld1q_p16_x4): Likewise.
14648         (vld1_s64_x4): Likewise.
14649         (vld1_u64_x4): Likewise.
14650         (vld1_p64_x4): Likewise.
14651         (vld1q_s64_x4): Likewise.
14652         (vld1q_u64_x4): Likewise.
14653         (vld1q_p64_x4): Likewise.
14654         (vld1_f64_x4): Likewise.
14655         (vld1q_f64_x4): Likewise.
14656         (vst1_s8_x4): Likewise.
14657         (vst1q_s8_x4): Likewise.
14658         (vst1_s16_x4): Likewise.
14659         (vst1q_s16_x4): Likewise.
14660         (vst1_s32_x4): Likewise.
14661         (vst1q_s32_x4): Likewise.
14662         (vst1_u8_x4): Likewise.
14663         (vst1q_u8_x4): Likewise.
14664         (vst1_u16_x4): Likewise.
14665         (vst1q_u16_x4): Likewise.
14666         (vst1_u32_x4): Likewise.
14667         (vst1q_u32_x4): Likewise.
14668         (vst1_f16_x4): Likewise.
14669         (vst1q_f16_x4): Likewise.
14670         (vst1_f32_x4): Likewise.
14671         (vst1q_f32_x4): Likewise.
14672         (vst1_p8_x4): Likewise.
14673         (vst1q_p8_x4): Likewise.
14674         (vst1_p16_x4): Likewise.
14675         (vst1q_p16_x4): Likewise.
14676         (vst1_s64_x4): Likewise.
14677         (vst1_u64_x4): Likewise.
14678         (vst1_p64_x4): Likewise.
14679         (vst1q_s64_x4): Likewise.
14680         (vst1q_u64_x4): Likewise.
14681         (vst1q_p64_x4): Likewise.
14682         (vst1_f64_x4): Likewise.
14683         (vst1q_f64_x4): Likewise.
14685 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14687         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14689 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14690             Richard Sandiford  <richard.sandiford@arm.com>
14692         PR target/88839
14693         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14694         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14696 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14698         PR target/90724
14699         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14700         in reg if it fails aarch64_plus_operand predicate.
14702 2019-08-21  Richard Biener  <rguenther@suse.de>
14704         PR tree-optimization/91482
14705         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14706         BUILT_IN_ASSUME_ALIGNED calls.
14708 2019-08-21  Richard Biener  <rguenther@suse.de>
14710         PR target/91498
14711         PR target/91503
14712         * config/i386/i386-features.c
14713         (general_scalar_chain::make_vector_copies): Copy stack temporary
14714         rtx when using it multiple times.
14715         (general_scalar_chain::convert_reg): Likewise.
14717 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14719         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14721 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
14723         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14724         catch more redundant zero initialization cases.
14725         (dse_dom_walker::dse_optimize_stmt): Likewise.
14727 2019-08-20  Richard Biener  <rguenther@suse.de>
14729         PR lto/91307
14730         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14731         by collect2 when targetm.have_ctors_dtors which avoids dragging
14732         in temporary filenames from LTO input objects.
14734 2019-08-20  Richard Biener  <rguenther@suse.de>
14736         PR tree-optimization/37242
14737         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14738         to (T)a + (T)b if we know that a + b does not overflow.
14740 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
14742         PR rtl-optimization/91347
14743         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14744         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14746 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14748         * calls.h (function_arg_info): Add a pass_by_reference field,
14749         defaulting to false.
14750         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14751         when applying pass-by-reference semantics.
14752         (initialize_argument_information): Likewise.
14753         (emit_library_call_value_1): Likewise.
14754         * function.c (assign_parm_data_one): Remove passed_pointer field.
14755         (assign_parm_find_data_types): Don't set it.
14756         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14757         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14758         arg.pass_by_reference instead of passed_pointer.
14760 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14762         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14763         into a single function_arg_info, updating its fields when we
14764         apply pass-by-reference and promotion semantics.  Use the
14765         function_arg_info to track the mode rather than keeping it in
14766         a separate local variable.
14767         (initialize_argument_information): Likewise.  Base the final
14768         arg_to_skip on this new function_arg_info rather than creating
14769         a new one from scratch.
14771 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14773         * function.c (assign_parm_data_one): Replace passed_type,
14774         promoted_mode and named_arg with a function_arg_info field.
14775         (assign_parm_find_data_types): Remove local variables and
14776         assign directly to "data".  Make data->passed_mode shadow
14777         data->arg.mode until promotion, then assign the promoted
14778         mode to data->arg.mode.
14779         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14780         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14781         (assign_parm_remove_parallels, assign_parm_setup_block_p)
14782         (assign_parm_setup_block, assign_parm_setup_reg)
14783         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14784         arg.mode instead of promoted_mode, arg.type instead of passed_type
14785         and arg.named instead of named_arg.  Use data->arg for
14786         function_arg_info structures that had the field values passed_type,
14787         promoted_mode and named_arg.  Base other function_arg_infos on
14788         data->arg, changing the necessary properties.
14790 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14792         * calls.h (apply_pass_by_reference_rules): Declare.
14793         * calls.c (apply_pass_by_reference_rules): New function.
14794         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14795         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14796         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14797         * function.c (assign_parm_find_data_types): Likewise.
14798         * var-tracking.c (prepare_call_arguments): Likewise.
14800 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14802         * target.def (must_pass_in_stack): Take a function_arg_info instead
14803         of a mode and a type.
14804         * doc/tm.texi: Regenerate.
14805         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14806         instead of a mode and a type.
14807         (must_pass_in_stack_var_size_or_pad): Likewise.
14808         * calls.c (must_pass_in_stack_var_size): Likewise.
14809         (must_pass_in_stack_var_size_or_pad): Likewise.
14810         (initialize_argument_information): Update call to
14811         targetm.calls.must_pass_in_stack.
14812         (must_pass_va_arg_on_stack): Likewise.
14813         * function.c (assign_parm_find_entry_rtl): Likewise.
14814         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14815         * config/alpha/alpha.c (alpha_function_arg): Likewise.
14816         (alpha_function_arg_advance): Likewise.
14817         * config/cr16/cr16.c (cr16_function_arg): Likewise.
14818         (cr16_function_arg_advance): Likewise.
14819         * config/cris/cris.c (cris_pass_by_reference): Likewise.
14820         (cris_arg_partial_bytes): Likewise.
14821         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14822         * config/lm32/lm32.c (lm32_function_arg): Likewise.
14823         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14824         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14825         * config/mips/mips.c (mips_pass_by_reference): Likewise.
14826         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14827         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14828         * config/sh/sh.c (sh_pass_by_reference): Likewise.
14829         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14830         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14831         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14832         instead of a mode and a type.
14833         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14834         (fr30_num_arg_regs): Likewise.
14835         (fr30_setup_incoming_varargs): Update calls accordingly.
14836         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14837         (fr30_function_arg_advance): Likewise.
14838         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14839         instead of a mode and a type.
14840         * config/gcn/gcn.c (num_arg_regs): Likewise.
14841         (gcn_function_arg, gcn_function_arg_advance): Update calls to
14842         num_arg_regs and targetm.calls.must_pass_in_stack.
14843         (gcn_arg_partial_bytes): Likewise.
14844         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14845         function_arg_info instead of a mode and a type.
14846         (classify_argument): Update call accordingly.
14847         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14848         function_arg_info instead of a mode and a type.
14849         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14850         Likewise.
14851         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14852         (rs6000_parm_needs_stack): Update call accordingly.
14853         (setup_incoming_varargs): Likewise.
14855 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14857         * target.def (callee_copies): Take a function_arg_info instead
14858         of a mode, type and named flag.
14859         * doc/tm.texi: Regenerate.
14860         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14861         instead of a mode, type and named flag.
14862         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14863         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14864         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14865         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14866         instead of a mode, type and named flag.
14867         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14868         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14869         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14870         * calls.h (reference_callee_copied): Take a function_arg_info
14871         instead of a mode, type and named flag.
14872         * calls.c (reference_callee_copied): Likewise.
14873         (initialize_argument_information): Update call accordingly.
14874         (emit_library_call_value_1): Likewise.
14875         * function.c (gimplify_parameters): Likewise.
14876         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14877         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14878         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14879         * config/c6x/c6x.c (c6x_callee_copies): Delete.
14880         (TARGET_CALLEE_COPIES): Define to
14881         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14882         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14883         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14884         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14885         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14886         instead of a mode, type and named flag.
14887         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14888         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14889         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14890         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14891         * config/msp430/msp430.c (msp430_callee_copies): Delete.
14892         (TARGET_CALLEE_COPIES): Define to
14893         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14894         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14895         instead of a mode, type and named flag.
14896         * config/sh/sh.c (sh_callee_copies): Likewise.
14897         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14898         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14899         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14901 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14903         * target.def (function_arg_advance): Take a function_arg_info instead
14904         of a mode, type and named flag.
14905         * doc/tm.texi: Regenerate.
14906         * targhooks.h (default_function_arg_advance): Take a function_arg_info
14907         instead of a mode, type and named flag.
14908         * targhooks.c (default_function_arg_advance): Likewise.
14909         * calls.c (initialize_argument_information): Update call to
14910         targetm.calls.function_arg_advance.
14911         (emit_library_call_value_1): Likewise.
14912         * dse.c (get_call_args): Likewise.
14913         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14914         * function.c (assign_parms, gimplify_parameters): Likewise.
14915         * var-tracking.c (prepare_call_arguments): Likewise.
14916         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14917         function_arg_info instead of a mode, type and named flag.
14918         (aarch64_setup_incoming_varargs): Update call accordingly.
14919         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14920         function_arg_info instead of a mode, type and named flag.
14921         (alpha_setup_incoming_varargs): Update call accordingly.
14922         * config/arc/arc.c (arc_function_arg_advance): Take a
14923         function_arg_info instead of a mode, type and named flag.
14924         (arc_setup_incoming_varargs): Update call accordingly.
14925         * config/arm/arm.c (arm_function_arg_advance): Take a
14926         function_arg_info instead of a mode, type and named flag.
14927         (cmse_func_args_or_return_in_stack): Update call accordingly.
14928         (arm_function_ok_for_sibcall): Likewise.
14929         (cmse_nonsecure_call_clear_caller_saved): Likewise.
14930         * config/avr/avr.c (avr_function_arg_advance): Take a
14931         function_arg_info instead of a mode, type and named flag.
14932         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14933         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14934         (c6x_call_saved_register_used): Update call accordingly.
14935         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14936         function_arg_info instead of a mode, type and named flag.
14937         * config/cris/cris.c (cris_function_arg_advance): Likewise.
14938         * config/csky/csky.c (csky_function_arg_advance): Likewise.
14939         (csky_setup_incoming_varargs): Update call accordingly.
14940         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14941         function_arg_info instead of a mode, type and named flag.
14942         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14943         * config/frv/frv.c (frv_function_arg_advance): Likewise.
14944         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14945         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14946         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14947         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14948         (ix86_setup_incoming_varargs): Update call accordingly.
14949         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14950         function_arg_info instead of a mode, type and named flag.
14951         (ia64_setup_incoming_varargs): Update call accordingly.
14952         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14953         function_arg_info instead of a mode, type and named flag.
14954         (iq2000_expand_prologue): Update call accordingly.
14955         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14956         function_arg_info instead of a mode, type and named flag.
14957         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14958         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14959         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14960         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14961         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14962         Likewise.
14963         (microblaze_expand_prologue): Update call accordingly.
14964         * config/mips/mips.c (mips_function_arg_advance): Take a
14965         function_arg_info instead of a mode, type and named flag.
14966         (mips_setup_incoming_varargs): Update call accordingly.
14967         (mips_output_args_xfer): Likewise.
14968         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14969         function_arg_info instead of a mode, type and named flag.
14970         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14971         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14972         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14973         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14974         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14975         (nios2_setup_incoming_varargs): Update call accordingly.
14976         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14977         function_arg_info instead of a mode, type and named flag.
14978         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14979         * config/pa/pa.c (pa_function_arg_advance): Likewise.
14980         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14981         * config/pru/pru.c (pru_function_arg_advance): Likewise.
14982         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14983         (riscv_setup_incoming_varargs): Update call accordingly.
14984         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14985         function_arg_info instead of a mode, type and named flag.
14986         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14987         Likewise.
14988         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14989         (rs6000_parm_needs_stack): Update call accordingly.
14990         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14991         instead of a mode, type and named flag.
14992         * config/s390/s390.c (s390_function_arg_advance): Likewise.
14993         (s390_call_saved_register_used): Update call accordingly.
14994         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14995         instead of a mode, type and named flag.
14996         (sh_output_mi_thunk): Update call accordingly.
14997         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14998         function_arg_info instead of a mode, type and named flag.
14999         * config/spu/spu.c (spu_function_arg_advance): Likewise.
15000         (spu_setup_incoming_varargs): Update call accordingly.
15001         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15002         function_arg_info instead of a mode, type and named flag.
15003         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15004         (tilegx_setup_incoming_varargs): Update call accordingly.
15005         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15006         function_arg_info instead of a mode, type and named flag.
15007         (tilegx_setup_incoming_varargs): Update call accordingly.
15008         * config/v850/v850.c (v850_function_arg_advance): Take a
15009         function_arg_info instead of a mode, type and named flag.
15010         * config/vax/vax.c (vax_function_arg_advance): Likewise.
15011         * config/visium/visium.c (visium_function_arg_advance): Likewise.
15012         (visium_setup_incoming_varargs): Update call accordingly.
15013         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15014         function_arg_info instead of a mode, type and named flag.
15016 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15018         * target.def (function_arg, function_incoming_arg): Take a
15019         function_arg_info instead of a mode, tree and named flag.
15020         * doc/tm.texi: Regenerate.
15021         * targhooks.h (default_function_arg): Take a function_arg_info
15022         instead of a mode, tree and named flag.
15023         (default_function_incoming_arg): Likewise.
15024         * targhooks.c (default_function_arg): Likewise.
15025         (default_function_incoming_arg): Likewise.
15026         * calls.h (function_arg_info::end_marker_p): New function.
15027         (function_arg_info::end_marker): Likewise.
15028         * calls.c (prepare_call_address, initialize_argument_information)
15029         (expand_call, emit_library_call_value_1): Update calls to
15030         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15031         * dse.c: Include calls.h.
15032         (get_call_args): Update call to targetm.calls.function_arg.
15033         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15034         * var-tracking.c (prepare_call_arguments): Likewise.
15035         * function.c (assign_parm_find_entry_rtl): Update call to
15036         targetm.calls.function_incoming_arg.
15037         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15038         function_arg_info instead of a mode, tree and named flag.
15039         * config/alpha/alpha.c (alpha_function_arg): Likewise.
15040         * config/arc/arc.c (arc_function_arg): Likewise.
15041         * config/arm/arm.c (arm_function_arg): Likewise.
15042         (cmse_func_args_or_return_in_stack): Update call accordingly.
15043         (arm_function_ok_for_sibcall): Likewise.
15044         (cmse_nonsecure_call_clear_caller_saved): Likewise.
15045         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15046         instead of a mode, tree and named flag.
15047         * config/bfin/bfin.c (bfin_function_arg): Likewise.
15048         * config/c6x/c6x.c (c6x_function_arg): Likewise.
15049         (c6x_call_saved_register_used): Update call accordingly.
15050         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15051         instead of a mode, tree and named flag.
15052         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15053         (cris_function_arg_1): Likewise.
15054         * config/csky/csky.c (csky_function_arg): Likewise.
15055         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15056         * config/fr30/fr30.c (fr30_function_arg): Likewise.
15057         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15058         (frv_function_arg_1): Likewise.
15059         * config/ft32/ft32.c (ft32_function_arg): Likewise.
15060         * config/gcn/gcn.c (gcn_function_arg): Likewise.
15061         * config/h8300/h8300.c (h8300_function_arg): Likewise.
15062         * config/i386/i386.c (ix86_function_arg): Likewise.
15063         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15064         (ia64_function_arg_1): Likewise.
15065         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15066         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15067         accordingly.
15068         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15069         instead of a mode, tree and named flag.
15070         * config/m32c/m32c.c (m32c_function_arg): Likewise.
15071         * config/m32r/m32r.c (m32r_function_arg): Likewise.
15072         * config/m68k/m68k.c (m68k_function_arg): Likewise.
15073         * config/mcore/mcore.c (mcore_function_arg): Likewise.
15074         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15075         (microblaze_expand_prologue): Update call accordingly.
15076         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15077         instead of a mode, tree and named flag.
15078         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15079         (mmix_function_arg_1): Likewise.
15080         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15081         * config/moxie/moxie.c (moxie_function_arg): Likewise.
15082         * config/msp430/msp430.c (msp430_function_arg): Likewise.
15083         * config/nds32/nds32.c (nds32_function_arg): Likewise.
15084         * config/nios2/nios2.c (nios2_function_arg): Likewise.
15085         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15086         (nvptx_function_incoming_arg): Likewise.
15087         * config/or1k/or1k.c (or1k_function_arg): Likewise.
15088         * config/pa/pa.c (pa_function_arg): Likewise.
15089         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15090         * config/pru/pru.c (pru_function_arg): Likewise.
15091         * config/riscv/riscv.c (riscv_function_arg): Likewise.
15092         * config/rl78/rl78.c (rl78_function_arg): Likewise.
15093         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15094         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15095         (rs6000_parm_needs_stack): Update call accordingly.
15096         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15097         instead of a mode, tree and named flag.
15098         * config/s390/s390.c (s390_function_arg): Likewise.
15099         (s390_call_saved_register_used): Update call accordingly.
15100         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15101         instead of a mode, tree and named flag.
15102         (sh_output_mi_thunk): Update call accordingly.
15103         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15104         (sparc_function_incoming_arg): Take a function_arg_info instead of
15105         a mode, tree and named flag.
15106         * config/spu/spu.c (spu_function_arg): Likewise.
15107         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15108         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15109         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15110         * config/v850/v850.c (v850_function_arg): Likewise.
15111         * config/vax/vax.c (vax_function_arg): Likewise.
15112         * config/visium/visium.c (visium_function_arg): Likewise.
15113         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15114         (xtensa_function_incoming_arg): Likewise.
15116 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15118         * target.def (setup_incoming_varargs): Take a function_arg_info
15119         instead of a mode and tree.
15120         * doc/tm.texi: Regenerate.
15121         * targhooks.h (default_setup_incoming_varargs): Take a
15122         function_arg_info instead of a mode and tree.
15123         * targhooks.c (default_setup_incoming_varargs): Likewise.
15124         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15125         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15126         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15127         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15128         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15129         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15130         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15131         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15132         Likewise.
15133         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15134         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15135         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15136         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15137         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15138         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15139         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15140         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15141         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15142         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15143         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15144         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15145         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15146         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15147         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15148         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15149         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15150         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15151         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15152         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15153         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15154         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15155         * function.c (assign_parms_setup_varargs): Update call to
15156         targetm.calls.setup_incoming_varargs.
15158 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15160         * target.def (pass_by_reference): Take a function_arg_info instead
15161         of a mode, type and named flag.
15162         * doc/tm.texi: Regenerate.
15163         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15164         accordingly.
15165         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15166         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15167         function_arg_info instead of a mode, type and named flag.
15168         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15169         * calls.h (pass_by_reference): Take a function_arg_info instead of a
15170         mode, type and named flag.
15171         * calls.c (pass_by_reference): Likewise.
15172         (pass_va_arg_by_reference): Update call accordingly.
15173         (initialize_argument_information): Likewise.
15174         (emit_library_call_value_1): Likewise.
15175         * function.c (assign_parm_find_data_types): Likewise.
15176         * var-tracking.c (prepare_call_arguments): Likewise.
15177         * stor-layout.c: Include calls.h.
15178         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15179         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15180         function_arg_info instead of a mode, type and named flag.
15181         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15182         * config/arc/arc.c (arc_pass_by_reference): Likewise.
15183         * config/arm/arm.c (arm_pass_by_reference): Likewise.
15184         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15185         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15186         (c6x_call_saved_register_used): Update call to pass_by_reference.
15187         * config/cris/cris.c (cris_pass_by_reference): Take a
15188         function_arg_info instead of a mode, type and named flag.
15189         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15190         function_arg_info instead of a mode, type and named flag.
15191         (epiphany_arg_partial_bytes): Update call accordingly.
15192         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15193         function_arg_info instead of a mode, type and named flag.
15194         (ft32_arg_partial_bytes): Update call accordingly.
15195         * config/i386/i386.c (ix86_pass_by_reference): Take a
15196         function_arg_info instead of a mode, type and named flag.
15197         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15198         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15199         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15200         (m32r_return_in_memory): Update call accordingly.
15201         * config/mips/mips.c (mips_pass_by_reference): Take a
15202         function_arg_info instead of a mode, type and named flag.
15203         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15204         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15205         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15206         (moxie_arg_partial_bytes): Update call accordingly.
15207         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15208         function_arg_info instead of a mode, type and named flag.
15209         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15210         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15211         * config/pa/pa.c (pa_pass_by_reference): Likewise.
15212         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15213         (riscv_return_in_memory): Update call accordingly.
15214         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15215         function_arg_info instead of a mode, type and named flag.
15216         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15217         (rs6000_parm_needs_stack): Update call to pass_by_reference.
15218         * config/s390/s390.c (s390_pass_by_reference): Take a
15219         function_arg_info instead of a mode, type and named flag.
15220         (s390_call_saved_register_used): Update call accordingly.
15221         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15222         instead of a mode, type and named flag.
15223         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15224         * config/spu/spu.c (spu_pass_by_reference): Likewise.
15225         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15226         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15227         * config/v850/v850.c (v850_pass_by_reference): Likewise.
15228         * config/visium/visium.c (visium_pass_by_reference): Likewise.
15230 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15232         * target.def (arg_partial_bytes): Take a function_arg_info instead
15233         of a mode, type and named flag.
15234         * doc/tm.texi: Regenerate.
15235         * target.h (function_arg_info): Declare.
15236         * calls.h (function_arg_info): New class.
15237         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15238         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15239         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15240         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15241         * calls.c (initialize_argument_information): Update call to
15242         targetm.calls.partial_bytes.
15243         (emit_library_call_value_1): Likewise.
15244         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15245         * function.c (assign_parm_find_entry_rtl): Likewise.
15246         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15247         function_arg_info instead of a mode, type and named flag.
15248         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15249         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15250         (cmse_func_args_or_return_in_stack): Update accordingly.
15251         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15252         function_arg_info instead of a mode, type and named flag.
15253         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15254         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15255         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15256         * config/fr30/fr30.c: Include calls.h.
15257         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15258         type and named flag.
15259         * config/frv/frv.c: Include calls.h.
15260         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15261         type and named flag.
15262         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15263         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15264         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15265         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15266         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15267         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15268         * config/microblaze/microblaze.c (function_arg_partial_bytes):
15269         Likewise.
15270         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15271         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15272         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15273         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15274         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15275         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15276         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15277         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15278         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15279         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15280         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15281         (rs6000_parm_needs_stack): Update call accordingly.
15282         * config/sh/sh.c (sh_arg_partial_bytes): Take a
15283         function_arg_info instead of a mode, type and named flag.
15284         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15285         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15287 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15289         * calls.h (must_pass_va_arg_in_stack): Declare.
15290         * calls.c (must_pass_va_arg_in_stack): New function.
15291         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15292         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15293         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15294         Likewise.
15295         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15297 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15299         * calls.h (pass_va_arg_by_reference): Declare.
15300         * calls.c (pass_va_arg_by_reference): New function.
15301         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15302         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15303         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15304         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15305         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15306         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15307         (mips_gimplify_va_arg_expr): Likewise.
15308         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15309         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15310         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15311         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15312         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15313         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15314         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15315         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15316         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15317         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15318         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15320 2019-08-20  Richard Biener  <rguenther@suse.de>
15322         PR target/91498
15323         * config/i386/i386-features.c (general_scalar_chain::convert_op):
15324         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15325         (convert_scalars_to_vector): Add timode_p parameter and use it
15326         to guard TImode-only operation.
15327         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15328         (pass_stv::execute): Pass down timode_p.
15330 2019-08-20  Lili Cui  <lili.cui@intel.com>
15332         * common/config/i386/i386-common.c
15333         (processor_names): Add tigerlake and cooperlake.
15334         (processor_alias_table): Add tigerlake and cooperlake.
15335         * config.gcc: Add -march=tigerlake and cooperlake.
15336         * config/i386/driver-i386.c
15337         (host_detect_local_cpu): Detect tigerlake and cooperlake.
15338         Add "has_avx" to classify processor.
15339         * config/i386/i386-builtins.c (processor_model) :
15340         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15341         (arch_names_table): Add tigerlake and cooperlake.
15342         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15343         and PROCESSOR_COOPERLAKE.
15344         * config/i386/i386-c.c
15345         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15346         * config/i386/i386-options.c
15347         (m_TIGERLAKE): Define.
15348         (m_COOPERLAKE): Ditto.
15349         (m_CORE_AVX512): Ditto.
15350         (processor_cost_table): Add cascadelake.
15351         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15352         * config/i386/i386.h
15353         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15354         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15355         (PTA_MOVDIRI): Ditto.
15356         (PTA_MOVDIR64B): Ditto.
15357         (PTA_COOPERLAKE): Ditto.
15358         (PTA_TIGERLAKE): Ditto.
15359         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15360         * doc/extend.texi: Add tigerlake and cooperlake.
15361         * doc/invoke.texi: Add tigerlake and cooperlake.
15363 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
15365         * doc/install.texi (Specific, alpha): Remove note to use
15366         binutils 2.11.2 or later.
15368 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15370         PR middle-end/89544
15371         * function.c (assign_parm_find_stack_rtl): Use larger alignment
15372         when possible.
15374 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
15376         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15377         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15378         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15379         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15380         * config/aarch64/constraints.md (Dt): New constraint
15381         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15383 2019-08-19  Richard Biener  <rguenther@suse.de>
15385         PR tree-optimization/91403
15386         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15387         cases we can handle with tail-recursion...
15388         (follow_ssa_edge_expr): ... here.  Do so.
15390 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
15392         PR target/91441
15393         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15394         implemented for -fsanitize=kernel-address, and merge check logic
15395         with -fsanitize=address.
15397 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
15399         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15400         for cpu and machine.  Factor 64/32b builtins.
15402 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
15404         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15405         gone, point to sourceforge.net.
15407 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
15408         
15409         * doc/ux.texi (User Experience Guidelines): Update reference.
15411 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
15412         
15413         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15414         not LGPL".
15416 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
15418         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15419         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
15421 2019-08-16  Martin Sebor  <msebor@redhat.com>
15423         * tree.def (TYPE_SIZE): Clarify.
15424         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15426 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15428         PR tree-optimization/91109
15429         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15430         * lra.c (lra): Use lra_need_for_scratch_reg_p.
15431         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15433 2019-08-16  Uroš Bizjak  <ubizjak@gmail.com>
15435         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15436         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15437         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15438         (uavg<mode>3_ceil): New expander.
15439         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15440         mode iterator when creating CONST1_RTX.
15441         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15442         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15443         mode iterator for const1_operand predicate.
15445 2019-08-16  Richard Biener  <rguenther@suse.de>
15447         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15448         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15449         follow_ssa_edge.
15450         (follow_ssa_edge_in_condition_phi_branch): Likewise.
15451         (analyze_evolution_in_loop): Likewise.
15452         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15453         (follow_ssa_edge_expr): ... here.  Refactor code.
15455 2019-08-16  Richard Biener  <rguenther@suse.de>
15457         PR target/91469
15458         * config/i386/i386-features.c
15459         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15461 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15463         PR other/91255
15464         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15465         only if subst_name matches curr_attr string.
15467 2019-08-16  Richard Biener  <rguenther@suse.de>
15469         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15470         stmt at gsi_p, instead replace it with a NOP removed later.
15471         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15472         that became dead because of that.
15474 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
15476         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15477         for which we can't represent a range.
15478         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15479         set_varying.
15480         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15481         Set VR_UNDEFINED if type is not supported.
15482         * tree-ssanames.c (get_range_info): Pass type to set_varying.
15483         * tree-vrp.c (value_range_base::check): Assert that a varying has
15484         min/max set.
15485         (value_range_base::equal_p): Early bail for undefines.
15486         (value_range_base::set_varying): Accept a type.
15487         (value_range::set_varying): Same.
15488         (value_range_base::type): VARYING can have a type, while UNDEFINE
15489         is typeless.
15490         (value_range_base::dump): Print type for VARYING nodes.
15491         (value_range_base::set): Add type to VARYING.
15492         (extract_range_from_multiplicative_op): Pass type to set_varying.
15493         (extract_range_from_binary_expr): Same.
15494         (value_range_base::intersect_helper): Same.
15495         (value_range_base::union_helper): Same.
15496         (value_range_base::normalize_symbolics): Same.
15497         (determine_value_range_1): Same.
15498         * tree-vrp.h (class value_range_base): Add type to set_varying.
15499         Add prototype for dump(void).
15500         Add prototype for supports_type_p.
15501         (class value_range): Add type to set_varying.
15502         Add prototype for dump(void).
15503         * vr-values.c (set_value_range_to_truthvalue): Pass type to
15504         set_varying.
15505         (vr_values::get_lattice_entry): Set varying even if propagation
15506         finished.
15507         Pass type to set_varying.
15508         (vr_values::get_value_range): Remove vr_const_varying.
15509         Reallocate the lattice if needed.
15510         (vr_values::update_value_range): Pass type to set_varying.
15511         (vr_values::extract_range_for_var_from_comparison_expr): Same.
15512         (vr_values::extract_range_from_binary_expr): Same.
15513         (vr_values::extract_range_from_unary_expr): Same.
15514         (vr_values::extract_range_from_cond_expr): Same.
15515         (vr_values::check_for_binary_op_overflow): Same.
15516         (vr_values::extract_range_basic): Same.
15517         (vr_values::extract_range_from_assignment): Same.
15518         (vr_values::vr_values): Increase size of num_vr_values.
15519         (vr_values::extract_range_from_phi_node): Pass type to
15520         set_varying.
15522 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
15524         PR target/90878
15525         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15526         for costs of hard register moves.
15527         (ix86_register_move_cost): Likewise.
15528         * config/i386/i386.h (processor_costs): Move costs of hard
15529         register moves to hard_register.  Add int_load, int_store,
15530         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15531         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15532         for costs of RTL expressions.
15533         * config/i386/x86-tune-costs.h: Move costs of hard register
15534         moves to hard_register.  Duplicate int_load, int_store,
15535         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15536         sse_load, sse_store for costs of RTL expressions.
15538 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15540         * target.def (setup_incoming_vararg_bounds): Remove.
15541         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15542         * doc/tm.texi: Regenerate.
15543         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15544         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15545         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15546         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15548 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15550         MSP430: Fix lines over 80 characters long in
15551         config/msp430/*.{c,h} files
15553         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15554         specifier in string.
15555         (msp430_select_hwmult_lib): Split line more than 80 characters long.
15556         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15557         redundant old comment.
15558         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15559         Split line more than 80 characters long.
15560         * config/msp430/msp430.c (msp430_option_override): Likewise.
15561         (msp430_return_in_memory): Likewise.
15562         (msp430_gimplify_va_arg_expr): Likewise.
15563         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15564         (msp430_legitimate_constant): Likewise.
15565         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15566         (msp430_attr): Likewise.
15567         (msp430_data_attr): Likewise.
15568         (msp430_start_function): Likewise.
15569         (gen_prefix): Likewise.
15570         (msp430_init_sections): Likewise.
15571         (msp430_select_section): Likewise.
15572         (msp430_function_section): Likewise.
15573         (msp430_unique_section): Likewise.
15574         (msp430_output_aligned_decl_common): Likewise.
15575         (msp430_do_not_relax_short_jumps): Likewise.
15576         (msp430_init_builtins): Likewise.
15577         (msp430_expand_delay_cycles): Likewise.
15578         (msp430_expand_prologue): Likewise.
15579         (msp430_expand_epilogue): Likewise.
15580         (msp430_expand_helper): Likewise.
15581         (msp430_split_movsi): Likewise.
15582         (msp430_print_operand): Likewise.
15583         (msp430_return_addr_rtx): Likewise.
15584         (msp430x_extendhisi): Likewise.
15585         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15586         (ASM_SPEC): Likewise.
15587         Remove very obvious comments.
15588         (LIB_SPEC): Split line more than 80 characters long.
15589         (EH_RETURN_HANDLER_RTX): Likewise.
15590         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15592 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15594         MSP430: Fix whitespace errors and incorrect indentation in
15595         config/msp430/*.{c,h} files
15597         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15598         (msp430_select_hwmult_lib): Likewise.
15599         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15600         (msp430_extract_mcu_data): Likewise.
15601         (struct t_msp430_mcu_data): Likewise.
15602         * config/msp430/msp430.c (struct machine_function): Remove whitespace
15603         before left square bracket.
15604         (msp430_option_override): Fix indentation.
15605         (msp430_hard_regno_nregs_with_padding): Likewise.
15606         (msp430_initial_elimination_offset): Likewise.
15607         (msp430_special_register_convention_p): Remove whitespace before left
15608         square bracket and after exclamation mark.
15609         (msp430_evaluate_arg): Likewise.
15610         (msp430_callee_copies): Fix indentation.
15611         (msp430_gimplify_va_arg_expr): Likewise.
15612         (msp430_function_arg_advance): Remove whitespace before left square
15613         bracket.
15614         (reg_ok_for_addr): Likewise.
15615         (msp430_preserve_reg_p): Likewise.
15616         (msp430_compute_frame_info): Likewise.
15617         (msp430_asm_output_addr_const_extra): Add space between function name
15618         and open parenthesis.
15619         (has_section_name): Fix indentation.
15620         (msp430_attr): Remove trailing whitespace.
15621         (msp430_section_attr): Likewise.
15622         (msp430_data_attr): Likewise.
15623         (struct msp430_attribute_table): Fix comment and whitespace.
15624         (msp430_start_function): Remove whitespace before left square bracket.
15625         Add space between function name and open parenthesis.
15626         (msp430_select_section): Remove trailing whitespace.
15627         (msp430_section_type_flags): Remove trailing whitespace.
15628         (msp430_unique_section): Remove space before closing parenthesis.
15629         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15630         (msp430_builtins): Remove whitespace before left square bracket.
15631         (msp430_init_builtins): Fix indentation.
15632         (msp430_expand_prologue): Remove whitespace before left square bracket.
15633         Remove space before closing parenthesis.
15634         (msp430_expand_epilogue): Remove whitespace before left square bracket.
15635         (msp430_split_movsi): Remove space before closing parenthesis.
15636         (helper_function_name_mappings): Fix indentation.
15637         (msp430_use_f5_series_hwmult): Fix whitespace.
15638         (use_32bit_hwmult): Likewise.
15639         (msp430_no_hwmult): Likewise.
15640         (msp430_output_labelref): Remove whitespace before left square bracket.
15641         (msp430_print_operand_raw): Likewise.
15642         (msp430_print_operand_addr): Likewise.
15643         (msp430_print_operand): Add two spaces after '.' in comment.
15644         Fix trailing whitespace.
15645         (msp430x_extendhisi): Fix indentation.
15646         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15647         tab.
15648         (PC_REGNUM): Likewise.
15649         (STACK_POINTER_REGNUM): Likewise.
15650         (CC_REGNUM): Likewise.
15652 2019-08-15  Richard Biener  <rguenther@suse.de>
15654         PR target/91454
15655         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15656         helper.
15657         (general_scalar_chain::make_vector_copies): Use it.
15659 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15661         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15663 2019-08-15  Martin Liska  <mliska@suse.cz>
15665         * tree-ssa-dce.c (propagate_necessity): We can't reach now
15666         operators with no arguments.
15667         (eliminate_unnecessary_stmts): Likewise here.
15669 2019-08-15  Uroš Bizjak  <ubizjak@gmail.com>
15671         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15672         <case COMPARE>: Revert 2019-08-14 change.
15673         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
15674         for (TARGET_64BIT || mode != DImode).
15676 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
15678         * tree-vrp.c (value_range_base::set): Merge in code from
15679         value_range_base::set_and_canonicalize.
15680         Enforce canonicalization at set time.
15681         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15682         (value_range_base::set_undefined): Inline call to set().
15683         (value_range_base::set_varying): Same.
15684         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15685         (vrp_val_max): New argument handle_pointers.
15686         (vrp_val_min): Same.
15687         (ranges_from_anti_range): Same.
15688         (extract_range_into_wide_ints): Use tree argument instead of sign
15689         and precision.
15690         (extract_range_from_multiplicative_op): Take in tree type instead
15691         of precision and sign.  Adapt function for canonicalized ranges.
15692         (extract_range_from_binary_expr): Pass type to
15693         extract_range_from_multiplicative_op.
15694         Adapt for canonicalized ranges.
15695         (extract_range_from_unary_expr): Same.
15696         (value_range_base::intersect_helper): Adjust for canonicalized
15697         ranges.
15698         (value_range_base::union_helper): Same.
15699         (value_range_base::normalize_symbolics): New.
15700         * tree-vrp.h (class value_range_base): Remove
15701         set_and_canonicalize.
15702         New prototype for normalize_symbolics.
15703         (class value_range): Remove set_and_canonicalize.
15704         (vrp_val_min): Adjust prototype.
15705         (vrp_val_max): Same.
15706         * vr-values.c
15707         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
15708         instead of set_and_canonicalize.
15710 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15712         PR middle-end/91444
15713         * tree-vect-stmts.c (vectorizable_call): Check that the function
15714         is a BUILT_IN_MD function before passing it to
15715         targetm.vectorize.builtin_md_vectorized_function.
15717 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15719         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15720         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15721         (aarch64_select_early_remat_modes): Use it.
15723 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15725         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15726         16 for SVE predicates even if they are fixed-length.
15728 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15730         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15731         operand order match the MOV /Z alias.
15733 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15735         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15736         the vector pattern as an aarch64_svpattern argument.  Update the
15737         overloaded caller accordingly.
15738         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15739         (aarch64_output_sve_vector_inc_dec): Likewise.
15741 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15743         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15744         multiplication case, try to compute VG * (lowest set bit) directly
15745         rather than always basing the multiplication on VG.  Use
15746         expand_mult for the multiplication if we can.
15748 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15750         * config/aarch64/aarch64-protos.h
15751         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15752         (aarch64_sve_inc_dec_immediate_p): Rename to...
15753         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15754         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15755         (aarch64_output_sve_scalar_inc_dec): Declare.
15756         (aarch64_output_sve_inc_dec_immediate): Rename to...
15757         (aarch64_output_sve_vector_inc_dec): ...this.
15758         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15759         (aarch64_output_sve_scalar_inc_dec): New functions.
15760         (aarch64_output_sve_addvl_addpl): Remove the base and offset
15761         arguments.  Only handle true ADDVL and ADDPL instructions;
15762         don't emit an INC or DEC.
15763         (aarch64_sve_inc_dec_immediate_p): Rename to...
15764         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15765         (aarch64_output_sve_inc_dec_immediate): Rename to...
15766         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
15767         aarch64_sve_vector_inc_dec_immediate_p.
15768         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15769         (aarch64_sve_plus_immediate): New predicates.
15770         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15771         rather than aarch64_sve_addvl_addpl_immediate.
15772         (aarch64_sve_inc_dec_immediate): Rename to...
15773         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
15774         aarch64_sve_vector_inc_dec_immediate_p.
15775         (aarch64_sve_add_operand): Update accordingly.
15776         * config/aarch64/constraints.md (Uai): New constraint.
15777         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15778         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15779         operand into a register if it satisfies aarch64_sve_plus_immediate.
15780         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15781         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
15782         * config/aarch64/aarch64-sve.md (add<mode>3): Call
15783         aarch64_output_sve_vector_inc_dec instead of
15784         aarch64_output_sve_inc_dec_immediate.
15786 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15788         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15789         (UNSPEC_REVW): New constants.
15790         (elem_bits): New mode attribute.
15791         (SVE_INT_UNARY): New int iterator.
15792         (optab): Handle UNSPEC_REV[BHW].
15793         (sve_int_op): New int attribute.
15794         (min_elem_bits): Handle VNx16QI and the predicate modes.
15795         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15796         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15797         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15798         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15799         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15800         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15801         unspecs based on the total width of the reversed data.
15802         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
15803         reinterpret followed by a subreg on big-endian targets.
15805 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15806             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15808         * config/aarch64/aarch64-sve.md
15809         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15810         alternatives in which one of the inputs is in the same register
15811         as the output.
15813 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15815         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15816         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15818 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15820         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15821         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
15823 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15824             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15826         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15827         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15828         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15830 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15831             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15833         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15834         Add an alternative that uses reversed shifts.
15836 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15838         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15839         struct.
15841 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15843         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15844         a commutativity marker.
15846 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15847             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15849         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15850         (aarch64_prepare_sve_cond_int_fma): Declare.
15851         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15852         (aarch64_prepare_sve_int_fma): New functions.
15853         (aarch64_prepare_sve_cond_int_fma): Likewise.
15854         * config/aarch64/aarch64-sve.md
15855         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15856         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15857         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15858         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15859         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15860         (*madd<mode>): Rename to...
15861         (*fma<mode>4): ...this.
15862         (*msub<mode>): Rename to...
15863         (*fnma<mode>4): ...this.
15865 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15866             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15868         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15869         Print 2.0 naturally.
15870         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15871         * config/aarch64/predicates.md
15872         (aarch64_sve_float_negated_arith_immediate): New predicate,
15873         renamed from aarch64_sve_float_arith_with_sub_immediate.
15874         (aarch64_sve_float_arith_with_sub_immediate): Test for both
15875         positive and negative constants.
15876         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15877         or an aarch64_sve_float_arith_with_sub_immediate.
15878         * config/aarch64/constraints.md (vsN): Use
15879         aarch64_sve_float_negated_arith_immediate.
15880         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15881         iterator.
15882         (sve_pred_fp_rhs2_immediate): New int attribute.
15883         * config/aarch64/aarch64-sve.md
15884         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15885         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15886         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15887         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15888         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15889         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15891 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15892             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15894         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15895         (*aarch64_cond_abd<SVE_F:mode>_3)
15896         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15898 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15899             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15901         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15902         (*aarch64_cond_<su>abd<mode>_any): New patterns.
15904 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
15905             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15907         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15908         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15909         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15910         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15911         optabs.
15912         * optabs.h (create_convert_operand_from): Expand comment.
15913         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15914         when mapping scalar rtxes to vector operands.
15915         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15916         ashiftrt and lshiftrt.
15917         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15918         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15919         (*cond_<optab><mode>_any_const): New patterns.
15921 2019-08-15  Martin Liska  <mliska@suse.cz>
15923         PR ipa/91438
15924         * cgraph.c (cgraph_node::remove): When setting
15925         n->origin = NULL for all nested functions, reset
15926         also next_nested.
15928 2019-08-15  Martin Liska  <mliska@suse.cz>
15930         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15931         and next_nested.
15933 2019-08-15  Martin Liska  <mliska@suse.cz>
15935         PR ipa/91404
15936         * passes.c (order): Remove.
15937         (uid_hash_t): Likewise).
15938         (remove_cgraph_node_from_order): Remove from set
15939         of pointers (cgraph_node *).
15940         (insert_cgraph_node_to_order): New.
15941         (duplicate_cgraph_node_to_order): New.
15942         (do_per_function_toporder): Register all 3 cgraph hooks.
15943         Skip removed_nodes now as we know about all of them.
15945 2019-08-14  Uroš Bizjak  <ubizjak@gmail.com>
15947         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15948         <case E_V8QImode>: Use vector_set path for
15949         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15950         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15951         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15953 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15955         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15957 2019-08-14  Martin Sebor  <msebor@redhat.com>
15959         PR tree-optimization/91294
15960         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15961         source length as exact.
15963 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
15965         * doc/extend.texi: Add "noinit" attribute documentation.
15966         * doc/sourcebuild.texi: Add noinit effective target documentation.
15967         * varasm.c (default_section_type_flags): Add support for "noinit"
15968         section.
15969         (default_elf_select_section): Add support for "noinit" attribute.
15970         * config/msp430/msp430.c (msp430_attribute_table): Remove
15971         "noinit" entry.
15973 2019-08-14  Richard Biener  <rguenther@suse.de>
15974             Uroš Bizjak  <ubizjak@gmail.com>
15976         PR target/91154
15977         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15978         mode arguments.
15979         (scalar_chain::smode): New member.
15980         (scalar_chain::vmode): Likewise.
15981         (dimode_scalar_chain): Rename to...
15982         (general_scalar_chain): ... this.
15983         (general_scalar_chain::general_scalar_chain): Take mode arguments.
15984         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15985         base with TImode and V1TImode.
15986         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15987         (general_scalar_chain::vector_const_cost): Adjust for SImode
15988         chains.
15989         (general_scalar_chain::compute_convert_gain): Likewise.  Add
15990         {S,U}{MIN,MAX} support.
15991         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15992         (general_scalar_chain::make_vector_copies): Likewise.  Handle
15993         non-DImode chains appropriately.
15994         (general_scalar_chain::convert_reg): Likewise.
15995         (general_scalar_chain::convert_op): Likewise.
15996         (general_scalar_chain::convert_insn): Likewise.  Add
15997         fatal_insn_not_found if the result is not recognized.
15998         (convertible_comparison_p): Pass in the scalar mode and use that.
15999         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
16000         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
16001         (scalar_to_vector_candidate_p): Remove by inlining into single
16002         caller.
16003         (general_remove_non_convertible_regs): Rename from
16004         dimode_remove_non_convertible_regs.
16005         (remove_non_convertible_regs): Remove by inlining into single caller.
16006         (convert_scalars_to_vector): Handle SImode and DImode chains
16007         in addition to TImode chains.
16008         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16009         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16010         (*<maxmin>di3_doubleword): Likewise.
16012 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16013             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16015         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16016         (*cond_bic<mode>_any): New patterns.
16018 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16020         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16021         take the equivalent mask, as well as a bit count.
16022         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16023         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16024         (aarch64_sve_pred_and_operand): New predicates.
16025         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16026         code attribute.
16027         * config/aarch64/aarch64-sve.md
16028         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16029         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16031 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16033         * config/aarch64/aarch64-sve.md
16034         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16035         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16036         New patterns.
16038 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16039             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16041         * config/aarch64/aarch64-sve.md
16042         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16043         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16045 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16046             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16048         * config/aarch64/aarch64-sve.md
16049         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16050         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16052 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16054         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16055         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16056         New pattern.
16058 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16059             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16061         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16063 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16064             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16066         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16067         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16068         (aarch64_print_operand): Add support for %I.
16069         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16070         Bitcast floating-point constants to the corresponding integer constant.
16071         (aarch64_float_const_representable_p): Handle vectors as well
16072         as scalars.
16073         (aarch64_expand_sve_vcond): Make sure that the operands are valid
16074         for the new vcond_mask_<mode><vpred> expander.
16075         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16076         test aarch64_float_const_representable_p.
16077         (aarch64_sve_reg_or_dup_imm): New predicate.
16078         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16079         gen_vcond_mask_<mode><vpred> instead of
16080         gen_aarch64_sve_dup<mode>_const.
16081         (vcond_mask_<mode><vpred>): Turn into a define_expand that
16082         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16083         for operands 1 and 2 respectively.  Force operand 2 into a
16084         register if operand 1 is a register.  Fold old define_insn...
16085         (aarch64_sve_dup<mode>_const): ...and this define_insn...
16086         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
16087         floating-point constants that can be moved as integers.  Add
16088         alternatives for MOV /M and FMOV /M.
16089         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16090         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16091         1 and 2 respectively.
16092         * config/aarch64/constraints.md (Ufc): Handle vectors as well
16093         as scalars.
16094         (vss): New constraint.
16096 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16098         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16099         (aarch64_sve_float_maxmin_operand): New predicates.
16100         * config/aarch64/constraints.md (vsB): New constraint.
16101         (vsM): Fix typo.
16102         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16103         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16104         UNSPEC_COND_FMINNM.
16105         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16106         Use aarch64_sve_float_maxmin_operand for operand 2.
16107         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16108         Add alternatives for the constant forms.
16110 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16112         * config/aarch64/constraints.md (vsb): New constraint.
16113         (vsm): Generalize description.
16114         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16115         iterator.
16116         (sve_imm_con): Handle smax, smin, umax and umin.
16117         (sve_imm_prefix): New code attribute.
16118         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16119         (aarch64_sve_vsb_operand): New predicates.
16120         (aarch64_sve_mul_immediate): Rename to...
16121         (aarch64_sve_vsm_immediate): ...this.
16122         (aarch64_sve_mul_operand): Rename to...
16123         (aarch64_sve_vsm_operand): ...this.
16124         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16125         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16126         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16127         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16128         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16129         add movprfx support for the immediate alternatives.
16130         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16131         of the above.
16132         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16133         for operand 3.
16135 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16137         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16138         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16139         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16141 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16143         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16144         (optab, sve_int_op): Handle them.
16145         * config/aarch64/aarch64-sve.md: Expand comment.
16147 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16149         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16150         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16151         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16153 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16155         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16156         (aarch64_expand_sve_const_pred_trn): New functions.
16157         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16158         use the above functions when the parameter is true.
16159         (aarch64_expand_sve_const_pred): Update call accordingly.
16160         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16161         Rename to...
16162         (@aarch64_sve_<perm_insn><mode>): ...this.
16164 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16166         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16167         Declare.
16168         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16169         (aarch64_sve_emit_int_cmp): New functions.
16170         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16171         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16172         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16173         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16174         (UNSPEC_PRED_Z): New unspec.
16175         (set_clobber_cc_nzc): Delete.
16176         * config/aarch64/aarch64-sve.md: Add a block comment about
16177         UNSPEC_PRED_Z.
16178         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16179         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16180         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
16181         UNSPEC_MERGE_PTRUE.
16182         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16183         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
16184         check for compatible predicates.
16185         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16186         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16187         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
16188         comparisons above.
16190 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16192         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16193         * config/aarch64/aarch64-sve.md: Add a section describing it.
16194         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16195         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16196         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16197         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16198         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16199         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16200         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16201         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16202         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16203         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16204         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16205         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16206         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16207         (aarch64_evpc_rev_local): Update accordingly.
16209 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16211         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16212         iterators.
16213         (SVE_BHSI, SVE_SDI): Tweak comment.
16214         (SVE_HSDI): Likewise.  Fix definition.
16215         (SVE_SDF): New mode iterator.
16216         (elem_bits): New mode attribute.
16217         (SVE_COND_FCVT): New int iterator.
16218         * config/aarch64/aarch64-sve.md
16219         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16220         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16221         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16222         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16223         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16224         ...these new patterns.
16225         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16226         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16227         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16228         Merge into...
16229         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16230         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16231         ...these new patterns.
16232         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16233         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16234         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16235         ...this new pattern.
16236         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16237         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16238         ...this new pattern.
16239         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16241 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16243         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16244         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16245         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16246         unspecs.
16247         (optab, su): Handle them.
16248         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16249         * config/aarch64/aarch64-sve.md
16250         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16251         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16252         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16253         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16254         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16255         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16256         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16257         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16258         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16259         FIXUORS.
16260         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16261         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16262         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16263         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16264         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16265         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16266         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16267         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16268         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16269         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16270         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16271         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16272         of UNSPEC_FLOAT_CONVERT.
16273         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16274         aarch64_sve_extend<mode><Vwide>2.
16276 2019-08-14  Richard Biener  <rguenther@suse.de>
16278         PR target/91154
16279         * config/i386/i386-features.c
16280         (dimode_scalar_chain::compute_convert_gain): Compute and dump
16281         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
16282         ix86_cost->sse_op for vector instruction costs.
16284 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16286         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16287         (cmp_op): Handle it.
16288         (SVE_COND_FP_CMP): Rename to...
16289         (SVE_COND_FP_CMP_I0): ...this.
16290         (SVE_FP_CMP): Remove.
16291         * config/aarch64/aarch64-sve.md
16292         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16293         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16294         using unspecs to represent the comparison.
16295         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16296         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16297         accordingly.
16298         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16299         (aarch64_unspec_cond_code): Move after integer code.  Handle
16300         UNORDERED.
16301         (aarch64_emit_sve_predicated_cond): Replace with...
16302         (aarch64_emit_sve_fp_cond): ...this new function.
16303         (aarch64_emit_sve_or_conds): Replace with...
16304         (aarch64_emit_sve_or_fp_conds): ...this new function.
16305         (aarch64_emit_sve_inverted_cond): Replace with...
16306         (aarch64_emit_sve_invert_fp_cond): ...this new function.
16307         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16309 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16311         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16312         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16313         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16314         SVE_HSD instead of SVE_SD.
16316 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16317             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16319         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16320         iterator.
16321         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16322         attributes.
16323         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16324         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16325         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16326         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16327         (*div<SVE_F:mode>3): Generalize to...
16328         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16330 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16331             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16333         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16334         constants.
16335         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16336         predicate.
16337         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16338         Declare.
16339         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16340         function.
16341         * config/aarch64/aarch64-sve.md: Add a block comment about the
16342         handling of predicated FP operations.
16343         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16344         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16345         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16346         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16347         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16348         operand.
16349         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16350         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16351         operand.
16352         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16353         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16354         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16355         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16356         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16357         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16358         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16359         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16360         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16361         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16362         strictness operands.  Use aarch64_sve_pred_dominates_p to check
16363         whether the predicate on the conditional operation is suitable
16364         for merging.  Split patterns into the canonical equal-predicate form.
16365         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16366         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16368 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16369             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16371         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16372         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16373         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16374         rtx codes.
16375         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16376         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16377         unspecs.
16379 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16380             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
16382         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16383         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
16384         actually has, rather than relying on REG_EQUAL notes.
16385         Make the insn operand order match the SVE operand order.
16386         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16387         the SVE operand order.
16389 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16391         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16392         (aarch64_emit_set_immediate): Likewise.
16393         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16394         (aarch64_pfalse_reg): Likewise.
16395         (aarch64_convert_sve_data_to_pred): New function.
16396         (aarch64_sve_move_pred_via_while): Take an optional target register
16397         and the required register mode.
16398         (aarch64_expand_sve_const_pred_1): New function.
16399         (aarch64_expand_sve_const_pred): Likewise.
16400         (aarch64_expand_mov_immediate): Build an all-true predicate
16401         if the significant bits of the immediate are all true.  Use
16402         aarch64_expand_sve_const_pred for all compile-time predicate constants.
16403         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16404         before register allocation.
16405         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16406         a VNx16BI PTRUE when splitting the memory alternative.
16407         (vec_duplicate<mode>): Update accordingly.
16408         (*pred_cmp<cmp_op><mode>): Rename to...
16409         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16411 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
16413         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16414         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16415         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16416         (UNSPEC_PTEST): New unspec.
16417         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16418         * config/aarch64/iterators.md (data_bytes): New mode attribute.
16419         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16420         * config/aarch64/aarch64-sve.md: Add a new section describing the
16421         handling of UNSPEC_PTEST.
16422         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16423         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16424         (ptest_ptrue<mode>): Replace with...
16425         (aarch64_ptest<mode>): ...this new pattern.
16426         (cbranch<mode>4): Update after above changes.
16427         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16428         UNSPEC_PTEST_PTRUE.
16429         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16430         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16431         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16433 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
16435         PR lto/91287
16436         * builtins.c (builtin_with_linkage_p): New function.
16437         * builtins.h (builtin_with_linkage_p): New function.
16438         * symtab.c (write_symbol): Remove redundant assert.
16439         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16440         Remove FIXME and use builtin_with_linkage_p.
16442 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16444         PR middle-end/91421
16445         * tree-core.h (function_decl::function_code): Change type to
16446         unsigned int.
16447         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16448         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16449         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16450         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
16451         is BUILT_IN_NORMAL.
16452         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16453         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16454         (fndecl_built_in_p): Change the type of the "name" argument to
16455         unsigned int.
16456         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16457         after check for DECL_BUILT_IN_CLASS.
16458         * cgraphclones.c (build_function_decl_skip_args): Use
16459         set_decl_built_in_function.
16460         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16461         * ipa-split.c (split_function): Likewise.
16462         * langhooks.c (add_builtin_function_common): Likewise.
16463         * omp-simd-clone.c (simd_clone_create): Likewise.
16464         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16465         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16466         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16467         DECL_FUNCTION_CODE.
16468         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16469         instead of DECL_FUNCTION_CODE.
16470         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16471         instead of DECL_FUNCTION_CODE.
16472         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16473         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16474         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
16475         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16476         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16477         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16478         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16479         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16480         (alpha_gimple_fold_builtin): Likewise.
16481         * config/arc/arc.c (arc_expand_builtin): Likewise.
16482         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16483         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16484         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16485         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16486         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16487         * config/frv/frv.c (frv_expand_builtin): Likewise.
16488         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16489         (gcn_expand_builtin): Likewise.
16490         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16491         (fold_builtin_cpu): Likewise.
16492         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16493         * config/i386/i386.c (ix86_fold_builtin): Likewise.
16494         (ix86_gimple_fold_builtin): Likewise.
16495         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16496         (ia64_expand_builtin): Likewise.
16497         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16498         * config/mips/mips.c (mips_expand_builtin): Likewise.
16499         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16500         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16501         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16502         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16503         * config/pa/pa.c (pa_expand_builtin): Likewise.
16504         * config/pru/pru.c (pru_expand_builtin): Likewise.
16505         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16506         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16507         Likewise.
16508         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16509         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16510         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16511         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16512         (rs6000_builtin_reciprocal): Likewise.
16513         * config/rx/rx.c (rx_expand_builtin): Likewise.
16514         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16515         * config/s390/s390.c (s390_expand_builtin): Likewise.
16516         * config/sh/sh.c (sh_expand_builtin): Likewise.
16517         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16518         (sparc_fold_builtin): Likewise.
16519         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16520         * config/spu/spu.c (spu_expand_builtin): Likewise.
16521         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16522         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16523         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16524         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16525         (xtensa_expand_builtin): Likewise.
16527 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16529         PR middle-end/91421
16530         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16531         before the DECL_FUNCTION_CODE.
16532         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16533         to check for a BUILT_IN_ALLOCA call.
16534         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16535         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
16536         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16537         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16538         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16539         for BUILT_IN_NORMAL functions.
16540         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16541         test for BUILT_IN_TM_ABORT.
16542         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16543         to check for a BUILT_IN_STACK_RESTORE call.
16544         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16545         * tree-ssa-threadedge.c
16546         (record_temporary_equivalences_from_stmts_at_dest): Check for a
16547         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16548         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16549         test for a BUILT_IN_NORMAL call instead of a negative test for
16550         an internal function call.
16552 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16554         * tree.h (build_vector_a_then_b): Declare.
16555         * tree.c (build_vector_a_then_b): New function.
16556         * fold-const-call.c (fold_while_ult): Likewise.
16557         (fold_const_call): Use it to handle IFN_WHILE_ULT.
16558         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16559         (aarch64_svpattern): New enum.
16560         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16561         constants through aarch64_expand_mov_immediate.
16562         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16563         than general_operand as the predicate for operand 1.
16564         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16565         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16566         insn_type.
16567         (simd_immediate_info::simd_immediate_info): New overload that
16568         takes a scalar_int_mode and an svpattern.
16569         (simd_immediate_info::u): Add a "pattern" field.
16570         (svpattern_token): New function.
16571         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16572         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16573         (aarch64_sve_move_pred_via_while): New functions.
16574         (aarch64_expand_mov_immediate): Try using
16575         aarch64_sve_move_pred_via_while for predicates that contain N ones
16576         followed by M zeros but that do not correspond to a VLnnn pattern.
16577         (aarch64_sve_pred_valid_immediate): New function.
16578         (aarch64_simd_valid_immediate): Use it instead of dealing directly
16579         with PTRUE and PFALSE.
16580         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16581         forms.
16583 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16585         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16586         flag.
16587         (darwin_override_options): Likewise.
16588         * config/darwin.h: Likewise.
16589         * config/darwin.opt: Likewise.
16590         * config/i386/i386.c (output_pic_addr_const): Likewise.
16591         * config/rs6000/darwin.h: Likewise.
16592         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16593         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16594         ... this TARGET_MACHO_SYMBOL_STUBS.
16595         (FUNCTION_PROFILER):Likewise.
16596         * config/i386/i386.h: Likewise.
16598 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
16600         * config/i386/i386-expand.c (ix86_expand_vector_extract)
16601         <case E_V2SImode>: Use vec_extr path for
16602         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16603         <case E_V8QImode>: Ditto.
16604         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16605         Use SWI48 mode iterator.  Use %k to output operand 0.
16606         (*mmx_pextrw): New insn pattern.
16607         (*mmx_pextrb): Ditto.
16608         (*mmx_pextrb_zext): Ditto.
16610 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
16612         * target.def (libc_has_function, libc_has_fast_function): Improve
16613         documentation strings.
16614         * doc/tm.texi: Regenerate.
16616 2019-08-13  Caroline Tice  <cmtice@google.com>
16618         PR other/91396
16619         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16620         vtv_end.o or vtv_end_preinit.o files if !static.
16622 2019-08-13  Olivier Hainque  <hainque@adacore.com>
16624         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16626 2019-08-13  Olivier Hainque  <hainque@adacore.com>
16628         * rtlanal.c (tablejump_casesi_pattern): New function, to
16629         determine if a tablejump insn is a casesi dispatcher. Extracted
16630         from patch_jump_insn.
16631         * rtl.h (tablejump_casesi_pattern): Declare.
16632         * cfgrtl.c (patch_jump_insn): Use it.
16633         * dwarf2cfi.c (create_trace_edges): Use it.
16635 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
16637         PR target/81800
16638         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16639         operand is larger than a long int.
16641 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16643         * machmode.h (opt_mode::else_mode): New function.
16644         (opt_mode::else_blk): Use it.
16645         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16646         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16647         (aarch64_gen_stepped_int_parallel): Likewise.
16648         (aarch64_stepped_int_parallel_p): Likewise.
16649         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16650         argument.
16651         * config/aarch64/aarch64.c
16652         (aarch64_expand_sve_widened_duplicate): Delete.
16653         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16654         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16655         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16656         argument.  Use early returns in the !CONST_INT_P handling.
16657         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16658         than handling some inline.
16659         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16660         from...
16661         (aarch64_simd_container_mode): ...here.
16662         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16663         (aarch64_sve_ld1rq_operand_p): New functions.
16664         * config/aarch64/predicates.md (descending_int_parallel)
16665         (aarch64_sve_ld1rq_operand): New predicates.
16666         * config/aarch64/constraints.md (UtQ): New constraint.
16667         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16668         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16669         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16670         (@aarch64_sve_reinterpret<mode>): New expander.
16671         (*aarch64_sve_reinterpret<mode>): New pattern.
16672         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16673         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16674         (*sve_ld1rq<Vesize>): Replace with...
16675         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16677 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
16679         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16680         16:12.
16682 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16684         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16685         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16686         (msp430_check_path_for_devices): New.
16687         (parse_devices_csv_1): New.
16688         (parse_devices_csv): New.
16689         (msp430_extract_mcu_data): Try to find devices.csv and search for the
16690         MCU data in devices.csv before using the hard-coded data.
16691         Warn if devices.csv isn't found and the MCU wasn't found in the
16692         hard-coded data either.
16693         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16694         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16695         Search for devices.csv on -I and -L paths.
16696         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16697         msp430_set_driver_var.
16698         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16699         -mdevices-csv-loc=.
16700         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16701         searched for devices.csv.
16702         (mwarn-devices-csv): Document option.
16704 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16706         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16707         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16708         Use a single Dn alternative instead of separate Dz and Dm
16709         alternatives.  Use aarch64_output_sve_move_immediate.
16710         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16711         function.
16712         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16713         for predicates too.
16714         (aarch64_output_sve_mov_immediate): Handle predicate modes.
16715         (aarch64_output_ptrue): Delete.
16717 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16719         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16720         INDEX.
16721         (simd_immediate_info::value, simd_immediate_info::step)
16722         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16723         with...
16724         (simd_immediate_info::u): ...this new union.
16725         (simd_immediate_info::simd_immediate_info): Update accordingly.
16726         (aarch64_output_simd_mov_immediate): Likewise.
16727         (aarch64_output_sve_mov_immediate): Likewise.
16729 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16731         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16732         extra_gcc_objs.
16733         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16734         (msp430_select_cpu): New spec function.
16735         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16736         MCU data.
16737         * config/msp430/msp430-devices.c: New file.
16738         * config/msp430/msp430-devices.h: New file.
16739         * config/msp430/msp430.c: Remove msp430_mcu_data.
16740         (msp430_option_override): Use msp430_extract_mcu_data to extract
16741         MCU data.
16742         (msp430_use_f5_series_hwmult): Likewise.
16743         (use_32bit_hwmult): Likewise.
16744         (msp430_no_hwmult): Likewise.
16745         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16746         assembler.
16747         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16748         and -mcpu option.
16749         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16750         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16751         Remove hard-coded MCU multilib data.
16753 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16755         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16756         based on the mode instead of testing properties of it.
16758 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16760         * doc/md.texi: Document the x and y constraints for AArch64.
16761         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16762         (FP_LO8_REGS): New reg_class.
16763         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16764         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16765         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16766         * config/aarch64/predicates.md (aarch64_simd_register): Use
16767         FP_REGNUM_P instead of checking the classes manually.
16768         * config/aarch64/constraints.md (y): New constraint.
16770 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16772         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16773         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16774         * config/aarch64/aarch64-simd.md
16775         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16776         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16777         from the asm template.
16778         * config/aarch64/aarch64-sve.md
16779         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16780         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16781         from the asm template.
16782         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16783         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16784         from the asm template.
16785         * config/aarch64/aarch64-simd-builtins.def: Update comment.
16787 2019-08-13  Martin Liska  <mliska@suse.cz>
16789         * value-prof.c (gimple_ic_transform): Add new line.
16790         Print details with MSG_NOTE.
16792 2019-08-13  Martin Liska  <mliska@suse.cz>
16794         * doc/invoke.texi: Document automatic detection of jobserver.
16795         * lto-wrapper.c (run_gcc): Detect jobserver always.
16797 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
16799         * config/i386/i386-expand.c (ix86_expand_vector_set)
16800         <case E_V2SImode>: Use vec_merge path for
16801         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16802         <case E_V8QImode>: Ditto.
16803         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16804         (*mmx_pinsrb): Ditto.
16806 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
16808         PR target/83250
16809         PR target/91340
16810         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16811         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16812         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16813         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16814         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16816 2019-08-12  Richard Biener  <rguenther@suse.de>
16818         PR lto/91375
16819         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16820         flag_devirtualize.
16822 2019-08-12  Richard Biener  <rguenther@suse.de>
16824         PR driver/91130
16825         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16826         lang_mask option, always use CL_DRIVER.
16827         (get_options_from_collect_gcc_options): Adjust.
16828         (find_and_merge_options): Likewise.
16829         (run_gcc): Likewise.
16831 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16833         * ipa-predicate.c (add_condition): Restore inverted test.
16835 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
16837         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16838         (enum omp_clause_device_type_kind): New enum.
16839         (struct tree_omp_clause): Add subcode.device_type_kind.
16840         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16841         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16842         for device_type clause.
16843         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16844         * tree-pretty-print.c (dump_omp_clause): Likewise.
16846         PR target/91408
16847         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16848         vector_operand.
16850 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
16852         * reload1.c (finish_spills): Do not check ira_conflicts_p when
16853         handling spilled pseudos.
16855 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
16857         PR target/91386
16858         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16859         to preserve the contents of the original insns.
16861 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
16863         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16864         (addsi3_compare_op2): Likewise.
16866 2019-08-09  Martin Liska  <mliska@suse.cz>
16868         * alias.c (alias_ptr_types_compatible_p): Strengten
16869         type comparison in LTO mode.
16871 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
16873         PR middle-end/90313
16874         * tree-tailcall.c (find_tail_calls): Reject calls that might
16875         read from an escaped RESULT_DECL.
16877 2019-08-09  Martin Liska  <mliska@suse.cz>
16879         * doc/invoke.texi: Document the option value.
16880         * lto-wrapper.c (run_gcc): Set auto_parallel
16881         only with -flto=auto.
16883 2019-08-09  Martin Liska  <mliska@suse.cz>
16885         * opts.c (common_handle_option): Error for an invalid argument
16886         to -flto=.
16888 2019-08-09  Martin Liska  <mliska@suse.cz>
16890         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16891         use dump_printf to report optimization.
16892         (sem_variable::merge): Likwise.
16893         (sem_item_optimizer::merge_classes): Use dump_printf to report
16894         ICF hits.
16896 2019-08-09  Martin Liska  <mliska@suse.cz>
16898         * value-prof.c (gimple_divmod_fixed_value_transform):
16899         Use dump_printf_loc.
16900         (gimple_mod_pow2_value_transform): Likewise.
16901         (gimple_mod_subtract_transform): Likewise.
16902         (init_node_map): Likewise.
16903         (gimple_ic_transform): Likewise.
16904         (gimple_stringops_transform): Likewise.
16906 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
16908         * doc/extend.texi: Add const qualifier to ld intrinsics.
16910 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
16912         * config/rs6000/dfp.md (D64_D128): Rename to ...
16913         (DDTD): ... this, throughout.
16914         (dfp_suffix): Rename to ...
16915         (q): ... this, throughout.
16917 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
16919         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16920         (dfp_suffix): Ditto.
16921         (adddd3, addtd3): Merge to ...
16922         (add<mode>3 for D64_D128): ... this.
16923         (subdd3, subtd3): Merge to ...
16924         (sub<mode>3 for D64_D128): ... this.
16925         (muldd3, multd3): Merge to ...
16926         (mul<mode>3 for D64_D128): ... this.
16927         (divdd3, divtd3): Merge to ...
16928         (div<mode>3 for D64_D128): ... this.
16929         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16930         (*cmp<mode>_internal1 for D64_D128): ... this.
16931         (ftruncdd2, ftrunctd2): Merge to ...
16932         (ftrunc<mode>2 for D64_D128): ... this.
16933         (fixdddi2, fixtddi2): Merge to ...
16934         (fix<mode>di2 for D64_D128): ... this.
16936 2019-08-08  Jim Wilson  <jimw@sifive.com>
16938         PR target/91229
16939         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16940         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
16941         Pass into recursive call.
16942         (riscv_flatten_aggregate_argument): New arg.  Pass to
16943         riscv_flatten_aggregate_field.
16944         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
16945         riscv_flatten_aggregate_argument twice, with false and true as last
16946         arg.  Process result twice.  Compare results and warn if different.
16947         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16949 2019-08-08  Martin Liska  <mliska@suse.cz>
16951         PR bootstrap/91352
16952         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16953         * lto-wrapper.c (jobserver_active_p): Likewise.
16955 2019-08-08  Martin Liska  <mliska@suse.cz>
16957         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16958         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16959         (create_version_clone_with_body): Likewise.
16961 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
16963         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16964         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16965         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16966         GOVD_EXPLICIT flags.
16967         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16968         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16969         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16970         call install_var_field with mask 11 instead of 3.
16971         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16972         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16974 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
16976         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16977         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16979 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
16981         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16982         MOVPRFX alternatives.  Make the GPR alternatives more expensive
16983         than the FPR ones.
16985 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
16987         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16988         Disparage the GPR alternative relative to the FPR one.
16989         Fix handling of 8-bit and 16-bit FPR values.
16991 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
16993         * config/aarch64/iterators.md (BITWISEV): Delete.
16994         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16995         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16996         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16997         UNSPEC_FMINNMV, UNSPEC_FMINV.
16998         (bit_reduc_op): Delete.
16999         (sve_int_op): New int attribute.
17000         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17001         UNSPEC_FMINNMV, UNSPEC_FMINV.
17002         * config/aarch64/aarch64-sve.md
17003         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17004         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17005         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17006         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17007         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17008         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17009         new patterns.
17010         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17011         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17012         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17013         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17014         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17015         new patterns.
17017 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17019         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17020         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17021         (fms<mode>4, *fms<mode>4): Replace with...
17022         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17023         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17024         Use unspecs instead of rtx codes.
17025         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17026         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17028 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17030         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17031         int iterator.
17032         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17033         * config/aarch64/aarch64-sve.md
17034         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17035         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17036         use a single unspec for the rhs.
17037         (*<su><maxmin><mode>3): Delete.
17038         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17040 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17042         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17043         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17044         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17045         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17046         (optab, sve_fp_op): Handle them.
17047         (SVE_FP_UNARY): Delete.
17048         (optab): Remove sqrt entry.
17049         (sve_fp_op): Remove neg, abs and sqrt entries.
17050         (SVE_COND_FP_UNARY): New int iterator.
17051         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17052         (*<frint_pattern><mode>2): Delete.
17053         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17054         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17055         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17056         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17058 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17060         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17062 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17064         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17065         (UNSPEC_COND_FADD): ...this.
17066         (UNSPEC_COND_SUB): Rename to...
17067         (UNSPEC_COND_FSUB): ...this.
17068         (UNSPEC_COND_MUL): Rename to...
17069         (UNSPEC_COND_FMUL): ...this.
17070         (UNSPEC_COND_DIV): Rename to...
17071         (UNSPEC_COND_FDIV): ...this.
17072         (UNSPEC_COND_MAX): Rename to...
17073         (UNSPEC_COND_FMAXNM): ...this.
17074         (UNSPEC_COND_MIN): Rename to...
17075         (UNSPEC_COND_FMINNM): ...this.
17076         (UNSPEC_COND_LT): Rename to...
17077         (UNSPEC_COND_FCMLT): ...this.
17078         (UNSPEC_COND_LE): Rename to...
17079         (UNSPEC_COND_FCMLE): ...this.
17080         (UNSPEC_COND_EQ): Rename to...
17081         (UNSPEC_COND_FCMEQ): ...this.
17082         (UNSPEC_COND_NE): Rename to...
17083         (UNSPEC_COND_FCMNE): ...this.
17084         (UNSPEC_COND_GE): Rename to...
17085         (UNSPEC_COND_FCMGE): ...this.
17086         (UNSPEC_COND_GT): Rename to...
17087         (UNSPEC_COND_FCMGT): ...this.
17088         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17089         (sve_fp_op_rev): Update accordingly.
17090         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17092 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17094         * config/aarch64/aarch64-sve.md: Reorganize contents and add
17095         banner comments.
17096         * config/aarch64/check-sve-md.awk: New file.
17097         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17098         (insn-conditions.md): Depend on it.
17100 2019-08-07  Uroš Bizjak  <ubizjak@gmail.com>
17102         PR target/91385
17103         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17104         (*negsi2_cmpz_zext): Ditto.
17106 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17108         * config/aarch64/iterators.md (commutative): Remove.
17110 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
17112         PR driver/91130
17113         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17114         processing COLLECT_GCC_OPTIONS.
17115         (run_gcc): Likewise.
17117 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17119         PR tree-optimization/91109
17120         * lra-remat.c (update_scratch_ops): Remove assignment of the
17121         hard register.
17123 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
17125         * data-streamer.h (streamer_write_poly_uint64): Declare.
17126         (streamer_read_poly_uint64): Likewise.
17127         * data-streamer-in.c (streamer_read_poly_uint64): New function.
17128         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17129         * ipa-predicate.h (condition::size): Turn into a poly_int64.
17130         (add_condition): Take a poly_int64 size.
17131         * ipa-predicate.c (add_condition): Likewise.
17132         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17133         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17134         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17135         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17136         condition::size as a poly_int64.
17137         (unmodified_parm_1): Take a poly_int64 size pointer.
17138         (unmodified_parm): Likewise.
17139         (unmodified_parm_or_parm_agg_item): Likewise.
17140         (set_cond_stmt_execution_predicate): Update accordingly.
17141         (set_switch_stmt_execution_predicate): Likewise.
17142         (will_be_nonconstant_expr_predicate): Likewise.
17143         (will_be_nonconstant_predicate): Likewise.
17144         (inline_read_section): Stream condition::size as a poly_int.
17145         (ipa_fn_summary_write): Likewise.
17147 2019-08-07  Martin Liska  <mliska@suse.cz>
17149         * fold-const.c (twoval_comparison_p): Replace int
17150         with bool as a return type.
17151         (simple_operand_p): Likewise.
17152         (operand_equal_p): Replace int with bool as a return type.
17153         * fold-const.h (operand_equal_p): Likewise.
17155 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
17157         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17158         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17159         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17160         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17161         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17162         * tree-pretty-print.c (dump_omp_clause): Likewise.
17163         * tree-nested.c (convert_nonlocal_omp_clauses,
17164         convert_local_omp_clauses): Likewise.
17165         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17166         Likewise.
17167         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17168         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17169         clause with array or reference to array types, no matter what type
17170         except for reference it has.
17172 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
17174         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17176 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
17178         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17179         (arch_canonicalize): Support rv32g and rv64g and fix error
17180         handling.
17182 2019-08-06  Martin Liska  <mliska@suse.cz>
17184         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17185         and DECL_IS_OPERATOR_DELETE_P.
17187 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
17189         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17190         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
17191         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17192         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17193         (gimplify_omp_for): Don't do C++ random access iterator clause
17194         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
17195         don't predetermine the artificial iterator in case of C++ random
17196         access iterators as lastprivate, but private.  For OMP_LOOP, force
17197         bind expr around simd body and force for_pre_body before the
17198         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17199         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17200         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17201         diff var of C++ random access iterators.  Handle
17202         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17203         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17204         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17205         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17206         * omp-low.c (lower_rec_input_clauses): For
17207         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17208         variables instead of default constructing them.
17209         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17210         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17211         is_taskloop_ctx check from the assert to the guarding condition.
17213 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
17215         * config/riscv/multilib-generator: (canonical_order): New.
17216         (arch_canonicalize): Dito.
17217         Apply arch_canonicalize for alts.
17219 2019-08-05  Martin Sebor  <msebor@redhat.com>
17221         * doc/extend.texi (Common Variable Attributes): Document alias
17222         attribute.
17224 2019-08-05  Marek Polacek  <polacek@redhat.com>
17226         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17227         * doc/invoke.texi: Document -Wcomma-subscript.
17229 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17231         * tree-core.h (tree_function_decl): Make function_code an
17232         independent field.  Group the remaining bitfields into bytes
17233         and move decl_type so that it contines to be at a byte boundary.
17234         Leave 12 bits for future expansion.
17236 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17238         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17239         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17240         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17241         IFN_MASK_STORE.
17243 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17245         * gimple.h (gimple_move_vops): Declare.
17246         * gimple.c (gimple_move_vops): New function
17247         * gimple-fold.c (replace_call_with_call_and_fold)
17248         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17249         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17250         (gimple_fold_call): Use it.
17251         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17252         * tree-call-cdce.c (use_internal_fn): Likewise.
17253         * tree-if-conv.c (predicate_load_or_store): Likewise.
17254         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17255         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17256         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17257         (update_call_from_tree): Likewise.
17258         * tree-vect-stmts.c (vectorizable_load): Likewise.
17259         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17261 2019-08-05  Martin Liska  <mliska@suse.cz>
17263         PR c++/91334
17264         * tree-ssa-dce.c (propagate_necessity): Handle new operators
17265         with not arguments.
17266         (eliminate_unnecessary_stmts): Likewise.
17268 2019-08-05  Richard Biener  <rguenther@suse.de>
17270         PR middle-end/91169
17271         * fold-const.c (get_array_ctor_element_at_index): Create
17272         offset_ints according to the sign of the index type and treat
17273         that as signed if it is obviously so.
17275 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
17277         PR target/91341
17278         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17279         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17280         _mm256_storeu2_m128i): New function.
17282 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
17284         * config/riscv/riscv.c (riscv_promote_function_mode): New.
17285         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17287 2019-08-05  Alan Modra  <amodra@gmail.com>
17289         PR target/91349
17290         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17291         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17293 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
17295         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17296         bug that was fixed in Tcl 8.6.1.
17298 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
17300         * config/rs6000/future.md: New file.
17301         * config/rs6000/rs6000.md: Include future.md.
17302         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17304 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17306         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17307         check to use targetm.slow_unaligned_access instead.
17309         * function.c (assign_param_data_one): Remove unused data members.
17311 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
17313         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17314         build_distinct_type_copy.
17315         (simd_clone_adjust_argument_types): Ditto.
17316         (simd_clone_adjust): Call build_distinct_type_copy here.
17317         (expand_simd_clones): Ditto.
17319 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
17321         PR target/91201
17322         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17324 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
17326         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17327         from 'const void *'.
17328         (sort_locs_in_loop_postorder_cmp): Likewise.
17330 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
17332         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17333         (hot-bb-count-ws-permille): Likewise.
17334         (hot-bb-frequency-fraction): Likewise.
17335         (unlikely-bb-count-fraction): Likewise.
17336         * params.def (hot-bb-count-fraction): Rework description.
17337         (hot-bb-count-ws-permille): Likewise.
17338         (hot-bb-frequency-fraction): Likewise.
17339         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
17340         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17342 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
17344         PR target/91323
17345         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17346         Return false.
17348 2019-08-02  Richard Biener  <rguenther@suse.de>
17350         * vec.h (vec::sort): Add gcc_qsort_r support.
17351         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17352         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17353         to gcc_qsort_r style callback.
17354         (sort_locs_in_loop_postorder_cmp): Likewise.
17355         (analyze_memory_references): Use gcc_sort_r interfaces.
17356         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17358 2019-08-02  Martin Liska  <mliska@suse.cz>
17360         PR lto/91313
17361         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17362         to detect working job server.
17363         (driver::detect_jobserver): Test whether jobserver
17364         is active from GCC driver. That will prevent situation where
17365         GCC is invoked from a LD plugin and the linker already uses
17366         file descriptors suggested by make.  That leads to a wrong
17367         detection.
17368         * gcc.h (driver): Add detect_jobserver.
17369         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17370         not scanning for --jobserver-auth prefix.
17372 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
17374         PR tree-optimization/91201
17375         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17376         V16QImode extraction without sse4.1 try to use V4SImode lowpart
17377         extraction.
17379 2019-08-01  Martin Sebor  <msebor@redhat.com>
17381         PR c++/90947
17382         * tree.c (type_initializer_zero_p): Define.
17383         * tree.h (type_initializer_zero_p): New function.
17385 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
17387         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17389 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
17391         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17392         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
17393         * predict.c (maybe_hot_count_p): Likewise.
17394         (maybe_hot_bb_p): Tweak comment.
17395         (maybe_hot_edge_p): Likewise.
17396         (probably_never_executed): Likewise.  Minor tweak.
17397         (probably_never_executed_bb_p): Likewise.
17398         (unlikely_executed_edge_p): Likewise.
17399         (probably_never_executed_edge_p): Likewise.
17400         (optimize_function_for_size_p): Likewise.
17401         (optimize_function_for_speed_p): Likewise.
17402         (function_optimization_type): Likewise.
17403         (optimize_bb_for_size_p): Likewise.
17404         (optimize_bb_for_speed_p): Likewise.
17405         (bb_optimization_type): Likewise.
17406         (optimize_edge_for_size_p): Likewise.
17407         (optimize_edge_for_speed_p): Likewise.
17408         (optimize_insn_for_size_p): Likewise.
17409         (optimize_insn_for_speed_p): Likewise.
17410         (optimize_loop_for_size_p): Likewise.
17411         (optimize_loop_for_speed_p): Likewise.
17412         (optimize_loop_nest_for_speed_p): Likewise.
17413         (optimize_loop_nest_for_size_p): Likewise.
17414         (predictable_edge_p): Likewise.
17415         (handle_missing_profiles): Minor tweak.
17417 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
17419         * config/rs6000/predicates.md (pcrel_external_address): Update
17420         comment.
17422 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
17424         PR target/85693
17425         * config/i386/mmx.md (usadv8qi): New expander.
17427 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
17429         PR c++/90590
17430         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17431         with reserved names that are in a system header.
17433 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
17435         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17436         (*vec_extractv2si_0_zext_sse4): New insn pattern.
17437         (*vec_extractv2si_0_zext): Ditto.
17438         (*vec_extractv2si_1): Add (rm,x) alternative.
17439         (*vec_extractv2si_1_zext): New insn pattern.
17440         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17441         insn constraint.
17443 2019-08-01  Richard Biener  <rguenther@suse.de>
17445         * domwalk.c (bb_postorder): Remove static variable.
17446         (cmp_bb_postorder): Adjust.
17447         (sort_bbs_postorder): Adjust and use gcc_sort_r.
17448         (dom_walker::walk): Adjust.
17450 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
17452         * sort.cc (sort_r_ctx): New struct.
17453         (reorder23): Make templated on context type.
17454         (reorder45): Ditto.
17455         (cmp1): Ditto.  Adjust signature.
17456         (netsort): Ditto.
17457         (mergesort): Ditto.
17458         [CHECKING_P] (cmp2to3): New static function.  Use it...
17459         (gcc_qsort) [CHECKING_P]: ...here.
17460         (gcc_sort_r): New function.
17461         * system.h (sort_r_cmp_fn): New function typedef.
17462         (qsort_chk): Adjust signature.
17463         (gcc_sort_r): Declare.
17464         * vec.c (qsort_chk_error): Adjust.
17465         (qsort_chk): Adjust.
17467 2019-08-01  Richard Biener  <rguenther@suse.de>
17469         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17470         (compute_antic): Localize it here.
17472 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
17474         * common/config/riscv/riscv-common.c: Check -march string ends
17475         with null.
17477 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
17479         * ipa-devirt.c (type_warning_cmp): Make static.
17480         (decl_warning_cmp): Ditto.
17482 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
17484         PR target/91050
17485         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17486         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17487         use of deleted rs6000_dejagnu_cpu_index variable.
17488         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17489         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17490         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17491         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17492         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17493         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17495 2019-07-31  Richard Biener  <rguenther@suse.de>
17497         PR tree-optimization/91280
17498         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17499         Decompose MEM_REF manually for offset handling.
17501 2019-07-31  Richard Biener  <rguenther@suse.de>
17503         PR tree-optimization/91293
17504         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17505         of reduction stmts.
17507 2019-07-31  Matt Thomas  <matt@3am-software.com>
17508             Nick Hudson  <nick@nthcliff.demon.co.uk>
17509             Matthew Green  <mrg@eterna.com.au>
17510             Maya Rashish  <coypu@sdf.org>
17512         * config.gcc (hppa*-*-netbsd*): New target.
17513         * config/pa/pa-netbsd.h: New file.
17514         * config/pa/pa32-netbsd.h: New file.
17516 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
17518         PR tree-optimization/91201
17519         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17521 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
17523         * config/gcn/gcn-valu.md
17524         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17525         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17526         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17527         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17528         struct ilist. Add nops for delayeduse insns.
17529         * config/gcn/gcn.md (delayeduse): New attribute.
17530         (*movbi): Remove s_waitcnt from stores.
17531         (*mov<mode>_insn): Likewise.
17532         (*movti_insn): Likewise. Add delayeduse attribute.
17533         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17534         (atomic_store<mode>): Remove or adjust s_waitcnt.
17536 2019-07-31  Richard Biener  <rguenther@suse.de>
17538         * vr-values.h (vr_values::swap_vr_value): New.
17539         (vr_values::free_value_range): likewise.
17540         * vr-values.c (vr_values::swap_vr_value): Implement.
17541         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17542         Do not return a range or take a var.
17543         (evrp_range_analyzer::stack): Change back to recording a non-const
17544         value_range *.
17545         * gimple-ssa-evrp-analyze.c
17546         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17547         value-range.
17548         (evrp_range_analyzer::pop_to_marker): Adjust.
17549         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17550         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
17551         no longer needed value-range.
17553 2019-07-31  Martin Liska  <mliska@suse.cz>
17555         * tree-ssa-dce.c (propagate_necessity): Delete operator can
17556         have size and (or) alignment as 2nd and later arguments.
17557         Mark all of them as necessary.
17559 2019-07-31  Richard Biener  <rguenther@suse.de>
17561         PR tree-optimization/91178
17562         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17563         Use tail-recursion.
17565 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
17567         PR tree-optimization/91201
17568         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17569         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17570         TARGET_AVX512F.
17571         (reduc_plus_scal_<mode>): Improve formatting by introducing
17572         a temporary.
17574 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
17576         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17577         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17578         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17579         (aarch64_init_tme_builtins): New.
17580         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17581         (aarch64_expand_builtin_tme): New.
17582         (aarch64_expand_builtin): Handle TME builtins.
17583         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17584         __ARM_FEATURE_TME when enabled.
17585         * config/aarch64/aarch64-option-extensions.def: Add "tme".
17586         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17587         (TARGET_TME): New.
17588         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17589         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17590         UNSPECV_TCANCEL.
17591         (tstart, ttest, tcommit, tcancel): New instructions.
17592         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17593         (__tcancel, __ttest): New.
17594         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17595         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17596         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17597         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17598         * config/arm/types.md: Add new tme type attr.
17599         * doc/invoke.texi: Document "tme".
17601 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
17603         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17604         warn_unused_result attribute.
17605         (cmse_check_address_range): Add warn_unused_result attribute.
17607 2019-07-31  Richard Biener  <rguenther@suse.de>
17609         PR tree-optimization/91257
17610         * tree-vrp.c (union_ranges): Unify equality and less tests
17611         by using compare_values.  Re-order cheap tests first.
17613 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
17615         PR middle-end/91301
17616         * gimplify.c (gimplify_omp_for): If for class iterator on
17617         distribute parallel for there is no data sharing clause
17618         on inner_for_stmt, look for private clause on combined
17619         parallel too and if found, move it to inner_for_stmt.
17621 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
17623         * lra-int.h (lra_operand_data): Remove early_clobber field.
17624         (lra_insn_reg): Likewise.
17625         * lra.c (debug_operand_data): Update accordingly.
17626         (setup_operand_alternative): Likewise.
17627         (new_insn_reg): Likewise.  Remove early_clobber parameter.
17628         (collect_non_operand_hard_regs): Update call accordingly.
17629         Don't assign to lra_insn_reg::early_clobber.
17630         (add_regs_to_insn_regno_info): Remove early_clobber parameter
17631         and update calls to new_insn_reg.
17632         (lra_update_insn_regno_info): Update calls accordingly.
17633         * lra-constraints.c (update_and_check_small_class_inputs): Take the
17634         alternative number as a parameter and test whether the operand
17635         is earlyclobbered in that particular alternative.
17636         (process_alt_operands): Update call accordingly.  Use per-alternative
17637         checks for earyclobber here too.
17638         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17639         against zero for IRA_UNKNOWN_ALT.
17641 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
17643         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17645 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
17647         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17648         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17650 2019-07-30  Martin Liska  <mliska@suse.cz>
17652         PR ipa/89330
17653         * cgraph.c (cgraph_edge::make_direct): Use
17654         edge->indirect_unknown_callee as edge->resolve_speculation can
17655         deallocate edge which is this pointer.
17657 2019-07-30  Richard Biener  <rguenther@suse.de>
17659         PR tree-optimization/91257
17660         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17662 2019-07-30  Martin Liska  <mliska@suse.cz>
17664         * doc/invoke.texi: Document new behavior.
17665         * lto-wrapper.c (cpuset_popcount): New function
17666         is a copy of libgomp/config/linux/proc.c.
17667         (init_num_threads): Likewise.
17668         (run_gcc): Automatically detect core count for -flto.
17669         (jobserver_active_p): New function.
17671 2019-07-30  Richard Biener  <rguenther@suse.de>
17673         PR tree-optimization/91257
17674         * bitmap.h (bitmap_ior_into_and_free): Declare.
17675         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17676         whether to add the unliked element to the freelist.
17677         (bitmap_list_insert_element_after): Add defaulted param for
17678         an already allocated element.
17679         (bitmap_ior_into_and_free): New function.
17680         * tree-ssa-structalias.c (condense_visit): Reduce the
17681         ponts-to and edge bitmaps of the SCC members in a
17682         logarithmic fashion rather than all to one.
17684 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
17686         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17687         parameter.  When nonnull, make sure that the addition or subtraction
17688         has the same condition.
17689         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17690         for CFN_COND_MUL too.
17692 2019-07-30  Richard Biener  <rguenther@suse.de>
17694         PR tree-optimization/91291
17695         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17696         constant values.
17698 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
17700         PR middle-end/91216
17701         * omp-low.c (global_nonaddressable_vars): New variable.
17702         (use_pointer_for_field): For global decls, if they are non-addressable,
17703         remember it in the global_nonaddressable_vars bitmap, if they are
17704         addressable and in the global_nonaddressable_vars bitmap, ignore their
17705         TREE_ADDRESSABLE bit.
17706         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17707         vars in global_nonaddressable_vars bitmap.
17708         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17710         PR target/91150
17711         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17712         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
17713         comparison to unsigned HOST_WIDE_INT before shifting it left.
17715 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
17717         * config/i386/i386.md (movstrict<mode>): Use register_operand
17718         predicate for operand 0.  Add expander condition.  Assert that
17719         operand 0 is a SUBREG RTX.
17720         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17721         Update operand constraints and insn condition.
17722         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17723         (zero_extendqihi2_and): Do not call gen_movstrictqi.
17724         (*setcc_qi_slp): Use register_operand predicate for operand 0.
17725         Update operand 0 constraints.
17726         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17728 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17730         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17731         when -m{code,data}-region are used without -mlarge.
17732         * config/msp430/msp430.c (msp430_option_override): Error when a
17733         non-default code or data region is used without -mlarge.
17734         (msp430_section_attr): Emit a warning and do not add upper/lower/either
17735         attributes when they are used without -mlarge.
17737 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17739         PR target/70320
17740         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17742 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17744         PR middle-end/91242
17745         * wide-int.h (generic_wide_int::sext_elt): New function.
17746         * inchash.h (hash::add_wide_int): Use it instead of elt.
17748 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17750         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17751         CODE_FOR_arm_##.
17752         * config/arm/arm.md (<crc_variant>): Rename to...
17753         (arm_<crc_variant>): ... This.
17754         (<cdp>): Rename to...
17755         (arm_<cdp>): ... This.
17756         (<ldc>): Rename to...
17757         (arm_<ldc>): ... This.
17758         (<stc>): Rename to...
17759         (arm_<stc>): ... This.
17760         (<mcr>): Rename to...
17761         (arm_<mcr>): ... This.
17762         (<mrc>): Rename to...
17763         (arm_<mrc>): ... This.
17764         (<mcrr>): Rename to...
17765         (arm_<mcrr>): ... This.
17766         (<mrrc>): Rename to...
17767         (arm_<mrrc>): ... This.
17769 2019-07-29  Richard Biener  <rguenther@suse.de>
17771         PR tree-optimization/91257
17772         * tree-ssa-sccvn.h (struct vn_avail): New.
17773         (struct vn_ssa_aux): Add avail member.
17774         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17775         member, add m_avail_freelist one.
17776         (rpo_elim::~rpo_elim): Remove.
17777         (rpo_elim::eliminate_avail): Adjust to new avail tracking
17778         data structure.
17779         (rpo_elim::eliminate_push_avail): Likewise.
17780         (do_unwind): Likewise.
17781         (do_rpo_vn): Likewise.
17783 2019-07-29  Richard Biener  <rguenther@suse.de>
17785         PR tree-optimization/91257
17786         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17787         most cases, instead call compare_values which handles the
17788         symbolic ranges we handle specially.
17789         (compare_values_warnv): Do not call operand_less_p but open-code
17790         the effective fold calls.  Avoid converting so much.
17792 2019-07-29  Martin Liska  <mliska@suse.cz>
17794         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17795         remove LHS of operator new call.  It's handled latter.
17797 2019-07-29  Richard Biener  <rguenther@suse.de>
17799         PR tree-optimization/91267
17800         * vr-values.c (vr_values::update_value_range): Add early return
17801         for effectively VARYING lattice entry.
17803 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17805         PR debug/86638
17806         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17807         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17808         necessary if keep_all_vdefs_p is true.
17809         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17810         that keep_all_vdefs_p is false.
17811         (mark_all_reaching_defs_necessary): Likewise.
17812         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17814 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17816         * common.opt (Og): Change the initial value of flag_dse to 0.
17817         * opts.c (default_options_table): Move OPT_ftree_dse from
17818         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
17819         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
17820         entry before the OPT_ftree_sra entry.
17821         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17822         of flags disabled by Og.
17824 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17826         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17827         variables for -Og.
17829 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17831         * doc/sourcebuild.texi (check-function-bodies): Document.
17833 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17835         * simplify-rtx.c (simplify_const_unary_operation): Fold a
17836         VEC_DUPLICATE of a fixed-length vector even if the result
17837         is variable-length.  Likewise fold a duplicate of a
17838         variable-length vector if the variable-length vector is
17839         itself a duplicate of a fixed-length sequence.
17840         (test_vector_ops_duplicate): Test more cases.
17842 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
17844         * vector-builder.h (vector_builder): Add a shape template parameter.
17845         (vector_builder::new_unary_operation): New function, generalizing
17846         the old tree_vector_builder function.
17847         (vector_builder::new_binary_operation): Likewise.
17848         (vector_builder::binary_encoded_nelts): Likewise.
17849         * int-vector-builder.h (int_vector_builder): Update template
17850         parameters to vector_builder.
17851         (int_vector_builder::shape_nelts): New function.
17852         * rtx-vector-builder.h (rtx_vector_builder): Update template
17853         parameters to vector_builder.
17854         (rtx_vector_builder::shape_nelts): New function.
17855         (rtx_vector_builder::nelts_of): Likewise.
17856         (rtx_vector_builder::npatterns_of): Likewise.
17857         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17858         * tree-vector-builder.h (tree_vector_builder): Update template
17859         parameters to vector_builder.
17860         (tree_vector_builder::shape_nelts): New function.
17861         (tree_vector_builder::nelts_of): Likewise.
17862         (tree_vector_builder::npatterns_of): Likewise.
17863         (tree_vector_builder::nelts_per_pattern_of): Likewise.
17864         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17865         (tree_vector_builder::new_binary_operation): Delete.
17866         (tree_vector_builder::binary_encoded_nelts): Likewise.
17867         * simplify-rtx.c: Include rtx-vector-builder.h.
17868         (distributes_over_addition_p): New function.
17869         (simplify_const_unary_operation)
17870         (simplify_const_binary_operation): Generalize handling of vector
17871         constants to include variable-length vectors.
17872         (test_vector_ops_series): Add more tests.
17874 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
17876         PR lto/91222
17877         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17878         than INDENTIFIER_POINTER.
17880 2019-07-28  Martin Liska  <mliska@suse.cz>
17882         PR ipa/89330
17883         * cgraph.c (symbol_table::create_edge): Always allocate
17884         a cgraph_edge.
17885         (symbol_table::free_edge): Store summary_id to
17886         edge_released_summary_ids if != -1;
17887         * cgraph.h (NEXT_FREE_NODE): Remove.
17888         (SET_NEXT_FREE_NODE): Likewise.
17889         (NEXT_FREE_EDGE): Likewise.
17890         (symbol_table::release_symbol): Store summary_id to
17891         cgraph_released_summary_ids if != -1;
17892         (symbol_table::allocate_cgraph_symbol): Always allocate
17893         a cgraph_node.
17895 2019-07-28  Alan Modra  <amodra@gmail.com>
17897         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17898         gen_sibcall.
17900 2019-07-28  Alan Modra  <amodra@gmail.com>
17902         PR target/91135
17903         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17904         define.
17905         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17906         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17907         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17909 2019-07-28  Alan Modra  <amodra@gmail.com>
17911         PR target/91050
17912         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17913         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17914         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17915         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17916         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17917         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17918         in asm_default spec.
17919         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17920         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17922 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
17924         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17926 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
17928         PR target/89517
17929         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17930         * config/aarch64/aarch64-option-extensions.def: Add new comments
17931         and restore easier to read options.
17933 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
17935         * convert.c (convert_to_real_1): Move part of conversion code...
17936         * match.pd: ...To here.
17938 2019-07-26  Martin Jambor  <mjambor@suse.cz>
17940         PR ipa/89330
17941         * ipa-inline-transform.c (check_speculations_1): New function.
17942         (push_all_edges_in_set_to_vec): Likewise.
17943         (check_speculations): Use check_speculations_1, new parameter
17944         new_edges.
17945         (inline_call): Pass new_edges to check_speculations.
17946         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17947         NULL.
17948         (speculation_useful_p): Early return true if edge is inlined, remove
17949         later checks for inline_failed.
17951 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
17953         PR rtl-optimization/91223
17954         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17955         matching with INOUT operand.
17957 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17959         * stmt.c (expand_case): Try to narrow the index type if it's larger
17960         than a word.  Tidy up.
17962 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17964         * cif-code.def (NEVER_CALL): New code.
17965         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17966         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17968 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
17970         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17971         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17973 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
17975         * ipa-devirt.c (add_type_duplicate): Fix return value.
17977 2019-07-25  Richard Biener  <rguenther@suse.de>
17979         * tree-vrp.c (extract_range_from_multiplicative_op): Add
17980         type parameter and use it instead of guessing expression
17981         type from the first operand.
17982         (extract_range_from_binary_expr): Pass expr_type down.
17984 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17986         * config/arm/arm.md (SATrev): Change to code attribute.
17987         (*satsi_<SAT:code>): Adjust for the above.
17988         (*satsi_<SAT:code>_shift): Likewise.
17990 2019-07-25  Richard Biener  <rguenther@suse.de>
17992         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17993         Make value_range * temporary const.
17994         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17995         Likewise.
17996         (evrp_range_analyzer::record_ranges_from_): Likewise.
17997         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17998         deal with having recorded a const one.
17999         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18000         Return a const value_range *.
18001         (evrp_range_analyzer::pop_value_range): Likewise.
18002         (evrp_range_analyzer::stack): Record const value_range *s.
18003         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18004         Adjust.
18005         * gimple-ssa-sprintf.c (get_int_range): Likewise.
18006         (format_integer): Likewise.
18007         (sprintf_dom_walker::handle_gimple_call): Likewise.
18008         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18009         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18010         (vrp_prop::get_value_range): Adjust.
18011         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18012         modifying the lattice in-place.
18013         (vrp_prop::visit_stmt): Likewise.
18014         * vr-values.c (vr_values::get_lattice_entry): New private method.
18015         (vr_values::get_value_range): Wrap it and return a const
18016         value_range *.
18017         (vr_values::set_def_to_varying): New.
18018         (vr_values::set_defs_to_varying): Use it.
18019         (vr_values::update_value_range): Likewise.
18020         (vr_values::vrp_stmt_computes_nonzero): Adjust.
18021         (values::op_with_constant_singleton_va): Likewise.
18022         (vr_values::extract_range_for_var_from_co): Likewise.
18023         (vr_values::extract_range_from_ssa_name): Likewise.
18024         (vr_values::extract_range_from_cond_expr): Likewise.
18025         (vr_values::extract_range_basic): Likewise.
18026         (compare_ranges): Take const value_range *, adjust.
18027         (compare_range_with_value): Likewise.
18028         (vrp_valueize): Adjust.
18029         (vrp_valueize_1): Likewise.
18030         (vr_values::get_vr_for_comparison): Return a const value_range *.
18031         (vr_values::compare_name_with_value): Adjust.
18032         (vr_values::compare_names): Likewise.
18033         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18034         Likewise.
18035         (vr_values::vrp_evaluate_conditional): Likewise.
18036         (find_case_label_ranges): Take a const value_range *.
18037         (vr_values::vrp_visit_switch_stmt): Adjust.
18038         (vr_values::extract_range_from_phi_node): Likewise.
18039         (vr_values::simplify_div_or_mod_using_ran): Likewise.
18040         (vr_values::simplify_abs_using_ranges): Likewise.
18041         (test_for_singularity): Take a const value_range *.
18042         (range_fits_type_p): Likewise.
18043         (vr_values::simplify_cond_using_ranges_1): Adjust.
18044         (vr_values::simplify_cond_using_ranges_2): Likewise.
18045         (vr_values::simplify_switch_using_ranges): Likewise.
18046         (vr_values::simplify_float_conversion_usi): Likewise.
18047         (vr_values::two_valued_val_range_p): Likewise.
18048         * vr-values.h (vr_values::get_value_range): Return a const
18049         value_range *.
18050         (vr_values::set_def_to_varying): New.
18051         (vr_values::get_lattice_entry): New private method.
18052         (vr_values::get_vr_for_comparison): Return a const value_range *.
18054 2019-07-25  Martin Liska  <mliska@suse.cz>
18055             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
18057         PR c++/23383
18058         * common.opt: Add -fallocation-dce
18059         * gimple.c (gimple_call_operator_delete_p): New.
18060         * gimple.h (gimple_call_operator_delete_p): Likewise.
18061         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18062         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18063         DECL_IS_OPERATOR_DELETE_P.
18064         (mark_all_reaching_defs_necessary_1): Likewise.
18065         (propagate_necessity): Likewise.
18066         (eliminate_unnecessary_stmts): Handle
18067         gimple_call_operator_delete_p.
18068         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18069         Add packing of OPERATOR_DELETE.
18070         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18071         Similarly here.
18072         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18073         (DECL_SET_IS_OPERATOR_DELETE): New.
18074         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18076 2019-07-25  Martin Liska  <mliska@suse.cz>
18078         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18079         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18080         * coverage.c (coverage_begin_function): Likewise.
18081         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18082         * gimple.c (gimple_call_nonnull_result_p): Likewise.
18083         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18084         (sem_item::hash_referenced_symbol_properties): Likewise.
18085         * lto-streamer-out.c (hash_tree): Likewise.
18086         * predict.c (expr_expected_value_1): Likewise.
18087         * tree-inline.c (expand_call_inline): Likewise.
18088         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18089         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18090         * tree-core.h (enum function_decl_type): New enum.
18091         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18092         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18093         (set_function_decl_type): Likewise.
18094         (DECL_IS_OPERATOR_NEW_P): New.
18095         (DECL_SET_IS_OPERATOR_NEW): Likewise.
18096         (DECL_LAMBDA_FUNCTION): Likewise.
18097         (DECL_LAMBDA_FUNCTION_P): Likewise.
18098         (DECL_IS_OPERATOR_NEW): Remove.
18099         (DECL_SET_LAMBDA_FUNCTION): Likewise.
18101 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
18103         * ipa-profile.c (get_most_common_single_value): Use
18104         get_nth_most_common_value.
18105         * profile.c (sort_hist_value): New function.
18106         (compute_value_histograms): Call sort_hist_value to sort the
18107         values after loading from disk.
18108         * value-prof.c (get_most_common_single_value): Rename to ...
18109         get_nth_most_common_value.  Add input params n, return
18110         the n_th value and count.
18111         (gimple_divmod_fixed_value_transform): Use
18112         get_nth_most_common_value.
18113         (gimple_ic_transform): Likewise.
18114         (gimple_stringops_transform): Likewise.
18115         * value-prof.h (get_most_common_single_value): Add input params
18116         n, default to 0.
18118 2019-07-25  Richard Biener  <rguenther@suse.de>
18120         PR tree-optimization/91236
18121         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18122         size of CONSTRUCTOR write.  Fix buffer size we pass to
18123         native_encode_expr.
18125 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18127         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18128         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18129         r273773.
18131 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18133         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18134         explicitly disabled with --disable-initfini-array.
18136 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18138         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18139         if-exists.
18141 2019-07-24  Martin Sebor  <msebor@redhat.com>
18143         PR tree-optimization/91183
18144         PR tree-optimization/86688
18145         * builtins.c (compute_objsize): Handle MEM_REF.
18146         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18147         (get_min_string_length): Remove.
18148         (count_nonzero_bytes): New function.
18149         (handle_char_store): Rename...
18150         (handle_store): to this.  Handle multibyte stores via integer types.
18151         (strlen_check_and_optimize_stmt): Adjust conditional and the called
18152         function name.
18154 2019-07-24  Martin Sebor  <msebor@redhat.com>
18156         PR driver/80545
18157         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18158         (diagnostic_report_diagnostic): Same.
18159         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18160         (diagnostic_context::lang_mask): New data member.
18161         * ipa-pure-const.c (suggest_attribute): Use
18162         lang_hooks.option_lang_mask ().
18163         * opts-common.c (option_enabled): Handle new argument.
18164         (get_option_state): Pass an additional argument.
18165         * opts.c (print_filtered_help): Print supported languages for
18166         unsupported options.  Adjust printing of current state.
18167         * opts.h (option_enabled): Add argument.
18168         * toplev.c (print_switch_values): Use lang_mask.
18169         (general_init): Set global_dc->lang_mask.
18171 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
18173         PR bootstrap/87030
18174         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18176 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
18178         * cgraphunit.c (symbol_table::compile): Start and stop
18179         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18180         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18182 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
18184         * gimplify.c (flag_instrument_functions_exclude_p): Include
18185         namespace/class information in the printable name.
18186         * opts.c (add_comma_separated_to_vector): Add NUL terminator
18187         to tokens entered into the vector.
18189 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
18191         * tree-nested.c (build_simple_mem_ref_notrap): New function.
18192         (get_static_chain): Call it instead of build_simple_mem_ref.
18193         (get_frame_field): Likewise.
18194         (get_nonlocal_debug_decl): Likewise.
18195         (convert_nonlocal_reference_op): Likewise.
18197 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
18199         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18200         declaration.
18201         (arc_compute_frame_size): Millicode is disabled when compiling
18202         ISR.
18203         (arc_return_address_register): Likewise.
18204         (arc_compute_function_type): Likewise.
18205         (arc_compute_frame_size): Likewise.
18206         (secondary_reload_info): Likewise.
18207         (arc_get_unalign): Likewise.
18208         (arc_can_use_return_insn): Declare.
18209         * config/arc/arc.c (AUX_LP_START): Define
18210         (AUX_LP_END): Likewise.
18211         (arc_frame_info): Update gmask member to 64-bit datum.
18212         (GMASK_LEN): Update.
18213         (arc_compute_function_type): Make it static, move it forward.
18214         (arc_must_save_register): Update, consider the extra regs.
18215         (arc_compute_millicode_save_restore_regs): Update to use the 64
18216         bit gmask.
18217         (arc_compute_frame_size): Likewise.
18218         (arc_enter_leave_p): Likewise.
18219         (arc_save_callee_saves): Likewise.
18220         (arc_restore_callee_saves): Likewise.
18221         (arc_save_callee_enter): Likewise.
18222         (arc_restore_callee_leave): Likewise.
18223         (arc_save_callee_milli): Likewise.
18224         (arc_restore_callee_milli): Likewise.
18225         (arc_expand_prologue): Add new interrupt handling.
18226         (arc_return_address_register): Make it static, move it forward.
18227         (arc_expand_epilogue): Add new interrupt handling.
18228         (arc_get_unalign): Delete.
18229         (arc_epilogue_uses): Make sure we do not remove the extra
18230         saved/restored registers when interrupt.
18231         (arc_can_use_return_insn): New function.
18232         (push_reg): Likewise.
18233         (pop_reg): Likewise.
18234         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18235         procedures.
18236         (arc_restore_callee_saves): Likewise, but restoring.
18237         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18238         (R33_REG): Likewise.
18239         (R34_REG): Likewise.
18240         (R35_REG): Likewise.
18241         (R36_REG): Likewise.
18242         (R37_REG): Likewise.
18243         (R38_REG): Likewise.
18244         (R39_REG): Likewise.
18245         (R45_REG): Likewise.
18246         (R46_REG): Likewise.
18247         (R47_REG): Likewise.
18248         (R48_REG): Likewise.
18249         (R49_REG): Likewise.
18250         (R50_REG): Likewise.
18251         (R51_REG): Likewise.
18252         (R52_REG): Likewise.
18253         (R53_REG): Likewise.
18254         (R54_REG): Likewise.
18255         (R55_REG): Likewise.
18256         (R56_REG): Likewise.
18257         (R58_REG): Likewise.
18258         (type): Add rtie attribute.
18259         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18260         (movsi_insn): Accept moves to lp_count.
18261         (rtie): Update pattern.
18262         (simple_return): Simplify it, don't use this pattern as a return
18263         from an interrupt.
18264         (arc600_rtie): New pattern.
18265         (p_return_i): Clean up.
18266         (return): Likewise.
18267         * config/arc/builtins.def (rtie): Only available for non ARC6xx
18268         family CPUs.
18269         * config/arc/predicates.md (move_src_operand): Consider lp_count
18270         as a register.
18272 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
18274         * config/s390/predicates.md (addv_const_operand): New predicate.
18275         * config/s390/s390-modes.def (CCO): New condition code mode.
18276         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18277         (s390_branch_condition_mask): Likewise.
18278         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18279         ("mulv<mode>4"): New expanders.
18280         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18281         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18282         pattern definitions.
18284 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18286         PR middle-end/91166
18287         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18288         (define_predicates): Add entry for uniform_vector_p.
18289         (vec_same_elem_p): New match pattern.
18291 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
18293         PR bootstrap/87030
18294         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18295         * config/i386/darwin32-biarch.h .. to here.
18296         * config/i386/darwin64-biarch.h: Adjust comments.
18297         * config/rs6000/darwin32-biarch.h: Likewise.
18298         * config/rs6000/darwin64-biarch.h: Likewise.
18299         * config.gcc: Missed commit from r273746
18300         (*-*-darwin*): Don't include CPU t-darwin here.
18301         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18302         an error message if i686-darwin configuration is attempted for
18303         Darwin >= 18.
18305 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
18307         PR bootstrap/87030
18308         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18309         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18310         an error message if i686-darwin configuration is attempted for
18311         Darwin >= 18.
18312         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18313         (powerpc-*-darwin*): Use biarch files where needed.
18314         (powerpc64-*-darwin*): Likewise.
18315         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18316         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18317         arch case.
18318         * config/i386/darwin32-biarch.h: New.
18319         * config/i386/darwin64.h: Rename.
18320         * config/i386/darwin64-biarch.h: To this.
18321         * config/i386/t-darwin: Rename.
18322         * config/i386/t-darwin32-biarch: To this.
18323         * config/i386/t-darwin64: Rename.
18324         * config/i386/t-darwin64-biarch: To this.
18325         * config/rs6000/darwin32-biarch.h: New.
18326         * config/rs6000/darwin64.h: Rename.
18327         * config/rs6000/darwin64-biarch.h: To this.
18328         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18329         arch case.
18330         * config/rs6000/t-darwin8: Rename.
18331         * config/rs6000/t-darwin32-biarch: To this.
18332         * config/rs6000/t-darwin64 Rename.
18333         * config/rs6000/t-darwin64-biarch: To this.
18335 2019-07-23  Martin Sebor  <msebor@redhat.com>
18337         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18339 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
18341         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18342         (rh): New alias for it.
18344 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
18346         * gdbhooks.py: Pass replace=True to
18347         gdb.printing.register_pretty_printer.
18349 2019-07-23  Richard Biener  <rguenther@suse.de>
18351         PR debug/91231
18352         * lto-streamer-in.c (input_function): Drop inline-entry markers
18353         that ended up with an unknown location block.
18355 2019-07-23  Richard Biener  <rguenther@suse.de>
18357         PR tree-optimization/83518
18358         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18359         init from a constant even when partial defs are already recorded.
18361 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18363         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18364         * config/i386/znver1.md: Enable patterns for znver2 and add store
18365         variants which use extra AGU unit.
18367 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18369         * config/i386/i386-options.c (ix86_option_override_internal): Default
18370         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18371         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18372         for ZNVER2.
18374 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
18376         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18377         (znver2_costs): Update 256 bit SSE costs and multiplication.
18379 2019-07-23  Jan Beulich  <jbeulich@suse.com>
18381         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18382         Require only AVX512F.
18383         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
18384         alternative expanding to vpternlog.
18386 2019-07-23  Martin Liska  <mliska@suse.cz>
18388         * dwarf2out.c (gen_producer_string): Canonize -flto=N
18389         to -flto in dwarf producer string.
18391 2019-07-23  Richard Biener  <rguenther@suse.de>
18393         * tree-cfg.c (label_for_bb): Remove global var.
18394         (main_block_label): Take label_for_bb as argument.
18395         (cleanup_dead_labels_eh): Likewise, adjust.
18396         (cleanup_dead_labels): Adjust.
18398 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
18400         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18401         Configurations): Add documentation for __builtin_mtfsf.
18403 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
18405         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18406         * config/riscv/riscv.c (riscv_constant_alignment): Use
18407         riscv_align_data_type.
18408         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18409         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18410         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18411         * config/riscv/riscv.opt (malign-data): New.
18412         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18414 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
18416         * cgraph.c (dump_graphviz): New function.
18417         * cgraph.h (dump_graphviz): New function.
18418         * symtab.c (dump_graphviz): New function.
18420 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
18422         * config/aarch64/aarch64-simd.md
18423         (*aarch64_simd_sra<mode>): New.
18424         * config/aarch64/iterators.md
18425         (SHIFTRT): New iterator.
18426         (sra_op): New attribute.
18428 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18430         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18431         callee-saved regs R4->R10 in an interrupt function that calls another
18432         function.
18434 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
18436         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18437         (_mm_blendv_epi8): New.
18439 2019-07-22  Richard Biener  <rguenther@suse.de>
18441         PR tree-optimization/91221
18442         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18443         restrict partial-def handling of empty constructors and
18444         memset to refs with known offset.
18446 2019-07-22  Jan Beulich  <jbeulich@suse.com>
18448         * config/i386/sse.md (ternlogsuffix): New.
18449         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18450         AVX512F is in use.
18451         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18453 2019-07-22  Martin Liska  <mliska@suse.cz>
18455         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18456         comment.
18457         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18459 2019-07-22  Martin Liska  <mliska@suse.cz>
18461         * lto-section-in.c (lto_get_section_data):
18462         Use new function get_compression.
18463         * lto-streamer-out.c (produce_lto_section): Use
18464         set_compression to encode compression algorithm.
18465         * lto-streamer.h (struct lto_section): Do not
18466         use bitfields in the format.
18468 2019-07-22  Martin Liska  <mliska@suse.cz>
18470         PR driver/91172
18471         * opts-common.c (decode_cmdline_option): Decode
18472         argument of -Werror and check it for a wrong language.
18473         * opts-global.c (complain_wrong_lang): Remove such case.
18475 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
18477         * config/arc/arc.c (prepare_move_operands): Always use an
18478         intermediate register when storing a TLS symbols.
18480 2019-07-22  Stafford Horne  <shorne@gmail.com>
18482         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18483         force_reg.
18485 2019-07-22  Stafford Horne  <shorne@gmail.com>
18487         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18488         and munordered-float validations.
18489         * config/or1k/constraints.md (d): New register constraint.
18490         * config/or1k/predicates.md (fp_comparison_operator): New.
18491         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18492         operands.
18493         (or1k_expand_compare): Normalize unordered comparisons.
18494         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18495         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18496         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18497         * config/or1k/or1k.md (type): Add fpu.
18498         (fpu): New instruction reservation.
18499         (F, f, fr, fi, FI, FOP, fop): New.
18500         (<fop><F:mode>3): New ALU instruction definition.
18501         (float<fi><F:mode>2): New conversion instruction definition.
18502         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18503         (fpcmpcc): New code iterator.
18504         (*sf_fp_insn): New instruction definition.
18505         (cstore<F:mode>4): New expand definition.
18506         (cbranch<F:mode>4): New expand definition.
18507         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18508         munordered-float): New options.
18509         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18510         munordered-float.
18512 2019-07-22  Stafford Horne  <shorne@gmail.com>
18514         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18515         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18516         documenation to be more clear.
18517         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18518         more clear.
18519         * config/or1k/or1k.opt (mrori): New option.
18520         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18521         msfimm, mshftimm): Rewrite documentation to be more clear.
18522         * config/or1k/or1k.md (insn_support): Add ror and rori.
18523         (enabled): Add conditions for ror and rori.
18524         (rotrsi3): Replace condition for shftimm with ror and rori.
18526 2019-07-22  Stafford Horne  <shorne@gmail.com>
18528         PR target/90363
18529         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18530         (extend<mode>si2): Update predicate.
18531         * config/or1k/predicates.md (volatile_mem_operand): New.
18532         (reg_or_mem_operand): New.
18534 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
18536         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18537         * config/rs6000/rs6000-call.c: ... to here.
18539 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18541         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18542         memory.
18544 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18546         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18548 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18550         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18552 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18554         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18555         (any_memory_operand): New predicate.
18556         (reg_or_mem_operand): Use it.
18558 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
18560         PR target/91204
18561         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18563 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
18565         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18566         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18568 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
18570         * tree.def (OMP_LOOP): New tree code.
18571         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18572         (enum omp_clause_bind_kind): New enum.
18573         (struct tree_omp_clause): Add subcode.bind_kind.
18574         * tree.h (OMP_LOOP_CHECK): Rename to ...
18575         (OMP_LOOPING_CHECK): ... this.
18576         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18577         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18578         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18579         (OMP_CLAUSE_BIND_KIND): Define.
18580         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18581         bind clause entries.
18582         (walk_tree_1): Handle OMP_CLAUSE_BIND.
18583         * tree-pretty-print.c (dump_omp_clause): Likewise.
18584         (dump_generic_node): Handle OMP_LOOP.
18585         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18586         (in_omp_construct): New variable.
18587         (is_gimple_stmt): Handle OMP_LOOP.
18588         (gimplify_scan_omp_clauses): For lastprivate don't set
18589         check_non_private if code == OMP_LOOP.  For reduction clause
18590         on OMP_LOOP combined with parallel or teams propagate as shared
18591         on the combined construct.  Handle OMP_CLAUSE_BIND.
18592         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18593         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18594         for constructs from a loop construct to gimplify_scan_omp_clauses.
18595         Don't predetermine iterator linear on OMP_SIMD from loop construct.
18596         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18597         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18598         to match the implicit ORT_TARGET construct around whole body.
18599         Temporarily clear in_omp_construct when processing body.
18600         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
18601         etc. temporarily set in_omp_construct when processing body.
18602         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18603         * omp-low.c (struct omp_context): Add loop_p.
18604         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18605         in that the original var might be private.
18606         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18607         (check_omp_nesting_restrictions): Adjust nesting restrictions for
18608         addition of loop construct.
18609         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18611         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18612         lastprivate non-addressable iterator of a collapse(1) simd.
18614 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
18616         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18617         as in rs6000.c.
18619 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
18621         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18622         refer to default conditions.  Warn for the 'y' spec which is ignored
18623         by current linkers.
18625 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
18627         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18628         cpu_supports_info, builtin_hash_struct, builtin_hasher,
18629         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18630         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18631         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18632         init_cumulative_args, rs6000_promote_function_mode,
18633         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18634         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18635         rs6000_function_arg_boundary, rs6000_parm_offset,
18636         rs6000_parm_start, rs6000_arg_size,
18637         rs6000_darwin64_record_arg_advance_flush,
18638         rs6000_darwin64_record_arg_advance_recurse,
18639         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18640         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18641         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18642         rs6000_mixed_function_arg, rs6000_psave_function_arg,
18643         rs6000_finish_function_arg, rs6000_function_arg,
18644         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18645         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18646         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18647         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18648         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18649         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18650         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18651         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18652         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18653         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18654         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18655         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18656         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18657         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18658         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18659         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18660         get_element_number, altivec_expand_vec_set_builtin,
18661         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18662         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18663         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18664         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18665         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18666         rs6000_expand_builtin, rs6000_vector_type,
18667         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18668         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18669         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18670         to rs6000-call.c.
18671         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18672         cpu_supports_info, builtin_hash_struct, builtin_hasher,
18673         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18674         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18675         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18676         init_cumulative_args, rs6000_promote_function_mode,
18677         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18678         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18679         rs6000_function_arg_boundary, rs6000_parm_offset,
18680         rs6000_parm_start, rs6000_arg_size,
18681         rs6000_darwin64_record_arg_advance_flush,
18682         rs6000_darwin64_record_arg_advance_recurse,
18683         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18684         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18685         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18686         rs6000_mixed_function_arg, rs6000_psave_function_arg,
18687         rs6000_finish_function_arg, rs6000_function_arg,
18688         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18689         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18690         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18691         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18692         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18693         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18694         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18695         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18696         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18697         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18698         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18699         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18700         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18701         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18702         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18703         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18704         get_element_number, altivec_expand_vec_set_builtin,
18705         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18706         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18707         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18708         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18709         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18710         rs6000_expand_builtin, rs6000_vector_type,
18711         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18712         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18713         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18714         to here from rs6000.c.
18715         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18716         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18717         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18718         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18719         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18720         rs6000_return_in_memory, rs6000_return_in_msb,
18721         rs6000_pass_by_reference, setup_incoming_varargs,
18722         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18723         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18724         rs6000_function_arg_padding, rs6000_function_arg,
18725         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18726         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18727         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18728         rs6000_passes_long_double, rs6000_passes_vector,
18729         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18730         altivec_builtin_mask_for_load) Add declarations.
18731         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18732         * config/config.gcc: Add new source file rs6000-call.c to garbage
18733         collector and extra_objs.
18735 2019-07-19  Jeff Law  <law@redhat.com>
18737         PR tree-optimization/86061
18738         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18739         strncpy.  Drop some trivial dead code.
18740         (maybe_trim_memstar_call): Handle strncpy.
18742 2019-07-19  Richard Biener  <rguenther@suse.de>
18744         PR tree-optimization/91211
18745         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18746         memset encoding size.
18748 2019-07-19  Uroš Bizjak  <ubizjak@gmail.com>
18750         PR target/91204
18751         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18753 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
18755         PR ipa/91194
18756         * ipa-inline.c (recursive_inlining): Fix limits check.
18758 2019-07-19  Richard Biener  <rguenther@suse.de>
18760         PR tree-optimization/91200
18761         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18762         no PHI nodes in middle-bb.
18764 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
18766         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18767         to +sve-bitperm.
18768         * config/aarch64/aarch64-option-extensions.def: Likewise.
18770 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
18772         PR middle-end/91190
18773         * function.c (insert_temp_slot_address): Store into the hash table
18774         a copy of address to avoid RTL sharing issues.
18776 2019-07-19  Richard Biener  <rguenther@suse.de>
18778         PR tree-optimization/91207
18779         Revert
18780         2019-07-17  Richard Biener  <rguenther@suse.de>
18782         PR tree-optimization/91178
18783         * tree-vect-stmts.c (get_group_load_store_type): For SLP
18784         loads with a gap larger than the vector size always use
18785         VMAT_STRIDED_SLP.
18786         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18787         avoid loading vectors that are only contained in the gap
18788         and thus are not needed.
18790 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
18792         * config/i386/i386.md (*addqi_2_slp): Remove.
18793         (*<code>qi_2_slp): Ditto.
18795 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
18797         * config/rs6000/predicates.md (prefixed_mem_operand): Call
18798         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18799         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18800         Rename function from rs6000_prefixed_address.
18801         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18802         TARGET_HAS_TOC.
18803         (TARGET_TOC): Likewise.
18804         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18805         rs6000.h.
18806         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18807         TARGET_HAS_TOC.
18808         (TARGET_TOC): Likewise.
18809         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18810         rs6000.h.
18811         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18812         TARGET_HAS_TOC.
18813         (TARGET_TOC): Likewise.
18814         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18815         check to require -mcmodel=medium for pc-relative addressing.
18816         (create_TOC_reference): Add assertion for TARGET_TOC.
18817         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18818         TARGET_NO_TOC.
18819         (rs6000_emit_move): Likewise.
18820         (TOC_alias_set): Rename TOC alias set static variable from 'set'
18821         to 'TOC_alias_set'.
18822         (get_TOC_alias_set): Likewise.
18823         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18824         TARGET_NO_TOC.
18825         (rs6000_can_eliminate): Likewise.
18826         (rs6000_prefixed_address_mode_p): Rename function from
18827         rs6000_prefixed_address.
18828         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18829         TARGET_HAS_TOC and not pc-relative.
18830         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18831         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18832         TARGET_HAS_TOC.
18833         (TARGET_TOC): Likewise.
18834         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18835         rs6000.h.
18837 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
18839         PR target/91188
18840         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18841         for operand 0.  Do not use (match_dup) to match operand 1 with
18842         operand 0.  Add check in insn constraint that either input operand
18843         matches operand 0.  Use SWI12 mode iterator to also handle
18844         HImode operands.
18845         (*and<mode>_1_slp): Ditto.
18846         (*<code>qi_1_slp): Ditto.
18847         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18848         Do not use (match_dup) to match operand 1 with operand 0.  Add
18849         check in insn constraint that operand 1 matches operand 0.
18850         Use SWI12 mode iterator to also handle HImode operands.
18851         (*ashl<mode>3_1_slp): Ditto.
18852         (*<shift_insn><mode>3_1_slp): Ditto.
18853         (*<rotate_insn><mode>3_1_slp): Ditto.
18855 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
18857         * config/arm/arm-builtins.c
18858         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18859         (arm_expand_unop_builtin): Likewise.
18860         * config/arm/crypto.md
18861         (crypto_sha1h): Convert from define_insn to define_expand.
18862         (crypto_<crypto_pattern>): Likewise.
18863         (crypto_sha1h_lb): New define_insn.
18864         (crypto_<crypto_pattern>_lb): Likewise.
18866 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
18868         PR target/90317
18869         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18870         (vsha1cq_u32): Likewise.
18871         (vsha1pq_u32): Likewise.
18872         (vsha1mq_u32): Likewise.
18873         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18874         vec select.
18875         (crypto_sha1c): Correct vec select.
18876         (crypto_sha1m): Likewise.
18877         (crypto_sha1p): Likewise.
18879 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
18881         * config/arm/predicates.md (arm_borrow_operation): New predicate.
18882         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18883         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18884         (subdi_zesidi_zesidi): Likewise.
18885         (negdi2_compare, negdi2_insn): Likewise.
18886         (negdi_extensidi): Likewise.
18887         (negdi_zero_extendsidi): Likewise.
18888         (arm_cmpdi_insn): Likewise.
18889         (subsi3_carryin): Use arm_borrow_operation.
18890         (subsi3_carryin_const): Likewise.
18891         (subsi3_carryin_const0): Likewise.
18892         (subsi3_carryin_compare): Likewise.
18893         (subsi3_carryin_compare_const): Likewise.
18894         (subsi3_carryin_compare_const0): Likewise.
18895         (subsi3_carryin_shift): Likewise.
18896         (rsbsi3_carryin_shift): Likewise.
18897         (negsi2_carryin_compare): Likewise.
18899 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
18901         PR tree-optimization/91137
18902         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18903         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18904         Init, use and fini the above new field.
18905         (determine_base_object_1): New function.
18906         (determine_base_object): Reimplement using walk_tree.
18908 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
18910         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18911         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18912         CLEANUP_FORCE_FAST_DCE is set.
18913         * ifcvt.c (rest_of_handle_if_conversion): Pass
18914         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18915         if-conversion succeeded.
18917 2019-07-18  Richard Biener  <rguenther@suse.de>
18919         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18920         branches to make code less indented.
18922 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
18924         PR middle-end/81824
18925         * attribs.c (decls_mismatched_attributes): Simplify the logic
18926         that avoids duplicates and false positives.
18928 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
18930         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18931         data into data section when generating PIC code.
18932         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18933         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18934         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
18935         return 2 for SOM and 0 for other targets.
18937 2019-07-17  Jeff Law  <law@redhat.com>
18939         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18940         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
18941         avoid unexpected switch statement fallthru.
18943 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
18945         * config/i386/i386.md (*add<dwi>3_doubleword):
18946         Remove redundant constraints.
18947         (*add<mode>_1): Ditto.
18948         (*addhi_1): Ditto.
18949         (*addqi_1): Ditto.
18950         (*addqi_1_slp): Ditto.
18951         (*add<mode>_2): Ditto.
18952         (*addv<mode>4): Ditto.
18953         (*sub<dwi>3_doubleword): Ditto.
18954         (*sub<mode>_1): Ditto.
18955         (*subqi_1_slp): Ditto.
18956         (*sub<mode>_2): Ditto.
18957         (*subv<mode>4): Ditto.
18958         (*sub<mode>_3): Ditto.
18959         (@add<mode>3_carry): Ditto.
18960         (@sub<mode>3_carry): Ditto.
18961         (*add<mode>3_cc_overflow_1): Ditto.
18962         (*add<mode>3_zext_cc_overflow_2): Ditto.
18963         (*anddi_1): Ditto.
18964         (*and<mode>_1): Ditto.
18965         (*andqi_1): Ditto.
18966         (*andqi_1_slp): Ditto.
18967         (*anddi_2): Ditto.
18968         (*andqi_2_maybe_si): Ditto.
18969         (*and<mode>_2): Ditto.
18970         (*andqi_2_slp): Ditto.
18971         (*<code><mode>_1): Ditto.
18972         (*<code>qi_1): Ditto.
18973         (*<code>qi_1_slp): Ditto.
18974         (*<code><mode>_2): Ditto.
18975         (*<code>qi_2_slp): Ditto.
18977 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
18979         * alias.c (record_component_aliases): Do not simplify pointed-to
18980         types of ODR types.
18982 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
18984         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18985         partial reg stall on alternative 2.
18987 2019-07-17  Richard Biener  <rguenther@suse.de>
18989         PR tree-optimization/91178
18990         * tree-ssa.c (release_defs_bitset): Iterate from higher to
18991         lower SSA names to avoid quadratic behavior in the common case.
18992         * tree-data-ref.c (split_constant_offset): Add limit argument
18993         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18994         (split_constant_offset_1): Add limit argument and use it to
18995         limit SSA def walking.  Optimize the common plus/minus case.
18997 2019-07-17  Richard Biener  <rguenther@suse.de>
18999         PR tree-optimization/91178
19000         * tree-vect-stmts.c (get_group_load_store_type): For SLP
19001         loads with a gap larger than the vector size always use
19002         VMAT_STRIDED_SLP.
19003         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19004         avoid loading vectors that are only contained in the gap
19005         and thus are not needed.
19007 2019-07-17  Richard Biener  <rguenther@suse.de>
19009         PR tree-optimization/91180
19010         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19011         computation for memset partial defs.
19013 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
19015         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19016         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19017         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19018         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19019         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19020         * omp-grid.c (grid_process_grid_body,
19021         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19022         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19023         == GF_OMP_FOR_KIND_SIMD.
19024         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19025         check_omp_nesting_restrictions, scan_omp_1_stmt,
19026         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19027         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19028         omp_find_scan): Likewise.
19029         * omp-expand.c (expand_omp_for): Likewise.
19030         * omp-general.c (omp_extract_for_data): Likewise.
19032         PR tree-optimization/91157
19033         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19034         a vector boolean with scalar mode.
19035         (expand_vector_condition): Handle first operand being a vector boolean
19036         with scalar mode.
19037         (expand_vector_operations_1): For comparisons, don't bail out early
19038         if the return type is vector boolean with scalar mode, but comparison
19039         operand type is not.
19041 2019-07-17  Richard Biener  <rguenther@suse.de>
19043         PR tree-optimization/91181
19044         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19045         IFN_LOADs as calls.
19047 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
19049         * config/i386/i386.md (*testdi_1): Match CCZmode for
19050         constants that might have the SImode sign bit set.
19051         (*testqi_1_maybe_si): Remove "!" constraint modifier.
19052         Use correct constraints for pentium pairing.
19053         (*test<mode>_1): Ditto.
19055 2019-07-16  Jeff Law  <law@redhat.com>
19057         PR rtl-optimization/91173
19058         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19059         SSA_NAME with a constant value, fold its value into the offset
19060         and clear the base before calling gen_addr_rtx.
19062 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
19064         PR rtl-optimization/91164
19065         * dse.c (rest_of_handle_dse): If dead edges have been purged,
19066         invalidate dominance info.
19068 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19070         * read-md.h (md_reader::record_potential_iterator_use): Add a
19071         file_location parameter.
19072         * read-rtl.c (attribute_use::loc): New field.
19073         (map_attr_string): Take a file_location parameter.  Report cases
19074         in which attributes map to multiple distinct values.
19075         (apply_attribute_uses): Update call accordingly.
19076         (md_reader::handle_overloaded_name): Likewise.
19077         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
19078         nonnull strings.
19079         (record_attribute_use): Take a file_location parameter.
19080         Initialize attribute_use::loc.
19081         (md_reader::record_potential_iterator_use): Take a file_location
19082         parameter.  Update call to record_attribute_use.
19083         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19084         (rtx_reader::read_rtx_code): Likewise.
19085         (rtx_reader::read_rtx_operand): Likewise.  Record a location
19086         for implicitly-expanded empty strings.
19088 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19090         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19091         Use file_location instead of separate fields.
19092         (md_reader::set_md_ptr_loc): Take a file_location instead of a
19093         separate filename and line number.
19094         * read-md.c (ptr_loc): As above.
19095         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19096         (md_reader::fprint_md_ptr_loc): Likewise.
19097         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
19098         instead of a separate filename and line number.
19099         (md_reader::read_string): Update call accordingly.
19101 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19103         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19104         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19105         leaving the choice between SFDF and P implicit.
19106         (*mov<mode>_update2): Likewise.
19107         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19108         rather than leaving the choice betweem IBM128 and GPR implicit.
19109         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19110         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19111         QHSI implicit.
19112         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19113         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19114         * config/rs6000/vsx.md
19115         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19116         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19117         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19118         and VSX_EXTRACT_I implicit.
19120 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19122         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19123         Explicitly use <MOVEP1:MODE> for the mode attribute.
19125 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
19127         PR bootstrap/91176
19128         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19130 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
19132         PR target/91050
19133         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19134         .machine directive.
19136 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
19138         * config/i386/i386.md (@test<mode>_ccno_1):
19139         Rename from test<mode>_ccno_1.
19140         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
19141         (*testqi_1_maybe_si): Remove modrm attribute.
19142         (*test<mode>_1): Ditto.
19143         * config/i386/i386-expand.c (ix86_split_idivmod): Use
19144         gen_test_ccno_1 and gen_extend_insn.
19146 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
19148         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19149         to 0.
19151 2019-07-15  Richard Biener  <rguenther@suse.de>
19153         PR middle-end/91162
19154         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19155         node make sure to replace all uses with something valid.
19157 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
19159         PR tree-optimization/88497
19160         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19161         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19162         function undistribute_bitref_for_vector.
19163         (undistribute_bitref_for_vector): New function.
19164         (cleanup_vinfo_map): Likewise.
19165         (sort_by_mach_mode): Likewise.
19167 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
19169         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19170         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19171         and testdi_ccno_1 using SWI48 mode attribute.
19172         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19173         x86_64_szext_general_operand.
19174         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19175         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19176         instead of genera_operand mode attribute.
19178 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
19180         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19181         fopen and fclose to their respective types.
19182         (DotFn.invoke): Ditto.
19184 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
19186         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19187         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19188         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19189         (array_index_predicate): Remove.
19190         (analyze_function_body): Account cost for variable ofsetted array
19191         indexing.
19192         (estimate_node_size_and_time): Do not compute array index hint.
19193         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19194         (inline_read_section): Do not read array index hint.
19195         (ipa_fn_summary_write): Do not write array index hint.
19196         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19197         * ipa-cp.c (hint_time_bonus): Remove.
19198         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19199         (ipa_fnsummary): Remove array_index.
19200         * ipa-inline.c (want_inline_small_function_p): Do not use
19201         array_index.
19202         (edge_badness): Likewise.
19203         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19205 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
19207         PR target/91148
19208         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19209         superfluous "builtin function" phrasing.
19211 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
19213         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19214         Break out from ...
19215         (aliasing_component_refs_walk): Break out from ...
19216         (aliasing_component_refs_p): ... here.
19218 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
19220         PR target/91148
19221         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19222         "builtin function" phrasing.
19224 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19226         PR target/90723
19227         * recog.h (temporary_volatile_ok): New class.
19228         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19229         volatile_ok temporarily to true using temporary_volatile_ok.
19230         * expr.c (emit_block_move_via_cpymem): Likewise.
19231         * optabs.c (maybe_legitimize_operand): Likewise.
19233 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
19235         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19236         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19237         uses inside of order(concurrent) constructs.
19238         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19239         OMP_CLAUSE_ORDER is seen.
19240         * omp-low.c (struct omp_context): Add order_concurrent member.
19241         (scan_sharing_clauses): Set ctx->order_concurrent if
19242         OMP_CLAUSE_ORDER is seen.
19243         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19244         of simd order(concurrent).  Diagnose constructs not allowed inside of
19245         for order(concurrent).
19246         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19247         complaining about static double setjmp (double); or class static
19248         methods or non-global namespace setjmps.
19249         (omp_runtime_api_call): New function.
19250         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19251         order(concurrent) loops.
19253 2019-07-12  Martin Sebor  <msebor@redhat.com>
19255         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19256         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19257         * tree-vrp.c (vrp_prop::check_mem_ref): Use
19258         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19260 2019-07-12  Jan Hubicka  <jh@suse.cz>
19262         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19263         (indirect_refs_may_alias_p): ... here.
19264         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19265         mem refs in the access paths.
19267 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
19269         PR tree-optimization/89430
19270         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19271         store elimination for local variable without address escape.
19273 2019-07-12  Jeff Law  <law@redhat.com>
19275         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19276         for the ".far" section.
19278 2019-07-12  Richard Biener  <rguenther@suse.de>
19280         PR tree-optimization/91145
19281         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19282         chain check.
19284 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
19286         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19287         rather than this_state as the lowering context for the ELSE
19288         seq in a GIMPLE_EH_ELSE.
19290 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19292         * vector-builder.h (vector_builder::elt): Allow already-supplied
19293         elements to be read back before building is complete.
19295 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
19297         PR rtl-optimization/91136
19298         * df-core.c (ACCESSING REFS): Fix typos in comment.
19299         * resource.c (mark_target_live_reg): Add artificial defs that occur at
19300         the beginning of the block to the initial set of live registers.
19302 2019-07-12  Richard Biener  <rguenther@suse.de>
19304         * fold-const.h (get_array_ctor_element_at_index): Adjust.
19305         * fold-const.c (get_array_ctor_element_at_index): Add
19306         ctor_idx output parameter informing the caller where in
19307         the constructor the element was (not) found.  Add early exit
19308         for when the ctor is sorted.
19309         * gimple-fold.c (fold_array_ctor_reference): Support constant
19310         folding across multiple array elements.
19312 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
19314         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19315         doesn't have location, set the current location to the function's end.
19317 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19319         * config/aarch64/aarch64.md (*compare_condjump<mode>)
19320         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19321         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19322         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19323         * config/aarch64/aarch64-simd.md
19324         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19325         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19326         * config/aarch64/aarch64-sve.md
19327         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19328         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19330 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
19332         * doc/md.texi: Document that @ patterns can have different
19333         numbers of operands.
19334         * genemit.c (handle_overloaded_gen): Handle this case.
19335         * genopinit.c (handle_overloaded_gen): Likewise.
19336         * gensupport.c (replace_operands_with_dups): Iterate over
19337         the new rtx's format rather than the old one's.
19339 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
19341         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19342         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19343         order clause entries.
19344         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19345         * tree-pretty-print.c (dump_omp_clause): Likewise.
19346         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19347         Likewise.
19348         * omp-low.c (scan_sharing_clauses): Likewise.
19349         * tree-nested.c (convert_nonlocal_omp_clauses,
19350         convert_local_omp_clauses): Likewise.
19352 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
19354         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19355         fallthrough target of current basic block isn't the placed
19356         right next.
19358 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
19360         PR target/90980
19361         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19362         (_mm512_storeu_epi64): Likewise.
19363         (_mm512_loadu_epi32): Likewise.
19364         (_mm512_storeu_epi32): Likewise.
19365         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19366         (_mm_storeu_epi64): Likewise.
19367         (_mm256_storeu_epi32): Likewise.
19368         (_mm_storeu_epi32): Likewise.
19370 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
19372         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19374 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
19376         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19377         Handle Modula-2.
19379 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
19381         PR target/91124
19382         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19383         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
19384         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19385         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19386         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
19387         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19388         define_insns.
19389         (ufix_truncv2dfv2si2<mask_name>): Change into ...
19390         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
19391         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19392         define_insns.
19393         (sse2_cvttpd2dq<mask_name>): Change into ...
19394         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
19395         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19396         (*sse2_cvtpd2dq<mask_name>): Change into ...
19397         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
19398         Add "C" constraint to const0_operand.
19399         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19400         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19401         changes.
19403         PR target/91124
19404         * config/i386/i386-builtin-types.def
19405         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19406         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19407         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19408         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19409         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19410         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19411         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19412         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19413         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19414         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19415         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19416         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19417         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19418         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19419         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19420         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19421         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19422         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19423         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19424         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19425         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19426         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19427         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19428         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19429         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19430         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19431         __builtin_ia32_vpdpbusd_v4si_maskz,
19432         __builtin_ia32_vpdpbusds_v16si_mask,
19433         __builtin_ia32_vpdpbusds_v16si_maskz,
19434         __builtin_ia32_vpdpbusds_v8si_mask,
19435         __builtin_ia32_vpdpbusds_v8si_maskz,
19436         __builtin_ia32_vpdpbusds_v4si_mask,
19437         __builtin_ia32_vpdpbusds_v4si_maskz,
19438         __builtin_ia32_vpdpwssd_v16si_mask,
19439         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19440         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19441         __builtin_ia32_vpdpwssd_v4si_maskz,
19442         __builtin_ia32_vpdpwssds_v16si_mask,
19443         __builtin_ia32_vpdpwssds_v16si_maskz,
19444         __builtin_ia32_vpdpwssds_v8si_mask,
19445         __builtin_ia32_vpdpwssds_v8si_maskz,
19446         __builtin_ia32_vpdpwssds_v4si_mask,
19447         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19448         suffixed types rather than *_INT.
19449         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19450         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19451         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19452         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19453         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19454         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19456 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
19458         * tree-vrp.c (intersect_ranges): If we know the intersection is
19459         empty, there is no need to conservatively add anything else to
19460         the set.
19462 2019-07-11  Richard Biener  <rguenther@suse.de>
19464         PR middle-end/91131
19465         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19466         when the object is volatile and we have not cleared it even though
19467         there are no nonzero elements.
19469 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
19471         * config/rs6000/predicates.md (cint34_operand): Update
19472         SIGNED_34BIT_OFFSET_P call.
19473         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19474         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19475         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19476         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19477         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19478         argument.
19479         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19480         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19481         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19482         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19483         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19485 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
19487         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19488         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19489         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19490         (DEF_MIN_OSX_VERSION): New.
19492 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
19494         * fold-const.c (fold_relational_const): Fix folding of
19495         vector-to-scalar NE_EXPRs.
19496         (test_vector_folding): Add more tests.
19498 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
19500         PR target/91060
19501         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19502         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19503         (vec_setv2di_internal): Reexpress as...
19504         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19505         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19506         rather than gen_neon_vset_lane<mode>.
19508 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
19510         PR target/91102
19511         * lra-constraints.c (process_alt_operands): Don't match user
19512         defined regs only if they are early clobbers.
19514 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
19516         * wide-int.h (wi::lshift): Reject negative values for the fast path.
19518 2019-07-10  Richard Biener  <rguenther@suse.de>
19520         PR tree-optimization/91126
19521         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19522         native encoding offset for BYTES_BIG_ENDIAN.
19523         (vn_reference_lookup_3): Likewise.
19525 2019-07-10  Richard Biener  <rguenther@suse.de>
19527         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19528         LHS whenever possible.
19530 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
19532         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19533         from ...; work also on duplicated types.
19534         (nonoverlapping_component_refs_since_match): ... here
19535         (ncr_type_uid): Break out from ...
19536         (ncr_compar): ... here; look for TYPE_UID of canonical type if
19537         available.
19538         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19539         the types and nonoverlapping_component_refs_p_1 to disambiguate.
19541 2019-07-09  Martin Sebor  <msebor@redhat.com>
19543         PR tree-optimization/90989
19544         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19545         optimization to just single character stores.
19547 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
19549         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19550         Swap operands only once.
19552 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
19554         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19555         for both call instructions.
19557 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
19559         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19560         rather than GET_MODE_BITSIZE to better handle partial integer modes.
19562 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
19564         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19565         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19566         function from rs6000-logue.c back to rs6000.c.
19567         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19569 2019-07-09  Martin Sebor  <msebor@redhat.com>
19571         PR c++/61339
19572         * auto-profile.c: Change class-key of PODs to struct and others
19573         to class.
19574         * basic-block.h: Same.
19575         * bitmap.c (bitmap_alloc): Same.
19576         * bitmap.h: Same.
19577         * builtins.c (expand_builtin_prefetch): Same.
19578         (expand_builtin_interclass_mathfn): Same.
19579         (expand_builtin_strlen): Same.
19580         (expand_builtin_mempcpy_args): Same.
19581         (expand_cmpstr): Same.
19582         (expand_builtin___clear_cache): Same.
19583         (expand_ifn_atomic_bit_test_and): Same.
19584         (expand_builtin_thread_pointer): Same.
19585         (expand_builtin_set_thread_pointer): Same.
19586         * caller-save.c (setup_save_areas): Same.
19587         (replace_reg_with_saved_mem): Same.
19588         (insert_restore): Same.
19589         (insert_save): Same.
19590         (add_used_regs): Same.
19591         * cfg.c (get_bb_copy): Same.
19592         (set_loop_copy): Same.
19593         * cfg.h: Same.
19594         * cfganal.h: Same.
19595         * cfgexpand.c (alloc_stack_frame_space): Same.
19596         (add_stack_var): Same.
19597         (add_stack_var_conflict): Same.
19598         (add_scope_conflicts_1): Same.
19599         (update_alias_info_with_stack_vars): Same.
19600         (expand_used_vars): Same.
19601         * cfghooks.c (redirect_edge_and_branch_force): Same.
19602         (delete_basic_block): Same.
19603         (split_edge): Same.
19604         (make_forwarder_block): Same.
19605         (force_nonfallthru): Same.
19606         (duplicate_block): Same.
19607         (lv_flush_pending_stmts): Same.
19608         * cfghooks.h: Same.
19609         * cfgloop.c (flow_loops_cfg_dump): Same.
19610         (flow_loop_nested_p): Same.
19611         (superloop_at_depth): Same.
19612         (get_loop_latch_edges): Same.
19613         (flow_loop_dump): Same.
19614         (flow_loops_dump): Same.
19615         (flow_loops_free): Same.
19616         (flow_loop_nodes_find): Same.
19617         (establish_preds): Same.
19618         (flow_loop_tree_node_add): Same.
19619         (flow_loop_tree_node_remove): Same.
19620         (flow_loops_find): Same.
19621         (find_subloop_latch_edge_by_profile): Same.
19622         (find_subloop_latch_edge_by_ivs): Same.
19623         (mfb_redirect_edges_in_set): Same.
19624         (form_subloop): Same.
19625         (merge_latch_edges): Same.
19626         (disambiguate_multiple_latches): Same.
19627         (disambiguate_loops_with_multiple_latches): Same.
19628         (flow_bb_inside_loop_p): Same.
19629         (glb_enum_p): Same.
19630         (get_loop_body_with_size): Same.
19631         (get_loop_body): Same.
19632         (fill_sons_in_loop): Same.
19633         (get_loop_body_in_dom_order): Same.
19634         (get_loop_body_in_custom_order): Same.
19635         (release_recorded_exits): Same.
19636         (get_loop_exit_edges): Same.
19637         (num_loop_branches): Same.
19638         (remove_bb_from_loops): Same.
19639         (find_common_loop): Same.
19640         (delete_loop): Same.
19641         (cancel_loop): Same.
19642         (verify_loop_structure): Same.
19643         (loop_preheader_edge): Same.
19644         (loop_exit_edge_p): Same.
19645         (single_exit): Same.
19646         (loop_exits_to_bb_p): Same.
19647         (loop_exits_from_bb_p): Same.
19648         (get_loop_location): Same.
19649         (record_niter_bound): Same.
19650         (get_estimated_loop_iterations_int): Same.
19651         (max_stmt_executions_int): Same.
19652         (likely_max_stmt_executions_int): Same.
19653         (get_estimated_loop_iterations): Same.
19654         (get_max_loop_iterations): Same.
19655         (get_max_loop_iterations_int): Same.
19656         (get_likely_max_loop_iterations): Same.
19657         * cfgloop.h (simple_loop_desc): Same.
19658         (get_loop): Same.
19659         (loop_depth): Same.
19660         (loop_outer): Same.
19661         (loop_iterator::next): Same.
19662         (loop_outermost): Same.
19663         * cfgloopanal.c (mark_irreducible_loops): Same.
19664         (num_loop_insns): Same.
19665         (average_num_loop_insns): Same.
19666         (expected_loop_iterations_unbounded): Same.
19667         (expected_loop_iterations): Same.
19668         (mark_loop_exit_edges): Same.
19669         (single_likely_exit): Same.
19670         * cfgloopmanip.c (fix_bb_placement): Same.
19671         (fix_bb_placements): Same.
19672         (remove_path): Same.
19673         (place_new_loop): Same.
19674         (add_loop): Same.
19675         (scale_loop_frequencies): Same.
19676         (scale_loop_profile): Same.
19677         (create_empty_if_region_on_edge): Same.
19678         (create_empty_loop_on_edge): Same.
19679         (loopify): Same.
19680         (unloop): Same.
19681         (fix_loop_placements): Same.
19682         (copy_loop_info): Same.
19683         (duplicate_loop): Same.
19684         (duplicate_subloops): Same.
19685         (loop_redirect_edge): Same.
19686         (can_duplicate_loop_p): Same.
19687         (duplicate_loop_to_header_edge): Same.
19688         (mfb_keep_just): Same.
19689         (has_preds_from_loop): Same.
19690         (create_preheader): Same.
19691         (create_preheaders): Same.
19692         (lv_adjust_loop_entry_edge): Same.
19693         (loop_version): Same.
19694         * cfgloopmanip.h: Same.
19695         * cgraph.h: Same.
19696         * cgraphbuild.c: Same.
19697         * combine.c (make_extraction): Same.
19698         * config/i386/i386-features.c: Same.
19699         * config/i386/i386-features.h: Same.
19700         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19701         (ix86_emit_outlined_ms2sysv_restore): Same.
19702         (ix86_noce_conversion_profitable_p): Same.
19703         (ix86_init_cost): Same.
19704         (ix86_simd_clone_usable): Same.
19705         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19706         Wstruct-not-pod.
19707         * coretypes.h: Same.
19708         * data-streamer-in.c (string_for_index): Change class-key of PODs
19709         to struct and others to class.
19710         (streamer_read_indexed_string): Same.
19711         (streamer_read_string): Same.
19712         (bp_unpack_indexed_string): Same.
19713         (bp_unpack_string): Same.
19714         (streamer_read_uhwi): Same.
19715         (streamer_read_hwi): Same.
19716         (streamer_read_gcov_count): Same.
19717         (streamer_read_wide_int): Same.
19718         * data-streamer.h (streamer_write_bitpack): Same.
19719         (bp_unpack_value): Same.
19720         (streamer_write_char_stream): Same.
19721         (streamer_write_hwi_in_range): Same.
19722         (streamer_write_record_start): Same.
19723         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19724         (add_cross_iteration_register_deps): Same.
19725         (build_intra_loop_deps): Same.
19726         * df-core.c (df_analyze): Same.
19727         (loop_post_order_compute): Same.
19728         (loop_inverted_post_order_compute): Same.
19729         * df-problems.c (df_rd_alloc): Same.
19730         (df_rd_simulate_one_insn): Same.
19731         (df_rd_local_compute): Same.
19732         (df_rd_init_solution): Same.
19733         (df_rd_confluence_n): Same.
19734         (df_rd_transfer_function): Same.
19735         (df_rd_free): Same.
19736         (df_rd_dump_defs_set): Same.
19737         (df_rd_top_dump): Same.
19738         (df_lr_alloc): Same.
19739         (df_lr_reset): Same.
19740         (df_lr_local_compute): Same.
19741         (df_lr_init): Same.
19742         (df_lr_confluence_n): Same.
19743         (df_lr_free): Same.
19744         (df_lr_top_dump): Same.
19745         (df_lr_verify_transfer_functions): Same.
19746         (df_live_alloc): Same.
19747         (df_live_reset): Same.
19748         (df_live_init): Same.
19749         (df_live_confluence_n): Same.
19750         (df_live_finalize): Same.
19751         (df_live_free): Same.
19752         (df_live_top_dump): Same.
19753         (df_live_verify_transfer_functions): Same.
19754         (df_mir_alloc): Same.
19755         (df_mir_reset): Same.
19756         (df_mir_init): Same.
19757         (df_mir_confluence_n): Same.
19758         (df_mir_free): Same.
19759         (df_mir_top_dump): Same.
19760         (df_word_lr_alloc): Same.
19761         (df_word_lr_reset): Same.
19762         (df_word_lr_init): Same.
19763         (df_word_lr_confluence_n): Same.
19764         (df_word_lr_free): Same.
19765         (df_word_lr_top_dump): Same.
19766         (df_md_alloc): Same.
19767         (df_md_simulate_one_insn): Same.
19768         (df_md_reset): Same.
19769         (df_md_init): Same.
19770         (df_md_free): Same.
19771         (df_md_top_dump): Same.
19772         * df-scan.c (df_insn_delete): Same.
19773         (df_insn_rescan): Same.
19774         (df_notes_rescan): Same.
19775         (df_sort_and_compress_mws): Same.
19776         (df_install_mws): Same.
19777         (df_refs_add_to_chains): Same.
19778         (df_ref_create_structure): Same.
19779         (df_ref_record): Same.
19780         (df_def_record_1): Same.
19781         (df_find_hard_reg_defs): Same.
19782         (df_uses_record): Same.
19783         (df_get_conditional_uses): Same.
19784         (df_get_call_refs): Same.
19785         (df_recompute_luids): Same.
19786         (df_get_entry_block_def_set): Same.
19787         (df_entry_block_defs_collect): Same.
19788         (df_get_exit_block_use_set): Same.
19789         (df_exit_block_uses_collect): Same.
19790         (df_mws_verify): Same.
19791         (df_bb_verify): Same.
19792         * df.h (df_scan_get_bb_info): Same.
19793         * doc/tm.texi: Same.
19794         * dse.c (record_store): Same.
19795         * dumpfile.h: Same.
19796         * emit-rtl.c (const_fixed_hasher::equal): Same.
19797         (set_mem_attributes_minus_bitpos): Same.
19798         (change_address): Same.
19799         (adjust_address_1): Same.
19800         (offset_address): Same.
19801         * emit-rtl.h: Same.
19802         * except.c (dw2_build_landing_pads): Same.
19803         (sjlj_emit_dispatch_table): Same.
19804         * explow.c (allocate_dynamic_stack_space): Same.
19805         (emit_stack_probe): Same.
19806         (probe_stack_range): Same.
19807         * expmed.c (store_bit_field_using_insv): Same.
19808         (store_bit_field_1): Same.
19809         (store_integral_bit_field): Same.
19810         (extract_bit_field_using_extv): Same.
19811         (extract_bit_field_1): Same.
19812         (emit_cstore): Same.
19813         * expr.c (emit_block_move_via_cpymem): Same.
19814         (expand_cmpstrn_or_cmpmem): Same.
19815         (set_storage_via_setmem): Same.
19816         (emit_single_push_insn_1): Same.
19817         (expand_assignment): Same.
19818         (store_constructor): Same.
19819         (expand_expr_real_2): Same.
19820         (expand_expr_real_1): Same.
19821         (try_casesi): Same.
19822         * flags.h: Same.
19823         * function.c (try_fit_stack_local): Same.
19824         (assign_stack_local_1): Same.
19825         (assign_stack_local): Same.
19826         (cut_slot_from_list): Same.
19827         (insert_slot_to_list): Same.
19828         (max_slot_level): Same.
19829         (move_slot_to_level): Same.
19830         (temp_address_hasher::equal): Same.
19831         (remove_unused_temp_slot_addresses): Same.
19832         (assign_temp): Same.
19833         (combine_temp_slots): Same.
19834         (update_temp_slot_address): Same.
19835         (preserve_temp_slots): Same.
19836         * function.h: Same.
19837         * fwprop.c: Same.
19838         * gcc-rich-location.h: Same.
19839         * gcov.c: Same.
19840         * genattrtab.c (check_attr_test): Same.
19841         (check_attr_value): Same.
19842         (convert_set_attr_alternative): Same.
19843         (convert_set_attr): Same.
19844         (check_defs): Same.
19845         (copy_boolean): Same.
19846         (get_attr_value): Same.
19847         (expand_delays): Same.
19848         (make_length_attrs): Same.
19849         (min_fn): Same.
19850         (make_alternative_compare): Same.
19851         (simplify_test_exp): Same.
19852         (tests_attr_p): Same.
19853         (get_attr_order): Same.
19854         (clear_struct_flag): Same.
19855         (gen_attr): Same.
19856         (compares_alternatives_p): Same.
19857         (gen_insn): Same.
19858         (gen_delay): Same.
19859         (find_attrs_to_cache): Same.
19860         (write_test_expr): Same.
19861         (walk_attr_value): Same.
19862         (write_attr_get): Same.
19863         (eliminate_known_true): Same.
19864         (write_insn_cases): Same.
19865         (write_attr_case): Same.
19866         (write_attr_valueq): Same.
19867         (write_attr_value): Same.
19868         (write_dummy_eligible_delay): Same.
19869         (next_comma_elt): Same.
19870         (find_attr): Same.
19871         (make_internal_attr): Same.
19872         (copy_rtx_unchanging): Same.
19873         (gen_insn_reserv): Same.
19874         (check_tune_attr): Same.
19875         (make_automaton_attrs): Same.
19876         (handle_arg): Same.
19877         * genextract.c (gen_insn): Same.
19878         (VEC_char_to_string): Same.
19879         * genmatch.c (print_operand): Same.
19880         (lower): Same.
19881         (parser::parse_operation): Same.
19882         (parser::parse_capture): Same.
19883         (parser::parse_c_expr): Same.
19884         (parser::parse_simplify): Same.
19885         (main): Same.
19886         * genoutput.c (output_operand_data): Same.
19887         (output_get_insn_name): Same.
19888         (compare_operands): Same.
19889         (place_operands): Same.
19890         (process_template): Same.
19891         (validate_insn_alternatives): Same.
19892         (validate_insn_operands): Same.
19893         (gen_expand): Same.
19894         (note_constraint): Same.
19895         * genpreds.c (write_one_predicate_function): Same.
19896         (add_constraint): Same.
19897         (process_define_register_constraint): Same.
19898         (write_lookup_constraint_1): Same.
19899         (write_lookup_constraint_array): Same.
19900         (write_insn_constraint_len): Same.
19901         (write_reg_class_for_constraint_1): Same.
19902         (write_constraint_satisfied_p_array): Same.
19903         * genrecog.c (optimize_subroutine_group): Same.
19904         * gensupport.c (process_define_predicate): Same.
19905         (queue_pattern): Same.
19906         (remove_from_queue): Same.
19907         (process_rtx): Same.
19908         (is_predicable): Same.
19909         (change_subst_attribute): Same.
19910         (subst_pattern_match): Same.
19911         (alter_constraints): Same.
19912         (alter_attrs_for_insn): Same.
19913         (shift_output_template): Same.
19914         (alter_output_for_subst_insn): Same.
19915         (process_one_cond_exec): Same.
19916         (subst_dup): Same.
19917         (process_define_cond_exec): Same.
19918         (mnemonic_htab_callback): Same.
19919         (gen_mnemonic_attr): Same.
19920         (read_md_rtx): Same.
19921         * ggc-page.c: Same.
19922         * gimple-loop-interchange.cc (dump_reduction): Same.
19923         (dump_induction): Same.
19924         (loop_cand::~loop_cand): Same.
19925         (free_data_refs_with_aux): Same.
19926         (tree_loop_interchange::interchange_loops): Same.
19927         (tree_loop_interchange::map_inductions_to_loop): Same.
19928         (tree_loop_interchange::move_code_to_inner_loop): Same.
19929         (compute_access_stride): Same.
19930         (compute_access_strides): Same.
19931         (proper_loop_form_for_interchange): Same.
19932         (tree_loop_interchange_compute_ddrs): Same.
19933         (prune_datarefs_not_in_loop): Same.
19934         (prepare_data_references): Same.
19935         (pass_linterchange::execute): Same.
19936         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19937         (unroll_jam_possible_p): Same.
19938         (fuse_loops): Same.
19939         (adjust_unroll_factor): Same.
19940         (tree_loop_unroll_and_jam): Same.
19941         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19942         (loop_versioning::expensive_stmt_p): Same.
19943         (loop_versioning::version_for_unity): Same.
19944         (loop_versioning::dump_inner_likelihood): Same.
19945         (loop_versioning::find_per_loop_multiplication): Same.
19946         (loop_versioning::analyze_term_using_scevs): Same.
19947         (loop_versioning::record_address_fragment): Same.
19948         (loop_versioning::analyze_expr): Same.
19949         (loop_versioning::analyze_blocks): Same.
19950         (loop_versioning::prune_conditions): Same.
19951         (loop_versioning::merge_loop_info): Same.
19952         (loop_versioning::add_loop_to_queue): Same.
19953         (loop_versioning::decide_whether_loop_is_versionable): Same.
19954         (loop_versioning::make_versioning_decisions): Same.
19955         (loop_versioning::implement_versioning_decisions): Same.
19956         * gimple-ssa-evrp-analyze.c
19957         (evrp_range_analyzer::record_ranges_from_phis): Same.
19958         * gimple-ssa-store-merging.c (split_store::split_store): Same.
19959         (count_multiple_uses): Same.
19960         (split_group): Same.
19961         (imm_store_chain_info::output_merged_store): Same.
19962         (pass_store_merging::process_store): Same.
19963         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19964         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19965         (is_max): Same.
19966         (alloca_call_type): Same.
19967         (pass_walloca::execute): Same.
19968         * gimple-streamer-in.c (input_phi): Same.
19969         (input_gimple_stmt): Same.
19970         * gimple-streamer.h: Same.
19971         * godump.c (go_force_record_alignment): Same.
19972         (go_format_type): Same.
19973         (go_output_type): Same.
19974         (go_output_fndecl): Same.
19975         (go_output_typedef): Same.
19976         (keyword_hash_init): Same.
19977         (find_dummy_types): Same.
19978         * graph.c (draw_cfg_nodes_no_loops): Same.
19979         (draw_cfg_nodes_for_loop): Same.
19980         * hard-reg-set.h (hard_reg_set_iter_next): Same.
19981         * hsa-brig.c: Same.
19982         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19983         * hsa-dump.c (dump_hsa_cfun): Same.
19984         * hsa-gen.c (gen_function_def_parameters): Same.
19985         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19986         * input.c (dump_line_table_statistics): Same.
19987         (test_lexer): Same.
19988         * input.h: Same.
19989         * internal-fn.c (get_multi_vector_move): Same.
19990         (expand_load_lanes_optab_fn): Same.
19991         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19992         (expand_GOMP_SIMT_EXIT): Same.
19993         (expand_GOMP_SIMT_LAST_LANE): Same.
19994         (expand_GOMP_SIMT_ORDERED_PRED): Same.
19995         (expand_GOMP_SIMT_VOTE_ANY): Same.
19996         (expand_GOMP_SIMT_XCHG_BFLY): Same.
19997         (expand_GOMP_SIMT_XCHG_IDX): Same.
19998         (expand_addsub_overflow): Same.
19999         (expand_neg_overflow): Same.
20000         (expand_mul_overflow): Same.
20001         (expand_call_mem_ref): Same.
20002         (expand_mask_load_optab_fn): Same.
20003         (expand_scatter_store_optab_fn): Same.
20004         (expand_gather_load_optab_fn): Same.
20005         * ipa-cp.c (ipa_get_parm_lattices): Same.
20006         (print_all_lattices): Same.
20007         (ignore_edge_p): Same.
20008         (build_toporder_info): Same.
20009         (free_toporder_info): Same.
20010         (push_node_to_stack): Same.
20011         (ipcp_lattice<valtype>::set_contains_variable): Same.
20012         (set_agg_lats_to_bottom): Same.
20013         (ipcp_bits_lattice::meet_with): Same.
20014         (set_single_call_flag): Same.
20015         (initialize_node_lattices): Same.
20016         (ipa_get_jf_ancestor_result): Same.
20017         (ipcp_verify_propagated_values): Same.
20018         (propagate_scalar_across_jump_function): Same.
20019         (propagate_context_across_jump_function): Same.
20020         (propagate_bits_across_jump_function): Same.
20021         (ipa_vr_operation_and_type_effects): Same.
20022         (propagate_vr_across_jump_function): Same.
20023         (set_check_aggs_by_ref): Same.
20024         (set_chain_of_aglats_contains_variable): Same.
20025         (merge_aggregate_lattices): Same.
20026         (agg_pass_through_permissible_p): Same.
20027         (propagate_aggs_across_jump_function): Same.
20028         (call_passes_through_thunk_p): Same.
20029         (propagate_constants_across_call): Same.
20030         (devirtualization_time_bonus): Same.
20031         (good_cloning_opportunity_p): Same.
20032         (context_independent_aggregate_values): Same.
20033         (gather_context_independent_values): Same.
20034         (perform_estimation_of_a_value): Same.
20035         (estimate_local_effects): Same.
20036         (value_topo_info<valtype>::add_val): Same.
20037         (add_all_node_vals_to_toposort): Same.
20038         (value_topo_info<valtype>::propagate_effects): Same.
20039         (ipcp_propagate_stage): Same.
20040         (ipcp_discover_new_direct_edges): Same.
20041         (same_node_or_its_all_contexts_clone_p): Same.
20042         (cgraph_edge_brings_value_p): Same.
20043         (gather_edges_for_value): Same.
20044         (create_specialized_node): Same.
20045         (find_more_scalar_values_for_callers_subset): Same.
20046         (find_more_contexts_for_caller_subset): Same.
20047         (copy_plats_to_inter): Same.
20048         (intersect_aggregates_with_edge): Same.
20049         (find_aggregate_values_for_callers_subset): Same.
20050         (cgraph_edge_brings_all_agg_vals_for_node): Same.
20051         (decide_about_value): Same.
20052         (decide_whether_version_node): Same.
20053         (spread_undeadness): Same.
20054         (identify_dead_nodes): Same.
20055         (ipcp_store_vr_results): Same.
20056         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20057         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20058         (redirect_to_unreachable): Same.
20059         (edge_set_predicate): Same.
20060         (evaluate_conditions_for_known_args): Same.
20061         (evaluate_properties_for_edge): Same.
20062         (ipa_fn_summary_t::duplicate): Same.
20063         (ipa_call_summary_t::duplicate): Same.
20064         (dump_ipa_call_summary): Same.
20065         (ipa_dump_fn_summary): Same.
20066         (eliminated_by_inlining_prob): Same.
20067         (set_cond_stmt_execution_predicate): Same.
20068         (set_switch_stmt_execution_predicate): Same.
20069         (compute_bb_predicates): Same.
20070         (will_be_nonconstant_expr_predicate): Same.
20071         (phi_result_unknown_predicate): Same.
20072         (analyze_function_body): Same.
20073         (compute_fn_summary): Same.
20074         (estimate_edge_devirt_benefit): Same.
20075         (estimate_edge_size_and_time): Same.
20076         (estimate_calls_size_and_time): Same.
20077         (estimate_node_size_and_time): Same.
20078         (remap_edge_change_prob): Same.
20079         (remap_edge_summaries): Same.
20080         (ipa_merge_fn_summary_after_inlining): Same.
20081         (ipa_fn_summary_generate): Same.
20082         (inline_read_section): Same.
20083         (ipa_fn_summary_read): Same.
20084         (ipa_fn_summary_write): Same.
20085         * ipa-fnsummary.h: Same.
20086         * ipa-hsa.c (ipa_hsa_read_section): Same.
20087         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20088         * ipa-icf.c (sem_function::param_used_p): Same.
20089         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20090         * ipa-inline.c (edge_badness): Same.
20091         (inline_small_functions): Same.
20092         * ipa-polymorphic-call.c
20093         (ipa_polymorphic_call_context::stream_out): Same.
20094         * ipa-predicate.c (predicate::remap_after_duplication): Same.
20095         (predicate::remap_after_inlining): Same.
20096         (predicate::stream_out): Same.
20097         * ipa-predicate.h: Same.
20098         * ipa-profile.c (ipa_profile_read_summary): Same.
20099         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20100         (count_formal_params): Same.
20101         (ipa_dump_param): Same.
20102         (ipa_alloc_node_params): Same.
20103         (ipa_print_node_jump_functions_for_edge): Same.
20104         (ipa_print_node_jump_functions): Same.
20105         (ipa_load_from_parm_agg): Same.
20106         (get_ancestor_addr_info): Same.
20107         (ipa_compute_jump_functions_for_edge): Same.
20108         (ipa_analyze_virtual_call_uses): Same.
20109         (ipa_analyze_stmt_uses): Same.
20110         (ipa_analyze_params_uses_in_bb): Same.
20111         (update_jump_functions_after_inlining): Same.
20112         (try_decrement_rdesc_refcount): Same.
20113         (ipa_impossible_devirt_target): Same.
20114         (update_indirect_edges_after_inlining): Same.
20115         (combine_controlled_uses_counters): Same.
20116         (ipa_edge_args_sum_t::duplicate): Same.
20117         (ipa_write_jump_function): Same.
20118         (ipa_write_indirect_edge_info): Same.
20119         (ipa_write_node_info): Same.
20120         (ipa_read_edge_info): Same.
20121         (ipa_prop_read_section): Same.
20122         (read_replacements_section): Same.
20123         * ipa-prop.h (ipa_get_param_count): Same.
20124         (ipa_get_param): Same.
20125         (ipa_get_type): Same.
20126         (ipa_get_param_move_cost): Same.
20127         (ipa_set_param_used): Same.
20128         (ipa_get_controlled_uses): Same.
20129         (ipa_set_controlled_uses): Same.
20130         (ipa_get_cs_argument_count): Same.
20131         * ipa-pure-const.c (analyze_function): Same.
20132         (pure_const_read_summary): Same.
20133         * ipa-ref.h: Same.
20134         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20135         * ipa-split.c (test_nonssa_use): Same.
20136         (dump_split_point): Same.
20137         (dominated_by_forbidden): Same.
20138         (split_part_set_ssa_name_p): Same.
20139         (find_split_points): Same.
20140         * ira-build.c (finish_loop_tree_nodes): Same.
20141         (low_pressure_loop_node_p): Same.
20142         * ira-color.c (ira_reuse_stack_slot): Same.
20143         * ira-int.h: Same.
20144         * ira.c (setup_reg_equiv): Same.
20145         (print_insn_chain): Same.
20146         (ira): Same.
20147         * loop-doloop.c (doloop_condition_get): Same.
20148         (add_test): Same.
20149         (record_reg_sets): Same.
20150         (doloop_optimize): Same.
20151         * loop-init.c (loop_optimizer_init): Same.
20152         (fix_loop_structure): Same.
20153         * loop-invariant.c (merge_identical_invariants): Same.
20154         (compute_always_reached): Same.
20155         (find_exits): Same.
20156         (may_assign_reg_p): Same.
20157         (find_invariants_bb): Same.
20158         (find_invariants_body): Same.
20159         (replace_uses): Same.
20160         (can_move_invariant_reg): Same.
20161         (free_inv_motion_data): Same.
20162         (move_single_loop_invariants): Same.
20163         (change_pressure): Same.
20164         (mark_ref_regs): Same.
20165         (calculate_loop_reg_pressure): Same.
20166         * loop-iv.c (biv_entry_hasher::equal): Same.
20167         (iv_extend_to_rtx_code): Same.
20168         (check_iv_ref_table_size): Same.
20169         (clear_iv_info): Same.
20170         (latch_dominating_def): Same.
20171         (iv_get_reaching_def): Same.
20172         (iv_constant): Same.
20173         (iv_subreg): Same.
20174         (iv_extend): Same.
20175         (iv_neg): Same.
20176         (iv_add): Same.
20177         (iv_mult): Same.
20178         (get_biv_step): Same.
20179         (record_iv): Same.
20180         (analyzed_for_bivness_p): Same.
20181         (record_biv): Same.
20182         (iv_analyze_biv): Same.
20183         (iv_analyze_expr): Same.
20184         (iv_analyze_def): Same.
20185         (iv_analyze_op): Same.
20186         (iv_analyze): Same.
20187         (iv_analyze_result): Same.
20188         (biv_p): Same.
20189         (eliminate_implied_conditions): Same.
20190         (simplify_using_initial_values): Same.
20191         (shorten_into_mode): Same.
20192         (canonicalize_iv_subregs): Same.
20193         (determine_max_iter): Same.
20194         (check_simple_exit): Same.
20195         (find_simple_exit): Same.
20196         (get_simple_loop_desc): Same.
20197         * loop-unroll.c (report_unroll): Same.
20198         (decide_unrolling): Same.
20199         (unroll_loops): Same.
20200         (loop_exit_at_end_p): Same.
20201         (decide_unroll_constant_iterations): Same.
20202         (unroll_loop_constant_iterations): Same.
20203         (compare_and_jump_seq): Same.
20204         (unroll_loop_runtime_iterations): Same.
20205         (decide_unroll_stupid): Same.
20206         (unroll_loop_stupid): Same.
20207         (referenced_in_one_insn_in_loop_p): Same.
20208         (reset_debug_uses_in_loop): Same.
20209         (analyze_iv_to_split_insn): Same.
20210         * lra-eliminations.c (lra_debug_elim_table): Same.
20211         (setup_can_eliminate): Same.
20212         (form_sum): Same.
20213         (lra_get_elimination_hard_regno): Same.
20214         (lra_eliminate_regs_1): Same.
20215         (eliminate_regs_in_insn): Same.
20216         (update_reg_eliminate): Same.
20217         (init_elimination): Same.
20218         (lra_eliminate): Same.
20219         * lra-int.h: Same.
20220         * lra-lives.c (initiate_live_solver): Same.
20221         * lra-remat.c (create_remat_bb_data): Same.
20222         * lra-spills.c (lra_spill): Same.
20223         * lra.c (lra_set_insn_recog_data): Same.
20224         (lra_set_used_insn_alternative_by_uid): Same.
20225         (init_reg_info): Same.
20226         (expand_reg_info): Same.
20227         * lto-cgraph.c (output_symtab): Same.
20228         (read_identifier): Same.
20229         (get_alias_symbol): Same.
20230         (input_node): Same.
20231         (input_varpool_node): Same.
20232         (input_ref): Same.
20233         (input_edge): Same.
20234         (input_cgraph_1): Same.
20235         (input_refs): Same.
20236         (input_symtab): Same.
20237         (input_offload_tables): Same.
20238         (output_cgraph_opt_summary): Same.
20239         (input_edge_opt_summary): Same.
20240         (input_cgraph_opt_section): Same.
20241         * lto-section-in.c (lto_free_raw_section_data): Same.
20242         (lto_create_simple_input_block): Same.
20243         (lto_free_function_in_decl_state_for_node): Same.
20244         * lto-streamer-in.c (lto_tag_check_set): Same.
20245         (lto_location_cache::revert_location_cache): Same.
20246         (lto_location_cache::input_location): Same.
20247         (lto_input_location): Same.
20248         (stream_input_location_now): Same.
20249         (lto_input_tree_ref): Same.
20250         (lto_input_eh_catch_list): Same.
20251         (input_eh_region): Same.
20252         (lto_init_eh): Same.
20253         (make_new_block): Same.
20254         (input_cfg): Same.
20255         (fixup_call_stmt_edges): Same.
20256         (input_struct_function_base): Same.
20257         (input_function): Same.
20258         (lto_read_body_or_constructor): Same.
20259         (lto_read_tree_1): Same.
20260         (lto_read_tree): Same.
20261         (lto_input_scc): Same.
20262         (lto_input_tree_1): Same.
20263         (lto_input_toplevel_asms): Same.
20264         (lto_input_mode_table): Same.
20265         (lto_reader_init): Same.
20266         (lto_data_in_create): Same.
20267         * lto-streamer-out.c (output_cfg): Same.
20268         * lto-streamer.h: Same.
20269         * modulo-sched.c (duplicate_insns_of_cycles): Same.
20270         (generate_prolog_epilog): Same.
20271         (mark_loop_unsched): Same.
20272         (dump_insn_location): Same.
20273         (loop_canon_p): Same.
20274         (sms_schedule): Same.
20275         * omp-expand.c (expand_omp_for_ordered_loops): Same.
20276         (expand_omp_for_generic): Same.
20277         (expand_omp_for_static_nochunk): Same.
20278         (expand_omp_for_static_chunk): Same.
20279         (expand_omp_simd): Same.
20280         (expand_omp_taskloop_for_inner): Same.
20281         (expand_oacc_for): Same.
20282         (expand_omp_atomic_pipeline): Same.
20283         (mark_loops_in_oacc_kernels_region): Same.
20284         * omp-offload.c (oacc_xform_loop): Same.
20285         * omp-simd-clone.c (simd_clone_adjust): Same.
20286         * optabs-query.c (get_traditional_extraction_insn): Same.
20287         * optabs.c (expand_vector_broadcast): Same.
20288         (expand_binop_directly): Same.
20289         (expand_twoval_unop): Same.
20290         (expand_twoval_binop): Same.
20291         (expand_unop_direct): Same.
20292         (emit_indirect_jump): Same.
20293         (emit_conditional_move): Same.
20294         (emit_conditional_neg_or_complement): Same.
20295         (emit_conditional_add): Same.
20296         (vector_compare_rtx): Same.
20297         (expand_vec_perm_1): Same.
20298         (expand_vec_perm_const): Same.
20299         (expand_vec_cond_expr): Same.
20300         (expand_vec_series_expr): Same.
20301         (maybe_emit_atomic_exchange): Same.
20302         (maybe_emit_sync_lock_test_and_set): Same.
20303         (expand_atomic_compare_and_swap): Same.
20304         (expand_atomic_load): Same.
20305         (expand_atomic_store): Same.
20306         (maybe_emit_op): Same.
20307         (valid_multiword_target_p): Same.
20308         (create_integer_operand): Same.
20309         (maybe_legitimize_operand_same_code): Same.
20310         (maybe_legitimize_operand): Same.
20311         (create_convert_operand_from_type): Same.
20312         (can_reuse_operands_p): Same.
20313         (maybe_legitimize_operands): Same.
20314         (maybe_gen_insn): Same.
20315         (maybe_expand_insn): Same.
20316         (maybe_expand_jump_insn): Same.
20317         (expand_insn): Same.
20318         * optabs.h (create_expand_operand): Same.
20319         (create_fixed_operand): Same.
20320         (create_output_operand): Same.
20321         (create_input_operand): Same.
20322         (create_convert_operand_to): Same.
20323         (create_convert_operand_from): Same.
20324         * optinfo.h: Same.
20325         * poly-int.h: Same.
20326         * predict.c (optimize_insn_for_speed_p): Same.
20327         (optimize_loop_for_size_p): Same.
20328         (optimize_loop_for_speed_p): Same.
20329         (optimize_loop_nest_for_speed_p): Same.
20330         (get_base_value): Same.
20331         (predicted_by_loop_heuristics_p): Same.
20332         (predict_extra_loop_exits): Same.
20333         (predict_loops): Same.
20334         (predict_paths_for_bb): Same.
20335         (predict_paths_leading_to): Same.
20336         (propagate_freq): Same.
20337         (pass_profile::execute): Same.
20338         * predict.h: Same.
20339         * profile-count.c (profile_count::differs_from_p): Same.
20340         (profile_probability::differs_lot_from_p): Same.
20341         * profile-count.h: Same.
20342         * profile.c (branch_prob): Same.
20343         * regrename.c (free_chain_data): Same.
20344         (mark_conflict): Same.
20345         (create_new_chain): Same.
20346         (merge_overlapping_regs): Same.
20347         (init_rename_info): Same.
20348         (merge_chains): Same.
20349         (regrename_analyze): Same.
20350         (regrename_do_replace): Same.
20351         (scan_rtx_reg): Same.
20352         (record_out_operands): Same.
20353         (build_def_use): Same.
20354         * regrename.h: Same.
20355         * reload.h: Same.
20356         * reload1.c (init_reload): Same.
20357         (maybe_fix_stack_asms): Same.
20358         (copy_reloads): Same.
20359         (count_pseudo): Same.
20360         (count_spilled_pseudo): Same.
20361         (find_reg): Same.
20362         (find_reload_regs): Same.
20363         (select_reload_regs): Same.
20364         (spill_hard_reg): Same.
20365         (fixup_eh_region_note): Same.
20366         (set_reload_reg): Same.
20367         (allocate_reload_reg): Same.
20368         (compute_reload_subreg_offset): Same.
20369         (reload_adjust_reg_for_icode): Same.
20370         (emit_input_reload_insns): Same.
20371         (emit_output_reload_insns): Same.
20372         (do_input_reload): Same.
20373         (inherit_piecemeal_p): Same.
20374         * rtl.h: Same.
20375         * sanopt.c (maybe_get_dominating_check): Same.
20376         (maybe_optimize_ubsan_ptr_ifn): Same.
20377         (can_remove_asan_check): Same.
20378         (maybe_optimize_asan_check_ifn): Same.
20379         (sanopt_optimize_walker): Same.
20380         * sched-deps.c (add_dependence_list): Same.
20381         (chain_to_prev_insn): Same.
20382         (add_insn_mem_dependence): Same.
20383         (create_insn_reg_set): Same.
20384         (maybe_extend_reg_info_p): Same.
20385         (sched_analyze_reg): Same.
20386         (sched_analyze_1): Same.
20387         (get_implicit_reg_pending_clobbers): Same.
20388         (chain_to_prev_insn_p): Same.
20389         (deps_analyze_insn): Same.
20390         (deps_start_bb): Same.
20391         (sched_free_deps): Same.
20392         (init_deps): Same.
20393         (init_deps_reg_last): Same.
20394         (free_deps): Same.
20395         * sched-ebb.c: Same.
20396         * sched-int.h: Same.
20397         * sched-rgn.c (add_branch_dependences): Same.
20398         (concat_insn_mem_list): Same.
20399         (deps_join): Same.
20400         (sched_rgn_compute_dependencies): Same.
20401         * sel-sched-ir.c (reset_target_context): Same.
20402         (copy_deps_context): Same.
20403         (init_id_from_df): Same.
20404         (has_dependence_p): Same.
20405         (change_loops_latches): Same.
20406         (bb_top_order_comparator): Same.
20407         (make_region_from_loop_preheader): Same.
20408         (sel_init_pipelining): Same.
20409         (get_loop_nest_for_rgn): Same.
20410         (make_regions_from_the_rest): Same.
20411         (sel_is_loop_preheader_p): Same.
20412         * sel-sched-ir.h (inner_loop_header_p): Same.
20413         (get_all_loop_exits): Same.
20414         * selftest.h: Same.
20415         * sese.c (sese_build_liveouts): Same.
20416         (sese_insert_phis_for_liveouts): Same.
20417         * sese.h (defined_in_sese_p): Same.
20418         * sreal.c (sreal::stream_out): Same.
20419         * sreal.h: Same.
20420         * streamer-hooks.h: Same.
20421         * target-globals.c (save_target_globals): Same.
20422         * target-globals.h: Same.
20423         * target.def: Same.
20424         * target.h: Same.
20425         * targhooks.c (default_has_ifunc_p): Same.
20426         (default_empty_mask_is_expensive): Same.
20427         (default_init_cost): Same.
20428         * targhooks.h: Same.
20429         * toplev.c: Same.
20430         * tree-affine.c (aff_combination_mult): Same.
20431         (aff_combination_expand): Same.
20432         (aff_combination_constant_multiple_p): Same.
20433         * tree-affine.h: Same.
20434         * tree-cfg.c (build_gimple_cfg): Same.
20435         (replace_loop_annotate_in_block): Same.
20436         (replace_uses_by): Same.
20437         (remove_bb): Same.
20438         (dump_cfg_stats): Same.
20439         (gimple_duplicate_sese_region): Same.
20440         (gimple_duplicate_sese_tail): Same.
20441         (move_block_to_fn): Same.
20442         (replace_block_vars_by_duplicates): Same.
20443         (move_sese_region_to_fn): Same.
20444         (print_loops_bb): Same.
20445         (print_loop): Same.
20446         (print_loops): Same.
20447         (debug): Same.
20448         (debug_loops): Same.
20449         * tree-cfg.h: Same.
20450         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20451         (chrec_fold_multiply_poly_poly): Same.
20452         (chrec_evaluate): Same.
20453         (chrec_component_in_loop_num): Same.
20454         (reset_evolution_in_loop): Same.
20455         (is_multivariate_chrec): Same.
20456         (chrec_contains_symbols): Same.
20457         (nb_vars_in_chrec): Same.
20458         (chrec_convert_1): Same.
20459         (chrec_convert_aggressive): Same.
20460         * tree-chrec.h: Same.
20461         * tree-core.h: Same.
20462         * tree-data-ref.c (dump_data_dependence_relation): Same.
20463         (canonicalize_base_object_address): Same.
20464         (data_ref_compare_tree): Same.
20465         (prune_runtime_alias_test_list): Same.
20466         (get_segment_min_max): Same.
20467         (create_intersect_range_checks): Same.
20468         (conflict_fn_no_dependence): Same.
20469         (object_address_invariant_in_loop_p): Same.
20470         (analyze_ziv_subscript): Same.
20471         (analyze_siv_subscript_cst_affine): Same.
20472         (analyze_miv_subscript): Same.
20473         (analyze_overlapping_iterations): Same.
20474         (build_classic_dist_vector_1): Same.
20475         (add_other_self_distances): Same.
20476         (same_access_functions): Same.
20477         (build_classic_dir_vector): Same.
20478         (subscript_dependence_tester_1): Same.
20479         (subscript_dependence_tester): Same.
20480         (access_functions_are_affine_or_constant_p): Same.
20481         (get_references_in_stmt): Same.
20482         (loop_nest_has_data_refs): Same.
20483         (graphite_find_data_references_in_stmt): Same.
20484         (find_data_references_in_bb): Same.
20485         (get_base_for_alignment): Same.
20486         (find_loop_nest_1): Same.
20487         (find_loop_nest): Same.
20488         * tree-data-ref.h (dr_alignment): Same.
20489         (ddr_dependence_level): Same.
20490         * tree-if-conv.c (fold_build_cond_expr): Same.
20491         (add_to_predicate_list): Same.
20492         (add_to_dst_predicate_list): Same.
20493         (phi_convertible_by_degenerating_args): Same.
20494         (idx_within_array_bound): Same.
20495         (all_preds_critical_p): Same.
20496         (pred_blocks_visited_p): Same.
20497         (predicate_bbs): Same.
20498         (build_region): Same.
20499         (if_convertible_loop_p_1): Same.
20500         (is_cond_scalar_reduction): Same.
20501         (predicate_scalar_phi): Same.
20502         (remove_conditions_and_labels): Same.
20503         (combine_blocks): Same.
20504         (version_loop_for_if_conversion): Same.
20505         (versionable_outer_loop_p): Same.
20506         (ifcvt_local_dce): Same.
20507         (tree_if_conversion): Same.
20508         (pass_if_conversion::gate): Same.
20509         * tree-if-conv.h: Same.
20510         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20511         * tree-loop-distribution.c (bb_top_order_cmp): Same.
20512         (free_rdg): Same.
20513         (stmt_has_scalar_dependences_outside_loop): Same.
20514         (copy_loop_before): Same.
20515         (create_bb_after_loop): Same.
20516         (const_with_all_bytes_same): Same.
20517         (generate_memset_builtin): Same.
20518         (generate_memcpy_builtin): Same.
20519         (destroy_loop): Same.
20520         (build_rdg_partition_for_vertex): Same.
20521         (compute_access_range): Same.
20522         (data_ref_segment_size): Same.
20523         (latch_dominated_by_data_ref): Same.
20524         (compute_alias_check_pairs): Same.
20525         (fuse_memset_builtins): Same.
20526         (finalize_partitions): Same.
20527         (find_seed_stmts_for_distribution): Same.
20528         (prepare_perfect_loop_nest): Same.
20529         * tree-parloops.c (lambda_transform_legal_p): Same.
20530         (loop_parallel_p): Same.
20531         (reduc_stmt_res): Same.
20532         (add_field_for_name): Same.
20533         (create_call_for_reduction_1): Same.
20534         (replace_uses_in_bb_by): Same.
20535         (transform_to_exit_first_loop_alt): Same.
20536         (try_transform_to_exit_first_loop_alt): Same.
20537         (transform_to_exit_first_loop): Same.
20538         (num_phis): Same.
20539         (gen_parallel_loop): Same.
20540         (gather_scalar_reductions): Same.
20541         (get_omp_data_i_param): Same.
20542         (try_create_reduction_list): Same.
20543         (oacc_entry_exit_single_gang): Same.
20544         (parallelize_loops): Same.
20545         * tree-pass.h: Same.
20546         * tree-predcom.c (determine_offset): Same.
20547         (last_always_executed_block): Same.
20548         (split_data_refs_to_components): Same.
20549         (suitable_component_p): Same.
20550         (valid_initializer_p): Same.
20551         (find_looparound_phi): Same.
20552         (insert_looparound_copy): Same.
20553         (add_looparound_copies): Same.
20554         (determine_roots_comp): Same.
20555         (predcom_tmp_var): Same.
20556         (initialize_root_vars): Same.
20557         (initialize_root_vars_store_elim_1): Same.
20558         (initialize_root_vars_store_elim_2): Same.
20559         (finalize_eliminated_stores): Same.
20560         (initialize_root_vars_lm): Same.
20561         (remove_stmt): Same.
20562         (determine_unroll_factor): Same.
20563         (execute_pred_commoning_cbck): Same.
20564         (base_names_in_chain_on): Same.
20565         (combine_chains): Same.
20566         (pcom_stmt_dominates_stmt_p): Same.
20567         (try_combine_chains): Same.
20568         (prepare_initializers_chain_store_elim): Same.
20569         (prepare_initializers_chain): Same.
20570         (prepare_initializers): Same.
20571         (prepare_finalizers_chain): Same.
20572         (prepare_finalizers): Same.
20573         (insert_init_seqs): Same.
20574         * tree-scalar-evolution.c (loop_phi_node_p): Same.
20575         (compute_overall_effect_of_inner_loop): Same.
20576         (add_to_evolution_1): Same.
20577         (add_to_evolution): Same.
20578         (follow_ssa_edge_binary): Same.
20579         (follow_ssa_edge_expr): Same.
20580         (backedge_phi_arg_p): Same.
20581         (follow_ssa_edge_in_condition_phi_branch): Same.
20582         (follow_ssa_edge_in_condition_phi): Same.
20583         (follow_ssa_edge_inner_loop_phi): Same.
20584         (follow_ssa_edge): Same.
20585         (analyze_evolution_in_loop): Same.
20586         (analyze_initial_condition): Same.
20587         (interpret_loop_phi): Same.
20588         (interpret_condition_phi): Same.
20589         (interpret_rhs_expr): Same.
20590         (interpret_expr): Same.
20591         (interpret_gimple_assign): Same.
20592         (analyze_scalar_evolution_1): Same.
20593         (analyze_scalar_evolution): Same.
20594         (analyze_scalar_evolution_for_address_of): Same.
20595         (get_instantiated_value_entry): Same.
20596         (loop_closed_phi_def): Same.
20597         (instantiate_scev_name): Same.
20598         (instantiate_scev_poly): Same.
20599         (instantiate_scev_binary): Same.
20600         (instantiate_scev_convert): Same.
20601         (instantiate_scev_not): Same.
20602         (instantiate_scev_r): Same.
20603         (instantiate_scev): Same.
20604         (resolve_mixers): Same.
20605         (initialize_scalar_evolutions_analyzer): Same.
20606         (scev_reset_htab): Same.
20607         (scev_reset): Same.
20608         (derive_simple_iv_with_niters): Same.
20609         (simple_iv_with_niters): Same.
20610         (expression_expensive_p): Same.
20611         (final_value_replacement_loop): Same.
20612         * tree-scalar-evolution.h (block_before_loop): Same.
20613         * tree-ssa-address.h: Same.
20614         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20615         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20616         (record_edge_info): Same.
20617         * tree-ssa-live.c (var_map_base_fini): Same.
20618         (remove_unused_locals): Same.
20619         * tree-ssa-live.h: Same.
20620         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20621         (pass_ch_vect::execute): Same.
20622         (pass_ch::process_loop_p): Same.
20623         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20624         (movement_possibility): Same.
20625         (outermost_invariant_loop): Same.
20626         (stmt_cost): Same.
20627         (determine_max_movement): Same.
20628         (invariantness_dom_walker::before_dom_children): Same.
20629         (move_computations): Same.
20630         (may_move_till): Same.
20631         (force_move_till_op): Same.
20632         (force_move_till): Same.
20633         (memref_free): Same.
20634         (record_mem_ref_loc): Same.
20635         (set_ref_stored_in_loop): Same.
20636         (mark_ref_stored): Same.
20637         (sort_bbs_in_loop_postorder_cmp): Same.
20638         (sort_locs_in_loop_postorder_cmp): Same.
20639         (analyze_memory_references): Same.
20640         (mem_refs_may_alias_p): Same.
20641         (find_ref_loc_in_loop_cmp): Same.
20642         (rewrite_mem_ref_loc::operator): Same.
20643         (first_mem_ref_loc_1::operator): Same.
20644         (sm_set_flag_if_changed::operator): Same.
20645         (execute_sm_if_changed_flag_set): Same.
20646         (execute_sm): Same.
20647         (hoist_memory_references): Same.
20648         (ref_always_accessed::operator): Same.
20649         (refs_independent_p): Same.
20650         (record_dep_loop): Same.
20651         (ref_indep_loop_p_1): Same.
20652         (ref_indep_loop_p): Same.
20653         (can_sm_ref_p): Same.
20654         (find_refs_for_sm): Same.
20655         (loop_suitable_for_sm): Same.
20656         (store_motion_loop): Same.
20657         (store_motion): Same.
20658         (fill_always_executed_in): Same.
20659         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20660         (estimated_unrolled_size): Same.
20661         (loop_edge_to_cancel): Same.
20662         (remove_exits_and_undefined_stmts): Same.
20663         (remove_redundant_iv_tests): Same.
20664         (unloop_loops): Same.
20665         (estimated_peeled_sequence_size): Same.
20666         (try_peel_loop): Same.
20667         (canonicalize_loop_induction_variables): Same.
20668         (canonicalize_induction_variables): Same.
20669         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20670         (name_info): Same.
20671         (stmt_after_inc_pos): Same.
20672         (contains_abnormal_ssa_name_p): Same.
20673         (niter_for_exit): Same.
20674         (find_bivs): Same.
20675         (mark_bivs): Same.
20676         (find_givs_in_bb): Same.
20677         (find_induction_variables): Same.
20678         (find_interesting_uses_cond): Same.
20679         (outermost_invariant_loop_for_expr): Same.
20680         (idx_find_step): Same.
20681         (add_candidate_1): Same.
20682         (add_iv_candidate_derived_from_uses): Same.
20683         (alloc_use_cost_map): Same.
20684         (prepare_decl_rtl): Same.
20685         (generic_predict_doloop_p): Same.
20686         (computation_cost): Same.
20687         (determine_common_wider_type): Same.
20688         (get_computation_aff_1): Same.
20689         (get_use_type): Same.
20690         (determine_group_iv_cost_address): Same.
20691         (iv_period): Same.
20692         (difference_cannot_overflow_p): Same.
20693         (may_eliminate_iv): Same.
20694         (determine_set_costs): Same.
20695         (cheaper_cost_pair): Same.
20696         (compare_cost_pair): Same.
20697         (iv_ca_cand_for_group): Same.
20698         (iv_ca_recount_cost): Same.
20699         (iv_ca_set_remove_invs): Same.
20700         (iv_ca_set_no_cp): Same.
20701         (iv_ca_set_add_invs): Same.
20702         (iv_ca_set_cp): Same.
20703         (iv_ca_add_group): Same.
20704         (iv_ca_cost): Same.
20705         (iv_ca_compare_deps): Same.
20706         (iv_ca_delta_reverse): Same.
20707         (iv_ca_delta_commit): Same.
20708         (iv_ca_cand_used_p): Same.
20709         (iv_ca_delta_free): Same.
20710         (iv_ca_new): Same.
20711         (iv_ca_free): Same.
20712         (iv_ca_dump): Same.
20713         (iv_ca_extend): Same.
20714         (iv_ca_narrow): Same.
20715         (iv_ca_prune): Same.
20716         (cheaper_cost_with_cand): Same.
20717         (iv_ca_replace): Same.
20718         (try_add_cand_for): Same.
20719         (get_initial_solution): Same.
20720         (try_improve_iv_set): Same.
20721         (find_optimal_iv_set_1): Same.
20722         (create_new_iv): Same.
20723         (rewrite_use_compare): Same.
20724         (remove_unused_ivs): Same.
20725         (determine_scaling_factor): Same.
20726         * tree-ssa-loop-ivopts.h: Same.
20727         * tree-ssa-loop-manip.c (create_iv): Same.
20728         (compute_live_loop_exits): Same.
20729         (add_exit_phi): Same.
20730         (add_exit_phis): Same.
20731         (find_uses_to_rename_use): Same.
20732         (find_uses_to_rename_def): Same.
20733         (find_uses_to_rename_in_loop): Same.
20734         (rewrite_into_loop_closed_ssa): Same.
20735         (check_loop_closed_ssa_bb): Same.
20736         (split_loop_exit_edge): Same.
20737         (ip_end_pos): Same.
20738         (ip_normal_pos): Same.
20739         (copy_phi_node_args): Same.
20740         (gimple_duplicate_loop_to_header_edge): Same.
20741         (can_unroll_loop_p): Same.
20742         (determine_exit_conditions): Same.
20743         (scale_dominated_blocks_in_loop): Same.
20744         (niter_for_unrolled_loop): Same.
20745         (tree_transform_and_unroll_loop): Same.
20746         (rewrite_all_phi_nodes_with_iv): Same.
20747         * tree-ssa-loop-manip.h: Same.
20748         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20749         (number_of_iterations_ne): Same.
20750         (assert_no_overflow_lt): Same.
20751         (assert_loop_rolls_lt): Same.
20752         (number_of_iterations_lt): Same.
20753         (adjust_cond_for_loop_until_wrap): Same.
20754         (tree_simplify_using_condition): Same.
20755         (simplify_using_initial_conditions): Same.
20756         (simplify_using_outer_evolutions): Same.
20757         (loop_only_exit_p): Same.
20758         (ssa_defined_by_minus_one_stmt_p): Same.
20759         (number_of_iterations_popcount): Same.
20760         (number_of_iterations_exit): Same.
20761         (find_loop_niter): Same.
20762         (finite_loop_p): Same.
20763         (chain_of_csts_start): Same.
20764         (get_val_for): Same.
20765         (loop_niter_by_eval): Same.
20766         (derive_constant_upper_bound_ops): Same.
20767         (do_warn_aggressive_loop_optimizations): Same.
20768         (record_estimate): Same.
20769         (get_cst_init_from_scev): Same.
20770         (record_nonwrapping_iv): Same.
20771         (idx_infer_loop_bounds): Same.
20772         (infer_loop_bounds_from_ref): Same.
20773         (infer_loop_bounds_from_array): Same.
20774         (infer_loop_bounds_from_pointer_arith): Same.
20775         (infer_loop_bounds_from_signedness): Same.
20776         (bound_index): Same.
20777         (discover_iteration_bound_by_body_walk): Same.
20778         (maybe_lower_iteration_bound): Same.
20779         (estimate_numbers_of_iterations): Same.
20780         (estimated_loop_iterations): Same.
20781         (estimated_loop_iterations_int): Same.
20782         (max_loop_iterations): Same.
20783         (max_loop_iterations_int): Same.
20784         (likely_max_loop_iterations): Same.
20785         (likely_max_loop_iterations_int): Same.
20786         (estimated_stmt_executions_int): Same.
20787         (max_stmt_executions): Same.
20788         (likely_max_stmt_executions): Same.
20789         (estimated_stmt_executions): Same.
20790         (stmt_dominates_stmt_p): Same.
20791         (nowrap_type_p): Same.
20792         (loop_exits_before_overflow): Same.
20793         (scev_var_range_cant_overflow): Same.
20794         (scev_probably_wraps_p): Same.
20795         (free_numbers_of_iterations_estimates): Same.
20796         * tree-ssa-loop-niter.h: Same.
20797         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20798         (idx_analyze_ref): Same.
20799         (analyze_ref): Same.
20800         (gather_memory_references_ref): Same.
20801         (mark_nontemporal_store): Same.
20802         (emit_mfence_after_loop): Same.
20803         (may_use_storent_in_loop_p): Same.
20804         (mark_nontemporal_stores): Same.
20805         (should_unroll_loop_p): Same.
20806         (volume_of_dist_vector): Same.
20807         (add_subscript_strides): Same.
20808         (self_reuse_distance): Same.
20809         (insn_to_prefetch_ratio_too_small_p): Same.
20810         * tree-ssa-loop-split.c (split_at_bb_p): Same.
20811         (patch_loop_exit): Same.
20812         (find_or_create_guard_phi): Same.
20813         (easy_exit_values): Same.
20814         (connect_loop_phis): Same.
20815         (connect_loops): Same.
20816         (compute_new_first_bound): Same.
20817         (split_loop): Same.
20818         (tree_ssa_split_loops): Same.
20819         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20820         (is_maybe_undefined): Same.
20821         (tree_may_unswitch_on): Same.
20822         (simplify_using_entry_checks): Same.
20823         (tree_unswitch_single_loop): Same.
20824         (tree_unswitch_loop): Same.
20825         (tree_unswitch_outer_loop): Same.
20826         (empty_bb_without_guard_p): Same.
20827         (used_outside_loop_p): Same.
20828         (get_vop_from_header): Same.
20829         (hoist_guard): Same.
20830         * tree-ssa-loop.c (gate_oacc_kernels): Same.
20831         (get_lsm_tmp_name): Same.
20832         * tree-ssa-loop.h: Same.
20833         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20834         (build_and_add_sum): Same.
20835         (no_side_effect_bb): Same.
20836         (get_ops): Same.
20837         (linearize_expr): Same.
20838         (should_break_up_subtract): Same.
20839         (linearize_expr_tree): Same.
20840         * tree-ssa-scopedtables.c: Same.
20841         * tree-ssa-scopedtables.h: Same.
20842         * tree-ssa-structalias.c (condense_visit): Same.
20843         (label_visit): Same.
20844         (dump_pred_graph): Same.
20845         (perform_var_substitution): Same.
20846         (move_complex_constraints): Same.
20847         (remove_preds_and_fake_succs): Same.
20848         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20849         (determine_bb_domination_status): Same.
20850         (duplicate_thread_path): Same.
20851         (thread_through_all_blocks): Same.
20852         * tree-ssa-threadupdate.h: Same.
20853         * tree-streamer-in.c (streamer_read_string_cst): Same.
20854         (input_identifier): Same.
20855         (unpack_ts_type_common_value_fields): Same.
20856         (unpack_ts_block_value_fields): Same.
20857         (unpack_ts_translation_unit_decl_value_fields): Same.
20858         (unpack_ts_omp_clause_value_fields): Same.
20859         (streamer_read_tree_bitfields): Same.
20860         (streamer_alloc_tree): Same.
20861         (lto_input_ts_common_tree_pointers): Same.
20862         (lto_input_ts_vector_tree_pointers): Same.
20863         (lto_input_ts_poly_tree_pointers): Same.
20864         (lto_input_ts_complex_tree_pointers): Same.
20865         (lto_input_ts_decl_minimal_tree_pointers): Same.
20866         (lto_input_ts_decl_common_tree_pointers): Same.
20867         (lto_input_ts_decl_non_common_tree_pointers): Same.
20868         (lto_input_ts_decl_with_vis_tree_pointers): Same.
20869         (lto_input_ts_field_decl_tree_pointers): Same.
20870         (lto_input_ts_function_decl_tree_pointers): Same.
20871         (lto_input_ts_type_common_tree_pointers): Same.
20872         (lto_input_ts_type_non_common_tree_pointers): Same.
20873         (lto_input_ts_list_tree_pointers): Same.
20874         (lto_input_ts_vec_tree_pointers): Same.
20875         (lto_input_ts_exp_tree_pointers): Same.
20876         (lto_input_ts_block_tree_pointers): Same.
20877         (lto_input_ts_binfo_tree_pointers): Same.
20878         (lto_input_ts_constructor_tree_pointers): Same.
20879         (lto_input_ts_omp_clause_tree_pointers): Same.
20880         (streamer_read_tree_body): Same.
20881         * tree-streamer.h: Same.
20882         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20883         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20884         (vect_analyze_possibly_independent_ddr): Same.
20885         (vect_analyze_data_ref_dependence): Same.
20886         (vect_compute_data_ref_alignment): Same.
20887         (vect_enhance_data_refs_alignment): Same.
20888         (vect_analyze_data_ref_access): Same.
20889         (vect_check_gather_scatter): Same.
20890         (vect_find_stmt_data_reference): Same.
20891         (vect_create_addr_base_for_vector_ref): Same.
20892         (vect_setup_realignment): Same.
20893         (vect_supportable_dr_alignment): Same.
20894         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20895         (adjust_phi_and_debug_stmts): Same.
20896         (vect_set_loop_mask): Same.
20897         (add_preheader_seq): Same.
20898         (vect_maybe_permute_loop_masks): Same.
20899         (vect_set_loop_masks_directly): Same.
20900         (vect_set_loop_condition_masked): Same.
20901         (vect_set_loop_condition_unmasked): Same.
20902         (slpeel_duplicate_current_defs_from_edges): Same.
20903         (slpeel_add_loop_guard): Same.
20904         (slpeel_can_duplicate_loop_p): Same.
20905         (create_lcssa_for_virtual_phi): Same.
20906         (iv_phi_p): Same.
20907         (vect_update_ivs_after_vectorizer): Same.
20908         (vect_gen_vector_loop_niters_mult_vf): Same.
20909         (slpeel_update_phi_nodes_for_loops): Same.
20910         (slpeel_update_phi_nodes_for_guard1): Same.
20911         (find_guard_arg): Same.
20912         (slpeel_update_phi_nodes_for_guard2): Same.
20913         (slpeel_update_phi_nodes_for_lcssa): Same.
20914         (vect_do_peeling): Same.
20915         (vect_create_cond_for_alias_checks): Same.
20916         (vect_loop_versioning): Same.
20917         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20918         (vect_inner_phi_in_double_reduction_p): Same.
20919         (vect_analyze_scalar_cycles_1): Same.
20920         (vect_fixup_scalar_cycles_with_patterns): Same.
20921         (vect_get_loop_niters): Same.
20922         (bb_in_loop_p): Same.
20923         (vect_get_max_nscalars_per_iter): Same.
20924         (vect_verify_full_masking): Same.
20925         (vect_compute_single_scalar_iteration_cost): Same.
20926         (vect_analyze_loop_form_1): Same.
20927         (vect_analyze_loop_form): Same.
20928         (vect_active_double_reduction_p): Same.
20929         (vect_analyze_loop_operations): Same.
20930         (neutral_op_for_slp_reduction): Same.
20931         (vect_is_simple_reduction): Same.
20932         (vect_model_reduction_cost): Same.
20933         (get_initial_def_for_reduction): Same.
20934         (get_initial_defs_for_reduction): Same.
20935         (vect_create_epilog_for_reduction): Same.
20936         (vectorize_fold_left_reduction): Same.
20937         (vectorizable_reduction): Same.
20938         (vectorizable_induction): Same.
20939         (vectorizable_live_operation): Same.
20940         (loop_niters_no_overflow): Same.
20941         (vect_get_loop_mask): Same.
20942         (vect_transform_loop_stmt): Same.
20943         (vect_transform_loop): Same.
20944         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20945         (vect_determine_precisions): Same.
20946         (vect_pattern_recog_1): Same.
20947         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20948         * tree-vect-stmts.c (stmt_vectype): Same.
20949         (process_use): Same.
20950         (vect_init_vector_1): Same.
20951         (vect_truncate_gather_scatter_offset): Same.
20952         (get_group_load_store_type): Same.
20953         (vect_build_gather_load_calls): Same.
20954         (vect_get_strided_load_store_ops): Same.
20955         (vectorizable_simd_clone_call): Same.
20956         (vectorizable_store): Same.
20957         (permute_vec_elements): Same.
20958         (vectorizable_load): Same.
20959         (vect_transform_stmt): Same.
20960         (supportable_widening_operation): Same.
20961         * tree-vectorizer.c (vec_info::replace_stmt): Same.
20962         (vec_info::free_stmt_vec_info): Same.
20963         (vect_free_loop_info_assumptions): Same.
20964         (vect_loop_vectorized_call): Same.
20965         (set_uid_loop_bbs): Same.
20966         (vectorize_loops): Same.
20967         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20968         * tree.c (add_tree_to_fld_list): Same.
20969         (fld_type_variant_equal_p): Same.
20970         (fld_decl_context): Same.
20971         (fld_incomplete_type_of): Same.
20972         (free_lang_data_in_binfo): Same.
20973         (need_assembler_name_p): Same.
20974         (find_decls_types_r): Same.
20975         (get_eh_types_for_runtime): Same.
20976         (find_decls_types_in_eh_region): Same.
20977         (find_decls_types_in_node): Same.
20978         (assign_assembler_name_if_needed): Same.
20979         * value-prof.c (stream_out_histogram_value): Same.
20980         * value-prof.h: Same.
20981         * var-tracking.c (use_narrower_mode): Same.
20982         (prepare_call_arguments): Same.
20983         (vt_expand_loc_callback): Same.
20984         (resolve_expansions_pending_recursion): Same.
20985         (vt_expand_loc): Same.
20986         * varasm.c (const_hash_1): Same.
20987         (compare_constant): Same.
20988         (tree_output_constant_def): Same.
20989         (simplify_subtraction): Same.
20990         (get_pool_constant): Same.
20991         (output_constant_pool_2): Same.
20992         (output_constant_pool_1): Same.
20993         (mark_constants_in_pattern): Same.
20994         (mark_constant_pool): Same.
20995         (get_section_anchor): Same.
20996         * vr-values.c (compare_range_with_value): Same.
20997         (vr_values::extract_range_from_phi_node): Same.
20998         * vr-values.h: Same.
20999         * web.c (unionfind_union): Same.
21000         * wide-int.h: Same.
21002 2019-07-09  Martin Sebor  <msebor@redhat.com>
21004         PR c++/61339
21005         * align.h: Change class-key from class to struct and vice versa
21006         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21007         * alloc-pool.h: Same.
21008         * asan.c (shadow_mem_size): Same.
21009         * auto-profile.c: Same.
21010         * basic-block.h: Same.
21011         * bitmap.h: Same.
21012         * cfgexpand.c (set_rtl): Same.
21013         (expand_one_stack_var_at): Same.
21014         * cfghooks.h: Same.
21015         * cfgloop.h: Same.
21016         * cgraph.h: Same.
21017         * config/i386/i386.h: Same.
21018         * df-problems.c (df_print_bb_index): Same.
21019         * df-scan.c: Same.
21020         * df.h (df_single_use): Same.
21021         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21022         (layout::annotation_line_showed_range_p): Same.
21023         (get_printed_columns): Same.
21024         (correction::ensure_terminated): Same.
21025         (line_corrections::~line_corrections): Same.
21026         * dojump.h: Same.
21027         * dse.c: Same.
21028         * dump-context.h: Same.
21029         * dumpfile.h: Same.
21030         * dwarf2out.c: Same.
21031         * edit-context.c: Same.
21032         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21033         * flags.h: Same.
21034         * function.c (assign_stack_local): Same.
21035         * function.h: Same.
21036         * gcc.c: Same.
21037         * gcov.c (block_info::block_info): Same.
21038         * genattrtab.c: Same.
21039         * genextract.c: Same.
21040         * genmatch.c (comparison_code_p): Same.
21041         (id_base::id_base): Same.
21042         (decision_tree::print): Same.
21043         * genoutput.c: Same.
21044         * genpreds.c (write_one_predicate_function): Same.
21045         * genrecog.c (validate_pattern): Same.
21046         (find_operand_positions): Same.
21047         (optimize_subroutine_group): Same.
21048         (merge_pattern_transition::merge_pattern_transition): Same.
21049         (merge_pattern_info::merge_pattern_info): Same.
21050         (merge_state_result::merge_state_result): Same.
21051         (merge_into_state): Same.
21052         * gensupport.c: Same.
21053         * gensupport.h: Same.
21054         * ggc-common.c (init_ggc_heuristics): Same.
21055         * ggc-tests.c (test_union): Same.
21056         * gimple-loop-interchange.cc (dump_induction): Same.
21057         * gimple-loop-versioning.cc: Same.
21058         * gimple-match.h (gimple_match_cond::any_else): Same.
21059         * gimple-ssa-backprop.c: Same.
21060         * gimple-ssa-sprintf.c: Same.
21061         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21062         Same.
21063         (store_immediate_info::store_immediate_info): Same.
21064         (merged_store_group::apply_stores): Same.
21065         (get_location_for_stmts): Same.
21066         * gimple-ssa-strength-reduction.c: Same.
21067         * gimple-ssa-warn-alloca.c: Same.
21068         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21069         * godump.c (go_type_decl): Same.
21070         * hash-map-tests.c (test_map_of_strings_to_int): Same.
21071         * hash-map.h: Same.
21072         * hash-set-tests.c (test_set_of_strings): Same.
21073         * hsa-brig.c: Same.
21074         * hsa-common.h: Same.
21075         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21076         * input.c (assert_loceq): Same.
21077         * input.h: Same.
21078         * ipa-cp.c: Same.
21079         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21080         * ipa-fnsummary.h: Same.
21081         * ipa-inline.h: Same.
21082         * ipa-prop.h: Same.
21083         * ipa-split.c (visit_bb): Same.
21084         * ira-int.h (minmax_set_iter_next): Same.
21085         * loop-invariant.c: Same.
21086         * loop-iv.c: Same.
21087         * lra-eliminations.c: Same.
21088         * lra-int.h: Same.
21089         * lra-lives.c (mark_regno_dead): Same.
21090         * lra-remat.c: Same.
21091         * lra-spills.c: Same.
21092         * lto-streamer.h: Same.
21093         * mem-stats.h: Same.
21094         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21095         * omp-low.c (omp_clause_aligned_alignment): Same.
21096         * optabs-query.h (get_vcond_eq_icode): Same.
21097         * optabs.h: Same.
21098         * opts.c (wrap_help): Same.
21099         * poly-int.h: Same.
21100         * predict.c (predict_paths_leading_to_edge): Same.
21101         * pretty-print.h: Same.
21102         * profile-count.h: Same.
21103         * read-md.h: Same.
21104         * read-rtl-function.c: Same.
21105         * ree.c: Same.
21106         * reginfo.c: Same.
21107         * regrename.c: Same.
21108         * regrename.h: Same.
21109         * reload.h: Same.
21110         * rtl-iter.h: Same.
21111         * rtl.h (costs_add_n_insns): Same.
21112         * sanopt.c: Same.
21113         * sched-int.h: Same.
21114         * sel-sched-ir.h: Same.
21115         * selftest.h: Same.
21116         * sese.h (vec_find): Same.
21117         * stmt.c: Same.
21118         * target-globals.h: Same.
21119         * tree-affine.c (aff_combination_find_elt): Same.
21120         * tree-affine.h: Same.
21121         * tree-data-ref.h: Same.
21122         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21123         * tree-predcom.c: Same.
21124         * tree-scalar-evolution.c (find_var_scev_info): Same.
21125         * tree-ssa-alias.h: Same.
21126         * tree-ssa-ccp.c: Same.
21127         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21128         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21129         (rewrite_mem_refs): Same.
21130         (execute_sm_if_changed): Same.
21131         (hoist_memory_references): Same.
21132         * tree-ssa-loop-ivopts.c (operator<=): Same.
21133         * tree-ssa-loop.h: Same.
21134         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21135         * tree-ssa-structalias.c: Same.
21136         * tree-switch-conversion.h (cluster::cluster): Same.
21137         (simple_cluster::simple_cluster): Same.
21138         * tree-vect-patterns.c (type_conversion_p): Same.
21139         * tree-vectorizer.c (dump_stmt_cost): Same.
21140         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21141         * tree.c (protected_set_expr_location): Same.
21142         * tree.h (desired_pro_or_demotion_p): Same.
21143         (fndecl_built_in_p): Same.
21144         * unique-ptr-tests.cc: Same.
21145         * var-tracking.c (delete_variable_part): Same.
21146         * varasm.c (assemble_real): Same.
21147         (tree_output_constant_def): Same.
21148         * vec.c: Same.
21149         * wide-int-bitmask.h: Same.
21150         * wide-int.h (decompose): Same.
21152 2019-07-09  Richard Biener  <rguenther@suse.de>
21154         PR tree-optimization/91114
21155         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21156         find a vector type isn't fatal.
21158 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
21160         * config/aarch64/aarch64-simd.md
21161         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21162         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21163         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21164         (*aarch64_crypto_aese_fused,
21165         *aarch64_crypto_aesd_fused): Update to new definition.
21166         * config/aarch64/aarch64.c
21167         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21169 2019-07-09  Richard Biener  <rguenther@suse.de>
21171         * gimple-match.h (gimple_match_op::resimplify): New.
21172         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21173         gimple_resimplify4, gimple_resimplify5): Remove.
21174         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21175         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21176         Make static.
21177         (gimple_match_op::resimplify): New.
21178         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21179         according to availability.  Use gimple_match_op::resimplify.
21181 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
21183         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21185 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
21187         * config/arm/crypto.md:
21188         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21189         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21190         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21191         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21192         * config/arm/arm.c
21193         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21194         * config/arm/aarch-common-protos.h
21195         (aarch_crypto_can_dual_issue): Remove.
21196         * config/arm/aarch-common.c
21197         (aarch_crypto_can_dual_issue): Likewise.
21198         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21199         * config/arm/cortex-a53.md: Likewise.
21200         * config/arm/cortex-a57.md: Likewise.
21201         * config/arm/iterators.md:
21202         (CRYPTO_BINARY): Redefine.
21203         (CRYPTO_UNARY): Removed.
21204         (CRYPTO_AES, CRYPTO_AESMC): New.
21206 2019-07-09  Richard Biener  <rguenther@suse.de>
21208         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21209         (vn_reference_lookup_3): If the main ref has no access path recorded
21210         but orig_ref has use it to do access-path based disambiguation.
21211         (vn_reference_lookup_pieces): Adjust.
21212         (vn_reference_lookup): Pass down original ref if we valueized.
21214 2019-07-09  Martin Liska  <mliska@suse.cz>
21216         * doc/extend.texi: Document influence on loop
21217         optimizers.
21219 2019-07-09  Martin Liska  <mliska@suse.cz>
21221         * lto-compress.c (lto_normalized_zstd_level): Do not use
21222         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21223         of libzstd.  One can use 0 as a default compression level.
21225 2019-07-09  Martin Liska  <mliska@suse.cz>
21227         * doc/invoke.texi: Add link from -fprofile-dir option.
21228         Use better wording for 'gcno filename'.
21230 2019-07-08  Martin Sebor  <msebor@redhat.com>
21232         PR middle-end/71924
21233         PR middle-end/90549
21234         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
21235         comment.
21236         (args_loc_t): New type.
21237         (args_loc_t, locmap_t): same.
21238         (diag_returned_locals): New function.
21239         (is_addr_local): Same.
21240         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21241         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21242         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21244 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
21246         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21247         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
21248         and casts in offset when different, both through gimple stmts
21249         and through trees.  Rewritten using loops to minimize code duplication
21250         for each operand.
21252 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21254         * emit-rtl.c (set_insn_locations): New function moved from...
21255         * function.c (set_insn_locations): ...here.
21256         * ira-emit.c (emit_moves): Propagate location of the first instruction
21257         to the inserted move instructions.
21258         * reg-stack.c (compensate_edge): Set the location if the sequence is
21259         inserted on the edge.
21260         * rtl.h (set_insn_locations): Declare.
21262 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
21264         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21265         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21266         .machine string.
21268 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
21270         PR rtl-optimization/88233
21271         * common.opt (fsplit-wide-types-early): New option.
21272         * common/config/rs6000/rs6000-common.c
21273         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21274         OPT_LEVELS_ALL.
21275         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21276         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21277         flag_split_wide_types_early.
21278         (pass_data_lower_subreg3): New.
21279         (pass_lower_subreg3): New.
21280         (make_pass_lower_subreg3): New.
21281         * passes.def (pass_lower_subreg2): Move after the loop passes.
21282         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21283         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21284         the pass pipeline; its previous place is taken by ...
21285         (make_pass_lower_subreg3): ... this.
21287 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
21289         * config/s390/s390.c (s390_shift_truncation_mask): Define.
21290         (TARGET_SHIFT_TRUNCATION_MASK): Define.
21292 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
21294         * config/s390/constraints.md: Add new jsc constraint.
21295         * config/s390/predicates.md: New predicates.
21296         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21297         * config/s390/s390.c (s390_valid_shift_count): New function.
21298         (print_shift_count_operand): Use s390_valid_shift_count.
21299         (print_operand): Likewise.
21300         * config/s390/s390.md: Use new predicate.
21301         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21302         * config/s390/vector.md: Use new predicate.
21304 2019-07-08  Andrew Waterman  <andrew@sifive.com>
21305             Jim Wilson  <jimw@sifive.com>
21307         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21308         bitsize instead of BITS_PER_WORD.
21310 2019-07-08  Martin Liska  <mliska@suse.cz>
21312         * collect2.c (defined): Revert to before r254460.
21313         (scan_prog_file): Revert to before r254460.
21315 2019-07-08  Richard Biener  <rguenther@suse.de>
21317         PR tree-optimization/83518
21318         * tree-ssa-sccvn.c: Include splay-tree.h.
21319         (struct pd_range, struct pd_data): New.
21320         (struct vn_walk_cb_data): Add data to track partial definitions.
21321         (vn_walk_cb_data::~vn_walk_cb_data): New.
21322         (vn_walk_cb_data::push_partial_def): New.
21323         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21324         (vn_reference_lookup_2): When partial defs are registered give up.
21325         (vn_reference_lookup_3): Track partial defs for memset and
21326         constructor zeroing and for defs from constants.
21328 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
21330         * doc/install.texi (bootstrap-Og): Document.
21332 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
21334         * config/riscv/pic.md (*local_pic_load_s<mode>)
21335         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21336         referenced by <mode>, giving...
21337         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21338         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21339         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21340         use <X:MODE> for the mode attribute.
21342 2019-07-07  Jeff Law  <law@redhat.com>
21344         PR tree-optimization/91090
21345         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21346         in handling of ranges to simplify switch statements.
21348 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
21350         * config/darwin.c (darwin_override_options): Make a final check on PIC
21351         options.
21353 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
21355         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21356         on for kernel code.
21358 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
21360         PR target/91068
21361         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21362         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21363         instead of matching them to "l" output operands.
21365 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
21367         * config/mips/mips.c (mips_split_move): Zero-initialize addr
21368         and check whether addr.reg is nonnull before using it.
21370 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
21372         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21373         ctx->for_simd_scan_phase simd copy the outer var to the privatized
21374         variable(s).  For conditional lastprivate look through outer
21375         GIMPLE_OMP_SCAN context.
21376         (lower_omp_1): For conditional lastprivate look through outer
21377         GIMPLE_OMP_SCAN context.
21379         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21380         member to combined_into_simd_safelen1.
21381         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21382         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
21383         clauses if ctx->combined_into_simd_safelen1 put statements after the
21384         predicate conditionalized block rather than into it.
21386 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21388         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21389         operand 1.
21390         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21391         Make the choice of <mode> explicit, giving...
21392         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21394 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21396         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21397         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21398         of .md attributes.
21399         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21400         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21401         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21402         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21403         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21404         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21405         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21406         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21407         (*avx512f_scatterdi<mode>): Likewise.
21408         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21410 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21412         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21413         specify the mode iterator referenced by <mode>, giving...
21414         (*push1_h8300hs_<QHI:mode>): ...this.
21416 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21418         * config/gcn/gcn-valu.md
21419         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21420         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21421         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
21422         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21423         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21424         but using the _exec comparison patterns.
21425         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21426         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21427         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
21428         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21429         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21430         but using the _exec comparison patterns.
21432 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
21434         * config/arm/sync.md
21435         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21436         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21437         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21438         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
21439         <SIDI:cas_cmp_str>.
21441 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
21443         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21444         (maybe_lookup_ctx): Add forward declaration.
21445         (omp_find_scan): Likewise.  Walk into body of simd if composited
21446         with worksharing loop.
21447         (scan_omp_simd_scan): New function.
21448         (scan_omp_1_stmt): Call it.
21449         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21450         ctx->for_simd_scan_phase.
21451         (lower_rec_input_clauses): Do much less work for inscan reductions
21452         in ctx->for_simd_scan_phase is_simd regions.
21453         (lower_omp_scan): Set is_simd also on simd constructs composited
21454         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
21455         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
21456         emit their body after in simd constructs composited with worksharing
21457         loop.
21458         (lower_omp_for_scan): Handle worksharing loop composited with simd.
21460         * omp-low.c (omp_find_scan): Make static.
21461         (lower_omp_for_scan): Fix order of merge arguments in input phase of
21462         the second loop, var2 represents the first partial sum and so needs
21463         to go before rprivb[ivar].
21465 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
21467         * config/rs6000/rs6000-logue.c: Remove unused code.
21469 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
21471         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21473 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
21475         PR target/90712
21476         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21477         check with a frame laid out check.
21479 2019-07-05  Richard Biener  <rguenther@suse.de>
21481         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21482         when comparing against a store with possibly the same value.
21484 2019-07-05  Richard Biener  <rguenther@suse.de>
21486         PR tree-optimization/91091
21487         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21488         (walk_non_aliased_vuses): Likewise.
21489         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21490         (get_continuation_for_phi): New tbaa_p parameter and pass
21491         it down.
21492         (walk_non_aliased_vuses): Likewise.
21493         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21494         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21495         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21496         Likewise.
21497         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21498         (adjust_offsets_for_equal_base_address): New function.
21499         (vn_reference_lookup_3): Use it to catch more base equivalences.
21500         Handle and pass down tbaa_p flag.
21501         (vn_reference_lookup_pieces): Adjust.
21502         (vn_reference_lookup): Remove alias-set altering, instead pass
21503         down false as tbaa_p.
21505 2019-07-05  Richard Biener  <rguenther@suse.de>
21507         PR tree-optimization/91091
21508         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21509         accesses can happen with -fno-strict-aliasing.
21511 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
21513         * tree-ssa-alias.c (alias_stats): Add
21514         nonoverlapping_component_refs_since_match_p_must_overlap.
21515         (dump_alias_stats): Print it.
21516         (nonoverlapping_component_refs_since_match_p): Add early exit.
21517         (nonoverlapping_component_refs_p): Do not account early exit.
21519 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
21521         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21522         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21523         (emit_eh_dispatch): Delete.
21524         (lower_catch): Emit the eh_dispatch manually and set the location of
21525         the first catch statement onto it.
21526         (lower_eh_filter): Emit the eh_dispatch manually and set location.
21527         (lower_eh_dispatch): Propagate location.
21528         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21529         (eliminate_build): Likewise.
21531 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
21533         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21534         phi nodes if possible.
21535         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21536         location info on the newly created statement.
21537         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21538         newly created increment if needed.
21540 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
21542         PR middle-end/78884
21543         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21544         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21545         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21546         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21547         ctx->add_safelen1 is set.
21549         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21550         GOMP_loop_start at the start of second worksharing loop in a scan.
21551         For nowait, don't emit GOMP_loop_end_nowait at the end of first
21552         worksharing loop in a scan even if there are conditional lastprivates,
21553         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21555 2019-07-04  Jan Hubicka  <jh@suse.cz>
21557         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21558         Fix check for match in the ref walk.
21560 2019-07-04  Martin Liska  <mliska@suse.cz>
21562         * tree-ssa-loop-niter.c
21563         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21564         (estimate_numbers_of_iterations):
21565         Support __builtin_expect_with_probability for analysis
21566         of # of loop iterations.
21568 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
21570         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21571         * except.c: Likewise.
21572         * expr.c (expand_expr_real_1): Reject it.
21573         * gimplify.c (gimplify_expr): Gimplify it, within
21574         TRY_FINALLY_EXPR.
21575         * tree-dump.c (dequeue_and_dump): Dump it.
21576         * tree-pretty-print.c (dump_generic_node): Likewise.
21577         * tree.c (block_may_fallthru): Handle it.
21578         * tree.def (EH_ELSE_EXPR): Introduce it.
21579         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21580         with GIMPLE_EH_ELSE as try/finally/else.
21582 2019-07-04  Richard Biener  <rguenther@suse.de>
21584         PR ipa/91062
21585         * tree-pass.h (execute_all_ipa_transforms): Add a flag
21586         parameter whether to disable GC collection.
21587         * passes.c (execute_one_ipa_transform_pass): Likewise, and
21588         honor it.
21589         (execute_all_ipa_transforms): Likewise and pass it down.
21590         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21591         collection from applying IPA transforms.
21592         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21593         from applying IPA transforms.
21595 2019-07-04  Richard Biener  <rguenther@suse.de>
21597         PR tree-optimization/90911
21598         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21599         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21600         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21601         scalar_loop_scaling.
21602         (vect_transform_loop): Scale scalar loop profile if needed.
21603         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21604         the loop copy from if-conversion adjust edge probabilities
21605         and scale the vectorized loop body profile, queue the scalar
21606         profile for updating after peeling.
21608 2019-07-04  Jan Hubicka  <jh@suse.cz>
21610         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21611         parameters; return early for must-alias.
21612         (indirect_ref_may_alias_decl_p): Likewise; when establishing
21613         outer types match, try nonoverlapping_component_refs
21614         if must-alias is not obvious.
21615         (indirect_refs_may_alias_p): Likewise.
21616         (refs_may_alias_p_2): Likewise.
21618 2019-07-04  Richard Biener  <rguenther@suse.de>
21620         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21621         argument.
21622         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21623         globals into...
21624         (struct vn_walk_cb_data): New callback data struct.
21625         (vn_reference_lookup_2): Adjust.
21626         (vn_reference_lookup_3): Likewise.
21627         (vn_reference_lookup_pieces): Likewise.
21628         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21629         (visit_reference_op_load): Adjust.
21631 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
21633         PR tree-optimization/91063
21634         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21635         stmt from stmts sequence before calling vect_init_vector_1.
21636         Formatting fix.
21638 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21640         PR target/88833
21641         * fwprop.c (reg_single_def_p): New function.
21642         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21643         (forward_propagate_into): New parameter reg_prop_only
21644         with default value false.
21645         Propagate def's src into loop only if SET_SRC and SET_DEST
21646         of def_set have single definitions.
21647         Likewise if reg_prop_only is set to true.
21648         (fwprop): New param fwprop_addr_p.
21649         Integrate fwprop_addr into fwprop.
21650         (fwprop_addr): Remove.
21651         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21652         to true.
21653         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21654         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21655         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21657 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
21659         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21660         in worksharing loop scans.
21662         PR tree-optimization/91074
21663         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21664         temporary.
21666         PR rtl-optimization/90756
21667         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21668         for VECTOR_TYPE_P.
21670 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
21672         * config/aarch64/aarch64.md: Remove redundant constraints from
21673         define_expand but keep some patterns untouched if they are
21674         specially selected by TARGET_SECONDARY_RELOAD hook.
21675         * config/aarch64/aarch64-sve.md: Likewise.
21676         * config/aarch64/atomics.md: Remove redundant constraints from
21677         define_expand.
21678         * config/aarch64/aarch64-simd.md: Likewise.
21680 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
21682         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21683         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21684         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21685         clauses.
21686         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21687         DARWIN_NOPIE_SPEC.
21689 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
21691         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21692         (STARTFILE_SPEC): Split crt3 into a separate spec.
21693         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21694         (DARWIN_CRT2_SPEC): New.
21695         (DARWIN_CRT3_SPEC): New.
21696         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21697         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21698         (DARWIN_CRT3_SPEC): New.
21700 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
21702         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21703         Change the RTL attribute "length" from "4" to "*" to allow the
21704         length attribute to be adjusted automatically for prefixed load,
21705         store, and add immediate instructions.
21706         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21707         Likewise.
21708         (extendsi<mode>2, EXTSI iterator): Likewise.
21709         (movsi_internal1): Likewise.
21710         (movsi_from_sf): Likewise.
21711         (movdi_from_sf_zero_ext): Likewise.
21712         (mov<mode>_internal): Likewise.
21713         (movcc_internal1, QHI iterator): Likewise.
21714         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21715         (movsf_from_si): Likewise.
21716         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21717         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21718         (mov<mode>, FMOVE128 iterator): Likewise.
21719         (movdi_internal64): Likewise.
21720         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21721         Likewise.
21722         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21723         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21724         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21725         (vsx_splat_v4sf): Likewise.
21727 2019-07-03  Mark Wielaard  <mark@klomp.org>
21729         PR debug/90981
21730         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21731         DW_AT_addr_base if there is actually a .debug_addr section with
21732         addresses.
21733         (output_addr_table): Add DWARF5 table header generation here after
21734         checking there are actually any addresses from...
21735         (dwarf2out_finish): ...here.
21737 2019-07-03  Richard Biener  <rguenther@suse.de>
21739         PR middle-end/91069
21740         * match.pd (vec_perm -> bit_insert): Fix element read from
21741         first vector.
21743 2019-07-03  Martin Liska  <mliska@suse.cz>
21745         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21746         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21747         condition.
21748         * generic-match-head.c: Include dbgcnt.h.
21749         * gimple-match-head.c: Likewise.
21751 2019-07-03  Martin Liska  <mliska@suse.cz>
21753         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21754         (GCOV_COUNTER_V_TOPN): New.
21755         (GCOV_COUNTER_V_INDIR): Use _topn.
21756         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21757         (GCOV_TOPN_VALUES): New.
21758         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21759         (GCOV_TOPN_VALUES_COUNTERS): New.
21760         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21761         * tree-profile.c:
21762         (gimple_init_gcov_profiler): Rename variables from one_value
21763         to topn_values.
21764         (gimple_gen_one_value_profiler): Remove.
21765         (gimple_gen_topn_values_profiler): New function.
21766         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21767         names instead of SINGLE_VALUE.
21768         (stream_out_histogram_value): Likewise.
21769         (stream_in_histogram_value): Likewise.
21770         (get_most_common_single_value): Likewise.
21771         (gimple_divmod_fixed_value_transform): Likewise.
21772         (gimple_stringops_transform): Likewise.
21773         (gimple_divmod_values_to_profile): Likewise.
21774         (gimple_stringops_values_to_profile): Likewise.
21775         (gimple_find_values_to_profile): Likewise.
21776         * value-prof.h (enum hist_type): Rename to TOPN.
21777         (gimple_gen_one_value_profiler): Remove.
21778         (gimple_gen_topn_values_profiler): New.
21780 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
21782         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21783         if it has the DW_AT_data_member_location attribute.
21785 2019-07-03  Richard Biener  <rguenther@suse.de>
21787         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21788         dumping.
21790 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
21792         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21793         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21794         (tlsdesc_small_sve_<mode>): Likewise.
21796 2019-07-03  Martin Liska  <mliska@suse.cz>
21798         * Makefile.in: Define ZSTD_LIB.
21799         * common.opt: Adjust compression level
21800         to support also zstd levels.
21801         * config.in: Regenerate.
21802         * configure: Likewise.
21803         * configure.ac: Add --with-zstd and --with-zstd-include options
21804         and detect ZSTD.
21805         * doc/install.texi: Mention zstd dependency.
21806         * gcc.c: Print supported LTO compression algorithms.
21807         * lto-compress.c (lto_normalized_zstd_level): Likewise.
21808         (lto_compression_zstd): Likewise.
21809         (lto_uncompression_zstd): Likewise.
21810         (lto_end_compression): Dispatch in between zlib and zstd.
21811         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21812         (lto_uncompression_zlib): Make it static.
21813         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21814         * lto-section-in.c (lto_get_section_data): Pass info
21815         about used compression.
21816         * lto-streamer-out.c: By default use zstd when possible.
21817         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21818         (TV_IPA_LTO_COMPRESS): Likewise for compression.
21820 2019-07-03  Martin Liska  <mliska@suse.cz>
21822         * lto-section-in.c (lto_get_section_data): Add "lto" section.
21823         * lto-section-out.c (lto_destroy_simple_output_block): Never
21824         compress LTO_section_lto section.
21825         * lto-streamer-out.c (produce_asm): Do not set major_version
21826         and minor_version.
21827         (lto_output_toplevel_asms): Likewise.
21828         (produce_lto_section): New function.
21829         (lto_output): Call produce_lto_section.
21830         (lto_write_mode_table): Do not set major_version and
21831         minor_version.
21832         (produce_asm_for_decls): Likewise.
21833         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21834         type.
21835         (struct lto_header): Remove.
21836         (struct lto_section): New struct.
21837         (struct lto_simple_header): Do not inherit from lto_header.
21838         (struct lto_file_decl_data): Add lto_section_header field.
21840 2019-07-03  Martin Liska  <mliska@suse.cz>
21842         * lra-eliminations.c (eliminate_regs_in_insn): Remove
21843         dead assignemts.
21844         * reg-stack.c (check_asm_stack_operands): Likewise.
21845         * tree-ssa-structalias.c (create_function_info_for): Likewise.
21846         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21847         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21848         force_expand_binop.
21850 2019-07-03  Martin Liska  <mliska@suse.cz>
21852         PR tree-optimization/90892
21853         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21854         in string constants.
21856 2019-07-03  Martin Liska  <mliska@suse.cz>
21858         PR middle-end/90899
21859         * multiple_target.c (create_dispatcher_calls): Add to comdat
21860         group only if set for ifunc.
21862 2019-07-03  Martin Liska  <mliska@suse.cz>
21864         PR target/88056
21865         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21866         Define local_object_name in outer scope in order to handle
21867         use-after-scope issue.
21869 2019-07-03  Martin Liska  <mliska@suse.cz>
21871         * common.opt: Add fprofile-note.
21872         * coverage.c (coverage_init): Append the option
21873         to bbg_file_name.
21874         * doc/invoke.texi: Document -fprofile-note.
21876 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
21878         PR tree-optimization/91033
21879         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21880         vect_analyze_data_refs): Add bool * arguments.
21881         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21882         if failure is due to scatter/gather, set *fatal to false if non-NULL.
21883         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21884         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21885         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21886         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21887         vect_analyze_data_refs caller.
21889         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21890         clause.
21891         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21892         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21893         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21894         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21895         OMP_CLAUSE__SCANTEMP_ entry.
21896         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21897         * tree-pretty-print.c (dump_omp_clause): Likewise.
21898         * tree-nested.c (convert_nonlocal_omp_clauses,
21899         convert_local_omp_clauses): Likewise.
21900         * omp-general.h (struct omp_for_data): Add have_scantemp and
21901         have_nonctrl_scantemp members.
21902         * omp-general.c (omp_extract_for_data): Initialize them.
21903         * omp-low.c (struct omp_context): Add scan_exclusive member.
21904         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21905         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
21906         ctx->scan_exclusive.
21907         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21908         of !ctx->scan_inclusive.
21909         (lower_rec_input_clauses): Simplify gimplification of dtors using
21910         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21911         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21912         loops.  Don't add barrier for reduction_omp_orig_ref if
21913         ctx->scan_??xclusive.
21914         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21915         (lower_omp_scan): Use ctx->scan_exclusive instead
21916         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
21917         reductions.  Use new_vard != new_var instead of repeated
21918         omp_is_reference calls.
21919         (omp_find_scan, lower_omp_for_scan): New functions.
21920         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21921         inscan reductions.
21922         * omp-expand.c (expand_omp_scantemp_alloc): New function.
21923         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21924         and fd->have_scantemp.
21926         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21927         on worksharing loop propagate it as shared clause to containing
21928         combined parallel.
21930         * omp-expand.c (expand_omp_for_static_nochunk,
21931         expand_omp_for_static_chunk): For nowait worksharing loop with
21932         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21933         at the end.
21935 2019-07-02  qing zhao  <qing.zhao@oracle.com>
21937         PR preprocessor/90581
21938         * doc/cppopts.texi: Add document for -fmax-include-depth.
21939         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21941 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
21943         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21944         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21945         (mmx_packssdw): Ditto.
21946         (mmx_punpckhbw): Ditto.
21947         (mmx_punpcklbw): Ditto.
21948         (mmx_punpckhwd): Ditto.
21949         (mmx_punpcklwd): Ditto.
21950         (mmx_punpckhdq): Ditto.
21951         (mmx_punpckldq): Ditto.
21952         (*vec_dupv4hi): Ditto.
21953         (*vec_dupv2si): Ditto.
21954         (mmx_pmovmskb): Ditto.
21955         * config/i386/sse.md (sse_cvtpi2ps): Use
21956         TARGET_SSE2 && SSE_REG_P in split condition.
21957         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21958         TARGET_SSSE3 && SSE_REGNO_P in split condition.
21959         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21960         (ssse3_pshufbv8qi3): Ditto.
21961         (ssse3_palignrdi): Ditto.
21963 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
21965         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21966         with inlined save and restore.
21968 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21970         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21971         to be inserted on single successor edge of the entry block.  Then call
21972         commit_edge_insertions instead of inserting the instructions manually.
21973         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21974         RTL expansion and rebuild jump labels chain.
21976 2019-07-02  Richard Biener  <rguenther@suse.de>
21978         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21979         TI_CHREC_KNOWN.
21980         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21981         Define here.
21982         * tree.c (build_common_tree_nodes): Initialize them.
21983         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21984         Make declarations comments.
21985         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21986         chrec_known): Remove definitions.
21987         (initialize_scalar_evolutions_analyzer): Remove.
21988         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21989         * tree-streamer.c (preload_common_nodes): Do not preload
21990         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21992 2019-07-02  Jan Hubicka  <jh@suse.cz>
21994         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21995         sanity check.
21997 2019-07-02  Jan Hubicka  <jh@suse.cz>
21999         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22000         to ..
22001         (nonoverlapping_component_refs_since_match_p): ... this one;
22002         handle also non-decl bases; return -1 if search gave up.
22003         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22004         nonoverlapping_component_refs_of_decl_p_no_alias to
22005         nonoverlapping_component_refs_since_match_p_may_alias,
22006         nonoverlapping_component_refs_since_match_p_no_alias.
22007         (dump_alias_stats): Update dumping.
22008         (aliasing_matching_component_refs_p): Break out from ...;
22009         dispatch to nonoverlapping_component_refs_for_decl_p
22010         and nonoverlapping_component_refs_since_match_p.
22011         (aliasing_component_refs_p): ... here; call
22012         nonoverlapping_component_refs_p in scenarios where we can not
22013         precisely determine base match.
22014         (decl_refs_may_alias_p): Use
22015         nonoverlapping_component_refs_since_match_p.
22016         (indirect_ref_may_alias_decl_p): Do not call
22017         nonoverlapping_component_refs_p.
22018         (indirect_refs_may_alias_p): Likewise.
22020 2019-07-02  Jan Hubicka  <jh@suse.cz>
22022         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22023         to clobber of return value.
22025 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22027         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22028         for is_neon_type instructions that have not already been categorized.
22030 2019-07-02  Richard Biener  <rguenther@suse.de>
22032         PR tree-optimization/58483
22033         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22034         for MEM_REF base hashing.
22035         (equal_mem_array_ref_p): Likewise for base comparison.
22037 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22039         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22040         parameterized name.
22041         (signbit<mode>2): Use that name.  Simplify.
22043 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
22045         PR middle-end/66726
22046         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22047         Tune heuristic from PR71016 to allow MIN / MAX.
22049 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22051         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22052         parameterized name.
22053         (abs<mode>2): Use that name.  Simplify.
22055 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22057         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22058         parameterized name.
22059         (neg<mode>2): Use that name.  Simplify.
22061 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22063         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22064         name.
22065         (abs<mode>2): Use that name.  Simplify.
22067 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22069         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22070         name.
22071         (neg<mode>2): Use that name.  Simplify.
22073 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
22075         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22076         ("enabled" attribute): Handle sse_noavx isa attribute.
22077         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22078         Use TARGET_SSE && SSE_REGNO_P in split condition.
22079         (*vec_dupv2sf): Ditto.
22081 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22083         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22084         name.
22085         (floatsi<mode>2): Use that name.  Simplify.
22087 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22089         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22090         parameterized name.
22091         (extenddf<mode>2_vsx): Make this a parameterized name.
22092         (extenddf<mode>2): Use those names.  Simplify.
22094 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22096         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22097         name.
22098         (eh_return): Use that name.  Simplify.
22100 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22102         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22103         (doloop_end): Use that name.  Simplify.
22105 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22107         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22108         parameterized name.
22109         (indirect_jump): Use that name.  Simplify.
22111 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22113         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22114         parameterized name.
22115         (abs<mode>2): Use that name.  Simplify.
22117 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22119         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22120         parameterized name.
22121         (fix_trunc<mode>si2): Use that name.  Simplify.
22123 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22125         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22126         (allocate_stack): Use that name.  Simplify.
22128 2019-07-01  Martin Sebor  <msebor@redhat.com>
22130         PR middle-end/90923
22131         * hash-map.h (hash_map::put): On insertion invoke element ctor.
22132         (hash_map::get_or_insert): Same.  Reformat comment.
22133         * hash-set.h (hash_set::add): On insertion invoke element ctor.
22134         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22135         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22136         * hash-table.h (hash_table::operator=): Prevent copy assignment.
22137          (hash_table::hash_table (const hash_table&)): Use copy ctor
22138          instead of assignment to copy elements.
22140 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
22141             John David Anglin  <danglin@gcc.gnu.org>
22143         PR target/90963
22144         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22145         using saved frame pointer.
22147 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
22149         PR middle-end/64242
22150         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22151         Add frame clobber and schedule blockage.
22153 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
22155         * doc/invoke.texi (Link Options): Further editorial changes to
22156         -flinker-output docs.
22158 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
22160         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22161         Load both operands of a PLUS into registers separately.
22163 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
22165         * config/s390/vector.md: Fix shift count operand printing.
22167 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22169         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22171 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22173         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22174         Use recog_data to test for an output operand.
22176 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22178         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22179         exclude any others that are disparaged or that are bound to need
22180         a reload or spill.
22181         (ira_get_dup_out_num): Expand comment.
22183 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22185         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22186         constraint string for each operand/alternative combo.  Only handle
22187         '%' at the start of constraint strings, and look for it outside
22188         the main loop.
22190 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22192         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22193         alternative_mask instead of HARD_REG_SET to represent a
22194         bitmask of alternatives.
22195         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22196         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22198 2019-07-01  Martin Liska  <mliska@suse.cz>
22200         * edit-context.c (test_applying_fixits_unreadable_file): Do not
22201         use () for a constructor call.
22202         (test_applying_fixits_line_out_of_range): Likewise.
22203         * ggc-page.c (alloc_page): Use (void *) for %p printf format
22204         argument.
22205         (free_page): Likewise.
22207 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
22209         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22210         parameter names to match usage (no functional change).
22211         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22213 2019-07-01  Richard Biener  <rguenther@suse.de>
22215         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22216         pass parameter.
22217         (pass_fre::execute): Honor it.
22218         * passes.def: Adjust pass_fre invocations to allow iterating,
22219         add non-iterating pass_fre before late threading/dom.
22221 2019-07-01  Richard Biener  <rguenther@suse.de>
22223         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22224         TARGET_MEM_REF handling to also handle address-taken ones.
22226 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
22228         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22229         hardware attributes): Document avx512vp2intersect.
22231 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
22233         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22234         (abs<mode>2): New expander.
22235         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22236         Use CODE_FOR_ssse3_absv8qi2.
22237         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22238         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22240 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
22242         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22243         to sse, sse_noavx and avx.  Update all uses.
22245 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
22247         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22248         (*mmx_<plusminus_insn><mode>3): Ditto.
22249         (*mmx_mulv4hi3"): Ditto.
22250         (*mmx_smulv4hi3_highpart): Ditto.
22251         (*mmx_umulv4hi3_highpart): Ditto.
22252         (*mmx_pmaddwd): Ditto.
22253         (*sse2_umulv1siv1di3): Ditto.
22254         (*mmx_<code>v4hi3): Ditto.
22255         (*mmx_<code>v8qi3): Ditto.
22256         (mmx_ashr<mode>3): Ditto.
22257         ("mmx_<shift_insn><mode>3): Ditto.
22258         (*mmx_eq<mode>3): Ditto.
22259         (mmx_gt<mode>3): Ditto.
22260         (mmx_andnot<mode>3): Ditto.
22261         (*mmx_<code><mode>3): Ditto.
22262         (*mmx_pinsrw): Ditto.
22263         (*mmx_pextrw): Ditto.
22264         (mmx_pshufw_1): Ditto.
22265         (*mmx_uavgv8qi3): Ditto.
22266         (*mmx_uavgv4hi3): Ditto.
22267         ("mmx_psadbw): Ditto.
22268         * config/i386/sse.md (sse_cvtps2pi): Ditto.
22269         (sse_cvttps2pi): Ditto.
22270         (ssse3_pmaddubsw): Ditto.
22271         (*ssse3_pmulhrswv4hi3): Ditto.
22272         (ssse3_psign<mode>3): Ditto.
22274 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
22276         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22277         adjustment for bit-fields to all aggregate types.
22279 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
22281         * config/rs6000/predicates.md (pcrel_address): Use
22282         SYMBOL_REF_LOCAL_P to determine if a label is local.
22283         (pcrel_external_address): New predicate.
22284         (non_prefixed_mem_operand): Delete, predicate not used.
22285         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22286         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22287         addressing.
22288         (SYMBOL_REF_PCREL_P): Likewise.
22290         PR target/91009
22291         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22292         alternative.
22293         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22294         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22295         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22297 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
22299         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22300         override on extra_headers.
22302 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
22304         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22305         * config/darwin-driver.c (darwin_default_min_version): Remove newline
22306         from warning.
22307         (darwin_driver_init): Likewise.
22309 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22311         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22312         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22313         Eliminate redundant alternative.
22315 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22317         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22318         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22319         Use vector_operand.
22321 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
22323         * config/arc/arc.c (arc_rtx_costs): All short instructions are
22324         having a lower cost regardless of the speed option.
22326 2019-06-28  Jan Beulich  <jbeulich@suse.com>
22328         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22329         vector_operand plus, on both alternatives, "Bm" constraint.
22331 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
22333         * config/arm/arm.md: Remove redundant constraints from
22334         define_expand but leave reload_inm and reload_outm patterns
22335         untouched since they need special constraints to work.
22336         * config/arm/arm-fixed.md: Remove redundant constraints from
22337         define_expand.
22338         * config/arm/iwmmxt.md: Likewise.
22339         * config/arm/neon.md: Likewise.
22340         * config/arm/sync.md: Likewise.
22341         * config/arm/thumb1.md: Likewise.
22342         * config/arm/vec-common.md: Likewise.
22344 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
22346         * doc/install.texi: Document --disable-tm-clone-registry.
22348 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
22350         PR c++/91024
22351         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22352         statements.
22354         PR tree-optimization/91010
22355         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22356         return true.  Otherwise, don't call operand_equal_p if offset1 or
22357         offset2 is NULL and just return false.
22359 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22361         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22362         user-specified float mode choice for kernel mode code.
22364 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22366         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22367         spec.
22369 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
22371         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22372         use longcall for 64b code.
22374 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
22376         * builtins.c (get_memory_rtx): Fix comment.
22377         * optabs.def (movmem_optab): Change to cpymem_optab.
22378         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22379         (emit_block_move_hints): Change movmem to cpymem.
22380         * defaults.h: Change movmem to cpymem.
22381         * targhooks.c (get_move_ratio): Change movmem to cpymem.
22382         (default_use_by_pieces_infrastructure_p): Ditto.
22383         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22384         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22385         to cpymem.
22386         * config/aarch64/aarch64.h: Change movmem to cpymem.
22387         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22388         * config/alpha/alpha.h: Change movmem to cpymem in comment.
22389         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22390         movmem to cpymem.
22391         * config/arc/arc-protos.h: Change movmem to cpymem.
22392         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22393         * config/arc/arc.h: Change movmem to cpymem in comment.
22394         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22395         * config/arm/arm-protos.h: Change movmem to cpymem in names.
22396         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22397         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22398         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22399         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22400         * config/avr/avr-protos.h: Change movmem to cpymem.
22401         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22402         avr_out_movmem): Change movmem to cpymem.
22403         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22404         Change movmem to cpymem.
22405         * config/bfin/bfin-protos.h: Change movmem to cpymem.
22406         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22407         Change movmem to cpymem.
22408         * config/bfin/bfin.h: Change movmem to cpymem in comment.
22409         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22410         * config/c6x/c6x-protos.h: Change movmem to cpymem.
22411         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22412         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22413         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22414         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22415         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22416         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22417         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22418         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22419         expand_small_cpymem_or_setmem,
22420         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22421         expand_set_or_cpymem_constant_prologue,
22422         ix86_expand_set_or_cpymem): Change movmem to cpymem.
22423         * config/i386/i386-protos.h: Change movmem to cpymem.
22424         * config/i386/i386.h: Change movmem to cpymem in comment.
22425         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22426         (setmem<mode>): Change expansion function name.
22427         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22428         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22429         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22430         * config/m32c/m32c-protos.h: Change movmem to cpymem.
22431         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22432         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22433         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22434         to cpymem.
22435         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22436         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22437         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22438         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22439         Change movmem to cpymem.
22440         * config/mips/mips.h: Change movmem to cpymem.
22441         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22442         * config/nds32/nds32-memory-manipulation.c
22443         (nds32_expand_movmemsi_loop_unknown_size,
22444         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22445         nds32_expand_movmemsi_unroll,
22446         nds32_expand_movmemsi): Change movmem to cpymem.
22447         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22448         * config/nds32/nds32-protos.h: Change movmem to cpymem.
22449         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22450         (pa_adjust_insn_length): Change call to compute_movmem_length.
22451         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22452         movmemdi, movmemdi_prereload,
22453         movmemdi_postreload): Change movmem to cpymem.
22454         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22455         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22456         * config/riscv/riscv.c: Change movmem to cpymem in comment.
22457         * config/riscv/riscv.h: Change movmem to cpymem.
22458         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22459         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22460         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22461         movmem to cpymem.
22462         * config/s390/s390-protos.h: Change movmem to cpymem.
22463         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22464         s390_expand_insv): Change movmem to cpymem.
22465         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22466         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22467         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22468         * config/sparc/sparc.h: Change movmem to cpymem in comment.
22469         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22470         for nonexistent function.
22471         * config/vax/vax.h: Change movmem to cpymem in comment.
22472         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22473         * config/visium/visium.h: Change movmem to cpymem in comment.
22474         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22475         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22476         * doc/md.texi: Change movmem to cpymem and update description to match.
22477         * doc/rtl.texi: Change movmem to cpymem.
22478         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22479         * doc/tm.texi: Regenerate.
22481 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
22483         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22484         -fvariable-expansion-in-unroller by default.
22485         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22486         default for Power.
22488 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
22490         Revert
22491         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
22492         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22494         * config.gcc(rs6000-*-*): Define target_gtfiles.
22496 2019-06-27  Jan Hubicka  <jh@suse.cz>
22498         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22499         (add_type_duplicate): When odr hash is not allocated, to nothing.
22500         (odr_based_tbaa_p): New function.
22501         (set_type_canonical_for_odr_type): New function.
22502         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22503         set_type_canonical_for_odr_type): New.
22504         * tree.c (gimple_canonical_types_compatible_p): ODR types with
22505         ODR based TBAA are not equivalent to non-ODR types.
22507 2019-06-27  Martin Liska  <mliska@suse.cz>
22509         PR tree-optimization/90974
22510         PR rtl-optimization/90975
22511         PR rtl-optimization/90976
22512         PR target/91016
22513         PR tree-optimization/91017
22514         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22515         unused tmp.
22516         * lra.c (lra_set_insn_recog_data): Remove a leftover from
22517         initial commit of IRA.
22518         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22519         of op0 and op1.
22520         * tree-vect-loop.c (vect_create_epilog_for_reduction):
22521         Remove unused mode1.
22522         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22523         to new_stmt_info.
22525 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
22527         PR target/90991
22528         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22529         instead of register_operand for operands[1], add m to its constraints
22530         if operands[2] uses "C" constraint.  Ensure in condition that if
22531         operands[2] is not 0, then operands[1] is not a MEM.  For last two
22532         alternatives, use unaligned loads instead of aligned if operands[1] is
22533         misaligned_operand.
22535 2019-06-27  Martin Liska  <mliska@suse.cz>
22537         * asan.c (asan_emit_allocas_unpoison): Remove obviously
22538         dead assignments.
22539         * bt-load.c (move_btr_def): Likewise.
22540         * builtins.c (expand_builtin_apply_args_1): Likewise.
22541         (expand_builtin_apply): Likewise.
22542         * cfgexpand.c (expand_asm_stmt): Likewise.
22543         (construct_init_block): Likewise.
22544         * cfghooks.c (verify_flow_info): Likewise.
22545         * cfgloopmanip.c (remove_path): Likewise.
22546         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22547         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22548         * combine.c (simplify_if_then_else): Likewise.
22549         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22550         (choose_basereg): Likewise.
22551         (ix86_expand_prologue): Likewise.
22552         (ix86_preferred_output_reload_class): Likewise.
22553         * cselib.c (cselib_record_sets): Likewise.
22554         * df-scan.c (df_scan_alloc): Likewise.
22555         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22556         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22557         * emit-rtl.c (try_split): Likewise.
22558         * graphite-scop-detection.c (assign_parameter_index_in_region):
22559         Likewise.
22560         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22561         * ira-color.c (setup_profitable_hard_regs): Likewise.
22562         * ira.c (rtx_moveable_p): Likewise.
22563         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22564         * read-rtl.c (read_subst_mapping): Likewise.
22565         * regrename.c (scan_rtx): Likewise.
22566         * reorg.c (fill_slots_from_thread): Likewise.
22567         * tree-inline.c (tree_function_versioning): Likewise.
22568         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22569         * tree-ssa-sink.c (statement_sink_location): Likewise.
22570         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22571         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22572         (vect_create_epilog_for_reduction): Likewise.
22573         * tree.c (build_nonstandard_integer_type): Likewise.
22575 2019-06-27  Richard Biener  <rguenther@suse.de>
22577         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22579 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
22581         PR tree-optimization/89772
22582         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22583         out-of-bound accesses checking.
22585 2019-06-27  Martin Liska  <mliska@suse.cz>
22587         PR tree-optimization/91014
22588         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22589         when LHS is NULL_TREE.
22591 2019-06-27  Martin Liska  <mliska@suse.cz>
22593         * symbol-summary.h (traverse): Pass
22594         argument a to the call of callback.
22595         (gt_ggc_mx): Mark arguments as unused.
22596         (gt_pch_nx): Likewise.
22598 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
22600         PR target/62147
22601         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22602         finiteness.
22604 2019-06-26  Jeff Law  <law@redhat.com>
22606         PR tree-optimization/90883
22607         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22608         (delete_dead_or_redundant_assignment): Likewise.
22610         PR tree-optimization/90883
22611         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22612         * tree-ssa-dse.c: Update various comments to distinguish between
22613         dead and redundant stores.
22614         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22615         (dse_optimize_redundant_stores): New function.
22616         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22617         Distinguish between dead and redundant calls in dump output.  All
22618         callers updated.
22619         (delete_dead_or_redundant_assignment): Similarly for assignments.
22620         (dse_optimize_stmt): Handle _CHK variants.  For statements which
22621         store 0 into multiple memory locations, try to prove a subsequent
22622         store is redundant.
22624 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
22626         PR target/89021
22627         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22628         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22630 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
22632         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22633         (branch_islands): New extern.
22634         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22635         * config/rs6000/rs6000.c: .. here.
22637 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
22639         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22640         (powerpc*-*-*) ... to here.
22642 2019-06-26  Jeff Law  <law@redhat.com>
22644         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22645         memcpy, memmove and memset builtins.
22646         (maybe_trim_memstar_call): Likewise.
22648 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
22650         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22652 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
22654         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22656 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
22658         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22659         declaration.
22660         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22661         "static".
22662         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22663         declaration.
22665 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
22667         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22669 2019-06-26  Richard Biener  <rguenther@suse.de>
22671         PR ipa/90982
22672         * tree-inline.c (remap_ssa_name): Copy SSA range info.
22674 2019-06-26  Richard Biener  <rguenther@suse.de>
22676         * lto-streamer.h (lto_bitmap_alloc): Remove.
22677         (lto_bitmap_free): Likewise.
22678         * lto-streamer.c (lto_bitmap_alloc): Remove.
22679         (lto_bitmap_free): Likewise.
22680         (lto_obstack): Likewise.
22681         (lto_obstack_initialized): Likewise.
22682         * lto-streamer-out.c (lto_output): Use own obstack for local
22683         bitmap, free it consistently.
22685 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
22687         PR target/90991
22688         * config/i386/sse.md
22689         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22690         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22691         insns if operands[2] is misaligned_operand.
22693 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
22695         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22696         TARGET_POWERPC64.
22697         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22698         to GPR.
22700 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
22702         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22704 2019-06-26  Martin Liska  <mliska@suse.cz>
22706         PR tree-optimization/90973
22707         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22708         epilogue_cost_vec instead of prologue_cost_vec for
22709         a epilogue cost.
22711 2019-06-26  Martin Liska  <mliska@suse.cz>
22713         * bb-reorder.c (connect_better_edge_p): Add missing else
22714         statement in the middle of if-else statements.
22716 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
22717             H.J. Lu  <hongjiu.lu@intel.com>
22718             Olga Makhotina  <olga.makhotina@intel.com>
22720         * common/config/i386/i386-common.c
22721         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22722         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22723         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22724         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22725         (ix86_handle_option): Handle -mavx512vp2intersect.
22726         * config/i386/avx512vp2intersectintrin.h: New.
22727         * config/i386/avx512vp2intersectvlintrin.h: New.
22728         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22729         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22730         AVX512VP2INTERSECT.
22731         * config/i386/i386-builtin-types.def: Add new types.
22732         * config/i386/i386-builtin.def: Add new builtins.
22733         * config/i386/i386-builtins.c: (enum processor_features): Add
22734         F_AVX512VP2INTERSECT.
22735         (static const _isa_names_table isa_names_table): Ditto.
22736         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22737         __AVX512VP2INTERSECT__.
22738         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22739         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22740         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22741         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22742         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22743         * config/i386/i386-options.c (ix86_target_string): Add
22744         -mavx512vp2intersect.
22745         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22746         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22747         P2HImode and P2QImode.
22748         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22749         number for P2QImode and P2HImode.
22750         (ix86_regmode_natural_size): New function.
22751         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22752         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22753         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22754         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22755         * config/i386/i386.opt: Add -mavx512vp2intersect.
22756         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22757         avx512vp2intersectvlintrin.h.
22758         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22759         (define_mode_iterator VI48_AVX512VP2VL): New.
22760         (avx512vp2intersect_2intersect<mode>,
22761         avx512vp2intersect_2intersectv16si): New define_insn patterns.
22762         * config.gcc: Add avx512vp2intersectvlintrin.h and
22763         avx512vp2intersectintrin.h to extra_headers.
22764         * doc/invoke.texi: Document -mavx512vp2intersect.
22766 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
22768         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22770 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
22772         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22773         savres_routine_syms, savres_routine_name, morestack_ref,
22774         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22775         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22776         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22777         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22778         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22779         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22780         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22781         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22782         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22783         get_stack_clash_protection_probe_interval,
22784         get_stack_clash_protection_guard_size,
22785         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22786         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22787         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22788         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22789         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22790         gen_frame_mem_offset, rs6000_savres_routine_name,
22791         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22792         ptr_regno_for_savres, rs6000_emit_savres_rtx,
22793         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22794         rs6000_global_entry_point_prologue_needed_p,
22795         rs6000_get_separate_components, rs6000_components_for_bb,
22796         rs6000_disqualify_components, rs6000_emit_prologue_components,
22797         rs6000_emit_epilogue_components, rs6000_set_handled_components,
22798         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22799         rs6000_output_savres_externs, rs6000_output_function_prologue,
22800         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22801         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22802         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22803         rs6000_output_function_epilogue, gen_add3_const,
22804         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22805         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22806         to rs6000-logue.c.
22807         (machine_function): Moved to rs6000.h.
22808         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22809         rs6000-internal.h.
22810         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22811         savres_routine_syms, savres_routine_name, morestack_ref,
22812         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22813         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22814         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22815         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22816         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22817         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22818         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22819         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22820         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22821         get_stack_clash_protection_probe_interval,
22822         get_stack_clash_protection_guard_size,
22823         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22824         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22825         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22826         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22827         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22828         gen_frame_mem_offset, rs6000_savres_routine_name,
22829         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22830         ptr_regno_for_savres, rs6000_emit_savres_rtx,
22831         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22832         rs6000_global_entry_point_prologue_needed_p,
22833         rs6000_get_separate_components, rs6000_components_for_bb,
22834         rs6000_disqualify_components, rs6000_emit_prologue_components,
22835         rs6000_emit_epilogue_components, rs6000_set_handled_components,
22836         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22837         rs6000_output_savres_externs, rs6000_output_function_prologue,
22838         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22839         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22840         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22841         rs6000_output_function_epilogue, gen_add3_const,
22842         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22843         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22844         to here from rs6000.c.
22845         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22846         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22847         quad_address_offset_p) Moved to here from rs6000.c.
22848         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22849         * config/config.gcc: Add new source file rs6000-logue.c to garbage
22850         collector.
22852 2019-06-25  Martin Liska  <mliska@suse.cz>
22854         * hash-table.c (hashtab_chk_error): Move here from ...
22855         * hash-table.h (hashtab_chk_error): ... here.
22857 2019-06-25  Martin Liska  <mliska@suse.cz>
22859         PR tree-optimization/90978
22860         * df-scan.c (df_update_entry_block_defs): Remove dead else
22861         branch.
22862         (df_update_exit_block_uses): Likewise.
22864 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
22865             Andrew Stubbs  <ams@codesourcery.com>
22867         * config.gcc (thread_file): Set to gcn for AMD GCN.
22868         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22869         (TARGET_EMUTLS_VAR_INIT): New hook.
22871 2019-06-25  Martin Jambor  <mjambor@suse.cz>
22873         PR ipa/90939
22874         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22876 2019-06-25  Richard Biener  <rguenther@suse.de>
22878         PR tree-optimization/90930
22879         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22880         into parallel form in the last pass instance.
22882 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
22884         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22885         (arc_legitimize_pic_address): Simplify and cleanup the function.
22886         (SYMBOLIC_CONST): Remove.
22887         (prepare_pic_move): Likewise.
22888         (prepare_move_operands): Handle complex mov cases here.
22889         (arc_legitimize_address_0): Remove call to
22890         arc_legitimize_pic_address.
22891         (arc_legitimize_address): Remove call to
22892         arc_legitimize_tls_address.
22893         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22894         (movhi_insn): Likewise.
22896 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
22898         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22899         PTRDIFF_TYPE.
22900         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22901         format of "__intN" types for UINTMAX_TYPE.
22902         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22903         format of "__intN" types for SIZETYPE.
22904         * tree.c (build_common_tree_nodes): Accept "__intN__"
22905         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22906         * doc/invoke.texi: Document that __intN__ disables pedantic
22907         warnings.
22909 2019-06-25  Jan Hubicka  <jh@suse.cz>
22911         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22912         base2_alias_set is non-zero before doing TBAA based disambiguation.
22914 2019-06-25  Martin Liska  <mliska@suse.cz>
22916         PR tree-optimization/90973
22917         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22918         of prologue and epilogue.
22920 2019-06-24  Jan Hubicka  <jh@suse.cz>
22922         * ipa-utils.h (type_with_linkage_p): Verify that type is
22923         CXX_ODR_P.
22924         (odr_type_p): Remove extra return.
22925         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22926         hash STRING_FLAG only for arrays and integers.
22927         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22928         Update analogously.
22929         * tree-streamer-out.c (pack_ts_type_common_value_fields):
22930         Likewise.
22931         * print-tree.c (print_node): Print cxx-odr-p
22932         and string-flag.
22933         * tree.c (need_assembler_name_p): Also check that type
22934         is CXX_ODR_TYPE_P
22935         (verify_type_variant): Update verification of SRING_FLAG;
22936         also check CXX_ODR_P.
22937         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22938         (TYPE_STRING_FLAG): Use it.
22939         (TYPE_CXX_ODR_P): New macro.
22940         * dwarf2out.c (gen_array_type_die): First check that type
22941         is an array and then test string flag.
22943 2019-06-24  Richard Biener  <rguenther@suse.de>
22945         PR tree-optimization/90972
22946         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22947         in common code, dealing with STRING_CST properly.
22949 2019-06-24  Richard Biener  <rguenther@suse.de>
22951         PR tree-optimization/90930
22952         PR tree-optimization/90316
22953         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22954         decrement of limit.
22956 2019-06-24  Martin Sebor  <msebor@redhat.com>
22958         * tree-pretty-print.h: Remove unnecessary punctuation characters
22959         from a diagnostic.
22960         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22962 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
22964         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22965         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22966         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22968 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
22970         * config/rs6000/darwin.h: Handle GCC target pragma.
22972 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
22974         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22976 2019-06-22  Jeff Law  <law@redhat.com>
22978         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22980 2019-06-22  Jan Hubicka  <jh@suse.cz>
22982         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22983         give up on bitfields; continue searching for different refs
22984         appearing later.
22986 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
22988         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22989         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22990         containing the offset as possible simd lane access.  Look through
22991         widening conversion.  Move the
22992         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22994 2019-06-21  Richard Biener  <rguenther@suse.de>
22996         PR tree-optimization/90930
22997         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22998         flag on new stmts to avoid re-processing them.
23000 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
23002         PR c++/90875 - added -Wswitch-outside-range option
23003         * doc/invoke.texi (Wswitch-outside-range): Document.
23005 2019-06-21  Jeff Law  <law@redhat.com>
23007         PR tree-optimization/90949
23008         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23009         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23011 2019-06-21  Richard Biener  <rguenther@suse.de>
23013         PR debug/90914
23014         * dwarf2out.c (prune_unused_types_walk): Always consider
23015         function-local extern declarations as used.
23017 2019-06-21  Richard Biener  <rguenther@suse.de>
23019         PR tree-optimization/90913
23020         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23021         the scalar variant of if-conversion versioning.
23023 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
23025         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23026         create another "omp scan inscan exclusive" array if
23027         !ctx->scan_inclusive.
23028         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23029         (lower_omp_scan): Likewise.
23030         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23031         2-bit bitfield for simd_lane_access_p member.
23032         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23033         aux == (void *)-4 as simd lane access.
23034         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
23035         comment with permutations to show the canonical permutation order.
23036         (vectorizable_scan_store): Handle exclusive scan.
23037         (vectorizable_store): Call vectorizable_scan_store even for
23038         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23040         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23041         "omp simd array" arrays with one byte elements.
23043 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
23045         * config/alpha/alpha.md (@unaligned_store<mode>):
23046         Rename from unaligned_store<mode>.
23047         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23048         * config/alpha/sync.md (@load_locked_<mode>): Rename
23049         from load_locked_<mode>.
23050         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23051         (@atomic_compare_and_swap<mode>_1): Rename
23052         from atomic_compare_and_swap<mode>_1.
23053         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23054         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23055         Use gen_reload_in_aligned and gen_unaligned_store.
23056         (emit_load_locked): Remove.
23057         (emit_store_conditional): Ditto.
23058         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23059         (alpha_split_compare_and_swap): Ditto.
23060         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23061         (alpha_split_compare_and_swap_12): Use gen_load_locked
23062         and gen_store_conditional.
23063         (alpha_split_atomic_exchange): Ditto.
23064         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23065         (alpha_split_atomic_exchange_12): Use gen_load_locked
23066         and gen_store_conditional.
23068 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
23070         * config/aarch64/aarch64-errata.h: New file.
23071         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23072         (CA53_ERR_843419_SPEC): Delete.
23073         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23074         * config/aarch64/aarch64-linux.h: Likewise.
23075         * config/aarch64/aarch64-netbsd.h: Likewise.
23076         * config/aarch64/aarch64-freebsd.h: Likewise.
23078 2019-06-20  Marek Polacek  <polacek@redhat.com>
23080         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23082 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
23084         * config/rs6000/rs6000.md (isa attribute): Add support for
23085         for a future processor.
23087 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
23089         PR target/54855
23090         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23091         standard scalar operation pattern for V2DF.
23092         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23093         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23094         (*ieee_<ieee_maxmin><mode>3): Likewise.
23095         (vec_setv2df_0): Likewise.
23097 2019-06-20  Jan Hubicka  <jh@suse.cz>
23099         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23100         parameter; it has no use in gimple memory model.
23101         (indirect_ref_may_alias_decl_p): Update.
23103 2019-06-20  Martin Liska  <mliska@suse.cz>
23105         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23106         to 10.
23108 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
23110         * tree-vect-stmts.c (enum scan_store_kind): New type.
23111         (scan_store_can_perm_p): Change last argument from int * to
23112         vec<enum scan_store_kind> *, record precisely which permutations
23113         need whole vector left shift or that plus VEC_COND_EXPR.
23114         (vectorizable_scan_store): Adjust caller, use whole vector left shift
23115         and additional VEC_COND_EXPR only for those iterations that need it.
23117 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
23119         * config.gcc: Fix ARM --with-fpu checking and error message.
23121 2019-06-19  Marek Polacek  <polacek@redhat.com>
23123         PR c++/60364 - noreturn after first decl not diagnosed.
23124         * attribs.c (get_attribute_namespace): No longer static.
23125         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
23126         attributes.
23127         (attr_noreturn_exclusions): Make it extern.
23128         * attribs.h (get_attribute_namespace): Declare.
23129         * tree-inline.c (function_attribute_inlinable_p): Use
23130         get_attribute_name.
23132 2019-06-19  Martin Sebor  <msebor@redhat.com>
23134         PR tree-optimization/90626
23135         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23137         PR tree-optimization/90626
23138         * tree-ssa-strlen.c (strxcmp_unequal): New function.
23139         (handle_builtin_string_cmp): Call it.
23141 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
23143         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23144         and DARWIN_NOPIE_SPEC.
23145         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23146         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23147         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23148         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23149         (DARWIN_EXPORT_DYNAMIC): Delete.
23150         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23151         and pie options processing to  darwin.h.
23152         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23154 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
23156         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23157         in computing the number of options to be moved.
23159 2019-06-19  Maya Rashish  <coypu@sdf.org>
23161         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23162         (CLEAR_INSN_CACHE) Use it.
23164 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
23166         * config/i386/i386.md (cmpstrnsi): Remove dead code.
23168 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
23170         PR middle-end/84521
23171         * builtins.c (expand_builtin_setjmp_setup): Save
23172         hard_frame_pointer_rtx.
23173         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23174         restore fp.
23175         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23176         non-local goto.
23177         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23178         elimination code.
23179         (remove_reg_equal_offset_note): Remove unused function.
23180         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23181         code.
23182         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23183         (arc_builtin_setjmp_frame_value): Remove function.
23184         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23185         (avr_builtin_setjmp_frame_value): Remove function.
23186         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23187         (ix86_builtin_setjmp_frame_value): Remove function.
23188         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23189         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23190         (sparc_builtin_setjmp_frame_value): Remove function.
23191         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23192         (vax_builtin_setjmp_frame_value): Remove function.
23193         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23194         pointer if has_nonlocal_label.
23196 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
23198         * doc/md.texi: Document vec_shl_<mode> pattern.
23199         * optabs.def (vec_shl_optab): New optab.
23200         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23201         argument, if == vec_shl_optab, check for left whole vector shift
23202         pattern rather than right shift.
23203         (expand_vec_perm_const): Add vec_shl_optab support.
23204         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23205         in the comment.
23206         * tree-vect-generic.c (lower_vec_perm): Support permutations which
23207         can be handled by vec_shl_optab.
23208         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23209         (check_scan_store): Use it.
23210         (vectorizable_scan_store): If target can't do normal permutations,
23211         try to use whole vector left shifts and if needed a VEC_COND_EXPR
23212         after it.
23213         * config/i386/sse.md (vec_shl_<mode>): New expander.
23215         * omp-low.c (lower_rec_input_clauses): Handle references properly
23216         in inscan clauses.
23217         (lower_omp_scan): Likewise.
23219 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
23221         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23222         mem_mode is BLKmode.
23224 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
23226         PR target/90922
23227         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23228         pointer adjustment for the case of no callee-saved registers and
23229         stack frame bigger than 128 bytes.
23231 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
23233         PR middle-end/90862
23234         * omp-low.c (check_omp_nesting_restrictions): Handle
23235         GF_OMP_TARGET_KIND_OACC_DECLARE.
23237 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
23239         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23240         (@add<mode>3_carry): Rename from add<mode>3_carry.
23241         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23242         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23243         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23244         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23245         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23246         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23247         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23248         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23249         (cmpstrnsi): Use gen_cmp_1.
23250         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23251         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23252         (@umonitor_<mode>): Rename from umonitor_<mode>.
23253         * config/i386/i386-expand.c (ix86_expand_copysign):
23254         Use gen_copysign3_const and gen_copysign3_var.
23255         (ix86_expand_xorsign): Use gen_xorsign3_1.
23256         (ix86_expand_branch): Use gen_sub3_carry_ccc,
23257         gen_sub3_carry_ccgz and gen_cmp1.
23258         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23259         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23260         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23261         (ix86_split_lshr): Ditto.
23262         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23264 2019-06-18  Jason Merrill  <jason@redhat.com>
23266         * tree.c (build_constructor): Add MEM_STAT_DECL.
23268 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23270         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23271         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23272         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23273         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23274         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23275         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23276         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23277         Use CC_NZC instead of CC.
23278         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23279         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23280         (aarch64_print_operand): Handle E_CC_NZCmode.
23281         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23282         of gen_set_clobber_cc.
23284 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23286         * config/aarch64/aarch64-sve.md: Tabify file.
23288 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23290         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23291         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23292         * config/aarch64/aarch64-sve.md: Use it.
23294 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23296         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23297         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23298         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23299         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23300         (aarch64_expand_sve_vec_cmp_int): Use it.
23301         (aarch64_expand_sve_vec_cmp_float): Likewise.
23302         * config/aarch64/aarch64-sve.md: Likewise throughout.
23304 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23305             Kugan Vivekanandarajah  <kuganv@linaro.org>
23307         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23308         (*cond_<optab><mode>_z): Fold into...
23309         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
23310         operand 4 can be tied to operand 0 (either inherently or via RA).
23312 2019-06-18  Richard Biener  <rguenther@suse.de>
23314         PR debug/90900
23315         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23316         as if optimized away.
23318 2019-06-18  Tom de Vries  <tdevries@suse.de>
23320         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23321         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23322         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23323         Rename to ...
23324         (define_insn "@set_softstack_<mode>"): ... this.
23325         (define_insn "omp_simt_enter_<mode>"): Rename to ...
23326         (define_insn "@omp_simt_enter_<mode>"): ... this.
23327         (define_insn "omp_simt_exit_<mode>"): Rename to ...
23328         (define_insn "@omp_simt_exit_<mode>"): ... this.
23330 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
23332         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23333         vf parameter.  Restore the previous iv step of nscalars_step,
23334         but give it iv_type rather than compare_type.  Tweak code order
23335         to match the comments.
23336         (vect_set_loop_condition_masked): Update accordingly.
23337         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23338         for iv_precision.  Tweak comment formatting.
23340 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
23342         * config/darwin.c: Strip trailing whitespace.
23344 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
23346         * config/darwin.c (darwin_emit_unwind_label): New default to false.
23347         (darwin_override_options): Set darwin_emit_unwind_label as needed.
23349 2019-06-18  Martin Jambor  <mjambor@suse.cz>
23351         PR ipa/90889
23352         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23353         caller does not have flag_ipa_cp set.
23355 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
23357         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23358         from "*fold_left_plus_<mode>", updated operands order.
23359         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23360         * internal-fn.c (mask_fold_left_direct): New define.
23361         (expand_mask_fold_left_optab_fn): Likewise.
23362         (direct_mask_fold_left_optab_supported_p): Likewise.
23363         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23364         * optabs.def (mask_fold_left_plus_optab): New optab.
23365         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23366         masked internal_fn for a reduction ifn.
23367         (vectorize_fold_left_reduction): Add support for masking reductions.
23369 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
23371         PR middle-end/80791
23372         * target.def (predict_doloop_p): New hook.
23373         * targhooks.h (default_predict_doloop_p): New declaration.
23374         * targhooks.c (default_predict_doloop_p): New function.
23375         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23376         * doc/tm.texi: Regenerate.
23377         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23378         (TARGET_PREDICT_DOLOOP_P): New macro.
23379         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23381 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
23383         * omp-low.c (struct omp_context): Add scan_inclusive field.
23384         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23385         if inclusive scan.
23386         (struct omplow_simd_context): Add lastlane member.
23387         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23388         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23389         1 or 2 argument.
23390         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23391         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23392         (lower_omp_scan): New function.
23393         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23394         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23395         check 3rd argument if present rather than 2nd.
23396         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23397         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23398         2-bit bitfield.
23399         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23400         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23401         than 2nd.
23402         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23403         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23404         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23405         init.
23406         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23407         IFN_GOMP_SIMD_LANE argument.
23408         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23409         encoded ->aux value.
23410         * tree-vect-stmts.c: Include attribs.h.
23411         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23412         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23413         functions.
23414         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23415         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23417 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
23419         PR target/62055
23420         * config/i386/i386.md (*nabstf2_1): New insn pattern.
23421         (*nabs<mode>2_1): Ditto.
23422         (nabs sse-reg splitter): New splitter.
23423         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23425 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23427         PR bootstrap/90873.
23428         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23429         TMR index check.
23431 2019-06-17  Tom de Vries  <tdevries@suse.de>
23433         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23434         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23435         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23436         ...
23437         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
23438         match_operand 0.
23439         (define_insn "omp_simt_enter_insn"): Rename to ...
23440         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
23441         match_operand 0, 1 and 2, as well as the unspec_volatile result.
23442         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23443         gen_omp_simt_enter_si.
23444         (define_expand "omp_simt_exit"): New.
23445         (define_insn "omp_simt_exit"): Rename to ...
23446         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
23447         match_operand 0.
23449 2019-06-17  Matthew Green  <mrg@eterna.com.au>
23450             Maya Rashish  <coypu@sdf.org>
23452         * config.gcc (aarch64*-*-netbsd*): New target.
23453         * config/aarch64/aarch64-netbsd.h: New file.
23454         * config/aarch64/t-aarch64-netbsd: Likewise.
23456 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23458         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23459         the access path from base to first VIEW_CONVERT_EXPR or
23460         BIT_FIELD_REF.
23462 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
23464         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23465         access path on BIT_FIELD_REFs.
23467 2019-06-17  Martin Liska  <mliska@suse.cz>
23469         PR ipa/90874
23470         * ipa-utils.h (odr_type_p): Remove dead code.
23472 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23474         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23475         alternative Solaris 11.4 format.
23476         * configure: Regenerate.
23478 2019-06-17  Tom de Vries  <tdevries@suse.de>
23480         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23481         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
23482         match_operand 0.
23483         (define_insn "call_value_insn"): Rename to ...
23484         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
23485         match_operand 0.
23486         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23487         DI.
23489 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
23491         PR middle-end/64242
23492         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
23493         frame clobbers and schedule block.
23494         (builtin_longjmp): Likewise.
23496 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
23498         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23499         describe how to perform MSPABI compliant 64-bit shift.
23500         * config/msp430/msp430.md (ashldi3): New define_expand.
23501         (ashrdi3): New define_expand.
23502         (lshrdi3): New define_expand.
23504 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
23506         * doc/sourcebuild.texi: Document new effective target keyword
23507         longlong64.
23509 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
23511         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23512         indirect_refs_may_alias_p): Revert accidental commits.
23514         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23515         at the end of structures.
23517 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
23519         * config/darwin.c (machopic_indirect_call_target): Use renamed
23520         darwin_picsymbol_stubs to decide on output.
23521         (darwin_override_options): Handle darwin_picsymbol_stubs.
23522         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23523         (LD64_VERSION): Revise default.
23524         * config/darwin.opt: (mpic-symbol-stubs): New option.
23525         (darwin_picsymbol_stubs): New variable.
23526         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23527         rename to TARGET_MACHO_PICSYM_STUBS.
23528         * config/i386/i386.c (output_pic_addr_const): Likewise.
23529         * config/i386/i386.h Likewise.
23530         * config/rs6000/darwin.h: Likewise.
23531         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23532         darwin_picsymbol_stubs.
23534 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
23536         * config/darwin.opt (prebind, noprebind, seglinkedit,
23537         noseglinkedit): Add RejectNegative.
23539 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
23541         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23542         in my previous patch.
23544 2019-06-16  Tom de Vries  <tdevries@suse.de>
23546         PR tree-optimization/89376
23547         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23549 2019-06-15  Maya Rashish  <coypu@sdf.org>
23551         * doc/invoke.texi (Spec Files): Update location of the
23552         Fortran spec file.
23554 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
23556         * doc/extend.texi (Common Function Attributes): Clarify
23557         no_sanitize.  Fix grammar.
23559 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
23561         * tree-ssa-alias.c (alias_stats): Add
23562         nonoverlapping_component_refs_p_may_alias,
23563         nonoverlapping_component_refs_p_no_alias,
23564         nonoverlapping_component_refs_of_decl_p_may_alias,
23565         nonoverlapping_component_refs_of_decl_p_no_alias.
23566         (dump_alias_stats): Dump them.
23567         (nonoverlapping_component_refs_of_decl_p): Add stats.
23568         (nonoverlapping_component_refs_p): Add stats; do not stop on first
23569         ARRAY_REF.
23571 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
23573         * config/i386/i386.md (and<mode>3): Generate zero-extends for
23574         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23575         only.
23576         (*anddi3_doubleword): Split before reload. Merge with
23577         anddi->zext pre-reload splitter.
23578         (*andndi3_doubleword): Split before reload.
23579         (*<code>di3_doubleword): Ditto.
23580         (*one_cmpldi2_doubleword): Ditto.
23582 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
23584         PR middle-end/90779
23585         * gimplify.c: Include omp-offload.h and context.h.
23586         (gimplify_bind_expr): Add "omp declare target" attributes
23587         to static block scope variables inside of target region or target
23588         functions.
23590 2019-06-15  Tom de Vries  <tdevries@suse.de>
23592         PR tree-optimization/90009
23593         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23594         Return NULL if bb contains IFN_UNIQUE.
23596 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
23598         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23599         (un): New define_mode_attr.
23600         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23601         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
23602         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23603         merge into ...
23604         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
23606 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
23608         * config/darwin.opt: Add RejectNegative where needed, reorder
23609         and add minimal functional descriptions.
23611 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23613         PR rtl-optimization/90765
23614         * calls.c (update_stack_alignment_for_call): New function.
23615         (expand_call): Call update_stack_alignment_for_call when
23616         outgoing parameter is passed in the stack.
23617         (emit_library_call_value_1): Likewise.
23618         * function.c (locate_and_pad_parm): Don't update
23619         stack_alignment_needed and preferred_stack_boundary.
23621 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23623         PR target/90877
23624         * config/i386/i386-features.c
23625         (dimode_scalar_chain::compute_convert_gain): Replace
23626         mmxsse_to_integer with sse_to_integer.
23627         * config/i386/i386.c (ix86_register_move_cost): Verify that
23628         moves between MMX and non-MMX units require secondary memory.
23629         Correct costs of moves between SSE and integer units.
23630         * config/i386/i386.h (processor_costs): Rename cost of moving
23631         SSE register to integer to sse_to_integer.  Rename cost of
23633 2019-06-14  Matt Thomas  <matt@3am-software.com>
23634             Matthew Green  <mrg@eterna.com.au>
23635             Nick Hudson  <skrll@netbsd.org>
23636             Maya Rashish  <coypu@sdf.org>
23637             Richard Earnshaw  <rearnsha@arm.com>
23639         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23640         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23641         * config/arm/netbsd-eabi.h: New file.
23642         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23643         redefining.
23644         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23645         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23646         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23647         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23649 2019-06-14  Richard Biener  <rguenther@suse.de>
23651         * tree-loop-distribution.c (classify_partition): Return
23652         whether a reduction appeared in all partitions and do not
23653         stop builtin detection because of this.
23654         (distribute_loop): Sort a non-builtin partition last if
23655         there's a reduction in all partitions and make sure the
23656         partition prevailing as last is not a builtin.
23658 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
23660         PR ipa/90401
23661         * ipa-prop.c (add_to_agg_contents_list): New function.
23662         (clobber_by_agg_contents_list_p): Likewise.
23663         (extract_mem_content): Likewise.
23664         (get_place_in_agg_contents_list): Delete.
23665         (determine_known_aggregate_parts): Renamed from
23666         determine_locally_known_aggregate_parts.  New parameter
23667         aa_walk_budget_p.
23669 2019-06-13  Martin Sebor  <msebor@redhat.com>
23671         PR tree-optimization/90662
23672         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23673         to the same type.
23675 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
23677         PR bootstrap/90873
23678         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23679         dbase is not TARGET_MEM_REF.
23681 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
23683         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23684         Update all uses.
23685         (and<mode>3): Use gen_extend_insn instead of indirect functions.
23686         Do not generate DImode extends for 32bit targets.
23687         (and->zext post-reload splitter): Use gen_extend_insn
23688         instead of indirect functions.
23689         (anddi->zext pre-reload splitter): New.
23690         (*zext<mode>_doubleword_and): Remove.
23691         (*zext<mode>_doubleword): Ditto.
23692         (*zextsi_doubleword): Dittto.
23694 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
23696         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23697         Use gen_sub3_insn instead of indirect function.
23698         (ix86_expand_ashl_const): Use gen_add2_insn instead of
23699         indirect function.
23700         (ix86_adjust_counter): Ditto.
23702 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
23703             Lijia He  <helijia@linux.ibm.com>
23705         PR tree-optimization/77820
23706         * tree-ssa-threadedge.c
23707         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23708         function.
23709         (thread_across_edge): Add call to
23710         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23712 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
23714         * config/darwin-driver.c (validate_macosx_version_min): New.
23715         (darwin_default_min_version): Cleanup and validate supplied version.
23716         (darwin_driver_init): Likewise and push cleaned version into opts.
23718 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
23720         PR tree-optimization/90869
23721         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23722         converts in MEM_REF referencing decl rather than view converts
23723         from decl type to MEM_REF type.
23725 2019-06-13  Richard Biener  <rguenther@suse.de>
23727         PR tree-optimization/90856
23728         * tree-sra.c (build_ref_for_model): Only use
23729         build_reconstructed_reference when address-spaces are the same.
23731 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
23733         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23734         wrap ei variable name in the declaration in ()s.
23735         (nvptx_single): Actually use mode_label variable.  Formatting fix.
23737 2019-06-13  Richard Biener  <rguenther@suse.de>
23739         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23740         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23741         also return the condition stmt.
23742         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23743         loop we can version and version that, reusing the loop version
23744         created by if-conversion instead of versioning again.
23746 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
23748         * gimple-loop-versioning.cc (prune_loop_conditions): Use
23749         may_contain_p.
23750         * tree-vrp (value_range_base::may_contain_p): Call into
23751         value_inside_range.
23752         (value_inside_range): Make private inside value_range_base class.
23753         Take min/max from *this.
23754         (range_includes_p): Remove.
23755         * tree-vrp.h (value_range_base): Add value_inside_range.
23756         (range_includes_p): Remove.
23757         (range_includes_zero_p): Call may_contain_p.
23758         * vr-values.c (compare_range_with_value): Same.
23760 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
23762         * doc/extend.texi (ARC Function Attributes): Update info.
23764 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
23766         PR tree-optimization/89713
23767         * doc/invoke.texi (-ffinite-loops): Document new option.
23768         * common.opt (-ffinite-loops): New option.
23769         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23770         IFN_GOACC_LOOP calls as necessary.
23771         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23772         is finite.
23773         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23774         IFN_GOACC_LOOP call is not used.
23775         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23777 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
23779         PR target/88838
23780         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23781         compare_type is not with Pmode size, we will create an IV with
23782         Pmode size with truncated use (i.e. converted to the correct type).
23783         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23784         (vect_iv_limit_for_full_masking): New. Factored out of
23785         vect_set_loop_condition_masked.
23786         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23787         (vect_iv_limit_for_full_masking): Declare.
23789 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
23791         PR target/88834
23792         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23793         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23794         (get_alias_ptr_type_for_ptr_address): Likewise.
23795         (add_iv_candidate_for_use): Add scaled index candidate if useful.
23796         * tree-ssa-address.c (preferred_mem_scale_factor): New.
23797         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23798         allow_reg_index_p.
23800 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
23802         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23804 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
23806         * common/config/pru/pru-common.c: New file.
23807         * config.gcc: Add PRU target.
23808         * config/pru/alu-zext.md: New file.
23809         * config/pru/constraints.md: New file.
23810         * config/pru/predicates.md: New file.
23811         * config/pru/pru-opts.h: New file.
23812         * config/pru/pru-passes.c: New file.
23813         * config/pru/pru-pragma.c: New file.
23814         * config/pru/pru-protos.h: New file.
23815         * config/pru/pru.c: New file.
23816         * config/pru/pru.h: New file.
23817         * config/pru/pru.md: New file.
23818         * config/pru/pru.opt: New file.
23819         * config/pru/t-pru: New file.
23820         * doc/extend.texi: Document PRU pragmas.
23821         * doc/invoke.texi: Document PRU-specific options.
23822         * doc/md.texi: Document PRU asm constraints.
23824 2019-06-12  Martin Sebor  <msebor@redhat.com>
23826         PR middle-end/90676
23827         * tree-pretty-print.c (dump_mem_ref): New function.  Include
23828         MEM_REF type in output when different size than operand.
23829         (dump_generic_node): Move code to dump_mem_ref and call it.
23831 2019-06-12  Martin Sebor  <msebor@redhat.com>
23833         PR tree-optimization/90662
23834         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23835         to arrays.
23837 2019-06-12  Tom de Vries  <tdevries@suse.de>
23839         PR tree-optimization/90009
23840         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23842 2019-06-12  Martin Liska  <mliska@suse.cz>
23844         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23845         the created map.
23846         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23847         * mem-stats.h (mem_alloc_description::mem_alloc_description):
23848         Do not sanitize created maps.
23850 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
23852         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23853         value_range::singleton_p.
23854         * tree-vrp.c (value_range_constant_singleton): Remove.
23855         * tree-vrp.h (value_range_constant_singleton): Remove.
23856         * vr-values.c (vr_values::singleton): Use
23857         value_range::singleton_p.
23859 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
23861         PR target/90811
23862         * cfgexpand.c (align_local_variable): Add really_expand argument,
23863         don't SET_DECL_ALIGN if it is false.
23864         (add_stack_var): Add really_expand argument, pass it through to
23865         align_local_variable.
23866         (expand_one_stack_var_1): Pass true as really_expand to
23867         align_local_variable.
23868         (expand_one_ssa_partition): Pass true as really_expand to
23869         add_stack_var.
23870         (expand_one_var): Pass really_expand through to add_stack_var.
23872 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
23874         * config/arm/iterators.md (VABAL): New int iterator.
23875         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23876         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23877         UNSPEC_VABAL_U values.
23879 2019-06-12  Martin Liska  <mliska@suse.cz>
23881         * value-prof.c (stream_out_histogram_value): Only first value
23882         can't be negative.
23884 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
23886         PR c/90760
23887         * symtab.c (symtab_node::set_section): Allow being called on aliases
23888         as long as they aren't analyzed yet.
23890 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
23892         * config/mips/mips.c (mips_final_postscan_insn): Modify call
23893         to `mips_set_text_contents_type' to indicate whether a
23894         non-debug insn follows.
23896 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
23898         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23899         enabling -mpcrel by default.
23900         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23901         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23902         that the test against -mcpu=future is done first.  Then test if
23903         -mprefixed-addr is on for -mpcrel.
23904         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23906 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
23908         PR target/90811
23909         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23910         instead of and.u%d.
23912 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
23914         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23916 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
23918         PR c++/90449 - add -Winaccessible-base option.
23919         * doc/invoke.texi (Winaccessible-base): Document.
23921 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
23923         PR tree-optimization/62041
23924         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23926 2019-06-11  Jason Merrill  <jason@redhat.com>
23928         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23929         * tree.c (get_tree_code_name): Likewise.
23930         * print-tree.c (print_node): Only briefly print a node with an
23931         invalid code.
23933 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
23935         PR bootstrap/90819
23936         * trans-mem.c (tm_memopt_compute_available): Add assertion
23937         that blocks is not empty.  Formatting fix.
23939 2019-06-11  Martin Liska  <mliska@suse.cz>
23941         PR c++/87847
23942         * hash-table.h: Extend create_gcc, add one parameter
23943         that is passed into hash_table::hash_table.
23945 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
23947         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23948         New prototype.
23949         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23950         Emit clobber also for non-sse operations.
23951         (ix86_split_fp_absneg_operator): New function.
23952         * config/i386/i386.md (SSEMODEF): New mode iterator.
23953         (ssevecmodef): New mode attribute.
23954         (<code>tf2): Use absneg code iterator.
23955         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23956         Add three-operand AVX alternatives.
23957         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23958         Use absneg code iterator and X87MODEF mode iterator.
23959         (absneg fp_reg non-sse splitter): Call absneg code iterator
23960         and X87MODEF mode iterator.
23961         (absneg general_reg non-sse splitter): Use absneg code iterator
23962         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
23963         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
23964         code iterator.  Add three-operand AVX alternative.
23965         (absneg sse_reg splitter): Use absneg code iterator
23966         and SSEMODEF mode iterator.  Handle AVX operands.
23967         (absneg fp_reg splitter): Use absneg code iterator
23968         and MODEF mode iterator.
23969         (absneg general_reg splitter): Merge splitters using MODEF mode
23970         iterator.  Use absneg code iterator.  Call
23971         ix86_split_fp_absneg_operator.
23972         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23973         Do not enable for non-sse modes before reload.
23974         (CSGNMODE): Remove.
23975         (CSGNVMODE): Ditto.
23976         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23977         ssevecmodef mode attribute instaed of CSGNVMODE.
23978         (copysign<mode>3_const): Ditto.
23979         (copysign<mode>3_var): Ditto.
23980         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23981         Use absneg code iterator.  Simplify code using std::swap.
23982         * config/i386/predicates.md (absneg_operator): Remove.
23984 2019-06-10  Martin Sebor  <msebor@redhat.com>
23986         * gimple-fold.c (get_range_strlen): Update comment that didn't
23987         make it into r267503 or related commits.
23989 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
23991         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23992         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23994 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
23996         * tree.def (OMP_SCAN): New tree code.
23997         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23998         OMP_CLAUSE_EXCLUSIVE.
23999         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24000         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24001         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24002         OMP_CLAUSE_{IN,EX}CLUSIVE.
24003         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24004         * tree-nested.c (convert_nonlocal_reference_stmt,
24005         convert_local_reference_stmt, convert_gimple_call): Handle
24006         GIMPLE_OMP_SCAN.
24007         * tree-pretty-print.c (dump_omp_clause): Handle
24008         OMP_CLAUSE_{IN,EX}CLUSIVE.
24009         (dump_generic_node): Handle OMP_SCAN.
24010         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24011         * gimple.h (gomp_scan): New type.
24012         (is_a_helper <gomp_scan *>::test,
24013         is_a_helper <const gomp_scan *>::test): New templates.
24014         (gimple_build_omp_scan): Declare.
24015         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24016         gimple_omp_scan_set_clauses): New inline functions.
24017         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24018         * gimple.c (gimple_build_omp_scan): New function.
24019         (gimple_copy): Handle GIMPLE_OMP_SCAN.
24020         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24021         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24022         GIMPLE_OMP_TASKGROUP.
24023         (dump_gimple_omp_scan): New function.
24024         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24025         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24026         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24027         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24028         (is_gimple_stmt): Handle OMP_SCAN.
24029         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24030         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24031         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24032         mentioned in nested #pragma omp scan.  Handle
24033         OMP_CLAUSE_{IN,EX}CLUSIVE.
24034         (gimplify_expr): Handle OMP_SCAN.
24035         * omp-low.c (check_omp_nesting_restrictions): For parent context,
24036         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
24037         simd constructs.
24038         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24039         GIMPLE_OMP_SCAN.
24041 2019-06-10  Martin Liska  <mliska@suse.cz>
24043         * ipa-cp.c (ignore_edge_p): New function.
24044         (build_toporder_info): Use it.
24045         * ipa-inline.c (ignore_edge_p): New function.
24046         (inline_small_functions): Use it.
24047         * ipa-pure-const.c (ignore_edge_for_nothrow):
24048         Verify opt_for_fn for caller and callee.
24049         (ignore_edge_for_pure_const): Likewise.
24050         * ipa-reference.c (ignore_edge_p): Extend to check
24051         for opt_for_fn.
24052         * ipa-utils.c (searchc): Refactor.
24053         * ipa-utils.h: Fix coding style.
24055 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
24057         * config/arc/arc.c (arc_rtx_costs): Update costs.
24059 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
24061         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24062         (arc_split_ior): Likewise.
24063         (arc_check_mov_const): Likewise.
24064         (arc_split_mov_const): Likewise.
24065         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24066         (arc_rtx_costs): Replace check Crr with Cax constraint.
24067         (prepare_move_operands): Cleanup, remove unused code.
24068         (arc_split_ior): New function.
24069         (arc_check_ior_const): Likewise.
24070         (arc_split_mov_const): Likewise.
24071         (arc_check_mov_const): Likewise.
24072         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24073         in define_insn_and_split pattern.
24074         (iorsi3): Likewise.
24075         (mulsi3_v2): Add new matching variant.
24076         (andsi3_i): Cleanup pattern.
24077         (rotrsi3_cnt1): Update pattern.
24078         (rotrsi3_cnt8): New pattern.
24079         (ashlsi2_cnt8): Likewise.
24080         (ashlsi2_cnt16): Likewise.
24081         * config/arc/constraints.md (C0p): Update constraint.
24082         (Crr): Remove it.
24083         (C0x): New pattern.
24084         (Cax): New pattern.
24086 2019-06-10  Martin Liska  <mliska@suse.cz>
24088         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24089         Update coding style.
24090         (sem_item_optimizer::dump_cong_classes):
24091         Print how many items are in a non-singular class.  Improve
24092         coding style.
24094 2019-06-10  Martin Liska  <mliska@suse.cz>
24096         * value-prof.c (dump_histogram_value): Change dump format.
24097         (gimple_mod_subtract_transform): Remove legacy comment.
24099 2019-06-10  Martin Liska  <mliska@suse.cz>
24101         * value-prof.c (dump_histogram_value): Print histogram values
24102         only if present.
24104 2019-06-10  Martin Liska  <mliska@suse.cz>
24106         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24107         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24108         * ipa-profile.c (ipa_profile_generate_summary):
24109         Use get_most_common_single_value.
24110         * tree-profile.c (gimple_init_gcov_profiler):
24111         Instrument with __gcov_one_value_profiler_v2
24112         and __gcov_indirect_call_profiler_v4.
24113         * value-prof.c (dump_histogram_value):
24114         Print all values for HIST_TYPE_SINGLE_VALUE.
24115         (stream_out_histogram_value): Update assert for
24116         N values.
24117         (stream_in_histogram_value): Set number of
24118         counters for HIST_TYPE_SINGLE_VALUE.
24119         (get_most_common_single_value): New.
24120         (gimple_divmod_fixed_value_transform):
24121         Use get_most_common_single_value.
24122         (gimple_ic_transform): Likewise.
24123         (gimple_stringops_transform): Likewise.
24124         (gimple_find_values_to_profile): Set number
24125         of counters for HIST_TYPE_SINGLE_VALUE.
24126         * value-prof.h (get_most_common_single_value): New.
24128 2019-06-10  Martin Liska  <mliska@suse.cz>
24130         * hash-map.h: Pass default value to hash_table ctor.
24131         * hash-table.h: Add default value to call of a ctor.
24133 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
24135         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24136         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24138 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
24140         PR target/90751
24141         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24142         Call pa_output_function_label.
24143         (TARGET_ASM_FUNCTION_PROLOGUE): define.
24144         * config/pa/pa-protos.h (pa_output_function_label): Declare.
24145         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24146         to declaration.
24147         (pa_linux_output_function_prologue): Declare.
24148         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24149         (pa_output_function_label): New.
24150         (pa_output_function_prologue): Revise to use pa_output_function_label.
24151         (pa_linux_output_function_prologue): New.
24152         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24154 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
24156         * tree-vrp.h (value_range_base::intersect): New.
24157         (value_range::intersect_helper): Move from here...
24158         (value_range_base::intersect_helper): ...to here.
24159         * tree-vrp.c (value_range::intersect_helper): Rename to...
24160         (value_range_base::intersect_helper): ...this, and rewrite to
24161         return a value instead of modifying THIS in place.
24162         Also, move equivalence handling...
24163         (value_range::intersect): ...here, while calling intersect_helper.
24164         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24165         calling intersect.
24166         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24167         Same.
24168         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24170 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
24172         * Makefile.in (genprogerr): Add condmd.
24173         (genprog): Remove it here.
24175 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
24177         * doc/invoke.texi (AMD GCN Options): Add gfx906.
24179 2019-06-07  Richard Biener  <rguenther@suse.de>
24181         PR debug/90574
24182         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24183         that appear after user labels.
24185 2019-06-07  Martin Liska  <mliska@suse.cz>
24187         * cselib.c (cselib_init): Disable hash table
24188         sanitization.
24189         * hash-set.h: Pass new default argument to m_table.
24190         * hash-table.c: Add global variable with hash table
24191         sanitization limit.
24192         * hash-table.h (Allocator>::hash_table): Add new argument
24193         to ctor.
24194         (hashtab_chk_error): New.
24195         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24196         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24197         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24199 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
24201         * common.opt (flto-odr-type-merging): Ignore.
24202         * invoke.texi (-flto-odr-type-merging): Remove.
24203         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24204         (can_be_vtable_hashed_p): Remove.
24205         (hash_odr_vtable): Remove.
24206         (odr_vtable_hasher::hash): Remove.
24207         (types_same_for_odr): Remove.
24208         (types_odr_comparable): Remove.
24209         (odr_vtable_hasher::equal): Remove.
24210         (odr_vtable_hash_type, odr_vtable_hash): Remove.
24211         (add_type_duplicate): Do not synchronize vtable and name hashtables.
24212         (get_odr_type): Do not use vtable hash.
24213         (dump_odr_type): Remove commented out code.
24214         (build_type_inheritance_graph): Do not allocate vtable hash.
24215         (rebuild_type_inheritance_graph): Do not delete vtable hash.
24216         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24217         (odr_type_p): Likewise.
24218         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24219         test.
24221 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
24223         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24224         immediately after same_types_for_tbaa_p returns -1 and continue
24225         looking for possible exact match; if matching types are arrays
24226         watch for partial overlaps.
24227         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24228         (indirect_refs_may_alias_p): Do type based disambiguation first;
24229         update comment.
24231 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
24233         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24235 2019-06-07  Martin Liska  <mliska@suse.cz>
24237         * doc/invoke.texi: Remove param.
24238         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24239         Remove.
24240         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24241         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24242         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24243         * profile.c (instrument_values): Remove
24244         HIST_TYPE_INDIR_CALL_TOPN.
24245         * tree-profile.c (init_ic_make_global_vars):
24246         Always build __gcov_indirect_call only.
24247         (gimple_init_gcov_profiler): Remove usage
24248         of PARAM_INDIR_CALL_TOPN_PROFILE.
24249         (gimple_gen_ic_profiler): Likewise.
24250         * value-prof.c (dump_histogram_value): Likewise.
24251         (stream_in_histogram_value): Likewise.
24252         (gimple_indirect_call_to_profile): Likewise.
24253         (gimple_find_values_to_profile): Likewise.
24254         * value-prof.h (enum hist_type): Likewise.
24256 2019-06-07  Martin Liska  <mliska@suse.cz>
24258         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24259         function.
24261 2019-06-07  Martin Liska  <mliska@suse.cz>
24263         PR tree-optimization/78902
24264         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24265         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24266         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24267         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24268         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24269         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24270         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24271         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24272         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24273         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24274         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24275         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24276         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24277         New.
24278         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24279         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24280         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24281         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24282         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24283         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24284         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24285         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24286         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24287         warn_unused_result attribute.
24288         (BUILT_IN_STRDUP): Likewise.
24289         (BUILT_IN_STRNDUP): Likewise.
24290         (BUILT_IN_ALLOCA): Likewise.
24291         (BUILT_IN_CALLOC): Likewise.
24292         (BUILT_IN_MALLOC): Likewise.
24293         (BUILT_IN_REALLOC): Likewise.
24295 2019-06-06  Jim Wilson  <jimw@sifive.com>
24297         PR target/89955
24298         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24299         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24300         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24302 2019-06-06  Martin Sebor  <msebor@redhat.com>
24304         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24305         (handle_builtin_malloc): Remove trailing spaces.
24306         (handle_builtin_memset): Same.
24307         (handle_builtin_memcmp): Same.
24308         (compute_string_length): Same.
24309         (determine_min_objsize): Same.
24310         (handle_builtin_string_cmp): Same.
24311         (handle_char_store): Same.  Break up excessively long line.
24313 2019-06-06  Martin Jambor  <mjambor@suse.cz>
24315         * tree-sra.c (build_reconstructed_reference): Drop the alignment
24316         check.
24318 2019-06-06  Martin Jambor  <mjambor@suse.cz>
24320         * tree-sra.c (struct access): New field grp_same_access_path.
24321         (dump_access): Dump it.
24322         (build_reconstructed_reference): New function.
24323         (build_ref_for_model): Use it if possible.
24324         (path_comparable_for_same_access): New function.
24325         (same_access_path_p): Likewise.
24326         (sort_and_splice_var_accesses): Set the new flag.
24327         (analyze_access_subtree): Likewise.
24328         (propagate_subaccesses_across_link): Propagate zero value of the new
24329         flag down the access tree.
24331 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
24333         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24334         * config/gcn/gcn.opt (gpu_type): Add gfx906.
24335         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24336         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24337         Add gfx906.
24339 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24341         PR tree-optimization/90332
24342         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24343         Handle VALS containing two vectors.
24344         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24345         to...
24346         (@aarch64_combinez<mode>): ... This.
24347         (*aarch64_combinez_be<mode>): Rename to...
24348         (@aarch64_combinez_be<mode>): ... This.
24349         (vec_init<mode><Vhalf>): New define_expand.
24350         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24352 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24354         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24355         library functions only when not optimizing for size.
24356         (ashlsi3): Likewise.
24357         (ashrhi3): Likewise.
24358         (ashrsi3): Likewise.
24359         (lshrhi3): Likewise.
24360         (lshrsi3): Likewise.
24362 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
24364         PR rtl-optimization/88751
24365         * ira.c (ira): Use the number of the actually referenced registers
24366         when calculating the threshold.
24368 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
24370         * configure: Regenerate.
24372 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24374         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24375         register if it is in memory, so the shift can be emulated with a rotate
24376         instruction.
24377         (ashrhi3): Likewise.
24378         (lshrhi3): Likewise.
24380 2019-06-06  Martin Liska  <mliska@suse.cz>
24382         PR tree-optimization/87954
24383         * match.pd: Simplify mult where both arguments are 0 or 1.
24385 2019-06-06  Richard Biener  <rguenther@suse.de>
24387         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24388         put equivalences on UNDEFINED ranges.
24389         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24390         Make sure to drop defs of stmts added during simplification
24391         to VARYING.
24393 2019-06-06  Richard Biener  <rguenther@suse.de>
24395         * tree-ssa-structalias.c: Include tree-cfg.h.
24396         (make_heapvar): Do not make heap vars artificial.
24397         (find_func_aliases_for_builtin_call): Handle stack allocation
24398         functions.
24399         (find_func_aliases): Delay processing of simple enough returns
24400         in non-IPA mode.
24401         (set_uids_in_ptset): Adjust.
24402         (find_what_var_points_to): Likewise.
24403         (solve_constraints): Do not dump points-to sets here.
24404         (compute_points_to_sets): Post-process return statements,
24405         amending the escaped solution.  Dump points-to sets afterwards.
24406         (ipa_pta_execute): Dump points-to sets.
24408 2019-06-06  Martin Liska  <mliska@suse.cz>
24410         PR web/87933
24411         * doc/install.texi: Fix HTML headers and
24412         titles for 'Installing GCC' pages.
24414 2019-06-06  Martin Liska  <mliska@suse.cz>
24416         * ipa-icf-gimple.h (dump_message_1): Remove.
24417         (dump_message): Likewise.
24418         (return_false_with_message_1): Print also file.
24419         (return_false_with_msg): Likewise.
24420         (return_with_result): Likewise.
24421         (return_with_debug): Likewise.
24422         * ipa-icf.c (sem_function::equals_private): Remove call
24423         to dump_message.
24425 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
24427         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24428         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24429         memory operand for it.
24430         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24432 2019-06-05  Martin Sebor  <msebor@redhat.com>
24434         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24435         Adjust quoting and hyphenation.
24436         * convert.c (convert_to_real_1): Same.
24437         * gcc.c (driver_wrong_lang_callback): Same.
24438         (driver::handle_unrecognized_options): Same.
24439         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24440         * opts-common.c (cmdline_handle_error): Same.
24441         (read_cmdline_option): Same.
24442         * opts-global.c (complain_wrong_lang): Same.
24443         (print_ignored_options): Same.
24444         (handle_common_deferred_options): Same.
24445         * pretty-print.h: Same.
24446         * print-rtl.c (debug_bb_n_slim): Same.
24447         * sched-rgn.c (make_pass_sched_fusion): Same.
24448         * tree-cfg.c (verify_gimple_assign_unary): Same.
24449         (verify_gimple_label): Same.
24450         * tree-ssa-operands.c (verify_ssa_operands): Same.
24451         * varasm.c (do_assemble_alias): Same.
24452         (assemble_alias): Same.
24454 2019-06-05  Richard Henderson  <rth@twiddle.net>
24456         * config/alpha/alpha.c (direct_return): Move down after
24457         struct machine_function definition; use saved frame_size;
24458         return bool.
24459         (struct machine_function): Add sa_mask, sa_size, frame_size.
24460         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24461         (alpha_compute_frame_layout): ... new function.
24462         (TARGET_COMPUTE_FRAME_LAYOUT): New.
24463         (alpha_initial_elimination_offset): Use saved sa_size.
24464         (alpha_vms_initial_elimination_offset): Likewise.
24465         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24466         (alpha_expand_prologue): Use saved frame data.  Merge integer
24467         and fp register save loops.
24468         (alpha_expand_epilogue): Likewise.
24469         (alpha_start_function): Use saved frame data.
24470         * config/alpha/alpha-protos.h (direct_return): Update.
24471         (alpha_sa_size): Remove.
24473 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
24475         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24476         multiplication by a power-of-two value.
24477         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24478         and turn the modulo operation into a masking operation.
24480 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
24482         PR debug/90733
24483         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24484         with VOIDmode inner operands.
24486 2019-06-05  Richard Biener  <rguenther@suse.de>
24488         PR middle-end/90726
24489         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24490         turn an expression graph into a tree.
24492 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
24494         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24495         member.
24496         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24497         treat it like explicit monotonic schedule modifier.
24498         (expand_omp_for): Initialize has_lastprivate_conditional.
24499         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24500         schedule modifier.
24502         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24503         references, lookup in in hash map MEM_REF operand instead of the
24504         MEM_REF itself.
24505         (lower_omp_1): When looking for lastprivate conditional assignments,
24506         handle MEM_REFs with REFERENCE_TYPE operands.
24508         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24509         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24510         and references a VLA.  Handle references to non-VLAs if is_simd
24511         all privatization clauses like reductions.
24512         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24513         If omp_is_reference, use always omp simd arrays and set
24514         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24515         fails, emit reference initialization.
24517 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
24519         PR target/89803
24520         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24521         _mm_mask_fpclass_sd_mask): New intrinsics.
24522         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24523         * config/i386/i386-builtin.def
24524         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24525         New builtins.
24526         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24527         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24528         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24529         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24530         case QI_FTYPE_V2SF_INT): Ditto.
24531         * config/i386/sse.md
24532         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24533         Extended to insnstructions with mask operands.
24535 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24537         * config/rs6000/constraints.md (define_register_constraint "wp"):
24538         Delete.
24539         (define_register_constraint "wq"): Delete.
24540         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24541         (rs6000_init_hard_regno_mode_ok): Adjust.
24542         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24543         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24544         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24545         (define_mode_attr VSa): Delete.
24546         (define_mode_attr VSisa): New.
24547         (rest of file): Adjust.
24548         * doc/md.texi (Machine Constraints): Adjust.
24550 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24552         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24553         (define_attr "enabled"): Handle those new isa values.
24555 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24557         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24558         (define_mode_attr VSr5): Delete.
24559         (define_mode_attr VStype_sqrt): Delete.
24560         (define_mode_iterator VSX_SPDP): Delete.
24561         (define_mode_attr VS_spdp_res): Delete.
24562         (define_mode_attr VS_spdp_insn): Delete.
24563         (define_mode_attr VS_spdp_type): Delete.
24564         (*vsx_sqrt<mode>2): Adjust.
24565         (vsx_<VS_spdp_insn>): Delete, split to...
24566         (vsx_xscvdpsp): ... this.  New.  And...
24567         (vsx_xvcvspdp): ... this.  New.  And...
24568         (vsx_xvcvdpsp): ... this.  New.
24570 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24572         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24573         and V2DF.
24574         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24575         (rest of file): Adjust.
24577 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24579         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24580         (vsx_extract_<mode>_var): Ditto.
24582 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24584         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24585         with just "wa".
24587 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24589         * config/rs6000/constraints.md (define_register_constraint "ww"):
24590         Delete.
24591         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24592         (rs6000_init_hard_regno_mode_ok): Adjust.
24593         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24594         RS6000_CONSTRAINT_ww.
24595         * config/rs6000/rs6000.md: Adjust.
24596         * config/rs6000/vsx.md: Adjust.
24597         * doc/md.texi (Machine Constraints): Adjust.
24599 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24601         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24602         (define_mode_attr sd): New.
24603         (define_mode_attr s): New.
24604         (define_mode_attr Ftrad): Delete.
24605         (define_mode_attr Fvsx): Delete.
24606         (define_mode_attr Fs): Delete.
24607         (rest of file): Use the new mode attributes.
24608         * config.rs6000/vsx.md: Use the new mode attributes.
24610 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24612         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24613         with just "wa".
24615 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24617         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24618         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24619         used with VSX_B, VSX_D, or VSX_F, with just "wa".
24621 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
24623         PR target/78263
24624         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24625         C++ with strict ANSI requirements.
24627 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
24629         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24630         computations when step is 1.
24632 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24634         * config/rs6000/constraints.md (define_register_constraint "wf"):
24635         Delete.
24636         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24637         (rs6000_init_hard_regno_mode_ok): Adjust.
24638         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24639         RS6000_CONSTRAINT_wf.
24640         * config/rs6000/rs6000.md: Adjust.
24641         * config/rs6000/vsx.md: Adjust.
24642         * doc/md.texi (Machine Constraints): Adjust.
24644 2019-06-04  Andrew Pinski  <apinski@marvell.com>
24646         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24647         Fix ILP32 value.
24649 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24651         * config/rs6000/constraints.md (define_register_constraint "wd"):
24652         Delete.
24653         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24654         (rs6000_init_hard_regno_mode_ok): Adjust.
24655         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24656         RS6000_CONSTRAINT_wd.
24657         * config/rs6000/rs6000.md: Adjust.
24658         * config/rs6000/vsx.md: Adjust.
24659         * doc/md.texi (Machine Constraints): Adjust.
24661 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24663         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24664         (rest of file): Adjust.
24666 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24668         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24669         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24670         (vsx_splat_<mode>_reg): Adjust.
24672 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24674         * config/rs6000/constraints.md (define_register_constraint "ws"):
24675         Delete.
24676         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24677         (rs6000_init_hard_regno_mode_ok): Adjust.
24678         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24679         RS6000_CONSTRAINT_ws.
24680         * config/rs6000/rs6000.md: Adjust.
24681         * config/rs6000/vsx.md: Adjust.
24682         * doc/md.texi (Machine Constraints): Adjust.
24684 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24686         * config/rs6000/constraints.md (define_register_constraint "wv"):
24687         Delete.
24688         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24689         (rs6000_init_hard_regno_mode_ok): Adjust.
24690         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24691         RS6000_CONSTRAINT_wv.
24692         * config/rs6000/rs6000.md: Adjust.
24693         * config/rs6000/vsx.md: Adjust.
24694         * doc/md.texi (Machine Constraints): Adjust.
24696 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
24698         * config/rs6000/constraints.md (define_register_constraint "wi"):
24699         Delete.
24700         (define_register_constraint "wt"): Delete.
24701         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24702         (rs6000_init_hard_regno_mode_ok): Adjust.
24703         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24704         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24705         * config/rs6000/rs6000.md: Adjust.
24706         * config/rs6000/vsx.md: Adjust.
24707         * doc/md.texi (Machine Constraints): Adjust.
24709 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24711         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24712         const.
24713         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24714         default_elf_asm_output_external.
24716 2019-06-04  Martin Liska  <mliska@suse.cz>
24718         * ipa-icf.c (INCLUDE_LIST): Remove.
24719         (sem_item_optimizer::execute): Remove call to init_wpa.
24720         * ipa-icf.h (init_wpa): Remove.
24722 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
24724         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24725         conditional on combined for simd.
24726         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24727         member.
24728         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24729         constructs, don't remove lastprivate_conditional_map, but instead set
24730         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24731         to parent construct temporaries.
24732         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24733         like !ctx->lastprivate_conditional_map.
24734         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24735         use up->outer context instead of up.
24736         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24737         gimple_omp_for_combined_p.
24738         (expand_omp_for_static_nochunk): Likewise.
24739         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24740         probably moved over into expand_omp_for_generic rather than being copied
24741         there.
24743 2019-06-04  Martin Liska  <mliska@suse.cz>
24745         * value-prof.c (dump_histogram_value): Fix typo.
24746         (gimple_mod_subtract_transform): Likewise.
24748 2019-06-04  Richard Biener  <rguenther@suse.de>
24750         PR middle-end/90726
24751         * tree-chrec.c (chrec_contains_symbols): Add to visited.
24752         (tree_contains_chrecs): Likewise.
24753         (chrec_contains_symbols_defined_in_loop): Move here and avoid
24754         exponential behaivor from ...
24755         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24756         ... here.
24757         (expression_expensive_p): Avoid exponential behavior and compute
24758         expanded size, rejecting any expansion.
24759         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24760         (idx_contains_abnormal_ssa_name_p): Likewise.
24761         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24762         (contains_abnormal_ssa_name_p): Simplify and use
24763         walk_tree_without_duplicates.
24765 2019-06-04  Richard Biener  <rguenther@suse.de>
24767         PR tree-optimization/90738
24768         Revert
24769         2019-06-03  Richard Biener  <rguenther@suse.de>
24771         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24772         full reference tree and record in ref->ref.
24773         (vn_reference_lookup_3): Pass in original ref to
24774         ao_ref_init_from_vn_reference.
24775         (vn_reference_lookup): Likewise.
24776         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24777         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24778         Handle non-decl bases in the original reference.
24780 2019-06-04  Martin Liska  <mliska@suse.cz>
24782         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24783         number of references.
24784         (sem_item_optimizer::do_congruence_step):
24785         (sem_item_optimizer::worklist_push): Dump how references
24786         a class has.
24787         (sem_item_optimizer::worklist_pop): Use heap.
24788         (sem_item_optimizer::process_cong_reduction): Likewise.
24789         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24791 2019-06-04  Martin Liska  <mliska@suse.cz>
24793         * ipa-icf.h (struct sem_usage_pair_hash): New.
24794         (sem_usage_pair_hash::hash): Likewise.
24795         (sem_usage_pair_hash::equal): Likewise.
24796         (struct sem_usage_hash): Likewise.
24797         * ipa-icf.c (sem_item::sem_item): Initialize
24798         referenced_by_count.
24799         (sem_item::add_reference): Register a reference
24800         in ref_map and not in target->usages.
24801         (sem_item::setup): Remove initialization of
24802         dead vectors.
24803         (sem_item::~sem_item): Remove usage of dead vectors.
24804         (sem_item::dump): Remove dump of references.
24805         (sem_item_optimizer::sem_item_optimizer): Initialize
24806         m_references.
24807         (sem_item_optimizer::read_section): Remove useless
24808         dump.
24809         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24810         (sem_item_optimizer::build_graph): Pass m_references
24811         to ::add_reference.
24812         (sem_item_optimizer::verify_classes): Remove usage of dead
24813         vectors.
24814         (sem_item_optimizer::traverse_congruence_split): Return true
24815         when a class is split.
24816         (sem_item_optimizer::do_congruence_step_for_index): Use
24817         hash_map for look up of (sem_item *, index). That brings
24818         significant speed up.
24819         (sem_item_optimizer::do_congruence_step): Return true
24820         when a split is done.
24821         (congruence_class::is_class_used): Use referenced_by_count.
24823 2019-06-04  Alan Modra  <amodra@gmail.com>
24825         PR target/90689
24826         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24827         error.
24829 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
24831         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24832         * config/rs6000/rs6000.c (direct_move_p): Adjust.
24833         (rs6000_secondary_reload_simple_move): Adjust.
24834         (rs6000_opt_masks): Neuter the "mfpgpr" option.
24835         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24836         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24837         comment.
24838         (power6x): Adjust.
24839         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24840         (floatunssi<mode>2_lfiwzx): Adjust.
24841         (fix_trunc<mode>si2_stfiwx): Adjust.
24842         (fixuns_trunc<mode>si2_stfiwx): Adjust.
24843         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24844         (mfpgpr): Mark as deprecated.
24845         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24846         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24847         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24849 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
24851         * config/rs6000/constraints.md (define_register_constraint "wg"):
24852         Delete.
24853         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24854         RS6000_CONSTRAINT_wg.
24855         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24856         (rs6000_init_hard_regno_mode_ok): Adjust.
24857         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24858         Delete "wg" alternatives.
24859         * doc/md.texi (Machine Constraints): Adjust.
24861 2019-06-03  Alan Modra  <amodra@gmail.com>
24863         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24864         (get_uncond_jump_length): Assert length less than INT_MAX and
24865         non-negative.
24867 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
24869         PR middle-end/64242
24870         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24871         block.
24872         (expand_builtin_nonlocal_goto): Likewise.
24874 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24876         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24877         (aarch64_asm_output_external): Declare.
24878         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24879         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24880         (aarch64_asm_output_alias): New.
24881         (aarch64_asm_output_external): New.
24882         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24883         (ASM_OUTPUT_EXTERNAL): Define.
24885 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
24886         * tree-vrp.h (value_range_base::nonzero_p): New.
24887         (value_range_base::set_nonnull): Rename to...
24888         (value_range_base::set_nonzero): ...this.
24889         (value_range_base::set_null): Rename to...
24890         (value_range_base::set_zero): ...this.
24891         (value_range::set_nonnull): Remove.
24892         (value_range::set_null): Remove.
24893         * tree-vrp.c (range_is_null): Remove.
24894         (range_is_nonnull): Remove.
24895         (extract_range_from_binary_expr): Use value_range_base::*zero_p
24896         instead of range_is_*null.
24897         (extract_range_from_unary_expr): Same.
24898         (value_range_base::set_nonnull): Rename to...
24899         (value_range_base::set_nonzero): ...this.
24900         (value_range::set_nonnull): Remove.
24901         (value_range_base::set_null): Rename to...
24902         (value_range_base::set_zero): ...this.
24903         (value_range::set_null): Remove.
24904         (extract_range_from_binary_expr): Rename set_*null uses to
24905         set_*zero.
24906         (extract_range_from_unary_expr): Same.
24907         (union_helper): Same.
24908         * vr-values.c (get_value_range): Use set_*zero instead of
24909         set_*null.
24910         (vr_values::extract_range_from_binary_expr): Same.
24911         (vr_values::extract_range_basic): Same.
24913 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
24915         PR driver/90684
24916         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24918 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24920         * config/aarch64/iterators.md (MAX_OPP): New code attr.
24921         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24922         Rename to...
24923         (aarch64_<su>abd<mode>_3): ... This.
24924         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24926 2019-06-03  Richard Biener  <rguenther@suse.de>
24928         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24929         full reference tree and record in ref->ref.
24930         (vn_reference_lookup_3): Pass in original ref to
24931         ao_ref_init_from_vn_reference.
24932         (vn_reference_lookup): Likewise.
24933         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24934         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24935         Handle non-decl bases in the original reference.
24937 2019-06-03  Martin Liska  <mliska@suse.cz>
24939         * doc/generic.texi: Remove Java Trees.
24941 2019-06-03  Martin Liska  <mliska@suse.cz>
24943         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24944         returns 0 when operands are equal.
24946 2019-06-03  Richard Biener  <rguenther@suse.de>
24948         PR tree-optimization/90716
24949         * tree-loop-distribution.c (destroy_loop): Process blocks in
24950         correct order.
24952 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24954         PR target/88837
24955         * vector-builder.h (vector_builder::count_dups): New method.
24956         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24957         Declare prototype.
24958         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24959         (vec_init<mode><Vel>): New pattern.
24960         * config/aarch64/aarch64.c (emit_insr): New function.
24961         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24962         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24963         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24964         (aarch64_sve_expand_vector_init): Define two overloaded functions.
24966 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
24968         PR tree-optimization/90681
24969         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24970         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24971         special case for SLP, but fail on non-groupped loads.
24973 2019-06-03  Martin Liska  <mliska@suse.cz>
24975         * cfg.c (debug): Use TDF_DETAILS for debug and
24976         print edge info only once.
24978 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
24980         PR fortran/90539
24981         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24983 2019-06-01  Martin Sebor  <msebor@redhat.com>
24985         PR middle-end/90694
24986         * tree-pretty-print.c (dump_generic_node): Add parentheses.
24988 2019-05-31  Jan Hubicka  <jh@suse.cz>
24990         * alias.c: Include ipa-utils.h.
24991         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24992         * ipa-devirt.c (prevailing_odr_type): New.
24993         * ipa-utils.h (previaling_odr_type): Declare.
24995 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
24996             Hongtao Liu  <hongtao.liu@intel.com>
24998         PR target/89355
24999         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25000         NOTE_INSN_DELETED_LABEL check.
25002 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
25003             Robert Suchanek  <robert.suchanek@mips.com>
25005         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25006         and 3rd operands of the fmadd/fmsub/maddv builtin.
25008 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
25010         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25011         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25012         on OMP_SIMD if not nested inside of worksharing loop that also has
25013         lastprivate conditional clause for the same decl.
25014         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25015         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25016         on simd.
25017         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
25018         on simd construct.
25019         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25020         on simd construct.
25021         (lower_lastprivate_clauses): Likewise.
25022         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25023         calling lower_rec_input_clauses.
25024         (lower_omp_for): Likewise.
25025         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25026         clause on simd construct.
25027         * omp-expand.c (expand_omp_simd): Initialize cond_var if
25028         OMP_CLAUSE__CONDTEMP_ clause is present.
25030         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25031         ivar and lvar.
25033 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
25035         PR c/43673
25036         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25037         TEX_D32, TEX_D64 or TEX_D128.
25039 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
25041         * match.pd (~(vec?cst1:cst2)): New transformation.
25043 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
25045         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25046         ((size_t)(A /[ex] B) CMP C): New transformation.
25048 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
25050         * doc/md.texi: Document define_insn_and_rewrite.
25051         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25052         * gensupport.c (queue_elem): Update comment.
25053         (replace_operands_with_dups): New function.
25054         (gen_rewrite_sequence): Likewise.
25055         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25056         * read-rtl.c (apply_subst_iterator): Likewise.
25057         (add_condition_to_rtx, named_rtx_p): Likewise.
25058         (rtx_reader::read_rtx_operand): Likewise.
25059         * config/aarch64/aarch64-sve.md
25060         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25061         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25062         define_insn_and_rewrite.
25063         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25064         Remove separate define_split.
25066 2019-05-31  Jan Hubicka  <jh@suse.cz>
25068         * tree-ssa-alias.c (type_has_components_p): New function.
25069         (aliasing_component_refs_p): Use it.
25071 2019-05-31  Martin Liska  <mliska@suse.cz>
25073         * gdbhooks.py: Add const_tree to TreePrinter.
25075 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
25077         PR debug/86964
25078         * common.opt (feliminate-unused-debug-symbols): Enable by default.
25079         * doc/invoke.texi (Debugging Options): Document new default of
25080         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25082 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
25084         PR tree-optimization/90671
25085         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25086         template_block used to be empty on the first call, don't use
25087         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25088         seq with bb_seq and set it with set_bb_seq.
25090 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
25092         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25094 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25095             Michael Meissner  <meissner@linux.ibm.com>
25097         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25098         (prefixed_mem_operand): Likewise.
25099         (non_prefixed_mem_operand): Likewise.
25100         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25101         prototype.
25102         * config/rs6000/rs6000.c (print_operand_address): Handle
25103         PC-relative addresses.
25104         (mode_supports_prefixed_address_p): New function.
25105         (rs6000_prefixed_address): New function.
25106         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25107         (SYMBOL_REF_PCREL_P): Likewise.
25109 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
25111         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25112         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25113         (gimplify_omp_for): If worksharing loop with lastprivate conditional
25114         is nested inside of parallel region, add _condtemp_ clause to both.
25115         * tree-nested.c (convert_nonlocal_omp_clauses,
25116         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25117         assertion failure.
25118         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25119         member.
25120         * omp-general.c (omp_extract_for_data): Compute it.
25121         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25122         (lower_rec_input_clauses): Likewise.
25123         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25124         clause is already present, just add one further one after it.
25125         (lower_lastprivate_clauses): Handle cond_ptr with array type.
25126         (lower_send_shared_vars): Clear _condtemp_ vars.
25127         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25128         or section or taskgroup.
25129         * omp-expand.c (determine_parallel_type): Disallow combining only if
25130         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
25131         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25132         (expand_omp_for_generic, expand_omp_for_static_nochunk,
25133         expand_omp_for_static_chunk, expand_omp_for): Use
25134         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25135         determine if a special set of API routines are needed and if condtemp
25136         needs to be initialized, while always initialize cond_var if
25137         fd->lastprivate_conditional is non-zero.
25139 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25140             Michael Meissner  <meissner@linux.ibm.com>
25142         * config/rs6000/constraints.md (eI): New constraint.
25143         * config/rs6000/predicates.md (cint34_operand): New predicate.
25144         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25145         (SIGNED_34BIT_OFFSET_P): Likewise.
25146         * doc/md.texi (eI): Document constraint.
25148 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
25150         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25152 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
25153             Michael Meissner  <meissner@linux.ibm.com>
25155         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25156         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25157         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25158         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25159         (OTHER_FUTURE_MASKS): Likewise.
25160         (POWERPC_MASKS): Likewise.
25161         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25162         specified without -mprefixed-addr or -mcpu=future.  Error if
25163         -mprefixed-addr is specified without -mcpu=future.
25164         (rs6000_opt_masks): Add entry for prefixed-addr.
25165         * rs6000.opt (mprefixed-addr): New option.
25167 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
25169         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25170         cfun->is_thunk check.
25172 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
25174         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25175         to length.
25177 2019-05-30  Martin Liska  <mliska@suse.cz>
25179         * gdbinit.in: Fix 'ptc' command.  Add trt
25180         that prints TREE_TYPE($).
25182 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
25183             Alan Modra  <amodra@gmail.com>
25185         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25186         calls here...
25187         (rs6000_indirect_call_template_1): ...and here.
25188         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
25189         plt16_ha, plt16_lo, mtctr indirect calls.  Use
25190         rs6000_pltseq_enum.
25191         (rs6000_decl_ok_for_sibcall): New function.
25192         (rs6000_function_ok_for_sibcall): Refactor.
25193         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25194         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25195         when pcrel.  Reorganize.
25196         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25197         * rs6000.h (rs6000_pltseq_enum): New enum.
25198         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25199         (*pltseq_tocsave): Use rs6000_pltseq_enum.
25200         (*pltseq_plt16_ha): Likewise.
25201         (*pltseq_plt16_lo): Likewise.
25202         (*pltseq_mtctr): Likewise.
25203         (*pltseq_plt_pcrel): New insn.
25204         (*call_local_aix): Handle @notoc calls.
25205         (*call_value_local_aix): Likewise.
25206         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25207         (*call_value_nonlocal_aix): Likewise.
25208         (*call_indirect_pcrel): New insn.
25209         (*call_value_indirect_pcrel): Likewise.
25211 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
25213         * config/i386/sse.md (*save_multiple<mode>): Rename from
25214         save_multiple<mode>.
25215         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25216         (*restore_multiple_and_return<mode>): Rename from
25217         restore_multiple_and_return<mode>.
25218         (*restore_multiple_leave_return<mode>): Rename from
25219         restore_multiple_leave_return<mode>.
25221 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
25223         * config.gcc (rx-*-linux*): New target.
25224         * config/rx/elf.opt: New file.
25225         * config/rx/linux.h: Likewise.
25226         * config/rx/t-linux: Likewise.
25227         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25228         make it zero.
25229         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25230         (ASM_APP_OFF): Likewise.
25231         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25232         moved elsewhere.
25234 2019-05-29  Jan Hubicka  <jh@suse.cz>
25236         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25237         variants are pointer equivalent.
25239 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25241         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25242         * config/aarch64/aarch64-sve2.md: New file.
25243         (<u>avg<mode>3_floor): New pattern.
25244         (<u>avg<mode>3_ceil): Likewise.
25245         (*<sur>h<addsub><mode>): Likewise.
25246         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25247         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25249 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
25251         PR bootstrap/90543
25252         * optc-save-gen.awk: In cl_optimization_print, use correct condition
25253         for var_opt_string printing.  In cl_optimization_print_diff, print
25254         (null) instead of invoking undefined behavior if one of the
25255         var_opt_string pointers is NULL and use && instead of first || in the
25256         guarding condition.  For var_target_other options, handle const char *
25257         target variables similarly to const char * optimize node variables.
25259 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
25261         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25262         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25263         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25264         Add autib1716 and pacib1716 initialisation.
25265         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25266         for autib1716 and pacib1716.
25267         * config/aarch64/aarch64-protos.h (aarch64_key_type,
25268         aarch64_post_cfi_startproc): Define.
25269         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25270         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25271         aarch64_handle_pac_ret_protection): Set default sign key to A.
25272         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25273         aarch64_expand_prologue): Add check for b-key.
25274         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25275         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25276         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25277         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25278         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25279         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25280         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25281         * config/aarch64/aarch64.md (do_return): Add check for b-key.
25282         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25283         pauth_hint_num_a with pauth_hint_num.
25284         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25285         pauth_hint_num_a with pauth_hint_num.
25286         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25287         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25288         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25289         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25290         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25291         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25292         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25293         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25294         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25295         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25296         UNSPEC_AUTIA1716 respectively.
25297         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25298         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25299         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25300         * doc/invoke.texi (-mbranch-protection): Add b-key type.
25301         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25302         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25304 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
25306         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25307         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25308         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25309         explicit clause on combined parallel into implicit shared clause.
25310         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25311         and firstprivate if the decl has one too from combined parallel to
25312         the worksharing construct.
25314 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
25315             Michael Meissner  <meissner@linux.ibm.com>
25317         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25319 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
25321         * rtl.h (LABEL_REF_P): New #define.
25323 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
25325         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25327 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25329         * internal-fn.c: Marked mask_load_direct as vectorizable.
25330         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25331         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25332         combined even if masks different with allow_slp_p param.
25333         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25334         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25335         dissolve SLP-only vectorizable groups when SLP has been discarded.
25336         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25337         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25338         masks.
25339         (vect_build_slp_tree_1): Fixed comment typo.
25340         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25341         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25342         loads for SLP only.
25343         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25344         vectorizable.
25345         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25347 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25349         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25350         Remove obsolete use_thunk reference.
25351         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25352         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25353         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25354         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25355         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25356         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25357         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25358         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25359         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25361 2019-05-28  Nathan Sidwell  <nathan@acm.org>
25363         * tree.h (IDENTIFIER_ANON_P): New.
25364         (anon_aggrname_format, anon_aggname_p): Don't declare.
25365         (make_anon_name): Declare.
25366         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25367         (hash_tree): Likewise.
25368         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25369         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25370         (anon_cnt, make_anon_name): New.
25372 2019-05-28  Martin Liska  <mliska@suse.cz>
25374         PR other/90315
25375         * opts-global.c (decode_options): Print help for all
25376         help_option_arguments.
25377         * opts.c (print_help): Add new argument.
25378         (common_handle_option): Remember all values into
25379         help_option_arguments.
25380         * opts.h (print_help): Add new argument.
25382 2019-05-28  Martin Liska  <mliska@suse.cz>
25384         PR ipa/90555
25385         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25386         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25387         (func_checker::compare_bb): Call compare_loops.
25389 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
25391         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25392         on sections construct.
25393         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25394         construct.
25395         (lower_omp_sections): Handle lastprivate conditional.
25396         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25397         lastprivate_conditional_map.
25398         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25400         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25401         critical, taskgroup and section regions when looking for a region
25402         with non-NULL lastprivate_conditional_map.
25404 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
25406         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25407         (*ix86_gen_sub3): Ditto.
25408         (*ix86_gen_sub3_carry): Ditto.
25409         (*ix86_gen_one_cmpl2): Ditto.
25410         (*ix86_gen_andsp): Ditto.
25411         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25412         (gen_and2_insn): New static function.
25413         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25414         Use gen_add3_insn instead of ix86_gen_add3.
25415         (ix86_expand_split_stack_prologue): Use gen_add2_insn
25416         instead of ix86_gen_add3.
25417         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25418         Use gen_sub3_insn instead of ix86_gen_sub3.
25419         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25420         instead of ix86_gen_add3.
25421         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25422         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
25423         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25424         * config/i386/i386-options.c (ix86_option_override_internal):
25425         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25426         ix86_gen_one_cmpl2 and ix86_gen_andsp.
25428 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25430         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25431         and DW_OP_GNU_const_index opcodes.
25433 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
25435         * config/i386/i386.h (STACK_SIZE_MODE): Define.
25437 2019-05-27  Richard Biener  <rguenther@suse.de>
25439         PR tree-optimization/90637
25440         * tree-ssa-sink.c (statement_sink_location): Honor the
25441         computed sink location for single-uses.
25443 2019-05-27  Richard Biener  <rguenther@suse.de>
25445         PR middle-end/90610
25446         * match.pd (vec_perm): Avoid clobbering op0 when not generating
25447         a bit-insert.
25449 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
25451         * config/i386/i386.md (@sub<mode>3_carry): Rename
25452         from sub<mode>3_carry.
25453         (@leave_<mode>): New expander.
25454         (*leave): Rename from leave.
25455         (*leave_rex64): Rename from leave_rex64.
25456         (@monitorx_<mode>): Rename from monitorx_<mode>.
25457         (@clzero_<mode>): Rename from clzero_<mode>.
25458         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25459         from sse3_monitor_<mode>.
25460         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25461         (*ix86_gen_leave): Ditto.
25462         (*ix86_gen_monitor): Ditto.
25463         (*ix86_gen_monitorx): Ditto.
25464         (*ix86_gen_clzero): Ditto.
25465         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25466         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25467         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25468         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25469         Use gen_sse3_monitor instead of ix86_gen_monitor.
25470         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25471         instead of ix86_gen_monitorx.
25472         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25473         instead of ix86_gen_clzero.
25474         * config/i386/i386-options.c (ix86_option_override_internal):
25475         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25476         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25478 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
25480         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25481         Rename from tls_global_dynamic_64_<mode>.
25482         (@tls_local_dynamic_base_64_<mode>): Rename from
25483         tls_local_dynamic_base_64_<mode>.
25484         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25485         Remove indirect function.
25486         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25487         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25488         instead of ix86_gen_tls_global_dynamic_64.
25489         Use gen_tls_local_dynamic_base_64 instead of
25490         ix86_gen_tls_local_dynamic_base_64.
25491         * config/i386/i386-options.c (ix86_option_override_internal):
25492         Do not initialize ix86_gen_tls_global_dynamic_64 and
25493         ix86_gen_tls_local_dynamic_base_64.
25495 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
25497         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25498         Rename from pro_epilogue_adjust_stack_<mode>_add.
25499         (@pro_epilogue_adjust_stack_sub_<mode>)
25500         Rename from pro_epilogue_adjust_stack_<mode>_sub.
25501         (@allocate_stack_worker_probe_<mode>):
25502         Rename from allocate_stack_worker_probe_<mode>.
25503         (allocate_stack): Use gen_allocate_stack_worker_probe.
25504         (probe_stack): Use gen_probe_stack_1.
25505         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25506         (@adjust_stack_and_probe_<mode>): Rename from
25507         adjust_stack_and_probe<mode>.
25508         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25509         (stack_protect_set): Use gen_stack_protect_set_1.
25510         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25511         (stack_protect_test): Use gen_stack_protect_test_1.
25512         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25513         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25514         Remove indirect function.
25515         (*ix86_gen_adjust_stack_and_probe): Ditto.
25516         (*ix86_gen_probe_stack_range): Ditto.
25517         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25518         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25519         (ix86_adjust_stack_and_probe_stack_clash): Use
25520         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25521         (ix86_adjust_stack_and_probe): Ditto.
25522         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25523         of ix86_gen_probe_stack_range.
25524         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25525         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25526         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25527         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
25528         CODE_FOR_stack_protect_test_{si,di}.
25529         * config/i386/i386-options.c (ix86_option_override_internal):
25530         Do not initialize ix86_gen_allocate_stack_worker,
25531         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25533 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
25535         * doc/invoke.texi (Link Options): Many editorial changes around
25536         -flinker-output.
25538 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25540         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25541         pre-Solaris 11 referene and most Studio compiler details.
25543 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
25545         PR target/90530
25546         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25547         DImode to SImode in floating-point registers on 64-bit target.
25548         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25549         register_operand in xmpyu patterns.
25551 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
25553         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25554         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25555         OMP_CLAUSE__REDUCTEMP_.
25556         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25557         OMP_CLAUSE__CONDTEMP_.
25558         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25559         * tree-pretty-print.c (dump_omp_clause): Likewise.
25560         * tree-nested.c (convert_nonlocal_omp_clauses,
25561         convert_local_omp_clauses): Likewise.
25562         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25563         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
25564         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25565         on OMP_FOR.
25566         (gimplify_omp_for): Warn and disable conditional modifier from
25567         lastprivate on loop iterators.
25568         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25569         member.
25570         * omp-general.c (omp_extract_for_data): Initialize it.
25571         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25572         member.
25573         (delete_omp_context): Delete it.
25574         (lower_lastprivate_conditional_clauses): New function.
25575         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25576         handle lastprivate conditional clauses.
25577         (lower_reduction_clauses): Add CLIST argument, emit it into
25578         the critical section if any.
25579         (lower_omp_sections): Adjust lower_lastprivate_clauses and
25580         lower_reduction_clauses callers.
25581         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25582         to lower_lastprivate_clauses.
25583         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25584         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25585         clist into a critical section if not emitted there already by
25586         lower_reduction_clauses.
25587         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25588         callers.
25589         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25590         conditional variables.
25591         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25592         clause is present.
25593         (expand_omp_for_generic, expand_omp_for_static_nochunk,
25594         expand_omp_for_static_chunk): Handle lastprivate conditional.
25595         (expand_omp_for): Handle fd.lastprivate_conditional like
25596         fd.have_reductemp.
25598 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
25600         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25601         kernel does not exit cleanly.
25602         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25604 2019-05-24  Jason Merrill  <jason@redhat.com>
25606         Revert:
25607         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25609 2019-05-24  Richard Biener  <rguenther@suse.de>
25611         PR testsuite/90607
25612         * tree-loop-distribution.c (struct partition): Add location
25613         member.
25614         (partition_alloc): Initialize all fields.
25615         (generate_memset_builtin): Use the location recorded in the
25616         partition for the generated call.
25617         (generate_memcpy_builtin): Likewise.
25618         (classify_partition): Record the location of a single store
25619         as location for the partition.
25621 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
25623         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25624         for lo-part.
25626 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
25628         PR target/90588
25629         * common/config/aarch64/aarch64-common.c
25630         (aarch64_rewrite_selected_cpu): Change local temporary variable
25631         type from unsigned long to uint64_t.
25632         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25633         aarch64_get_extension_string_for_isa_flags): Change declaration to
25634         match new definition by replacing unsigned long with uint64_t.
25636 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
25638         PR target/90568
25639         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25640         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
25641         Handle stack_protect_test_<mode> codegen similarly to corresponding
25642         sub instruction.
25644 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
25646         * config/i386/darwin.h: Reject -mfentry*.
25647         * doc/sourcebuild.texi: Document mfentry target support.
25649 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
25651         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25652         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
25653         false for PC-relative functions.
25654         (rs6000_output_function_prologue): Change called function name to
25655         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
25656         name,1" for PC-relative functions.
25657         (rs6000_elf_declare_function_name): Change called function name to
25658         rs6000_global_entry_point_prologue_needed_p.
25660 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
25662         PR target/90552
25663         * config/i386/i386.c (gen_rtx_cost):
25664         Use ix86_tune_cost instead of ix86_cost.
25666 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
25667             Michael Meissner  <meissner@linux.ibm.com>
25668             Segher Boessenkool  <segher@kernel.crashing.org>
25670         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25671         OPTION_MASK_PCREL.
25672         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25673         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25674         (rs6000_fndecl_pcrel_p): Likewise.
25675         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25676         error if -mpcrel is requested without -mcpu=future.
25677         (rs6000_opt_masks): Add entry for pcrel.
25678         (rs6000_fndecl_pcrel_p): New function.
25679         (rs6000_pcrel_p): Likewise.
25680         * config/rs6000/rs6000.opt (mpcrel): New option.
25681         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25683 2019-05-23  Jan Hubicka  <jh@suse.cz>
25684             Martin Liska  <mliska@suse.cz>
25686         PR tree-optimization/90576
25687         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25688         poly_int_tree_p.
25689         (aliasing_component_refs_p): Fix three way size compare conditional;
25690         give up earlier in case we can not decide on equivalence.
25692 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
25693             Michael Meissner  <meissner@linux.ibm.com>
25694             Segher Boessenkool  <segher@kernel.crashing.org>
25696         * config.gcc: Add future cpu.
25697         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25698         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25699         #define.
25700         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25701         (RS6000_CPU): New instantiation for future cpu.
25702         * config/rs6000/rs6000-opts.h (enum processor_type): Add
25703         PROCESSOR_FUTURE.
25704         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25705         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25706         * config/rs6000/rs6000-tables.opt: Regenerate.
25707         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25708         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25709         (rs6000_machine_from_flags): Handle future cpu.
25710         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25711         PROCESSOR_POWER9 for now.
25712         (rs6000_adjust_cost): Likewise.
25713         (rs6000_issue_rate): Likewise.
25714         (rs6000_register_move_cost): Likewise.
25715         (rs6000_opt_masks): Add entry for future.
25716         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25717         (MASK_FUTURE): New #define.
25718         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25719         * config/rs6000/rs6000.opt (mfuture): New target option.
25720         * doc/invoke.texi (mcpu): Add future cpu.
25722 2019-05-23  Martin Liska  <mliska@suse.cz>
25724         PR c++/90587
25725         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25726         operation points to a temporary (pointed via tree_to_wide_ref)
25727         that is out of scope after the &.
25729 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
25731         PR c++/90592
25732         * doc/extend.texi (Function Names): Add missing word.
25734 2019-05-23  Richard Biener  <rguenther@suse.de>
25736         PR tree-optimization/88440
25737         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25738         at -O[2s]+.
25739         * tree-loop-distribution.c (generate_memset_builtin): Fold the
25740         generated call.
25741         (generate_memcpy_builtin): Likewise.
25742         (distribute_loop): Pass in whether to only distribute patterns.
25743         (prepare_perfect_loop_nest): Also allow size optimization.
25744         (pass_loop_distribution::execute): When optimizing a loop
25745         nest for size allow pattern replacement.
25747 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
25749         PR target/90568
25750         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25751         of xor.
25753 2019-05-23  Martin Liska  <mliska@suse.cz>
25755         PR sanitizer/90570
25756         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25757         expression similarly to gimplify_decl_expr.
25759 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25761         * cse.c (cse_dump_path): s/dump_file/f.
25763 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
25765         PR c++/90462
25766         * diagnostic-format-json.cc: Include "selftest.h".
25767         (json_from_expanded_location): Only add "file" key for non-NULL
25768         file strings.
25769         (json_from_location_range): Don't add "start" and "finish"
25770         children if they are UNKNOWN_LOCATION.
25771         (selftest::test_unknown_location): New selftest.
25772         (selftest::test_bad_endpoints): New selftest.
25773         (selftest::diagnostic_format_json_cc_tests): New function.
25774         * json.cc (json::object::get): New function.
25775         (selftest::test_object_get): New selftest.
25776         (selftest::json_cc_tests): Call it.
25777         * json.h (json::object::get): New decl.
25778         * selftest-run-tests.c (selftest::run_tests): Call
25779         selftest::diagnostic_format_json_cc_tests.
25780         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25781         decl.
25783 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
25784             Andrew Stubbs  <amd@codesourcery.com>
25786         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25787         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25788         (kernel): Rename to...
25789         (main_kernel): ... this.
25790         (load_image): Load _init_array and _fini_array kernels.
25791         (run): Add argument for kernel to run.
25792         (main): Run init_array_kernel before main_kernel, and
25793         fini_array_kernel after.
25794         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25795         amdgpu_hsa_kernel attribute on functions.
25796         (gcn_disable_constructors): Delete.
25797         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25798         * config/gcn/crt0.c (size_t): Define.
25799         (_init_array, _fini_array): New.
25800         (__preinit_array_start, __preinit_array_end,
25801         __init_array_start, __init_array_end,
25802         __fini_array_start, __fini_array_end): Declare weak references.
25804 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
25806         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25808 2019-05-22  Jason Merrill  <jason@redhat.com>
25810         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25812 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
25814         PR target/88483
25815         * config/i386/i386-options.c (ix86_init_machine_status): Set
25816         stack_frame_required to true.
25817         * config/i386/i386.c (ix86_get_frame_size): New function.
25818         (ix86_frame_pointer_required): Replace get_frame_size with
25819         ix86_get_frame_size.
25820         (ix86_compute_frame_layout): Likewise.
25821         (ix86_find_max_used_stack_alignment): Changed to void.  Set
25822         stack_frame_required.
25823         (ix86_finalize_stack_frame_flags): Always call
25824         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
25825         ix86_get_frame_size.
25826         * config/i386/i386.h (machine_function): Add stack_frame_required.
25828 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
25830         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25832 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
25834         * common/config/aarch64/aarch64-common.c
25835         (struct aarch64_option_extension, struct processor_name_to_arch,
25836         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25837         aarch64_contains_opt,
25838         aarch64_get_extension_string_for_isa_flags): Change type of
25839         variables storing flags to uint64_t.
25840         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25841         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25842         * config/aarch64/aarch64.c (struct processor,
25843         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25844         aarch64_validate_march, aarch64_override_options,
25845         aarch64_option_print, aarch64_handle_attr_isa_flags,
25846         aarch64_declare_function_name, aarch64_start_file): Make flag
25847         variables uint64_t.
25848         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25849         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25850         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25851         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25852         * config/aarch64/driver-aarch64.c
25853         (struct aarch64_arch_extension, struct aarch64_core_data,
25854         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25855         flag variables uint64_t.
25856         * doc/invoke.texi: Add documentation for new arguments.
25858 2019-05-22  Richard Biener  <rguenther@suse.de>
25860         * alias.c (ao_ref_from_mem): Move stack-slot sharing
25861         rewrite ...
25862         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25864 2019-05-22  Martin Liska  <mliska@suse.cz>
25866         PR lto/90500
25867         * doc/extend.texi: Document the change.
25869 2019-05-22  Richard Biener  <rguenther@suse.de>
25871         PR tree-optimization/90450
25872         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25873         (mem_ref_hasher::equal): Check it.
25874         (mem_ref_alloc): Initialize it.
25875         (gather_mem_refs_stmt): Set it.
25877 2019-05-22  Richard Biener  <rguenther@suse.de>
25879         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25880         Add ABS_EXPR.
25881         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25882         as ABSU_EXPR.
25884 2019-05-22  Alan Modra  <amodra@gmail.com>
25886         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25887         (ASM_CPU_SPEC): Conditionally add -many.
25888         * config/rs6000/rs6000.c (rs6000_machine): New static var.
25889         (rs6000_machine_from_flags, emit_asm_machine): New functions..
25890         (rs6000_file_start): ..extracted from here, and modified to
25891         test all ISA bits.
25892         (rs6000_output_function_prologue): Emit .machine as necessary.
25894 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
25896         PR middle-end/90553
25897         * ira-lives.c (process_bb_node_lives): Consider defs
25898         for a call insn to be die before the call, not after.
25900         * function.c (assign_parm_setup_block): Raise alignment of
25901         stacked parameter only for STRICT_ALIGNMENT targets.
25903 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25905         * config/rs6000/constraints.md (define_register_constraint "wz"):
25906         Delete.
25907         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25908         RS6000_CONSTRAINT_wz.
25909         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25910         (rs6000_init_hard_regno_mode_ok): Adjust.
25911         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25912         * doc/md.texi (Machine Constraints): Adjust.
25914 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25916         * config/rs6000/constraints.md (define_register_constraint "wl"):
25917         Delete.
25918         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25919         RS6000_CONSTRAINT_wl.
25920         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25921         (rs6000_init_hard_regno_mode_ok): Adjust.
25922         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25923         * doc/md.texi (Machine Constraints): Adjust.
25925 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25927         * config/rs6000/constraints.md (define_register_constraint "wm"):
25928         Delete.
25929         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25930         RS6000_CONSTRAINT_wm.
25931         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25932         (rs6000_init_hard_regno_mode_ok): Adjust.
25933         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25934         * doc/md.texi (Machine Constraints): Adjust.
25936 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25938         * config/rs6000/constraints.md (define_register_constraint "wk"):
25939         Delete.
25940         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25941         RS6000_CONSTRAINT_wk.
25942         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25943         (rs6000_init_hard_regno_mode_ok): Adjust.
25944         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25945         * doc/md.texi (Machine Constraints): Adjust.
25947 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25949         * config/rs6000/constraints.md (define_register_constraint "wj"):
25950         Delete.
25951         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25952         RS6000_CONSTRAINT_wj.
25953         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25954         (rs6000_init_hard_regno_mode_ok): Adjust.
25955         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25956         (VS_64dm): Delete.
25957         * config/rs6000/vsx.md: Ditto.
25958         * doc/md.texi (Machine Constraints): Adjust.
25960 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
25962         * config/rs6000/constraints.md (define_register_constraint "wh"):
25963         Delete.
25964         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25965         RS6000_CONSTRAINT_wh.
25966         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25967         (rs6000_init_hard_regno_mode_ok): Adjust.
25968         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25969         * doc/md.texi (Machine Constraints): Adjust.
25971 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
25973         PR target/90547
25974         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25975         Avoid calling gen_lowpart with CONST operand.
25977 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
25979         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25980         field template_last_to_copy.
25981         (ssa_create_duplicates): Set it, and use it.  Attempt to
25982         preserve more debug stmts.
25984 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
25986         * config/i386/sse.md (VF1_AVX2): New mode iterator.
25987         (signbit<mode>2): New expander
25989 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
25991         PR bootstrap/87338
25992         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25993         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25995 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
25997         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25998         %ebx and %ecx bafore calling cpuid with leaf 1 or
25999         non-constant leaf argument.
26001 2019-05-21  Alan Modra  <amodra@gmail.com>
26003         PR target/90545
26004         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26005         power9 direct move cost.
26007 2019-05-21  Richard Biener  <rguenther@suse.de>
26009         PR middle-end/90510
26010         * fold-const.c (fold_read_from_vector): New function.
26011         * fold-const.h (fold_read_from_vector): Declare.
26012         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26013         single-element insert permutations.  Canonicalize selector
26014         further and fix issue with last commit.
26016 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
26018         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26019         parameter with default value false to declaration.
26020         (split_edges_for_insertion): New inline function.  Wrapper for
26021         split_critical_edges with for_edge_insertion_p = true.
26022         * tree-cfg.c (split_critical_edges): Don't split non-critical
26023         edges if for_edge_insertion_p is false.  Fix whitespace.
26024         * tree-ssa-pre.c (pass_pre::execute): Call
26025         split_edges_for_insertion instead of split_critical_edges.
26026         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26027         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26028         (pass_data_sink_code): Update function name in the comment.
26030 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
26032         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26033         around is_value_included_in that knows how to handle BIT_AND_EXPR.
26034         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
26035         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26036         positives.
26038 2019-05-21  Martin Liska  <mliska@suse.cz>
26040         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26041         an extra newline.
26042         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26043         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26044         vec_lvsr.
26045         * config/rs6000/rs6000.c (rs6000_option_override_internal):
26046         Quote a C type.
26047         (rs6000_function_arg): Likewise.
26048         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26049         (rs6000_expand_ternop_builtin): Use interval syntax.
26050         (get_element_number): Likewise.
26051         (altivec_expand_builtin): Likewise.
26052         (rs6000_get_function_versions_dispatcher): Quote target_clones.
26054 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
26056         PR c++/59813
26057         PR target/90418
26058         * function.h (struct function): Add calls_eh_return member.
26059         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26060         gimplifying __builtin_eh_return call.
26061         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26062         to cfun.
26063         (expand_call_inline): Or in src_cfun->calls_eh_return into
26064         dst_cfun->calls_eh_return.
26065         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26066         cfun->calls_eh_return.
26067         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26068         * lto-streamer-out.c (output_struct_function_base): Write
26069         calls_eh_return.
26071 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
26073         PR rtl-optimization/43147
26074         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26075         IX86_BUILTIN_SHUFPD.
26077 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
26079         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26080         (refs_may_alias_p_1): ... here; update stats.
26081         (refs_may_alias_p): Do not update stats here.
26083 2019-05-20  Richard Biener  <rguenther@suse.de>
26085         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26086         doesn't produce pointers.
26087         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26088         the first operand points to.
26090 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
26092         * tree-ssa-alias.c (compare_sizes): New function.
26093         (sompare_type_sizes): New function
26094         (aliasing_component_refs_p): Use it.
26095         (indirect_ref_may_alias_decl_p): Likewise.
26097 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26099         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26101 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26103         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26104         (LIBLSAN_EARLY_SPEC): Likewise.
26105         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26107 2019-05-20  Martin Liska  <mliska@suse.cz>
26109         * config/i386/i386.c (ix86_libc_has_fast_function):
26110         Add ATTRIBUTE_UNUSED for the argument.
26112 2019-05-20  Richard Biener  <rguenther@suse.de>
26114         * gimple-match-head.c: Include vec-perm-indices.h.
26115         * generic-match-head.c: Likewise.
26116         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26117         is included.
26118         * fold-const.c (fold_vec_perm): Export.
26119         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26120         (match.pd): ...here.
26122 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
26124         * cfgloop.h (struct loop): Add simdlen member.
26125         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26126         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26127         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26128         as new argument to autovectorize_vector_sizes target hook.  If
26129         loop->simdlen, pick up vector size where the vectorization factor
26130         is equal to loop->simd, and if there is none, fall back to the first
26131         successful one.
26132         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26133         caller.
26134         * omp-low.c (omp_clause_aligned_alignment): Likewise.
26135         * omp-general.c (omp_max_vf): Likewise.
26136         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26137         * tree-vect-slp.c (vect_slp_bb): Likewise.
26138         * target.def (autovectorize_vector_sizes): Add ALL argument and
26139         document it.
26140         * doc/tm.texi: Adjust documentation.
26141         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26142         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26143         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26144         bool argument.
26145         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26146         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26147         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26148         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
26149         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26150         preferred vector size is not 512-bit or 256-bit, just put those
26151         unpreferred ones last.
26153 2019-05-20  Martin Liska  <mliska@suse.cz>
26155         * targhooks.c (default_libc_has_fast_function): New function.
26156         * targhooks.h (default_libc_has_fast_function): Likewise.
26158 2019-05-20  Martin Liska  <mliska@suse.cz>
26160         PR middle-end/90263
26161         * builtins.c (expand_builtin_memory_copy_args): When having a
26162         target with fast mempcpy implementation do now use memcpy.
26163         * config/i386/i386.c (ix86_libc_has_fast_function): New.
26164         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26165         * doc/tm.texi: Likewise.
26166         * doc/tm.texi.in: Likewise.
26167         * target.def:
26168         * expr.c (emit_block_move_hints): Add 2 new arguments.
26169         * expr.h (emit_block_move_hints): Bail out when libcall
26170         to memcpy would be used.
26172 2019-05-20  Martin Liska  <mliska@suse.cz>
26174         * profile-count.c: Add vertical spacing in order
26175         to separate functions.
26176         * profile-count.h: Likewise.
26178 2019-05-20  Martin Liska  <mliska@suse.cz>
26180         * profile-count.h: Do not use full qualified
26181         names if possible.
26182         * profile-count.c (profile_count::to_frequency): Likewise.
26184 2019-05-20  Martin Liska  <mliska@suse.cz>
26186         * profile-count.h (enum profile_quality): Use capital letters
26187         for enum value names.  Use the adjusted names.
26188         * profile-count.c: Use the adjusted names.
26190 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26192         * config/rs6000/constraints.md (define_register_constraint "wH"):
26193         Delete.
26194         (define_register_constraint "wI"): Delete.
26195         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26196         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26197         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26198         (rs6000_init_hard_regno_mode_ok): Adjust.
26199         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26200         resp. "d", or with "wa" as appropriate, all with "p8v".
26201         * config/rs6000/vsx.md: Ditto.
26202         * doc/md.texi (Machine Constraints): Adjust.
26204 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26206         * config/rs6000/constraints.md (define_register_constraint "wy"):
26207         Delete.
26208         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26209         RS6000_CONSTRAINT_wy.
26210         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26211         (rs6000_init_hard_regno_mode_ok): Adjust.
26212         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26213         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26214         (define_mode_attr Fisa): New.
26215         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26216         * doc/md.texi (Machine Constraints): Adjust.
26218 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26220         * config/rs6000/constraints.md (define_register_constraint "wu"):
26221         Delete.
26222         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26223         RS6000_CONSTRAINT_wu.
26224         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26225         (rs6000_init_hard_regno_mode_ok): Adjust.
26226         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26227         both with "p8v".
26228         (define_mode_attr Fa): Delete.
26229         * config/rs6000/vsx.md: Ditto.
26230         * doc/md.texi (Machine Constraints): Adjust.
26232 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26234         * config/rs6000/constraints.md (define_register_constraint "wJ"):
26235         Delete.
26236         (define_register_constraint "wK"): Delete.
26237         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26238         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26239         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26240         (rs6000_init_hard_regno_mode_ok): Adjust.
26241         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26242         Replace "wK" constraint by "wH" with "p9v".
26243         * config/rs6000/vsx.md: Ditto.
26244         * doc/md.texi (Machine Constraints): Adjust.
26246 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26248         * config/rs6000/constraints.md (define_register_constraint "wb"):
26249         Delete.
26250         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26251         RS6000_CONSTRAINT_wb.
26252         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26253         (rs6000_init_hard_regno_mode_ok): Adjust.
26254         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26255         * config/rs6000/vsx.md: Ditto.
26256         * doc/md.texi (Machine Constraints): Adjust.
26258 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
26260         * config/rs6000/constraints.md (define_register_constraint "wo"):
26261         Delete.
26262         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26263         RS6000_CONSTRAINT_wo.
26264         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26265         (rs6000_init_hard_regno_mode_ok): Adjust.
26266         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26267         * config/rs6000/altivec.md: Ditto.
26268         * doc/md.texi (Machine Constraints): Adjust.
26270 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
26272         * config/darwin-c.c (darwin_register_objc_includes): Do not
26273         prepend the sysroot when building gnu-runtime header search
26274         paths.
26276 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
26278         * config/darwin.c (darwin_file_end): Use switch_to_section ()
26279         instead of direct output of the asm.
26281 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
26283         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26284         argument to be type bool (was int before).
26285         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
26286         at first use.  Use type bool for some variables.  Fix a theoretical
26287         eh_return bug for svr4.
26289 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
26291         * config/rs6000/rs6000.md (isa): New attribute.
26292         (enabled): New attribute.
26294 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
26296         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26297         assemble_start_function and assemble_end_function.
26299 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
26301         PR middle-end/89433
26302         * omp-general.c (oacc_verify_routine_clauses): Change formal
26303         parameters.  Add checking if already marked with an OpenACC
26304         'routine' directive.  Adjust all users.
26306         PR middle-end/89433
26307         * omp-general.c (oacc_build_routine_dims): Move some of its
26308         processing into...
26309         (oacc_verify_routine_clauses): ... this new function.
26310         * omp-general.h (oacc_verify_routine_clauses): New prototype.
26312 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
26314         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26315         formating of picbase labels to match other ports.
26317 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
26319         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26320         in the generated code.
26322 2019-05-16  Martin Sebor  <msebor@redhat.com>
26324         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26325         identifiers, keywords, operators, and types in diagnostics.  Correct
26326         quoting, spelling, and sentence capitalization issues.
26327         (expand_builtin_atomic_is_lock_free): Same.
26328         (fold_builtin_next_arg): Same.
26329         * cfgexpand.c (expand_one_var): Same.
26330         (tree_conflicts_with_clobbers_p): Same.
26331         (expand_asm_stmt): Same.
26332         (verify_loop_structure): Same.
26333         * cgraphunit.c (process_function_and_variable_attributes): Same.
26334         * collect-utils.c (collect_execute): Same.
26335         * collect2.c (maybe_run_lto_and_relink): Same.
26336         (is_lto_object_file): Same.
26337         (scan_prog_file): Same.
26338         * convert.c (convert_to_real_1): Same.
26339         * dwarf2out.c (dwarf2out_begin_prologue): Same.
26340         * except.c (verify_eh_tree): Same.
26341         * gcc.c (execute): Same.
26342         (eval_spec_function): Same.
26343         (run_attempt): Same.
26344         (driver::set_up_specs): Same.
26345         (compare_debug_auxbase_opt_spec_function): Same.
26346         * gcov-tool.c (unlink_gcda_file): Same.
26347         (do_merge): Same.
26348         (do_rewrite): Same.
26349         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26350         * gimplify.c (gimplify_asm_expr): Same.
26351         (gimplify_adjust_omp_clauses): Same.
26352         * hsa-gen.c (gen_hsa_addr_insns): Same.
26353         (gen_hsa_insns_for_load): Same.
26354         (gen_hsa_cmp_insn_from_gimple): Same.
26355         (gen_hsa_insns_for_operation_assignment): Same.
26356         (gen_get_level): Same.
26357         (gen_hsa_alloca): Same.
26358         (omp_simple_builtin::generate): Same.
26359         (gen_hsa_atomic_for_builtin): Same.
26360         (gen_hsa_insns_for_call): Same.
26361         * input.c (dump_location_info): Same.
26362         * ipa-devirt.c (compare_virtual_tables): Same.
26363         * ira.c (ira_setup_eliminable_regset): Same.
26364         * lra-assigns.c (lra_assign): Same.
26365         * lra-constraints.c (lra_constraints): Same.
26366         * lto-streamer-in.c (lto_input_mode_table): Same.
26367         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26368         (merge_and_complain): Same.
26369         (compile_offload_image): Same.
26370         (compile_images_for_offload_targets): Same.
26371         (debug_objcopy): Same.
26372         (run_gcc): Same.
26373         (main): Same.
26374         * opts.c (print_specific_help): Same.
26375         (parse_no_sanitize_attribute): Same.
26376         (print_help): Same.
26377         (handle_param): Same.
26378         * plugin.c (add_new_plugin): Same.
26379         (parse_plugin_arg_opt): Same.
26380         (try_init_one_plugin): Same.
26381         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26382         operators, and types in diagnostics.  Correct quoting and spelling
26383         issues.
26384         * read-rtl-function.c (parse_edge_flag_token): Same.
26385         (function_reader::parse_enum_value): Same.
26386         * reg-stack.c (check_asm_stack_operands): Same.
26387         * regcprop.c (validate_value_data): Same.
26388         * sched-rgn.c (make_pass_sched_fusion): Same.
26389         * stmt.c (check_unique_operand_names): Same.
26390         * targhooks.c (default_target_option_pragma_parse): Same.
26391         * tlink.c (recompile_files): Same.
26392         * toplev.c (process_options): Same.
26393         (do_compile): Same.
26394         * trans-mem.c (diagnose_tm_1): Same.
26395         (ipa_tm_scan_irr_block): Same.
26396         (ipa_tm_diagnose_transaction): Same.
26397         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
26398         format a tree code name in a diagnostic.
26399         (verify_types_in_gimple_min_lval): Same.
26400         (verify_types_in_gimple_reference): Same.
26401         (verify_gimple_call): Same.
26402         (verify_gimple_assign_unary): Same.
26403         (verify_gimple_assign_binary): Same.
26404         (verify_gimple_assign_ternary): Same.
26405         (verify_gimple_assign_single): Same.
26406         (verify_gimple_switch): Same.
26407         (verify_gimple_label): Same.
26408         (verify_gimple_phi): Same.
26409         (verify_gimple_in_seq): Same.
26410         (verify_eh_throw_stmt_node): Same.
26411         (collect_subblocks): Same.
26412         (gimple_verify_flow_info): Same.
26413         (do_warn_unused_result): Same.
26414         * tree-inline.c (expand_call_inline): Same.
26415         * tree-into-ssa.c (update_ssa): Same.
26416         * tree.c (tree_int_cst_elt_check_failed): Same.
26417         (tree_vec_elt_check_failed): Same.
26418         (omp_clause_operand_check_failed): Same.
26419         (verify_type_variant): Same.
26420         (verify_type): Same.
26421         * value-prof.c (verify_histograms): Same.
26422         * varasm.c (assemble_start_function): Same.
26424 2019-05-16  Martin Sebor  <msebor@redhat.com>
26426         * config/i386/i386-expand.c (get_element_number): Quote keywords
26427         and other internal names in diagnostics.  Adjust other diagnostic
26428         formatting issues noted by -Wformat-diag.
26429         * config/i386/i386-features.c
26430         (ix86_mangle_function_version_assembler_name): Same.
26431         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26432         * config/i386/i386.c (ix86_function_type_abi): Same.
26433         (ix86_function_ms_hook_prologue): Same.
26434         (classify_argument): Same.
26435         (ix86_expand_prologue): Same.
26436         (ix86_md_asm_adjust): Same.
26437         (ix86_memmodel_check): Same.
26439 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
26441         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26442         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26443         and fpxx modes.
26445 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26447         PR target/90497
26448         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26449         intrinsics without SSE/SSE2/SSSE3.
26450         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26451         check.
26452         (*mmx_uavgv8qi3): Likewise.
26454 2019-05-17  Richard Biener  <rguenther@suse.de>
26456         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26457         VEC_PERM_EXPR as __VEC_PERM with -gimple.
26459 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
26461         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26462         vec_sldw insn pattern.
26464 2019-05-17  Richard Biener  <rguenther@suse.de>
26466         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26468 2019-05-17  Martin Liska  <mliska@suse.cz>
26470         PR driver/90496
26471         * toplev.c (output_stack_usage): With LTO and sanitizer it
26472         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26473         has no file location.
26475 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
26477         PR c++/90484
26478         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26479         sz0 is equal to sz1, instead return false in that case.
26481         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26482         has non-constant expression, force sctx.lane and use two
26483         argument IFN_GOMP_SIMD_LANE instead of single argument.
26484         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26485         two argument IFN_GOMP_SIMD_LANE without lhs.
26486         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26487         member.
26488         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26489         Define.
26490         (LOOP_REQUIRES_VERSIONING): Or in
26491         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26492         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26493         simd_if_cond.
26494         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26495         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26496         from simd if clause if needed.
26498 2019-05-16  Richard Biener  <rguenther@suse.de>
26500         * tree-affine.c (expr_to_aff_combination): New function split
26501         out from...
26502         (tree_to_aff_combination): ... here.
26503         (aff_combination_expand): Avoid building a GENERIC tree.
26505 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
26507         * cgraphunit.c (cgraph_node::expand_thunk): Remove
26508         assemble_start_function and assemble_end_function calls.
26509         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26510         assemble_start_function and assemble_end_function.
26511         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26512         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26513         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26514         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26515         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26516         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26517         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26518         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26519         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26520         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26521         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26522         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26523         Likewise.
26524         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26525         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26526         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26527         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26528         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26529         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26530         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26531         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26532         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26533         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26534         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26535         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26536         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26537         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26538         Likewise.
26539         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26540         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26541         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26543 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
26545         * tree-ssa-alias.c (alias_stats): Add
26546         aliasing_component_refs_p_may_alias and
26547         aliasing_component_refs_p_no_alias.
26548         (dump_alias_stats): Print aliasing_component_refs_p stats.
26549         (aliasing_component_refs_p): Update stats.
26551 2019-05-16  Martin Liska  <mliska@suse.cz>
26553         PR lto/90500
26554         * multiple_target.c (expand_target_clones): Do not allow
26555         target_clones being used with a symbol that is an alias.
26557 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
26559         PR tree-optimization/90394
26560         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26561         positives rather than ICE for cases where (code2 == NE_EXPR
26562         && code1 == BIT_AND_EXPR).
26564 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
26566         PR fortran/90329
26567         * tree-core.h (struct tree_decl_common): Document
26568         decl_nonshareable_flag for PARM_DECLs.
26569         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26570         * calls.c (expand_call): Don't try tail call if caller
26571         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26572         passed on the stack and callee needs to pass any arguments on the
26573         stack.
26574         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26575         else if instead of series of mutually exclusive ifs.  Handle
26576         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26577         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26579         * lto-streamer.h (LTO_major_version): Bump to 9.
26581 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
26583         PR tree-optimization/90106
26584         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26585         new parameter as new internal function call, also move it to new
26586         basic block.
26587         (use_internal_fn): Pass internal function call to
26588         shrink_wrap_one_built_in_call_with_conds.
26590 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
26592         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26593         max_vf to 1.
26594         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26595         safelen_int and set loop->dont_vectorize.
26597 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26599         PR target/89021
26600         * config/i386/i386-builtin.def: Enable MMX intrinsics with
26601         SSE/SSE2/SSSE3.
26602         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26603         Likewise.
26604         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26605         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26606         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26607         is defined.
26609 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26611         PR target/89021
26612         * config/i386/mmx.md (*vec_dupv2sf): Changed to
26613         define_insn_and_split to support SSE emulation.
26614         (*vec_extractv2sf_0): Likewise.
26615         (*vec_extractv2sf_1): Likewise.
26616         (*vec_extractv2si_0): Likewise.
26617         (*vec_extractv2si_1): Likewise.
26618         (*vec_extractv2si_zext_mem): Likewise.
26619         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26620         (vec_extractv2sf_1 splitter): Likewise.
26621         (vec_extractv2sfsf): Likewise.
26622         (vec_setv2si): Likewise.
26623         (vec_extractv2si_1 splitter): Likewise.
26624         (vec_extractv2sisi): Likewise.
26625         (vec_setv4hi): Likewise.
26626         (vec_extractv4hihi): Likewise.
26627         (vec_setv8qi): Likewise.
26628         (vec_extractv8qiqi): Likewise.
26629         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
26630         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26631         (vec_extractv2sisi): Likewise.
26632         (vec_extractv4hihi): Likewise.
26633         (vec_extractv8qiqi): Likewise.
26634         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
26635         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26636         (vec_initv2sisi): Likewise.
26637         (vec_initv4hihi): Likewise.
26638         (vec_initv8qiqi): Likewise.
26639         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
26640         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26641         (vec_setv4hi): Likewise.
26642         (vec_setv8qi): Likewise.
26644 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26646         PR target/89021
26647         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26648         TARGET_MMX_WITH_SSE.
26649         (MMXMODE:*mov<mode>_internal): Likewise.
26650         (MMXMODE:movmisalign<mode>): Likewise.
26652 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
26654         PR target/89021
26655         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26656         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26657         (sse2_cvtpd2pi): Ditto.
26658         (sse2_cvttpd2pi): Ditto.
26659         (*vec_concatv2sf_sse4_1): Ditto.
26660         (*vec_concatv2sf_sse): Ditto.
26661         (*vec_concatv2si_sse4_1): Ditto.
26662         (*vec_concatv2si): Ditto.
26663         (*vec_concatv4si_0): Ditto.
26664         (*vec_concatv2di_0): Ditto.
26666 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26668         PR target/89021
26669         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26671 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26673         PR target/89021
26674         * config/i386/sse.md (ssse3_palignrdi): Changed to
26675         define_insn_and_split to support SSE emulation.
26677 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26679         PR target/89021
26680         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26682 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26684         PR target/89021
26685         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26686         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
26687         SSE emulation.
26689 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26691         PR target/89021
26692         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26693         or TARGET_MMX_WITH_SSE.
26694         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26696 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26698         PR target/89021
26699         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26701 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26703         PR target/89021
26704         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26705         Changed to define_insn_and_split to support SSE emulation.
26707 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26709         PR target/89021
26710         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26711         Changed to define_insn_and_split to support SSE emulation.
26713 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26715         PR target/89021
26716         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26717         (*mmx_<emms>): This.
26718         (mmx_<emms>): New expander.
26720 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26722         PR target/89021
26723         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26724         support.
26725         (*sse2_umulv1siv1di3): Add SSE2 emulation.
26727 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26729         PR target/89021
26730         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26732 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26734         PR target/89021
26735         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26737 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26739         PR target/89021
26740         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26741         TARGET_MMX_WITH_SSE.
26742         (*mmx_uavgv4hi3): Add SSE emulation.
26744 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26746         PR target/89021
26747         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26748         and TARGET_MMX_WITH_SSE.
26749         (*mmx_uavgv8qi3): Add SSE emulation.
26751 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26753         PR target/89021
26754         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26755         maskmovdqu for __MMX_WITH_SSE__.
26757 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26759         PR target/89021
26760         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26761         TARGET_MMX and TARGET_MMX_WITH_SSE.
26762         (*mmx_umulv4hi3_highpart): Add SSE emulation.
26764 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26766         PR target/89021
26767         * config/i386/mmx.md (mmx_pmovmskb): Changed to
26768         define_insn_and_split to support SSE emulation.
26770 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26772         PR target/89021
26773         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26774         and TARGET_MMX_WITH_SSE.
26775         (mmx_<code>v8qi3): Likewise.
26776         (smaxmin:<code>v4hi3): New.
26777         (umaxmin:<code>v8qi3): Likewise.
26778         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26779         (umaxmin:*mmx_<code>v8qi3): Likewise.
26781 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26783         PR target/89021
26784         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26785         TARGET_MMX_WITH_SSE.
26786         (*mmx_pinsrw): Add SSE emulation.
26788 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26790         PR target/89021
26791         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26793 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26795         PR target/89021
26796         * config/i386/sse.md (sse_cvtpi2ps): Changed to
26797         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
26798         SSE emulation.
26800 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26802         PR target/89021
26803         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26804         (sse_cvttps2pi): Likewise.
26806 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26808         PR target/89021
26809         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26810         TARGET_MMX_WITH_SSE.
26811         (mmx_pshufw_1): Add SSE emulation.
26812         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26813         TARGET_MMX_WITH_SSE to support SSE emulation.
26815 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26817         PR target/89021
26818         * config/i386/constraints.md (Yw): New constraint.
26819         * config/i386/mmx.md (*vec_dupv2si): Changed to
26820         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26821         support SSE emulation.
26823 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26825         PR target/89021
26826         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26827         TARGET_MMX_WITH_SSE.
26828         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
26829         support.
26830         (mmx_gt<mode>3): Likewise.
26832 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26834         PR target/89021
26835         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26836         TARGET_MMX_WITH_SSE.  Add SSE support.
26838 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26840         PR target/89021
26841         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26842         TARGET_MMX_WITH_SSE.
26843         (any_logic:<code><mode>3): New.
26844         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26845         Add SSE support.
26847 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26849         PR target/89021
26850         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26851         TARGET_MMX_WITH_SSE.  Add SSE emulation.
26852         (mmx_<shift_insn><mode>3): Likewise.
26853         (ashr<mode>3): New.
26854         (<shift_insn><mode>3): Likewise.
26856 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26858         PR target/89021
26859         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26860         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
26862 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26864         PR target/89021
26865         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26866         TARGET_MMX_WITH_SSE.
26867         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26868         SSE support.
26870 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26872         PR target/89021
26873         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26874         TARGET_MMX_WITH_SSE.
26875         (mulv4hi3): New.
26876         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
26877         support.
26879 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26881         PR target/89021
26882         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26883         (plusminus:mmx_<plusminus_insn><mode>3): Check
26884         TARGET_MMX_WITH_SSE.
26885         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26886         (<plusminus_insn><mode>3): New.
26887         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26888         (*mmx_<plusminus_insn><mode>3): Likewise.
26890 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26892         PR target/89021
26893         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26894         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26895         prototype.
26896         * config/i386/mmx.m (mmx_punpckhbw): Changed to
26897         define_insn_and_split to support SSE emulation.
26898         (mmx_punpcklbw): Likewise.
26899         (mmx_punpckhwd): Likewise.
26900         (mmx_punpcklwd): Likewise.
26901         (mmx_punpckhdq): Likewise.
26902         (mmx_punpckldq): Likewise.
26904 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26905             Uros Bizjak  <ubizjak@gmail.com>
26907         PR target/89021
26908         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26909         New function.
26910         (ix86_split_mmx_pack): Likewise.
26911         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26912         New prototype.
26913         (ix86_split_mmx_pack): Likewise.
26914         * config/i386/i386.md (mmx_isa): New.
26915         (enabled): Also check mmx_isa.
26916         * config/i386/mmx.md (any_s_truncate): New code iterator.
26917         (s_trunsuffix): New code attr.
26918         (mmx_packsswb): Removed.
26919         (mmx_packssdw): Likewise.
26920         (mmx_packuswb): Likewise.
26921         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26922         MMX packsswb/packuswb with SSE2.
26923         (mmx_packssdw): Likewise.
26924         * config/i386/predicates.md (register_mmxmem_operand): New.
26926 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
26928         PR target/89021
26929         * config/i386/i386-c.c (ix86_target_macros_internal): Define
26930         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26931         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26932         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26933         (ix86_vector_mode_supported_p): Likewise.
26934         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26936 2019-05-15  Martin Liska  <mliska@suse.cz>
26938         PR middle-end/90478
26939         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26940         Check for overflow.
26942 2019-05-15  Richard Biener  <rguenther@suse.de>
26944         * tree-into-ssa.c (pass_build_ssa::execute): Run
26945         update_address_taken before going into SSA.
26947 2019-05-15  Richard Biener  <rguenther@suse.de>
26949         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26950         as __BIT_FIELD_REF with type with -gimple.
26952 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
26954         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26955         semantically equivalent branches (left over after prior refactorings).
26957 2019-05-15  Richard Biener  <rguenther@suse.de>
26959         PR tree-optimization/88828
26960         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26961         bogus check.
26963 2019-05-14  Richard Biener  <rguenther@suse.de>
26965         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26966         as __VIEW_CONVERT with -gimple.
26968 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
26970         PR target/82920
26971         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26972         Darwin.
26974 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
26976         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26977         define_split to become a define_insn_and_split.
26979 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
26981         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26982         arguments.
26983         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26984         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26985         (sibcall_epilogue): Adjust.
26986         (epilogue): Adjust.
26988 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26990         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26991         to unsupported ones.
26992         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26993         * config.host: Likewise.
26994         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26995         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26996         __svr4__]: Remove "brand" fallback.
26997         [!KSTAT_DATA_STRING]: Remove.
26998         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26999         to *-*-solaris2*.
27000         (comdat_group): Likewise.
27001         (set_have_as_tls): Likewise.
27002         (gcc_cv_target_dl_iterate_phdr): Likewise.
27003         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27004         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27005         * configure: Regenerate.
27006         * doc/install.texi: Simplify Solaris target triplets.
27007         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27008         (Specific, *-*-solaris2*): Document Solaris 10 removal.
27009         Remove Solaris 10 references.
27010         Remove obsolete Solaris bug reference.
27011         (Specific, sparc-sun-solaris2.10): Remove.
27013 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
27015         * config/i386/i386.md (any_div): New code iterator.
27016         (paired_mod): New code attribute.
27017         (sgnprefix): Handle DIV and UDIV RTXes.
27018         (u): Ditto.
27019         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27020         and udivmod<mode>4 patterns using any_div code iterator.
27021         (divmod splitters): Macroize splitters using any_div code iterator.
27022         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27023         (*udivmodsi4_pow2_zext_2): Ditto.
27024         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27025         and *udivmod<mode>4_noext patterns using any_div code iterator.
27026         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27027         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27028         patterns using any_div code iterator.
27029         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27030         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27031         patterns using any_div code iterator.
27032         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27033         udivmodhiqi3 patterns using any_extend code iterator.
27035 2019-05-14  Richard Biener  <rguenther@suse.de>
27036             H.J. Lu  <hongjiu.lu@intel.com>
27038         PR tree-optimization/88828
27039         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27040         permuting in a single non-constant element not extracted
27041         from a vector.
27043 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
27045         * internal-fn.def (SIGNBIT): New.
27046         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27047         defined.
27048         (signbitv4sf2): Likewise.
27050 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
27052         PR target/90357
27053         * config/mips/mips.c (mips_split_move): Skip forward SRC into
27054         next insn when the SRC reg is dead.
27056 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
27058         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27059         (alloc_cand_and_find_basis): Ditto.
27060         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27061         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27062         (create_add_imm_cand, slsr_process_cast): Ditto.
27063         (slsr_process_copy, replace_mult_candidate): Ditto.
27064         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27065         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27066         (pass_strength_reduction::execute): Init the first NULL element.
27068 2019-05-13  Nathan Sidwell  <nathan@acm.org>
27070         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
27071         (run_attempt): Reformat line break.
27073 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
27075         PR target/90418
27076         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27077         data registers in sibcall epilogues.
27078         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27080 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
27082         PR target/89221
27083         * configure.ac (--enable-frame-pointer):
27084         Disable by default for cygwin and mingw.
27085         * configure: Regenerate.
27087 2019-05-13  Nathan Sidwell  <nathan@acm.org>
27089         * dwarf2out.c (breakout_comdat_types): Move comment to correct
27090         piece of code.
27091         (const_ok_for_output_1): Balance parens around #if/#else/#endif
27092         (gen_member_die): Move abstract origin check earlier.  Only VARs
27093         can be static_inline_p.  Simplify splicing control flow.
27095 2019-05-13  Richard Biener  <rguenther@suse.de>
27097         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27098         VIEW_CONVERT_EXPR.
27099         (vect_build_slp_tree_1): Likewise.
27101 2019-05-13  Richard Biener  <rguenther@suse.de>
27103         PR tree-optimization/90402
27104         * tree-if-conv.c (tree_if_conversion): Value number only
27105         the loop body by making the latch an exit of the region
27106         as well.
27107         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27108         processing PHIs.
27109         (do_rpo_vn): Deal with multiple edges into the entry block
27110         that are not backedges inside the region by skipping PHIs
27111         of the entry block.
27113 2019-05-13  Richard Biener  <rguenther@suse.de>
27115         PR tree-optimization/90316
27116         * tree-ssa-pre.c (insert_aux): Fold into ...
27117         (insert): ... this function.  Use a RPO walk to reduce the
27118         number of required iterations.
27120 2019-05-13  Martin Liska  <mliska@suse.cz>
27122         PR tree-optimization/90416
27123         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27124         string instead of passing the second part as va_arg argument.
27126 2019-05-13  Martin Liska  <mliska@suse.cz>
27128         PR gcov-profile/90380
27129         * gcov.c (handle_cycle): Do not support zero cycle count,
27130         it should not be possible.
27131         (path_contains_zero_cycle_arc): New function.
27132         (circuit): Ignore zero cycle arc counts.
27134 2019-05-13  Martin Liska  <mliska@suse.cz>
27136         PR gcov-profile/90380
27137         * gcov.c (enum loop_type): Remove the enum and
27138         the operator.
27139         (handle_cycle): Assert that we should not reach
27140         a negative count.
27141         (circuit): Use loop_found instead of a tri-state loop_type.
27142         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27143         happen.
27145 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
27147         PR target/82920
27148         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27149         (ix86_output_indirect_branch_via_reg): Use output mechanism
27150         accounting for __USER_LABEL_PREFIX__.
27151         (ix86_output_indirect_branch_via_push): Likewise.
27152         (ix86_output_function_return): Likewise.
27153         (ix86_output_indirect_function_return): Likewise.
27155 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
27157         * doc/md.texi: Document use of code attributes in rtx patterns.
27158         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27159         * read-rtl.c (find_code): Split out search loops into...
27160         (maybe_find_code): ...this new function.
27161         (check_code_iterator): Make the error message more informative.
27162         (check_code_attribute): New function.
27163         (rtx_reader::rtx_alloc_for_name): Likewise.
27164         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27165         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27166         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27167         <max_opp> directly as an rtx code instead of via a match_operator.
27168         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27169         (<su>abd<mode>_3): Update accordingly.
27171 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
27173         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27174         is given, print the state of the EH "save world" computation for
27175         Darwin.
27177 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
27179         PR c++/59813
27180         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27181         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27183 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
27185         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27186         Use pinsrd for TARGET_SSE4_1.
27187         * config/i386/sse.md (movdi_to_sse): Ditto.
27189 2019-05-10  Richard Biener  <rguenther@suse.de>
27191         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27192         (do_rpo_vn): Initialize next_value_id.
27194 2019-05-10  Martin Liska  <mliska@suse.cz>
27196         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27197         Fix plural form.
27199 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
27201         PR tree-optimization/90385
27202         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27203         arguments of the exit phis.
27205         PR c++/90383
27206         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27207         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27208         id->do_not_fold.
27209         (copy_tree_body_r): Likewise.
27210         (copy_fn): Set id.do_not_fold to true.
27212 2019-05-10  Martin Liska  <mliska@suse.cz>
27214         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27215         Reapply changes from r269790.
27217 2019-05-10  Martin Liska  <mliska@suse.cz>
27219         PR middle-end/90340
27220         * doc/invoke.texi: New params.
27221         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27222         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27223         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27224         Use it.
27225         * tree-switch-conversion.h (struct jump_table_cluster):
27226         Likewise.
27228 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
27230         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27232 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
27234         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27236 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
27238         PR rtl-optimization/88879
27239         * sel-sched.c (sel_target_adjust_priority): Remove assert.
27241 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
27243         PR target/90405
27244         * config/arm/arm.c (callee_saved_reg_p): Move before
27245         thumb_find_work_register.
27246         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27247         thumb_find_work_register.  Only call df_get_live_out once.
27248         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27249         (thumb_find_work_register): Use
27250         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27251         algorithms to locate a spare call clobbered reg.
27253 2019-05-09  Martin Liska  <mliska@suse.cz>
27255         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27256         and MAX_EXPR in GIMPLE FE format.
27258 2019-05-09  Martin Liska  <mliska@suse.cz>
27260         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27261         * gimple-pretty-print.c (dump_gimple_bb_header):
27262         Dump BB count.
27263         (pp_cfg_jump): Dump edge probability.
27264         * profile-count.c (profile_quality_as_string): Simplify
27265         with a static array.
27266         (parse_profile_quality): New function.
27267         (profile_count::dump): Simplify with a static array.
27268         (profile_count::from_gcov_type): Add new argument.
27269         * profile-count.h (parse_profile_quality): Likewise.
27270         * predict.h (set_hot_bb_threshold): New.
27271         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27272         New param.
27273         * predict.c (get_hot_bb_threshold): Set from the new param.
27274         (set_hot_bb_threshold): New.
27276 2019-05-09  Richard Biener  <rguenther@suse.de>
27278         PR tree-optimization/90395
27279         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27280         rewrite vector stores that throw internally.
27282 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
27284         * cif-code.def (CHKP): Remove.
27286         PR target/89221
27287         * configure.ac (--enable-frame-pointer): Disable by default for
27288         GNU systems.
27289         * configure: Regenerate.
27291 2019-05-09  Alan Modra  <amodra@gmail.com>
27293         PR target/89271
27294         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27295         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27296         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27297         cost for general <-> vsx when direct moves are available.
27298         Cost union classes at minimal cost for any reg in the class.
27299         Correct calculation for moves between vsx, float, and altivec.
27300         Don't return a low cost for moves between special regs.  Don't
27301         use hard coded register numbers.
27302         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27303         (rs6000_ira_change_pseudo_allocno_class): New function.
27304         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27305         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27306         alternatives.
27307         (movsi_internal1): Don't disparage vector alternatives.
27308         (mov<mode>_internal): Likewise, excepting alternative that
27309         will be split.
27310         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27311         we <- b alternative.
27313 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
27315         PR c++/59813
27316         PR tree-optimization/89060
27317         * tree-ssa-live.h (live_vars_map): New typedef.
27318         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27319         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27320         (struct compute_live_vars_data): New type.
27321         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27322         live_vars_at_stmt, destroy_live_vars): New functions.
27323         * tree-tailcall.c: Include tree-ssa-live.h.
27324         (live_vars, live_vars_vec): New global variables.
27325         (find_tail_calls): Perform variable life analysis before punting.
27326         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27327         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27328         member.
27329         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27330         Perform variable life analysis to select variables that really need
27331         clobbers added.
27332         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27333         instead set id->eh_landing_pad_dest and assert it is the same.
27334         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27336 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
27337             Richard Earnshaw  <rearnsha@arm.com>
27339         PR target/88167
27340         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27341         function.
27342         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27343         (thumb1_compute_save_core_reg_mask): Don't force a spare work
27344         register if both the epilogue and prologue can use call-clobbered
27345         regs.
27346         (thumb1_unexpanded_epilogue): Use
27347         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
27348         picking temporaries for restoring high regs to match that of the
27349         prologue where possible.
27350         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27351         the list of work registers.  Detect if the return address is still live
27352         at the end of the prologue and avoid using it for a work register if so.
27353         If the return address is not live, add LR to the list of pushable regs
27354         after the first pass.
27356 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
27358         PR tree-optimization/90078
27359         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27360         (INFTY): Increase the value for infinite cost.
27361         (struct comp_cost): Promote type of members to int64_t.
27362         (infinite_cost): Don't set complexity in initialization.
27363         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27364         overflows to infinite_cost.
27365         (adjust_setup_cost): Promote type of parameter and cost computation
27366         to int64_t.
27367         (struct ainc_cost_data, struct iv_ca): Promote type of member to
27368         int64_t.
27369         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27370         cost computation to int64_t.
27371         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27372         int64_t's format specifier in dump.
27374 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
27376         PR tree-optimization/90240
27377         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27378         with respect to scaling factor pre-computed for each basic block.
27379         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27380         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27381         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27382         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
27383         live range for array of loop's basic blocks.  Cleanup aux field of
27384         loop's basic blocks.
27386 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
27388         PR tree-optimization/90356
27389         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27391 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
27393         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27394         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27395         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27396         (ix86_handle_option): Handle -mavx512bf16.
27397         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27398         to extra_headers.
27399         * config/i386/avx512bf16vlintrin.h: New.
27400         * config/i386/avx512bf16intrin.h: New.
27401         * config/i386/cpuid.h (bit_AVX512BF16): New.
27402         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27403         * config/i386/i386-builtin-types.def: Add new types.
27404         * config/i386/i386-builtin.def: Add new builtins.
27405         * config/i386/i386-c.c (ix86_target_macros_internal): Define
27406         __AVX512BF16__.
27407         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27408         (ix86_option_override_internal): Handle BF16.
27409         (ix86_valid_target_attribute_inner_p): Ditto.
27410         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27411         * config/i386/i386-builtin.c (enum processor_features): Add
27412         F_AVX512BF16.
27413         (static const _isa_names_table isa_names_table): Ditto.
27414         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27415         (PTA_AVX512BF16): Ditto.
27416         * config/i386/i386.opt: Add -mavx512bf16.
27417         * config/i386/immintrin.h: Include avx512bf16intrin.h
27418         and avx512bf16vlintrin.h.
27419         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27420         avx512f_cvtneps2bf16_<mode><mask_name>,
27421         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27422         * config/i386/subst.md (mask_half): Add new subst.
27423         * doc/invoke.texi: Document -mavx512bf16.
27425 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27427         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27428         Delete declaration.
27429         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27430         (rs6000_debug_legitimize_reload_address): Delete.
27431         (rs6000_legitimize_reload_address_ptr): Delete.
27432         (rs6000_option_override_internal): Adjust.
27433         (mem_operand_gpr): Adjust comment.
27434         (legitimate_lo_sum_address_p): Ditto.
27435         (rs6000_legitimize_reload_address): Delete.
27436         (rs6000_debug_legitimize_reload_address): Delete.
27437         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27439 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
27441         PR target/89765
27442         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27443         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27444         to compute vector element selector for both constant and variable
27445         operands.
27447 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
27449         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27450         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27451         ashrdi3_cvt using SWI48 mode iterator.
27453 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
27455         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27456         (aarch64_<su>abd<mode>_3): Likewise.
27457         (*aarch64_<su>abd<mode>_3): New define_insn.
27458         (<sur>sad<vsi2qi>): New define_expand.
27459         * config/aarch64/iterators.md: Added MAX_OPP attribute.
27460         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27461         (build_vect_cond_expr): Likewise.
27463 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
27465         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27466         clobbers outside of accessible_reg_set.
27467         * config/i386/i386.c (ix86_conditional_register_usage):
27468         Disable register sets by clearing corresponding bits in
27469         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
27470         call_used_regs and don't clear corresponding reg_names array members.
27472 2019-05-07  Richard Biener  <rguenther@suse.de>
27474         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27475         not specified still compute a comp_vectype for invariant
27476         compares.
27478 2019-05-07  Richard Biener  <rguenther@suse.de>
27480         PR tree-optimization/90316
27481         * tree-ssa-pre.c (translate_vuse_through_block): When
27482         same_valid is NULL do not bother to search for a virtual
27483         PHI continuation.
27484         (phi_translate_1): When operands changed we cannot keep
27485         the same value-number so do not bother to ask whether
27486         that's possible from translate_vuse_through_block.
27488 2019-05-07  Martin Liska  <mliska@suse.cz>
27490         * bitmap.c (bitmap_register): Come up with
27491         alloc_descriptor_max_uid and assign it for
27492         a new bitmap.
27493         (register_overhead): Use get_descriptor as
27494         a descriptor.
27495         (release_overhead): New.
27496         (bitmap_elem_to_freelist): Call it.
27497         (bitmap_elt_clear_from): Likewise.
27498         (bitmap_obstack_free): Likewise.
27499         (bitmap_move): Sensitively release memory.
27500         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27501         (bitmap_initialize): Initialize alloc_descriptor to zero.
27502         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27504 2019-05-07  Richard Biener  <rguenther@suse.de>
27506         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27507         we build a SLP node.  Remove max_size and limiting.
27508         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27510 2019-05-07  Richard Biener  <rguenther@suse.de>
27512         PR tree-optimization/90316
27513         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27514         limit by reference.
27515         (walk_non_aliased_vuses): Take walking limit argument.
27516         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27517         walking if it is reached instead of just counting.
27518         (get_continuation_for_phi): Likewise.
27519         (walk_non_aliased_vuses): Likewise, instead of leaving counter
27520         limiting to the callback.
27521         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27522         (vn_reference_lookup_3): Likewise.
27523         (vn_reference_lookup_pieces): Likewise.
27524         (vn_reference_lookup): Likewise.
27525         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27526         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27527         (avail_exprs_stack::lookup_avail_expr): Likewise.
27529 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
27531         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27532         for comparaible types in the second direction even if first one
27533         hits incomparable type.
27535 2019-05-07  Richard Biener  <rguenther@suse.de>
27537         PR lto/90369
27538         * lto-wrapper.c (debug_objcopy): Use the original filename
27539         including archive offset for the filename used for -save-temps.
27541 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
27543         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27544         detection.
27546 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
27547             Hongtao Liu  <hongtao.liu@intel.com>
27549         PR target/89750
27550         PR target/86444
27551         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27552         Modified, original implementation isn't correct.
27554 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27556         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27557         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27558         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27559         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27560         (FRAME_POINTER_REGNUM): Change numbering.
27561         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27562         (alt_reg_names): Adjust.
27563         (rs6000_conditional_register_usage): Don't mark hard register 64 as
27564         fixed.
27565         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27566         (DWARF_FRAME_REGISTERS): Delete.
27567         (DWARF2_FRAME_REG_OUT): Fix whitespace.
27568         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27569         Adjust.
27570         (REG_ALLOC_ORDER): Adjust.
27571         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27572         (REG_CLASS_CONTENTS): Adjust.
27573         (RETURN_ADDR_RTX): Change comment.
27574         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27575         instead of 67.
27576         (REGISTER_NAMES): Adjust.
27577         (ADDITIONAL_REGISTER_NAMES): Adjust.
27578         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27580 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27582         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27583         Delete.
27584         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27585         (DWARF_FRAME_REGISTERS): Adjust.
27586         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27587         Adjust.
27588         (REG_ALLOC_ORDER): Adjust.
27589         (enum reg_class): Delete SPR_REGS.
27590         (REG_CLASS_NAMES): Delete SPR_REGS.
27591         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
27592         (REGISTER_NAMES): Adjust.
27593         (ADDITIONAL_REGISTER_NAMES): Adjust.
27594         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27595         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27596         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27597         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27598         (htm_spr_regno): Delete.
27599         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27600         argument.
27601         (rs6000_dbx_register_number): Adjust.
27603 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27605         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27607 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27609         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27610         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27612 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
27614         PR tree-optimization/88709
27615         PR tree-optimization/90271
27616         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27617         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27618         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
27619         variable.
27620         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27621         of the store merging group is larger than
27622         PARAM_STORE_MERGING_MAX_SIZE parameter.
27623         (split_group): Add bzero_first argument.  If set, always emit first
27624         the first store which must be = {} of the whole area and then for the
27625         rest of the stores consider all zero bytes as paddings.
27626         (imm_store_chain_info::output_merged_store): Check if first store
27627         is = {} of the whole area and if yes, determine which setting of
27628         bzero_first for split_group gives smaller number of stores.  Adjust
27629         split_group callers.
27630         (lhs_valid_for_store_merging_p): Allow decls.
27631         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27632         no elts.
27633         (pass_store_merging::process_store): Likewise.
27635 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
27637         PR target/89424
27638         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27639         handling of V1TImode.
27641 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
27643         PR target/89221
27644         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27645         and enable_frame_pointer ...
27646         * configure.ac: ... here.  Update help strings for
27647         --enable-frame-pointer.
27648         * configure: Regenerate.
27649         * config/i386/i386-options.c (ix86_option_override_internal): Remove
27650         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27651         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27652         (USE_X86_64_FRAME_POINTER): Ditto.
27654 2019-05-06  Martin Liska  <mliska@suse.cz>
27656         * config.gcc: Append to target_gtfiles and fix indentation.
27658 2019-05-06  Richard Biener  <rguenther@suse.de>
27660         PR tree-optimization/90358
27661         * tree-vect-stmts.c (get_group_load_store_type): Properly
27662         detect unused upper half of load.
27663         (vectorizable_load): Likewise.
27665 2019-05-06  Richard Biener  <rguenther@suse.de>
27667         PR tree-optimization/88828
27668         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27669         (simplify_vector_constructor): ...here.  Handle constants in
27670         the constructor.
27672 2019-05-06  Richard Biener  <rguenther@suse.de>
27674         PR tree-optimization/90328
27675         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27676         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27677         is valid in the loop nest before using it.
27678         (initialize_data_dependence_relation): Adjust.
27679         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27680         loop as loop-nest to dr_may_alias_p.
27682 2019-05-06  Richard Biener  <rguenther@suse.de>
27684         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27686 2019-05-06  Richard Biener  <rguenther@suse.de>
27688         PR tree-optimization/90316
27689         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27690         compute target on demand.
27691         (get_continuation_for_phi): Remove code walking stmts to
27692         get to a target virtual operand which could end up being
27693         quadratic.
27695 2019-05-06  Martin Liska  <mliska@suse.cz>
27697         PR sanitizer/90312
27698         * config/i386/i386-options.c (ix86_option_override_internal): Error only
27699         when -mabi is selected to a non-default version.
27701 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
27702             Martin Liska  <mliska@suse.cz>
27704         * Makefile.in: Add lto-dump.texi.
27705         * cgraph.h: Add new functions get_visibility_string and
27706         get_symtab_type_string.
27707         * doc/gcc.texi: Include lto-dump section.
27708         * doc/lto-dump.texi: New file.
27709         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27710         (parse_dump_option): Factor out this function.
27711         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27712         (parse_dump_option): Export the function.
27713         * symtab.c (symtab_node::get_visibility_string): New function.
27714         (symtab_node::get_symtab_type_string): Likewise.
27716 2019-05-06  Martin Liska  <mliska@suse.cz>
27718         * config/i386/i386-builtins.c: New file.
27719         * config/i386/i386-builtins.h: New file.
27720         * config/i386/i386-expand.c: New file.
27721         * config/i386/i386-expand.h: New file.
27722         * config/i386/i386-features.c: New file.
27723         * config/i386/i386-features.h: New file.
27724         * config/i386/i386-options.c: New file.
27725         * config/i386/i386-options.h: New file.
27726         * config.gcc: Add new files into extra_objs and
27727         target_gtfiles.
27728         * config/i386/i386.c: Split content of the file
27729         into newly introduced files.
27730         * config/i386/i386.h: Declare common variables
27731         and macros.
27732         * config/i386/t-i386: Define dependencies for new files.
27734 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
27736         PR target/89400
27737         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27738         Restrict 'all' variant to 32-bit configurations.
27739         (unaligned_loadhiu): Likewise.
27740         (unaligned_storehi): Likewise.
27741         (unaligned_storesi): Likewise.
27742         (unaligned_loadhis): Disable when compiling for thumb1.
27744 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
27746         PR tree-optimization/90269
27747         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27748         Ignore clobbers.
27750 2019-05-03  Martin Liska  <mliska@suse.cz>
27752         * hash-map.h: Add is_empty function.
27753         * hash-set.h: Likewise.
27754         * hash-table.h: Likewise.
27755         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27756         elements () == 0 (and similar usages).
27757         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27758         * gimplify.c (gimplify_bind_expr): Likewise.
27759         (gimplify_switch_expr): Likewise.
27760         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27761         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27762         * postreload-gcse.c (dump_hash_table): Likewise.
27763         (gcse_after_reload_main): Likewise.
27764         * predict.c (combine_predictions_for_bb): Likewise.
27765         * tree-parloops.c (reduction_phi): Likewise.
27766         (separate_decls_in_region): Likewise.
27767         (transform_to_exit_first_loop): Likewise.
27768         (gen_parallel_loop): Likewise.
27769         (gather_scalar_reductions): Likewise.
27770         (try_create_reduction_list): Likewise.
27771         * var-tracking.c (dump_vars): Likewise.
27772         (emit_notes_for_changes): Likewise.
27773         (vt_emit_notes): Likewise.
27775 2019-05-03  Richard Biener  <rguenther@suse.de>
27777         PR tree-optimization/90316
27778         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27779         before running VN.
27781 2019-05-03  Richard Biener  <rguenther@suse.de>
27783         * tree-vect-stmts.c (get_group_load_store_type): Avoid
27784         peeling for gaps by loading only lower halves of vectors
27785         if possible.
27786         (vectorizable_load): Likewise.
27788 2019-05-03  Richard Biener  <rguenther@suse.de>
27790         PR middle-end/89518
27791         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27793 2019-05-03  Richard Biener  <rguenther@suse.de>
27795         PR middle-end/87314
27796         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27797         Handle STRING_CST vs DECL or STRING_CST.
27799 2019-05-03  Richard Biener  <rguenther@suse.de>
27801         PR tree-optimization/88963
27802         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27803         vector loads feeding only BIT_FIELD_REFs to component
27804         loads.  Rewrite stores fed by CONSTRUCTORs to component
27805         stores.
27807 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
27809         * opts.h (finish_options): Remove lang_mask argument.
27810         (print_help, help_option_argument): Declare.
27811         * opts.c (print_help): Remove forward declaration, no longer static.
27812         (finish_options): Remove lang_mask argument, don't call print_help
27813         here.
27814         * opts-global.c (decode_options): Adjust finish_option caller, call
27815         print_help here.
27817         PR tree-optimization/90303
27818         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27819         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27821 2019-05-03  Richard Biener  <rguenther@suse.de>
27823         PR tree-optimization/89698
27824         * gimple-fold.c (canonicalize_constructor_val): Early out
27825         for constants, handle unfolded INTEGER_CSTs as they appear in
27826         C++ virtual table ctors.
27828 2019-05-03  Richard Biener  <rguenther@suse.de>
27830         * passes.c (execute_function_todo): Remove dead code.
27832 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
27834         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27835         the internal register number, for any "real" register.
27837 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
27839         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27840         correct numbers for TFHAR, TFIAR, TEXASR.
27842 2019-05-02  Richard Biener  <rguenther@suse.de>
27844         PR tree-optimization/89653
27845         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27846         update-address-taken before the pass.
27847         * passes.def (pass_tree_loop_init): Put comment before it.
27849 2019-05-02  Richard Biener  <rguenther@suse.de>
27851         PR tree-optimization/89509
27852         * tree-ssa-structalias.c (compute_dependence_clique): Look
27853         at the first subvar when determining whether it is restrict.
27855 2019-05-02  Richard Biener  <rguenther@suse.de>
27857         PR tree-optimization/90273
27858         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27859         useless debug stmts.
27861 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
27863         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27864         ACLE branch.
27865         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27866         SVE ACLE branch.
27867         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27868         VEC_COND_EXPR be inserted to emulate a conditional internal function.
27869         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27870         (vectorizable_reduction): Use the functions above to vectorize in a
27871         fully masked loop codes that don't have a conditional internal
27872         function.
27874 2019-05-02  Martin Liska  <mliska@suse.cz>
27876         * cgraphclones.c: Call valid_attribute_p with 1 for
27877         target_clone.
27878         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27879         it's for target attribute.
27880         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27881         Add new boolean argument.
27882         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27883         Likewise.
27884         (ix86_valid_target_attribute_tree): Pass target_clone_attr
27885         to ix86_valid_target_attribute_inner_p.
27886         (ix86_valid_target_attribute_p): Pass flags argument to
27887         ix86_valid_target_attribute_inner_p.
27888         (get_builtin_code_for_version): Use 0 as it's target attribute.
27890 2019-05-02  Martin Liska  <mliska@suse.cz>
27892         * gcc.c (process_command): Add dummy file only
27893         if n_infiles == 0.
27894         * opts-global.c (decode_options): Pass lang_mask.
27895         * opts.c (print_help): New function.
27896         (finish_options): Print --help if help_option_argument
27897         is set.
27898         (common_handle_option): Factor out content of OPT__help_
27899         into print_help.
27900         * opts.h (finish_options): Add new argument.
27902 2019-05-02  Martin Liska  <mliska@suse.cz>
27904         PR target/88809
27905         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27906         With -minline-all-stringops use inline expansion using 4B loop.
27907         * doc/invoke.texi: Document the change of
27908         -minline-all-stringops.
27910 2019-05-01  Jeff Law  <law@redhat.com>
27912         PR tree-optimization/88797
27913         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27914         PHI feeds a conditional on the RHS of an assignment.
27916 2019-04-30  Andrew Waterman  <andrew@sifive.com>
27917             Jim Wilson  <jimw@sifive.com>
27919         * config/riscv/constraints.md (L): New.
27920         * config/riscv/predicates.md (lui_operand): New.
27921         (sfb_alu_operand): New.
27922         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27923         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27924         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27925         * config/riscv/risc.md (type): Add sfb_alu.
27926         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
27927         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
27928         (branch_zero<mode>): Delete.
27929         (mov<mode>cc): New.
27930         (mov<GPR:mode><X:mode>cc): Likewise.
27931         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
27933 2019-04-30  Nathan Sidwell  <nathan@acm.org>
27935         * tree.h (MARK_TS_EXP): New.
27937 2019-04-30  Martin Liska  <mliska@suse.cz>
27939         * opts.c (enable_warning_as_error): Provide hints
27940         for unknown options.
27942 2019-04-30  Martin Liska  <mliska@suse.cz>
27944         PR debug/90288
27945         * doc/invoke.texi: Add missing dash for gas-locview-support
27946         and gno-as-locview-support.
27948 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
27950         PR target/89093
27951         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27952         whitespace at the start of target attribute string.
27954 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27956         PR target/86538
27957         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27958         Define __ARM_FEATURE_ATOMICS.
27960 2019-04-30  Martin Liska  <mliska@suse.cz>
27962         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27963         into built_in_function enum. Remove code for endp == 2 and
27964         use BUILT_IN_* constants.
27965         (gimple_fold_builtin): Call the function with fcode.
27967 2019-04-30  Martin Liska  <mliska@suse.cz>
27969         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27970         DECL_FUNCTION_CODE into ix86_builtins enum before
27971         the switch statement.
27973 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
27975         PR tree-optimization/89475
27976         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27977         calls.
27979 2019-04-30  Martin Liska  <mliska@suse.cz>
27981         PR translation/90274
27982         * opts.c (print_filtered_help): Wrap string in _(...).
27984 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
27986         PR tree-optimization/90240
27987         Revert:
27988         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
27990         PR tree-optimization/90078
27991         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27992         checks for infinite_cost overflow.
27994 2019-04-29  Jeff Law  <law@redhat.com>
27996         * passes.def: Move -Wrestrict pass after copy propagation.
27998 2019-04-29  Maya Rashish  <coypu@sdf.org>
28000         * config.gcc (default_gnu_indirect_function): Default to yes
28001         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28002         sparc*-*-netbsd*, x86_64-*-netbsd*.
28004 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
28006         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28007         where cond2 is NE_EXPR.
28008         (is_value_included_in): Update comment.
28010 2019-04-29  Richard Biener  <rguenther@suse.de>
28012         PR tree-optimization/90278
28013         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28014         EH on comparison simplification.
28016 2019-04-29  Jason Merrill  <jason@redhat.com>
28018         PR c++/82081 - tail call optimization breaks noexcept
28019         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28020         nothrow function to a might-throw function into a tail call.
28022 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28024         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28025         (DDR_INNER_LOOP): Likewise.
28026         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28027         (initialize_data_dependence_relation): Likewise.
28028         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28030 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
28032         PR rtl-optimization/90257
28033         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28034         return value.
28036         Revert the revert:
28037         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
28039         PR target/90178
28040         Revert:
28041         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
28043         Revert the revert:
28044         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
28046         Revert:
28047         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
28049         * lra-spills.c (lra_final_code_change): Remove useless move insns.
28051 2019-04-29  Richard Biener  <rguenther@suse.de>
28053         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28054         rhs issue a reset.
28056 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
28058         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
28059         varasm.h, and netbsd-protos.h.
28061 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
28063         PR target/89261
28064         * config/i386/i386-protos.h (ix86_data_alignment): Change
28065         the second argument type to unsigned int.
28066         * config/i386/i386.c (ix86_data_alignment): Change "align"
28067         argument type to unsigned int.
28069 2019-04-27  Martin Liska  <mliska@suse.cz>
28071         PR middle-end/90258
28072         * opt-suggestions.c (option_proposer::build_option_suggestions):
28073         When get_valid_option_values returns empty values, add the
28074         misspelling candidate.
28076 2019-04-26  Jim Wilson  <jimw@sifive.com>
28078         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28079         parameter.
28080         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28081         Pass orig_mode to riscv_build_integer.
28082         (riscv_split_integer): Pass mode to riscv_move_integer.
28083         (riscv_legitimize_const_move): Likewise.
28084         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28085         promoted_mode.  Replace force_reg call with code to load constant into
28086         promoted reg and then subreg it for the store.
28087         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28088         riscv_move_integer.
28090 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
28092         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28093         corrupt codes.
28095 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
28097         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28098         commentary about the encoding of precision.
28100 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
28102         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28103         * config/i386/t-freebsd64: New file.
28104         * config.gcc: Add the t-freebsd64 for multilib support.
28106 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
28108         * doc/extend.texi (vector_size): Add missing comma after @xref.
28110 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
28112         * BASE-VER: Set to 10.0.0.
28114 2019-04-25  Richard Biener  <rguenther@suse.de>
28116         PR middle-end/89765
28117         * gimplify.c (gimplify_expr): Avoid turning a lvalue
28118         VIEW_CONVERT_EXPR into one operating on an rvalue.
28120 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28122         PR target/89929
28123         * config/i386/i386.c (feature_priority): Moved to file scope.
28124         (processor_features): Likewise.
28125         (processor_model): Likewise.
28126         (_arch_names_table): Likewise.
28127         (arch_names_table): Likewise.
28128         (_feature_list): Removed.
28129         (feature_list): Likewise.
28130         (_isa_names_table): Moved to file scope.  Add priority.
28131         (isa_names_table): Likewise.
28132         (get_builtin_code_for_version): Replace feature_list with
28133         isa_names_table.  Update error message for P_ZERO priority.
28135 2019-04-25  Richard Biener  <rguenther@suse.de>
28137         * tree-pass.h (make_pass_phi_only_cprop): Remove.
28138         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28140 2019-04-24  Jeff Law  <law@redhat.com>
28142         PR tree-optimization/90037
28143         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28144         * passes.def: Replace all instance of phi-only cprop with the
28145         lattice propagator.  Move propagation pass from after erroneous
28146         path isolation to before erroneous path isolation.
28147         * tree-ssa-phionlycprop.c: Remove.
28149 2019-04-24  Richard Biener  <rguenther@suse.de>
28151         PR middle-end/90213
28152         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28153         by size and BITS_PER_UNIT on poly-wide-ints.
28155 2019-04-25  Richard Biener  <rguenther@suse.de>
28157         PR middle-end/90194
28158         * match.pd: Add pattern to simplify view-conversion of an
28159         empty constructor.
28161 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
28163         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28164         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28165         for Go on 32 bit AIX.
28166         * config/rs6000/aix72.h: Likewise.
28168 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
28170         PR target/90193
28171         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28172         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28174 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
28176         PR target/89952
28177         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28178         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
28179         for restored hard frame pointer.
28180         (s390_sched_dependencies_evaluation): Implement new target hook.
28181         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28183 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
28185         * config/arc/arc-options.def: Fix typos and spelling mistakes.
28186         * config/arc/arc.c (arc_init): Cleanup warning message.
28187         (arc_override_options): Likewise.
28189 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
28191         PR target/90187
28192         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28193         a register if both if_true and if_false are MEMs.
28195         PR tree-optimization/90208
28196         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28197         after labels of new_bb, not before them.
28199         PR tree-optimization/90211
28200         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28201         which are not SSA_NAMEs.
28203 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
28205         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28206         AArch64.
28207         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28209 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
28211         PR rtl-optimization/87979
28212         * modulo-sched.c (sms_schedule): Start ii value "mii" should
28213         not equal zero.
28215 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
28217         PR rtl-optimization/84032
28218         * modulo-sched.c (ps_insn_find_column): Change condition so that
28219         branch will always be the last insn in a row inside partial
28220         schedule.
28222 2019-04-23  Richard Biener  <rguenther@suse.de>
28224         PR debug/90131
28225         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28226         dest_single_pred_p argument.
28227         (remove_forwarder_block): Adjust.
28228         (remove_forwarder_block_with_phi): Likewise.
28230 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28231             Bernd Edlinger  <bernd.edlinger@hotmail.de>
28232             Jakub Jelinek  <jakub@redhat.com>
28234         PR target/89093
28235         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28236         if used with general-regs-only.
28237         (arm_conditional_register_usage): Don't add non-general regs if
28238         general-regs-only.
28239         (arm_valid_target_attribute_rec): Handle general-regs-only.
28240         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28241         general-regs-only.
28242         (TARGET_HARD_FLOAT_SUB): Define.
28243         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28244         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28245         (TARGET_REALLY_IWMMXT2): Likewise.
28246         * config/arm/arm.opt: Add -mgeneral-regs-only.
28247         * doc/extend.texi: Document ARM general-regs-only target.
28248         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28250 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
28252         PR tree-optimization/90078
28253         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28254         checks for infinite_cost overflow.
28256 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
28258         PR tree-optimization/90021
28259         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28260         and check univariate against it.
28261         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28262         * tree-data-ref.c (add_other_self_distances): Pass new argument.
28264 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
28266         PR target/90178
28267         Revert:
28268         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
28270         Revert the revert:
28271         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
28273         Revert:
28274         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
28276         * lra-spills.c (lra_final_code_change): Remove useless move insns.
28278 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
28280         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28281         names using operand format, rather than hard-wired.
28282         (speculation_barrier): Likewise.
28284 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
28286         PR tree-optimization/88055
28287         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28288         (gen_one_condition): Use it if !HONOR_NANS.
28290 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
28292         PR middle-end/90139
28293         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28294         assign_temp instead of gen_reg_rtx.
28296 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
28298         PR translation/90118
28299         * config/aarch64/aarch64.c (aarch64_override_options_internal):
28300         Add missing space before %<.
28302 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
28304         PR rtl-optimization/87871
28305         * ira-lives.c (make_object_dead): Don't add conflicts to
28306         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28308 2019-04-18  Martin Sebor  <msebor@redhat.com>
28310         PR middle-end/89797
28311         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28312         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28313         assuming type size fits in SHWI.
28315 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
28317         PR ipa/85051
28318         * ipa-inline.c (flatten_function): New parameter UPDATE.
28319         (ipa_inline, early_inliner): Use it.
28321 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
28323         * fold-const.c (int_const_binop): Return early on failure.
28325 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
28327         PR middle-end/85164
28328         * combine.c (force_int_to_mode): Cast the argument rather than
28329         the result of known_alignment.
28330         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28332 2019-04-18  Richard Biener  <rguenther@suse.de>
28334         PR debug/90131
28335         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28336         out from ...
28337         (remove_forwarder_block): ... here.
28338         (remove_forwarder_block_with_phi): Also move debug stmts here.
28340 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
28342         PR translation/79183
28343         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28344         inform where appropriate.
28346 2019-04-18  Richard Biener  <rguenther@suse.de>
28348         * tree.c (get_qualified_type): Put found type variants at the
28349         head of the variant list.
28351 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28353         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28355 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
28357         PR target/90125
28358         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28359         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28360         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28361         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28362         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28364 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
28366         * ira-conflicts.c (print_allocno_conflicts): Always print something,
28367         even for allocno's with no conflicts.
28368         (print_conflicts): Print an extra newline.
28370 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28372         * auto-inc-dec.c (attempt_change): Set the alignment of the
28373         temporary memory to that of the original.
28375 2019-04-17  Joao Moreira  <jmoreira@suse.de>
28377         * targhooks.c (default_print_patchable_function_entry): Emit
28378         __patchable_function_entries section with writable flags to allow
28379         relocation resolution.
28381 2019-04-17  Jonny Grant  <jg@jguk.org>
28383         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28385 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
28387         PR middle-end/90095
28388         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28389         on lowpart SUBREGs.
28391 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
28393         * config/arc/arc.c (arc_init): Format diagnostic string.
28394         (arc_override_options): Likewise.
28395         (check_if_valid_regno_const): Likewise.
28396         (arc_reorg): Likewise.
28398 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
28400         PR target/17108
28401         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28402         name.
28403         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
28404         name.
28405         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28406         (*movdi_update1): Use Pmode.
28407         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28408         (movdi_<mode>_update_stack): Rename to ...
28409         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
28410         use Pmode.
28411         (*movsi_update1): Use Pmode.
28412         (*movsi_update2): Use Pmode.
28413         (movsi_update): Rename to ...
28414         (movsi_<mode>_update): ... this.  Use Pmode.
28415         (movsi_update_stack): Fix condition.
28416         (*movhi_update1): Use Pmode.  Fix argument to
28417         avoiding_indexed_address_p.
28418         (*movhi_update2): Ditto.
28419         (*movhi_update3): Ditto.
28420         (*movhi_update4): Ditto.
28421         (*movqi_update1): Ditto.
28422         (*movqi_update2): Ditto.
28423         (*movqi_update3): Ditto.
28424         (*movsf_update1, *movdf_update1): Merge, rename to...
28425         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
28426         avoiding_indexed_address_p.  Add "size" attribute.
28427         (*movsf_update2, *movdf_update2): Merge, rename to...
28428         (*mov<mode>_update2): This.  Ditto.
28429         (*movsf_update3): Use Pmode.  Fix argument to
28430         avoiding_indexed_address_p.
28431         (*movsf_update4): Ditto.
28432         (allocate_stack): Simplify condition.  Adjust pattern names.
28434 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
28436         PR target/89093
28437         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28438         whitespace at the start of target attribute string.
28440 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
28442         PR target/84369
28443         * config/rs6000/power9.md: Add store forwarding bypass.
28445 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
28447         PR debug/89528
28448         * valtrack.c (dead_debug_insert_temp): Reset debug references
28449         to the return value of a call being removed.
28451 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28453         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28454         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28455         implement target hook.
28456         (arc_memory_move_cost): New function.
28457         (TARGET_REGISTER_MOVE_COST): Define.
28458         (TARGET_MEMORY_MOVE_COST): Likewise.
28459         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28460         (MEMORY_MOVE_COST): Likewise.
28462 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28464         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28465         (sibcall_value_insn): Likewise.
28466         * config/arc/constraints.md (Rs5): Remove.
28468 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28470         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28471         for last two fake registers.
28472         (arc_conditional_register_usage): Make sure fake frame and arg
28473         pointer regs are in general regs class.
28474         (FRAME_POINTER_MASK): Remove.
28475         (RETURN_ADDR_MASK): Remove.
28476         (arc_must_save_register): Use hard frame regnum.
28477         (frame_restore_reg): Use hard_frame_pointer_rtx.
28478         (arc_save_callee_saves): Likewise.
28479         (arc_restore_callee_saves): Likewise.
28480         (arc_save_callee_enter): Likewise.
28481         (arc_restore_callee_leave): Likewise.
28482         (arc_save_callee_milli): Likewise.
28483         (arc_eh_return_address_location): Likewise.
28484         (arc_check_multi): Use hard frame regnum.
28485         (arc_can_eliminate): Likewise.
28486         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28487         for register allocator.
28488         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28489         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28490         (FRAME_POINTER_REGNUM): Change it to a fake register.
28491         (HARD_FRAME_POINTER_REGNUM): Defined.
28492         (ARG_POINTER_REGNUM): Change it to a new fake register.
28493         (ELIMINABLE_REGS): Update.
28494         (REGISTER_NAMES): Update names.
28495         * config/arc/arc.md (LP_START): Remove.
28496         (LP_END): Likewise.
28497         (shift_si3_loop): Update pattern.
28499 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
28501         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28502         to avoid delay slot scheduling.
28503         (arc_must_save_register): Don't save SP.
28504         * config/arc/arc.md (stack_tie): Remove.
28505         (UNSPEC_ARC_STKTIE): Likewise.
28507 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
28508             Shiva Chen  <shiva0217@gmail.com>
28510         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28511         code gen with large shift amount.
28513 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28515         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28516         subreg.
28518 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
28520         PR target/90096
28521         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28522         print -m64/-mx32/-m32 if it is true.
28523         (ix86_debug_options, ix86_function_specific_print): Pass true as
28524         ADD_ABI_P to ix86_target_string.
28525         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28526         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28527         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28529         PR rtl-optimization/90082
28530         * dce.c (can_delete_call): New function.
28531         (deletable_insn_p, mark_insn): Use it.
28533         PR tree-optimization/90090
28534         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28535         throw internally.
28536         (is_division_by_square): Likewise.  Formatting fix.
28538 2019-04-16  Richard Biener  <rguenther@suse.de>
28540         PR tree-optimization/56049
28541         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28542         equality check if alias-set zero will prevail.
28544 2019-04-15  Jeff Law  <law@redhat.com>
28546         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28547         size and alignment as unsigned.
28549 2019-04-15  Richard Biener  <rguenther@suse.de>
28551         PR debug/90074
28552         * tree-loop-distribution.c (destroy_loop): Preserve correct
28553         debug info.
28555 2019-04-15  Richard Biener  <rguenther@suse.de>
28557         PR tree-optimization/90071
28558         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28559         abnormal operands from def stmts.
28561 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
28563         PR rtl-optimization/89794
28564         * combine.c (count_auto_inc): New function.
28565         (try_combine): Count how many auto_inc expressions there were in the
28566         original instructions.  Ensure we have the same number in the new
28567         instructions.  Remove the code that tried to ensure auto_inc side
28568         effects on i1 and i0 are not lost.
28570 2019-04-15  Richard Biener  <rguenther@suse.de>
28572         PR ipa/88936
28573         * tree.h (auto_var_p): Declare.
28574         * tree.c (auto_var_p): New function, split out from ...
28575         (auto_var_in_fn_p): ... here.
28576         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28577         member.
28578         (new_var_info): Initialize it.
28579         (set_uids_in_ptset): Also set the shadow variable uid if required.
28580         (ipa_pta_execute): Postprocess points-to solutions assigning
28581         shadow variable uids for locals that may reach their containing
28582         function recursively.
28583         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28584         assert but instead check whether the points-to solution is
28585         a singleton.
28587 2019-04-15  Martin Jambor  <mjambor@suse.cz>
28589         PR ipa/pr89693
28590         * cgraph.c (clone_of_p): Loop over clone chain for each step in
28591         the thunk chain.
28593 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
28595         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28597 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
28598             Kito Cheng  <kito.cheng@gmail.com>
28599             Shiva Chen  <shiva0217@gmail.com>
28601         * config/nds32/nds32-md-auxiliary.c
28602         (nds32_legitimize_pic_address): Use new PIC pattern.
28603         (nds32_legitimize_tls_address): Use new TLS pattern.
28604         (nds32_output_symrel): New.
28605         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28606         (nds32_alloc_relax_group_id): Ditto.
28607         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28608         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28609         relax_group_id.
28610         (nds32_group_tls_insn): Ditto.
28611         (nds32_group_float_insns): Ditto.
28612         * config/nds32/nds32.md (tls_le): New.
28613         (sym_got): Ditto.
28615 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
28617         * configure: Add nds32 target for dwarf2 debug_line checking.
28618         * configure.ac: Regenerated.
28620 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
28622         PR lto/89358
28623         * ipa-devirt.c (skip_in_fields_list_p): New.
28624         (odr_types_equivalent_p): Use it.
28626 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
28628         PR target/89093
28629         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28630         instead of strncmp when checking for thumb and arm.  Formatting fixes.
28632 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
28634         * doc/install.texi: Document --with-target-system-zlib.
28636 2019-04-12  Martin Sebor  <msebor@redhat.com>
28638         PR c/88383
28639         PR c/89288
28640         PR c/89798
28641         PR c/89797
28642         * targhooks.c (default_vector_alignment): Avoid assuming
28643         argument fits in SHWI.
28644         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28645         a shift expression.
28646         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28648 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
28650         PR rtl-optimization/89965
28651         * dce.c: Include rtl-iter.h.
28652         (struct check_argument_load_data): New type.
28653         (check_argument_load): New function.
28654         (find_call_stack_args): Check for loads from stack slots still tracked
28655         in sp_bytes and punt if any is found.
28657         * config/mips/loongson-mmiintrin.h: Fix up #error message.
28659 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
28661         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28662         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28664 2019-04-12  Martin Liska  <mliska@suse.cz>
28666         PR middle-end/89970
28667         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28668         in error message.
28669         (separate_attrs): Handle multiple 'default's.
28670         (expand_target_clones): Rework error handling code.
28672 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28674         PR target/87532
28675         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28676         mode of vector rather than mode of destination for move instruction.
28677         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28678         Use QI inner mode with V16QI vector mode.
28680 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
28682         PR target/52726
28683         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28684         "invalid %%t operand" in output_operand_lossage message.
28686 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
28688         * config/s390/predicates.md (permute_pattern_operand): New
28689         predicate.
28690         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28691         operand for the permute pattern.
28692         ("*vec_perm<mode>"): New insn definition.
28693         ("bswap<mode>"): Generate the permute pattern operand in the
28694         expander and perform the operand reloads for pre arch13 level
28695         already.
28696         ("*bswap<mode>_emu"): Rename to ...
28697         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28698         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28699         Add the USE operand for the permute pattern.
28700         ("*vec_set_bswap_vec<mode>"): Likewise.
28702 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
28704         PR c/89946
28705         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28706         and gcc_unreachable if it fails, just call tree_to_uhwi which
28707         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
28708         Start warning message with a lower-case letter.  Formatting fixes.
28710         PR rtl-optimization/90026
28711         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28712         successors, look for BARRIERs inside of the whole BB_FOOTER chain
28713         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
28714         in cfglayout mode, use emit_barrier_after_bb.
28716 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
28718         PR rtl-optimization/87763
28719         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28720         New Instruction.
28722 2019-04-11  Tom de Vries  <tdevries@suse.de>
28724         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28725         max macro using statement expression.
28727 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
28729         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28730         * xcoffout.c (xcoff_private_rodata_section_name): Define.
28731         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28732         read_only_private_data_section using xcoff_private_rodata_section_name.
28733         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28735 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
28737         PR target/90016
28738         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28740 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
28742         PR rtl-optimization/89965
28743         * dce.c (sp_based_mem_offset): New function.
28744         (find_call_stack_args): Use sp_based_mem_offset.
28746 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
28748         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28750 2019-04-11  Richard Biener  <rguenther@suse.de>
28752         PR tree-optimization/90020
28753         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28754         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28755         * tree-ssa-pre.c (compute_avail): Use it to not put
28756         possibly trapping references after a call that might not
28757         return into EXP_GEN.
28758         * gcse.c (compute_hash_table_work): Do not elide
28759         marking a block containing a call if the call might not
28760         return.
28762 2019-04-11  Richard Biener  <rguenther@suse.de>
28764         PR tree-optimization/90018
28765         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28766         Test both SLP and interleaving variants.
28768 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
28770         * config/s390/8561.md: New file.
28771         * config/s390/driver-native.c (s390_host_detect_local_cpu):
28772         Add arch13 cpu model.
28773         * config/s390/s390-opts.h (enum processor_type): Likewise.
28774         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28775         (s390_get_unit_mask): Likewise.
28776         (s390_is_fpd): Likewise.
28777         (s390_is_fxd): Likewise.
28778         * config/s390/s390.h (s390_tune_attr): Likewise.
28779         * config/s390/s390.md: Include arch13 pipeline description.
28780         * config/s390/s390.opt: Add arch13.
28782 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
28784         PR rtl-optimization/87763
28785         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28786         New prototype.
28787         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28788         New function.
28789         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28790         New instruction.
28791         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28792         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28793         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28794         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28796 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
28798         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28799         "Although" in -fipa-icf documentation.
28801         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28802         of using multiple -g options.
28804 2019-04-10  Martin Liska  <mliska@suse.cz>
28806         PR gcov-profile/89959
28807         * doc/gcov.texi: Make documentation of -x option
28808         more precise.
28810 2019-04-10  Richard Biener  <rguenther@suse.de>
28812         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28813         member.
28814         (DR_GROUP_SAME_DR_STMT): Remove.
28815         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28816         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28817         replace with assert.
28818         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28819         (vect_record_grouped_load_vectors): Remove unreachable code.
28821 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
28823         PR target/90016
28824         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28825         obsolete reference to N.
28827 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
28829         PR middle-end/90025
28830         * expr.c (store_expr): Set properly size on the MEM passed to
28831         clear_storage.
28833         PR c++/90010
28834         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28835         with strlen in between hostsz-3 and hostsz-1 inclusive when no
28836         translation is needed, and when translation is needed, only append
28837         ... if the string length is hostsz or more bytes long.  Avoid using
28838         strncpy or strcat.
28840 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
28842         PR target/90024
28843         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28844         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28845         into three.
28846         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28847         differences directly.
28848         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28850 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
28852         PR translation/90011
28853         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28854         from diagnostics.
28855         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28856         diagnostics.
28857         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28858         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28859         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28860         trailing space from -gsplit-dwarf diagnostics.
28862         PR tree-optimization/89998
28863         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28864         instead of integer_type_node if possible, don't add ranges if return
28865         type is not compatible with int.
28866         * gimple-fold.c (gimple_fold_builtin_sprintf,
28867         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28868         integer_type_node.
28870 2019-04-09  Martin Liska  <mliska@suse.cz>
28872         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28873         * doc/install.texi: Document the new config.
28875 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
28877         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28878         use gimple_expr_type for load and store calls.  Skip over the
28879         condition argument in a conditional internal function.
28880         Protect use of TREE_INT_CST_LOW.
28882 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
28884         PR target/90015
28885         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28886         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
28887         trailing period from it too.
28889 2019-04-08  wu yuan  <wuyuan5@huawei.com>
28891         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28892         * config/aarch64/aarch64.md: Add "tsv110.md".
28893         * config/aarch64/tsv110.md: New file.
28895 2019-04-08  Richard Biener  <rguenther@suse.de>
28897         PR tree-optimization/90006
28898         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28899         calls like lrint.
28901 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
28903         PR target/83033
28904         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28905         construction.
28906         (fma_root_node): Likewise.
28907         (func_fma_steering): Likewise.
28909 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
28911         PR rtl-optimization/89865
28912         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28914         PR rtl-optimization/89865
28915         * config/i386/i386.md
28916         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28917         numbers not to clash with the additional operands[4].
28918         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28919         with extra register copy in the middle.
28921 2019-04-08  Martin Liska  <mliska@suse.cz>
28923         PR gcov-profile/89961
28924         * doc/gcov.texi: Document data_file.
28925         * gcov.c (generate_results): Add data_info into JSON output.
28927 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
28929         PR tree-optimization/89725
28930         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
28931         loop's chrec as invariant symbol.
28932         * tree-chrec.h (chrec_contains_symbols): New parameter.
28933         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28934         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28935         function of loops not in DDR's loop_nest.
28936         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28938 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
28940         PR target/89623
28941         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28942         Mask.
28944 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
28946         PR target/89945
28947         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28948         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28950 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
28952         * sched-deps.c (sched_macro_fuse_insns): Check return value of
28953         targetm.fixed_condition_code_regs.
28955 2019-04-05  Richard Biener  <rguenther@suse.de>
28957         PR debug/89892
28958         PR debug/89905
28959         * tree-cfgcleanup.c (remove_forwarder_block): Always move
28960         debug bind stmts but reset them if they are not valid at the
28961         destination.
28963 2019-04-05  Martin Liska  <mliska@suse.cz>
28965         PR translation/89936
28966         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28967         order to wrap keywords or arguments.
28968         * collect2.c (main): Likewise.
28969         (scan_prog_file): Likewise.
28970         (scan_libraries): Likewise.
28971         * common/config/riscv/riscv-common.c
28972         (riscv_subset_list::parsing_subset_version): Likewise.
28973         (riscv_subset_list::parse_std_ext): Likewise.
28974         * config/aarch64/aarch64.c (aarch64_override_options_internal):
28975         Likewise.
28976         * config/arm/arm.c (arm_option_override): Likewise.
28977         * config/cris/cris.c (cris_print_operand): Likewise.
28978         * config/darwin-c.c (darwin_pragma_options): Likewise.
28979         (darwin_pragma_unused): Likewise.
28980         (darwin_pragma_ms_struct): Likewise.
28981         * config/ft32/ft32.c (ft32_print_operand): Likewise.
28982         * config/i386/i386.c (print_reg): Likewise.
28983         (ix86_print_operand): Likewise.
28984         * config/i386/xm-djgpp.h: Likewise.
28985         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28986         * config/m32c/m32c.c (m32c_option_override): Likewise.
28987         * config/msp430/msp430.c (msp430_option_override): Likewise.
28988         * config/nds32/nds32.c (nds32_option_override): Likewise.
28989         * config/nvptx/mkoffload.c (main): Likewise.
28990         * config/rx/rx.c (rx_print_operand): Likewise.
28991         (valid_psw_flag): Likewise.
28992         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28993         (vms_pragma_nomember_alignment): Likewise.
28994         (vms_pragma_extern_model): Likewise.
28995         * lto-wrapper.c (compile_offload_image): Likewise.
28996         * omp-offload.c (oacc_parse_default_dims): Likewise.
28997         * symtab.c (symtab_node::verify_base): Likewise.
28998         * tlink.c (recompile_files): Likewise.
28999         (start_tweaking): Likewise.
29000         * tree-profile.c (parse_profile_filter): Likewise.
29002 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
29004         PR tree-optimization/89956
29005         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29006         multiple negates of the same value.
29008 2019-04-04  Martin Sebor  <msebor@redhat.com>
29010         PR middle-end/89957
29011         PR middle-end/89911
29012         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29013         have the same precision since the function crashes otherwise.
29014         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29015         has non-zero arguments.
29017 2019-04-04  Martin Sebor  <msebor@redhat.com>
29019         PR middle-end/89934
29020         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29021         out if the number of arguments is less than expected.
29023 2019-04-04  Jeff Law  <law@redhat.com>
29025         PR rtl-optimization/89399
29026         * ree.c (combine_set_extension): Use single_set rather than
29027         digging into PATTERN for items on the candidate list.
29028         (combine_reaching_defs): Likewise.
29030 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
29032         PR rtl-optimization/46590
29033         * loop-invariant.c (find_defs): Move df_remove_problem and
29034         df_process_deferred_rescans to move_invariants.
29035         Move df_live_add_problem and df_live_set_all_dirty calls
29036         to move_invariants.
29037         (move_invariants): Likewise.
29038         (move_loop_invariants): Likewise, making the df_live calls
29039         conditional on -O.  Remove the problem again if we added it
29040         locally.
29042 2019-04-03  qing zhao  <qing.zhao@oracle.com>
29044         PR tree-optimization/89730
29045         * ipa-inline.c (can_inline_edge_p): Delete the checking for
29046         -flive-patching=inline-only-static.
29047         (can_inline_edge_by_limits_p): Add the checking for
29048         -flive-patching=inline-only-static and grant always_inline
29049         even when -flive-patching=inline-only-static is specified.
29051 2019-04-03  Jeff Law  <law@redhat.com>
29053         PR rtl-optimization/81025
29054         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29056 2019-04-03  Richard Biener  <rguenther@suse.de>
29058         PR tree-optimization/84101
29059         * tree-vect-stmts.c: Include explow.h for hard_function_value,
29060         regs.h for hard_regno_nregs.
29061         (cfun_returns): New helper.
29062         (vect_model_store_cost): When vectorizing a store to a decl
29063         we return and the function ABI returns in a multi-reg location
29064         account for the possible spilling that will happen.
29066 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
29068         * config/s390/s390.c (s390_legitimate_address_p): Reject long
29069         displacement addresses for vector mode operands.
29071 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
29073         * config/arc/arc.c (GMASK_LEN): Define.
29074         (arc_restore_callee_saves): Restore first blink when
29075         !optimize_size.
29077 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
29079         * doc/extend.texi: Add deprecated comment on sign-return-address
29080         function attribute and add mbranch-protection.
29081         * doc/invoke.texi: Add bti to the options for mbranch-protection.
29083 2019-04-03  Richard Biener  <rguenther@suse.de>
29085         PR lto/89896
29086         * lto-wrapper.c (run_gcc): Avoid implicit rules making
29087         the all target phony.
29089 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
29091         PR target/89902
29092         PR target/89903
29093         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29094         Return false for variable DImode shifts.
29095         (dimode_scalar_chain::compute_convert_gain): Do not handle
29096         register count operand in variable DImode shifts.
29097         (dimode_scalar_chain::make_vector_copies): Remove support to copy
29098         count argument of a variable shift instruction to a vector register.
29099         (dimode_scalar_chain::convert_reg): Remove support to convert
29100         count argument of a variable shift instruction.
29102 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
29104         PR rtl-optimization/84206
29105         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29106         iterating over loop headers.
29108 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
29110         PR rtl-optimization/85876
29111         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29112         beyond the original fence.
29114 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
29116         * config.gcc: Mark spu* targets as deprecated/obsolete.
29118 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29120         * config/s390/s390-builtin-types.def: New builtin function type
29121         definitions. Remove unused types.
29122         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29123         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29124         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29125         overloaded builtins.
29126         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29127         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29128         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29129         (vec_double, vec_signed, vec_unsigned): Define to use the new
29130         overloaded builtins.
29131         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29132         Remove expanders.
29134 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29136         * config/s390/s390-builtin-types.def: New builtin function type
29137         definitions.
29138         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29139         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29140         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29141         (s390_vstrszh, s390_vstrszf): New low-level builtins.
29142         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29143         constant definitions.
29144         * config/s390/vecintrin.h (vec_search_string_cc)
29145         (vec_search_string_until_zero_cc): New builtin name definitions.
29146         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29147         expanders.
29148         ("vec_vstrs<mode>"): New insn definition.
29150 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29152         * config/s390/s390-builtin-types.def: Add new builtin function
29153         types.
29154         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29155         New overloaded builtins.
29156         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
29157         s390_vsrd.
29158         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29159         (UNSPEC_VEC_SLDBYTE): ... this.
29160         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29161         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29162         definitions.
29163         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29164         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29165         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29167 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29169         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29170         New insn definition.
29171         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29172         * config/s390/vector.md (V_HW_HSD): ... here.
29174 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29176         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29177         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29178         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29179         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29180         New insn definitions.
29182 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29184         * config/s390/s390-builtin-types.def: Add new builtin function type.
29185         * config/s390/s390-builtins.def: Add overloaded builtin
29186         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29187         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29188         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29189         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29190         ("eltswap<mode>"): New expander.
29191         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29192         insn definitions.
29194 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29196         * config/s390/s390-builtin-types.def: Add new builtin function types.
29197         * config/s390/s390-builtins.def: Add overloaded builtin
29198         s390_vec_revb. Add low-level builtins for vlbr and vstbr
29199         instructions.
29200         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29201         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29202         ("bswap<mode>"): New expander.
29203         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29205 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29207         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29208         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29209         vector builtin version number in __VEC__.
29211 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29213         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29214         iterators.
29215         (SFSI): New mode attribute.
29216         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29217         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29218         rename to ...
29219         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29220         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29221         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29222         ("floatsi<mode>2"): Add wcefb instruction.
29224 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29226         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29227         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29228         mode iterators.
29229         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29230         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29231         support 32 bit fp-int conversions. Rename to ...
29232         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29233         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29234         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29235         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29236         ... to these.
29238 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29240         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29241         if-then-else constructs if we can use the select instruction.
29242         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29244 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29246         * config/s390/s390.md ("*popcountdi_arch13_cc")
29247         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29248         definition.
29249         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29250         Append _z196 to make it ...
29251         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29252         ("popcounthi2_z196"): ... this.
29253         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29254         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29256 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29258         * config/s390/s390.c (s390_canonicalize_comparison): Convert
29259         certain compares for arch13 in order to make use of the condition
29260         code result produced by the new instructions.
29261         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29262         nxrk, and nxgrk instruction patterns.
29263         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29264         (inv_no): Add new code iterator together with some attributes.
29265         ("*andc_split_<mode>"): Disable splitter for arch13.
29266         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29267         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29268         ("*<ANDOR:bitops_name>c<GPR:mode>")
29269         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29270         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29271         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29272         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29274 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
29276         * common/config/s390/s390-common.c (processor_flags_table): New
29277         entry for arch13.
29278         * config.gcc: Support arch13 with the --with-arch= configure flag.
29279         * config/s390/driver-native.c (s390_host_detect_local_cpu):
29280         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29281         * config/s390/s390.c (s390_get_sched_attrmask)
29282         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29283         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29284         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29285         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29286         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29287         definitions.
29288         * config/s390/s390.opt: Support arch13 as processor type in
29289         command line options.
29291 2019-04-02  Martin Liska  <mliska@suse.cz>
29293         PR translation/89912
29294         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29295         Fix param description of graphite-max-arrays-per-scop.
29297 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
29299         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29300         (ASAN_CC1_SPEC): Use it in 64-bit mode.
29301         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29303 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29305         PR rtl-optimization/85412
29306         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29307         sel_sched_region_1, not after.
29309 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29311         PR rtl-optimization/86928
29312         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29313         compute_live if necessary.
29314         (sel_redirect_edge_and_branch): Likewise.
29316 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
29318         PR rtl-optimization/89865
29319         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29320         register if it is a part of small class.
29322 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
29324         PR rtl-optimization/87273
29325         * sel-sched-ir.c (merge_fences): Remove assert.
29327 2019-04-01  Richard Biener  <rguenther@suse.de>
29329         PR tree-optimization/46590
29330         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29331         (dom_walker::m_reachability): Add in place of...
29332         (dom_walker::m_skip_unreachable_blocks): ...this.
29333         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29334         Move complex initialization ...
29335         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
29336         lazily and initialize edge flags on each invocation.
29337         (dom_walker::bb_reachable): Use m_reachability.
29339 2019-04-01  Martin Liska  <mliska@suse.cz>
29341         PR driver/89861
29342         * opt-suggestions.c (option_proposer::build_option_suggestions):
29343         Add variant without any argument in order to provide better
29344         hints.
29346 2019-04-01  Richard Biener  <rguenther@suse.de>
29348         PR c/71598
29349         * gimple.c: Include langhooks.h.
29350         (gimple_get_alias_set): Treat enumeral types as the underlying
29351         integer type.
29353 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
29354             Eric Botcazou  <ebotcazou@adacore.com>
29356         PR rtl-optimization/89862
29357         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29358         that operates on the full registers for WORD_REGISTER_OPERATIONS
29359         architectures.
29361 2019-03-29  Jim Wilson  <jimw@sifive.com>
29363         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29364         Clear MASK_RVC and then set if C subset supported.
29366 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
29368         PR c/89872
29369         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29370         non-addressable complit into its initializer if it is volatile.
29372 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
29374         * opts-common.c (integral_argument): Set errno properly in one case.
29376 2019-03-29  Martin Liska  <mliska@suse.cz>
29378         * doc/invoke.texi: Remove -Wchkp from documentation.
29380 2019-03-29  Martin Liska  <mliska@suse.cz>
29382         * dbgcnt.c (print_limit_reach): New function.
29383         (dbg_cnt): Use it.
29385 2019-03-29  Martin Liska  <mliska@suse.cz>
29387         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29388         (dbg_cnt_process_opt): Parse first tokens aas
29389         dbg_cnt_process_single_pair is also using strtok.
29391 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
29393         PR rtl-optimization/87485
29394         * function.c (expand_function_end): Move stack_protect_epilogue
29395         before loading of return value into hard register(s).
29397 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
29399         PR middle-end/89621
29400         * tree-inline.h (struct copy_body_data): Add
29401         dont_remap_vla_if_no_change flag.
29402         * tree-inline.c (remap_type_3, remap_type_2): New functions.
29403         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29404         and remap_type_2 returns false.
29405         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29406         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29407         only from where it is copied to nested contexts.
29409 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
29411         PR target/89865
29412         * config/i386/i386.md (RMW operation with LEA peephole):
29413         Use LEAMODE mode attribute instead of SWI mode iterator for
29414         LEA pattern.
29416 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
29418         PR target/89848
29419         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29420         Also process XEXP (src, 0) of a shift insn.
29422 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
29424         PR middle-end/89725
29425         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29426         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29428 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
29430         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29431         test.
29432         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29433         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
29434         immediately after first one with df_analyze in between, but rather
29435         process all bbs, queueing ones that need second pass in a worklist,
29436         df_analyze, process queued debug insn changes and if second pass is
29437         needed, process bbs from worklist, df_analyze, process queued debug
29438         insns again.
29440         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29441         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29442         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29444 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
29446         PR c/79022
29447         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29448         definition.
29450 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
29452         PR target/85667
29453         * config/i386/i386.c (ix86_function_value_1): Call the newly added
29454         function for 32-bit MS_ABI.
29455         (function_value_ms_32): New function.
29457 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
29459         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29460         (movdi): Call gen_movdi_symbol_save_scc.
29461         (gen_movdi_symbol_save_scc): New insn and split.
29463 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
29465         PR rtl-optimization/89313
29466         * function.c (matching_constraint_num): New static function.
29467         (match_asm_constraints_1): Use it.  Fixup white space and comment.
29468         Don't replace inputs with non-matching constraints which conflict
29469         with early clobber outputs.
29471 2019-03-27  Jeff Law  <law@redhat.com>
29473         PR rtl-optimization/87761
29474         PR rtl-optimization/89826
29475         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29476         slightly later.
29477         (pass_cprop_hardreg::execute): Call df_analyze after adding the
29478         note problem to get REG_DEAD/REG_UNUSED notes updated.
29480 2019-03-27  Richard Biener  <rguenther@suse.de>
29482         PR tree-optimization/89463
29483         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29484         queue edges to remove.
29485         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29486         dead stmts.  Delay edge removal until PHIs are removed to
29487         make debug-stmt creation not confused by seemingly degenerate
29488         PHIs.
29490 2019-03-27  Alan Modra  <amodra@gmail.com>
29492         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29493         throughout file.
29494         * config/rs6000/darwin.h: Likewise.
29495         * config/rs6000/rs6000.c: Likewise.
29497 2019-03-27  Alan Modra  <amodra@gmail.com>
29499         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29500         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
29502 2019-03-26  Andrew Waterman  <andrew@sifive.com>
29503             Jim Wilson  <jimw@sifive.com>
29505         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29506         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29507         (generic_idivdi, generic_fmul_single, generic_fmul_double)
29508         (generic_fdiv, generic_fsqrt): Add check for generic tune.
29509         (generic_alu): Add auipc to type list.
29510         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29511         (riscv_microarchitecture): Declare.
29512         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29513         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29514         field.
29515         (riscv_microarchitecture): New.
29516         (sifive_7_tune_info): New.
29517         (riscv_cpu_info_table): Add microarchitecture value for rocket and
29518         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
29519         entries.
29520         (riscv_store_data_bypass_p): New.
29521         (riscv_option_override): Set riscv_microarchitecture from
29522         cpu->microarchitecture.
29523         * config/riscv/riscv.md: Include sifive-7.md.
29524         (type): Add auipc.
29525         (tune): New.
29526         (auipc<mode>): Change type to auipc.
29527         (restore_stack_nonlocal): New.
29528         * config/riscv/sifive-7.md: New.
29529         * doc/invoke.texi (RISC-V Options): Update mtune docs.
29531 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
29533         PR target/89827
29534         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29535         Also process XEXP (src, 0) of a shift insn.
29537 2019-03-26  Richard Biener  <rguenther@suse.de>
29539         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29540         (copy_debug_stmt): Likewise.
29541         (expand_call_inline): Likewise.
29542         (copy_bb): Avoid redundant lookup & set of gimple_block.
29543         * gimple-low.c (lower_gimple_return): Likewise.
29544         (lower_builtin_setjmp): Likewise.
29546 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
29548         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29549         is constant 0, turn into static const data member initialized to false.
29550         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29551         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29553 2019-03-26  Jason Merrill  <jason@redhat.com>
29554             Jakub Jelinek  <jakub@redhat.com>
29556         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29557         method.
29558         (mem_alloc_description::release_object_overhead): Fix comment typos.
29559         * hash-table.h (hash_table::~hash_table): Call
29560         release_instance_overhead only if m_entries is non-NULL, otherwise
29561         call unregister_descriptor.
29563 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
29565         PR tree-optimization/81740
29566         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29567         In case of outer loop vectorization, check for backward dependence
29568         at the inner loop if outer loop dependence is reversed.
29570 2019-03-26  Alan Modra  <amodra@gmail.com>
29572         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29573         rs6000_vector_mem init.  Correct wI and wJ comment.
29575 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
29577         PR rtl-optimization/88347
29578         PR rtl-optimization/88423
29579         * sched-deps.c (sched_analyze_insn): Take into account that for
29580         tablejumps the barrier appears after a label and a jump_table_data.
29582 2019-03-25  Martin Sebor  <msebor@redhat.com>
29584         PR c/89812
29585         * c-common.c (check_user_alignment): Rename local.  Correct maximum
29586         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
29587         convert it to UHWI when it fits.
29589 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
29591         PR debug/86964
29592         * dwarf2out.c (premark_used_variables): New function.
29593         (prune_unused_types_walk): Do not mark not premarked external
29594         variables.
29595         (prune_unused_types): Call premark_used_variables.
29597 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
29599         PR rtl-optimization/89676
29600         * lra-constraints.c (curr_insn_transform): Do match reload for
29601         early clobbers when the match was successful only for different
29602         registers.
29604 2019-03-25  Martin Sebor  <msebor@redhat.com>
29606         * doc/extend.texi (Common Type Attributes): Document vector_size.
29607         (Common Variable Attributes): Mention size constraint.  Correct
29608         quoting and typos.
29609         (Vector Extensions): Use @dfn when defining bas type.  Clarify
29610         base type and size constraints.
29612 2019-03-25  Richard Biener  <rguenther@suse.de>
29614         PR tree-optimization/89789
29615         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29616         changes from non-undefined back to undefined.
29618 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
29620         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29621         heap string and a gc string, but since this variable is unknown to
29622         ggc the gc string might get reused and corrupted. Fixed by always
29623         using a heap string.
29625 2019-03-25  Richard Biener  <rguenther@suse.de>
29627         PR tree-optimization/89779
29628         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29629         to remove IV defs, delay actual removal.
29630         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
29631         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29632         very end, properly also reset loop control IV information.
29634 2019-03-25  Richard Biener  <rguenther@suse.de>
29636         PR tree-optimization/89802
29637         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29638         move EH data to folded stmt.
29640 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
29642         * config/s390/s390-builtin-types.def: Remove few unused types and
29643         fix sort order for others.
29645 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
29647         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29648         expected and found types with -mdebug during builtin matching.
29650 2019-03-25  Richard Biener  <rguenther@suse.de>
29652         PR middle-end/89790
29653         * fold-const.c (operand_equal_p): Revert last change with
29654         updated comment.
29656 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
29658         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29659         notes for the result of the __tls_get_addr calls.
29660         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29662 2019-03-24  Jeff Law  <law@redhat.com>
29664         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29666         PR rtl-optimization/87761
29667         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29668         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
29669         as needed.
29670         (pass_cprop_hardreg::execute): Add df note problem and defer insn
29671         rescans.  Reprocess blocks as needed, calling df_analyze before
29672         reprocessing.  Always call df_analyze before fixing up debug bind
29673         insns.
29675 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
29677         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29678         big endian.
29680 2019-03-22  Andrew Pinski  <apinski@marvell.com>
29682         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29683         attrribute for uxtw.
29685 2019-03-26  Jeff Law  <law@redhat.com>
29687         PR rtl-optimization/87761
29688         * config/mips/mips-protos.h (mips_split_move): Add new argument.
29689         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29690         (mips_split_move): Accept new INSN argument.  Try to forward SRC
29691         into the next instruction.
29692         (mips_split_move_insn): Pass INSN through to mips_split_move.
29694 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
29696         PR rtl-optimization/89676
29697         * lra-constraints.c (curr_insn_transform): Do match reload for
29698         early clobbers even if the match was successful.
29700 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
29702         PR c++/87481
29703         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29705 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
29707         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29709 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
29711         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29712         <avx512>_fmsub_<mode>_mask3<round_name>,
29713         <avx512>_fnmadd_<mode>_mask3<round_name>,
29714         <avx512>_fnmsub_<mode>_mask3<round_name>,
29715         avx512f_vmfmadd_<mode>_mask3<round_name>,
29716         avx512f_vmfmsub_<mode>_mask3<round_name>,
29717         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29718         instead of register_operand and %v instead of v for match_operand 1.
29719         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29720         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
29721         <round_nimm_predicate> instead of register_operand and %v instead of v
29722         for match_operand 1.
29724         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29725         <avx512>_fmadd_<mode>_mask3<round_name>,
29726         <avx512>_fmsub_<mode>_mask<round_name>,
29727         <avx512>_fmsub_<mode>_mask3<round_name>,
29728         <avx512>_fnmadd_<mode>_mask<round_name>,
29729         <avx512>_fnmadd_<mode>_mask3<round_name>,
29730         <avx512>_fnmsub_<mode>_mask<round_name>,
29731         <avx512>_fnmsub_<mode>_mask3<round_name>,
29732         <avx512>_fmaddsub_<mode>_mask<round_name>,
29733         <avx512>_fmaddsub_<mode>_mask3<round_name>,
29734         <avx512>_fmsubadd_<mode>_mask<round_name>,
29735         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29736         <round_nimm_predicate> instead of nonimmediate_operand.
29737         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29738         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29739         Use register_operand instead of <round_nimm_predicate> for the
29740         operand that needs to match output.
29741         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29742         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29743         Likewise.  Formatting fixes.
29745         PR target/89784
29746         * config/i386/i386.c (enum ix86_builtins): Remove
29747         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29748         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29749         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29750         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29751         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29752         __builtin_ia32_vfmsubss3_mask3): New builtins.
29753         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29754         avx512f_vmfmadd_<mode>_mask3<round_name>,
29755         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29756         *avx512f_vmfmsub_<mode>_mask<round_name>,
29757         avx512f_vmfmsub_<mode>_mask3<round_name>,
29758         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29759         *avx512f_vmfnmadd_<mode>_mask<round_name>,
29760         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29761         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29762         *avx512f_vmfnmsub_<mode>_mask<round_name>,
29763         avx512f_vmfnmsub_<mode>_mask3<round_name>,
29764         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29765         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29766         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29767         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29768         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29769         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29770         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29771         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29772         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29773         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29774         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29775         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29776         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29777         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29778         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29779         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29780         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29781         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29782         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29783         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29784         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29785         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29787 2019-03-21  Martin Sebor  <msebor@redhat.com>
29789         PR tree-optimization/89350
29790         * builtins.c (compute_objsize): Also ignore offsets whose upper
29791         bound is negative.
29792         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29793         (builtin_memref::builtin_memref): Initialize new member.
29794         Allow EXPR to be null.
29795         (builtin_memref::extend_offset_range): Replace local with a member.
29796         Avoid assuming pointer offsets are unsigned.
29797         (builtin_memref::set_base_and_offset): Determine base object
29798         before computing offset range.
29799         (builtin_access::builtin_access): Handle memset.
29800         (builtin_access::generic_overlap): Replace local with a member.
29801         (builtin_access::strcat_overlap): Same.
29802         (builtin_access::overlap): Same.
29803         (maybe_diag_overlap): Same.
29804         (maybe_diag_access_bounds): Same.
29805         (wrestrict_dom_walker::check_call): Handle memset.
29806         (check_bounds_or_overlap): Same.
29808 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
29809             Jakub Jelinek  <jakub@redhat.com>
29811         PR lto/89692
29812         * tree.c (fld_type_variant, fld_incomplete_type_of,
29813         fld_process_array_type): Call fld->pset.add and don't call
29814         add_tree_to_fld_list if it returns true.
29815         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
29816         non-marked types from TYPE_NEXT_VARIANT list.
29817         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29819 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
29821         * hash-table.h (hash_table): Add Lazy template parameter defaulted
29822         to false, if true, don't alloc_entries during construction, but defer
29823         it to the first method that needs m_entries allocated.
29824         (hash_table::hash_table, hash_table::~hash_table,
29825         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29826         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29827         hash_table::clear_slot, hash_table::traverse_noresize,
29828         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29829         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29830         false.
29831         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29832         NO_INSERT instead of find_with_hash.
29833         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29834         hash_set::m_table): Add Lazy to template params of hash_table.
29835         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29836         * attribs.c (test_attribute_exclusions): Likewise.
29837         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29838         hash_set.  Add tests for hash_set with Lazy = true.
29840 2019-03-21  Richard Biener  <rguenther@suse.de>
29842         PR tree-optimization/89779
29843         * tree.c (tree_nop_conversion): Consolidate and fix defensive
29844         checks with respect to released SSA names now having error_mark_node
29845         type.
29846         * fold-const.c (operand_equal_p): Likewise.
29848 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
29850         PR target/89775
29851         * config/s390/s390.c (global_not_special_regno_p): Move to make it
29852         available to ...
29853         (s390_optimize_register_info): Use global_not_special_regno_p to
29854         check for global regs.
29856 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
29858         PR target/89752
29859         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29860         update this_alternative nor this_alternative_set.
29862 2019-03-19  Jim Wilson  <jimw@sifive.com>
29864         PR target/89411
29865         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
29866         align, size, offset.  Use them to handle a BLKmode reference.  Update
29867         comment.
29868         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29870 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
29872         PR rtl-optimization/89768
29873         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29874         instead of GEN_INT.
29875         (unroll_loop_runtime_iterations): Likewise.
29877 2019-03-19  Martin Sebor  <msebor@redhat.com>
29879         PR tree-optimization/89644
29880         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29881         rather than endptr as an indicator of nul-termination.
29883         PR tree-optimization/89644
29884         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29885         arrays in determining sequence sizes in strncpy and stpncpy.
29887 2019-03-19  Martin Liska  <mliska@suse.cz>
29889         PR middle-end/89737
29890         * predict.c (combine_predictions_for_bb): Empty likely_edges and
29891         unlikely_edges if there's an edge that belongs to both these sets.
29893 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
29895         PR target/89746
29896         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29897         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29898         go via a stack temporary.
29900 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
29902         PR target/89378
29903         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29904         instead of gen_rtx_SUBREG.
29905         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29907 2019-03-19  Richard Biener  <rguenther@suse.de>
29909         PR debug/88389
29910         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29912 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
29914         PR lto/87809
29915         PR lto/89335
29916         * tree.c (free_lang_data_in_decl): Do not free context of C++
29917         destrutors.
29919 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
29921         PR target/89506
29922         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29923         subs for the first alternative except when operands[3] is 1.
29925         PR target/89752
29926         * gimplify.c (gimplify_asm_expr): For output argument with
29927         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29928         diagnose error.
29930 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
29932         PR rtl-optimization/89753
29933         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29934         explicit unrolling factor even more robust.
29936 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
29938         PR target/89726
29939         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29940         compensation use x2 += 1 instead of x2 -= -1 and when honoring
29941         signed zeros, do another copysign after the compensation.
29943 2019-03-18  Martin Sebor  <msebor@redhat.com>
29945         PR tree-optimization/89720
29946         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29947         more conservatively, the same as anti-range.
29949 2019-03-18  Richard Biener  <rguenther@suse.de>
29951         PR middle-end/88945
29952         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29953         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29954         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
29955         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29957 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
29959         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29960         Extend queue to 1024 entries.
29961         Add "consumed" field.
29962         (gomp_print_output): Remove print_index parameter.
29963         Add final parameter.
29964         Change limit to unsigned.
29965         Use consumed field to implement circular buffer.
29966         Detect interrupted print in final pass.
29967         Flush output at the end.
29968         (run): Update gomp_print_output usage.
29969         (main): Initialize kernargs->output_data.consumed.
29971 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
29973         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29974         calculation of the minimum number of scalar iterations for
29975         fully-predicated loops.
29977 2019-03-18  Martin Jambor  <mjambor@suse.cz>
29979         PR tree-optimization/89546
29980         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29981         any propagation to its children took place.
29983 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
29985         PR target/89627
29986         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29987         parameter, and make use of it.
29988         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29990 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
29992         * config/arc/arc.opt (mcode-density-frame): Get the inital value
29993         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29994         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29995         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29996         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29997         match what the ops is doing.
29998         (push_multi_fp_blink): Likewise.
29999         * config/arc/arc.c (arc_override_options): Enable enter/leave when
30000         compiling for size and elf target.
30001         (arc_save_callee_enter): Adjust note to match what enter/leave
30002         operation does.
30004 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30006         * config/arc/arc.md (tst_movb): Fix constraint.
30008 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30010         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30012 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
30014         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30015         * config/arc/arc.c (arc_conditional_register_usage): Remove all
30016         reg_alloc_order references.
30017         (size_alloc_order): Define.
30018         (arc_adjust_reg_alloc_order): New function.
30019         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30020         order.
30021         (ADJUST_REG_ALLOC_ORDER): Define.
30022         (HONOR_REG_ALLOC_ORDER): Likewise.
30024 2019-03-18  Richard Biener  <rguenther@suse.de>
30026         PR target/87561
30027         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30028         loads and stores a bit more.
30030 2019-03-18  Richard Biener  <rguenther@suse.de>
30032         PR target/87561
30033         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30034         load pessimization to stores as well.
30036 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
30038         PR middle-end/86979
30039         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30040         successor, use NULL as its av set.
30042 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
30044         PR rtl-optimization/89721
30045         * lra-constraints (invariant_p): Return false if side_effects_p holds.
30047 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
30049         PR target/87532
30050         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30051         When handling vec_extract, use modular arithmetic to allow
30052         constant selectors greater than vector length.
30053         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30054         V1TImode vectors to have constant selector values greater than 0.
30055         Use modular arithmetic to compute vector index.
30056         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30057         index for in-memory vectors.  Correct code generation for
30058         in-register vectors.
30059         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30060         compute index.
30062 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
30064         PR c++/88534
30065         PR c++/88537
30066         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30067         VAR_DECL args.
30069 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
30071         PR c++/89709
30072         * tree.c (inchash::add_expr): Strip any location wrappers.
30073         * fold-const.c (operand_equal_p): Move stripping of location wrapper
30074         after hash verification.
30076         PR debug/89704
30077         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30078         SIGN_EXTEND and ZERO_EXTEND.
30080 2019-03-14  Jason Merrill  <jason@redhat.com>
30081             Jakub Jelinek  <jakub@redhat.com>
30083         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30084         than if is_empty (*slot).
30085         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30086         existing elt and for elt removal.
30087         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30088         of already removed elt.
30090 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
30092         PR target/89650
30093         * config/i386/i386.c (remove_partial_avx_dependency): Handle
30094         REG_EH_REGION note.
30096 2019-03-14  Martin Liska  <mliska@suse.cz>
30098         PR other/89712
30099         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30101 2019-03-14  Richard Biener  <rguenther@suse.de>
30103         PR target/89711
30104         * config/i386/i386.c (make_resolver_func): Properly set
30105         DECL_CONTEXT on the RESULT_DECL.
30106         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30108 2019-03-14  Richard Biener  <rguenther@suse.de>
30110         * gimple-pretty-print.c: Include cfgloop.h.
30111         (dump_gimple_phi): Adjust.
30112         (dump_gimple_bb_header): Dump loop header for GIMPLE.
30113         (pp_cfg_jump): Adjust.
30114         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30115         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30116         (lower_phi_internal_fn): Remove.
30117         (verify_gimple_call): Remove IFN_PHI special-casing.
30118         (dump_function_to_file): Dump IL state.
30119         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30120         done to deal with PHI nodes being present in non-SSA state.
30122 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
30124         PR ipa/89684
30125         * multiple_target.c (create_dispatcher_calls): Change
30126         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30127         In the node->iterate_referring loop, push *ref rather than ref, call
30128         ref->remove_reference () and always pass 0 to iterate_referring.
30130         PR rtl-optimization/89679
30131         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30132         would contain a paradoxical SUBREG.
30134 2019-03-14  Richard Biener  <rguenther@suse.de>
30136         PR tree-optimization/89710
30137         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30138         safe_dyn_cast.
30140 2019-03-14  Martin Liska  <mliska@suse.cz>
30142         * coverage.c (coverage_begin_function): Stream also
30143         end_column.
30144         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
30145         documentation about function declaration location.
30146         * gcov-dump.c (tag_function): Print whole range
30147         of function declaration.
30148         * gcov.c (struct function_info): Add end_column field.
30149         (function_info::function_info): Initialize it.
30150         (output_json_intermediate_file): Output {start,end}_column
30151         fields.
30152         (read_graph_file): Read end_column.
30154 2019-03-14  Richard Biener  <rguenther@suse.de>
30156         PR middle-end/89698
30157         * fold-const.c (operand_equal_p): For INDIRECT_REF check
30158         that the access types are similar.
30160 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
30162         PR tree-optimization/89703
30163         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30164         aren't compatible also with builtin_decl_explicit.  Check pure
30165         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30166         and BUILT_IN_STPNCPY{,_CHK}.
30168 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
30170         PR target/89523
30171         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30172         addr32 prefix to VSIB address for X32.
30173         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30174         "%M2" to opcode.
30175         (*avx512pf_gatherpf<mode>df_mask): Likewise.
30176         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30177         (*avx512pf_scatterpf<mode>df_mask): Likewise.
30178         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30179         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30180         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30181         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30182         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30183         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30184         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30185         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30186         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30187         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30188         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30189         (*avx512f_scatterdi<mode>): Likewise.
30191 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30193         PR target/85860
30194         * lra-constraints.c (inherit_in_ebb): Update
30195         potential_reload_hard_regs along with live_hard_regs.
30197 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
30199         PR debug/89498
30200         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30201         DWARF_OFFSET_SIZE.
30202         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30204 2019-03-13  Martin Sebor  <msebor@redhat.com>
30206         PR tree-optimization/89662
30207         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30208         has a size.
30210 2019-03-13  Richard Biener  <rguenther@suse.de>
30212         PR middle-end/89677
30213         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30214         throw FP expressions at tree-affine.
30216 2019-03-14  Richard Biener  <rguenther@suse.de>
30218         * tree-pretty-print.c (dump_generic_node): For -gimple properly
30219         dump negative integer constants using _Literal (type) -num.
30221 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
30223         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30224         nonlocal_value member.
30226         PR middle-end/88588
30227         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30228         (ipa_simd_modify_function_body): Handle PHIs.
30230 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30232         * config/s390/s390.c (s390_option_override_internal): Use more
30233         aggressive inlining parameters.
30235 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30237         * config/s390/3906.md: New file.
30238         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30239         (LONGRUNNING_THRESHOLD): Remove.
30240         (MAX_SCHED_MIX_SCORE): Decrease.
30241         (MAX_SCHED_MIX_DISTANCE): Decrease.
30242         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30243         (struct s390_sched_state): New struct to hold scheduling state.
30244         (S390_SCHED_STATE_NORMAL): Remove.
30245         (S390_SCHED_STATE_CRACKED): Remove.
30246         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30247         (s390_get_sched_attrmask): Use new attribute.
30248         (s390_get_unit_mask): Use new units.
30249         (s390_is_fpd): New function.
30250         (s390_is_fxd): New function.
30251         (s390_is_longrunning): New function.
30252         (s390_sched_score): Use new functions.
30253         (s390_sched_reorder): Likewise.
30254         (s390_sched_variable_issue): Rework and use new functions.
30255         (s390_sched_init): Use new functions.
30256         * config/s390/s390.h (s390_tune_attr): Add z14.
30257         * config/s390/s390.md: Add z14.
30259 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
30261         * config/s390/2964.md: Update pipeline description.
30262         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30263         (LONGRUNNING_THRESHOLD): Remove.
30264         (LATENCY_FACTOR): Remove.
30265         (s390_get_unit_mask): Add unit.
30266         (s390_sched_score): Use fxd/fpd.
30267         (s390_sched_variable_issue): Use fxd/fpd.
30269 2019-03-12  Martin Liska  <mliska@suse.cz>
30271         * config/i386/i386.c: Reword an error message.
30273 2019-03-12  Martin Jambor  <mjambor@suse.cz>
30275         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30276         terminate with newline.
30278 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
30280         PR target/52726
30281         * config/s390/s390.md (tabort): Use %wd instead of
30282         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30283         letters and periods.
30284         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30285         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30286         's with %< and %>.
30288         PR middle-end/89663
30289         * builtins.c (expand_builtin_int_roundingfn,
30290         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30291         gcc_unreachable if validate_arglist fails.
30293 2019-03-12  Richard Biener  <rguenther@suse.de>
30295         PR tree-optimization/89664
30296         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30297         free the occurance tree after the early out.
30299 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
30301         PR middle-end/89655
30302         PR bootstrap/89656
30303         * vr-values.c (vr_values::update_value_range): If
30304         old_vr->varying_p (), don't update it, make new_vr also VARYING
30305         and return false.
30307 2019-03-11  Martin Liska  <mliska@suse.cz>
30309         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30310         Fix double string quoting.
30312 2019-03-11  Martin Liska  <mliska@suse.cz>
30314         * collect-utils.c (collect_wait): Wrap apostrophes
30315         in gcc internal format with %'.
30316         * collect2.c (main): Likewise.
30317         (scan_prog_file): Likewise.
30318         (scan_libraries): Likewise.
30319         * config/i386/i386.c (ix86_expand_call): Likewise.
30320         (ix86_handle_interrupt_attribute): Likewise.
30321         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30322         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30323         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30324         * lto-wrapper.c (find_crtoffloadtable): Likewise.
30325         * symtab.c (symtab_node::verify_base): Likewise.
30326         * tree-cfg.c (verify_gimple_label): Likewise.
30327         * tree.c (verify_type_variant): Likewise.
30329 2019-03-11  Martin Liska  <mliska@suse.cz>
30331         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30332         in a string format message and fix GNU coding style.
30333         (expand_builtin_set_thread_pointer): Likewise.
30334         * common/config/aarch64/aarch64-common.c
30335         (aarch64_rewrite_selected_cpu): Likewise.
30336         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30337         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30338         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30339         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30340         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30341         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30342         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30343         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30344         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30345         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30346         Likewise.
30347         * common/config/riscv/riscv-common.c
30348         (riscv_subset_list::parsing_subset_version): Likewise.
30349         (riscv_subset_list::parse_std_ext): Likewise.
30350         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30351         (riscv_subset_list::parse): Likewise.
30352         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30353         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30354         (aarch64_override_options_internal): Likewise.
30355         (aarch64_validate_mcpu): Likewise.
30356         (aarch64_validate_march): Likewise.
30357         (aarch64_validate_mtune): Likewise.
30358         (aarch64_override_options): Likewise.
30359         * config/alpha/alpha.c (alpha_option_override): Likewise.
30360         * config/arc/arc.c (arc_init): Likewise.
30361         (parse_mrgf_banked_regs_option): Likewise.
30362         (arc_override_options): Likewise.
30363         (arc_expand_builtin_aligned): Likewise.
30364         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30365         (arm_expand_builtin): Likewise.
30366         * config/arm/arm.c (arm_option_check_internal): Likewise.
30367         (arm_configure_build_target): Likewise.
30368         (arm_option_override): Likewise.
30369         (arm_options_perform_arch_sanity_checks): Likewise.
30370         (arm_handle_cmse_nonsecure_entry): Likewise.
30371         (arm_handle_cmse_nonsecure_call): Likewise.
30372         (arm_tls_referenced_p): Likewise.
30373         (thumb1_expand_prologue): Likewise.
30374         * config/avr/avr.c (avr_option_override): Likewise.
30375         * config/bfin/bfin.c (bfin_option_override): Likewise.
30376         * config/c6x/c6x.c (c6x_option_override): Likewise.
30377         * config/cr16/cr16.c (cr16_override_options): Likewise.
30378         * config/cris/cris.c (cris_option_override): Likewise.
30379         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30380         * config/darwin-c.c (macosx_version_as_macro): Likewise.
30381         * config/darwin.c (darwin_override_options): Likewise.
30382         * config/frv/frv.c (frv_expand_builtin): Likewise.
30383         * config/h8300/h8300.c (h8300_option_override): Likewise.
30384         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30385         (ix86_option_override_internal): Likewise.
30386         (warn_once_call_ms2sysv_xlogues): Likewise.
30387         (ix86_expand_prologue): Likewise.
30388         (split_stack_prologue_scratch_regno): Likewise.
30389         (ix86_warn_parameter_passing_abi): Likewise.
30390         * config/ia64/ia64.c (fix_range): Likewise.
30391         * config/m68k/m68k.c (m68k_option_override): Likewise.
30392         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30393         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30394         (mips_set_compression_mode): Likewise.
30395         * config/mmix/mmix.c (mmix_option_override): Likewise.
30396         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30397         * config/msp430/msp430.c (msp430_option_override): Likewise.
30398         * config/nds32/nds32.c (nds32_option_override): Likewise.
30399         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30400         (nios2_option_override): Likewise.
30401         (nios2_expand_custom_builtin): Likewise.
30402         * config/nvptx/mkoffload.c (main): Likewise.
30403         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30404         * config/pa/pa.c (fix_range): Likewise.
30405         (pa_option_override): Likewise.
30406         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30407         (riscv_option_override): Likewise.
30408         * config/rl78/rl78.c (rl78_option_override): Likewise.
30409         * config/rs6000/aix61.h: Likewise.
30410         * config/rs6000/aix71.h: Likewise.
30411         * config/rs6000/aix72.h: Likewise.
30412         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30413         * config/rs6000/freebsd64.h: Likewise.
30414         * config/rs6000/linux64.h: Likewise.
30415         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30416         (rs6000_expand_zeroop_builtin): Likewise.
30417         (rs6000_expand_mtfsb_builtin): Likewise.
30418         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30419         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30420         (rs6000_invalid_builtin): Likewise.
30421         (rs6000_expand_split_stack_prologue): Likewise.
30422         * config/rs6000/rtems.h: Likewise.
30423         * config/rx/rx.c (valid_psw_flag): Likewise.
30424         (rx_expand_builtin): Likewise.
30425         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30426         * config/s390/s390.c (s390_expand_builtin): Likewise.
30427         (s390_function_profiler): Likewise.
30428         (s390_option_override_internal): Likewise.
30429         (s390_option_override): Likewise.
30430         * config/sh/sh.c (sh_option_override): Likewise.
30431         (sh_builtin_saveregs): Likewise.
30432         (sh_fix_range): Likewise.
30433         * config/sh/vxworks.h: Likewise.
30434         * config/sparc/sparc.c (sparc_option_override): Likewise.
30435         * config/spu/spu.c (spu_option_override): Likewise.
30436         (fix_range): Likewise.
30437         * config/visium/visium.c (visium_option_override): Likewise.
30438         (visium_handle_interrupt_attr): Likewise.
30439         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30440         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30441         (dbg_cnt_process_opt): Likewise.
30442         * dwarf2out.c (output_dwarf_version): Likewise.
30443         * except.c (expand_eh_return): Likewise.
30444         * gcc.c (defined): Likewise.
30445         (driver_handle_option): Likewise.
30446         (process_command): Likewise.
30447         (compare_files): Likewise.
30448         (driver::prepare_infiles): Likewise.
30449         (driver::do_spec_on_infiles): Likewise.
30450         (driver::maybe_run_linker): Likewise.
30451         * omp-offload.c (oacc_parse_default_dims): Likewise.
30452         * opts-global.c (handle_common_deferred_options): Likewise.
30453         * opts.c (parse_sanitizer_options): Likewise.
30454         (common_handle_option): Likewise.
30455         (enable_warning_as_error): Likewise.
30456         * passes.c (enable_disable_pass): Likewise.
30457         * plugin.c (parse_plugin_arg_opt): Likewise.
30458         (default_plugin_dir_name): Likewise.
30459         * targhooks.c (default_expand_builtin_saveregs): Likewise.
30460         (default_pch_valid_p): Likewise.
30461         * toplev.c (init_asm_output): Likewise.
30462         (process_options): Likewise.
30463         (toplev::run_self_tests): Likewise.
30464         * tree-cfg.c (verify_gimple_call): Likewise.
30465         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30466         (tree_inlinable_function_p): Likewise.
30467         * var-tracking.c (vt_find_locations): Likewise.
30469 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
30471         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30472         only on the else branch.
30474 2019-03-11  Martin Liska  <mliska@suse.cz>
30476         * gcov.c (output_intermediate_json_line): Print function
30477         name of each line.
30478         (output_json_intermediate_file): Add new argument.
30479         * doc/gcov.texi: Document the change.
30481 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
30483         PR rtl-optimization/89588
30484         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30485         explicit unrolling factor more robust.
30487 2019-03-11  Richard Biener  <rguenther@suse.de>
30489         PR tree-optimization/89649
30490         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30491         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30492         on the prolog and epilog loops.
30493         (vect_loop_versioning): Return copy of loop.
30494         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30495         on the non-vectorized version of the loop.
30497 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
30499         PR target/68924
30500         * config/i386/sse.md (*vec_extractv2di_0_sse):
30501         Add (=r,x) alternative and corresponding splitter.
30503 2019-03-10  Martin Jambor  <mjambor@suse.cz>
30505         PR tree-optimization/85762
30506         PR tree-optimization/87008
30507         PR tree-optimization/85459
30508         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30509         it points to if there is a type changing MEM_REF.  Adjust all callers.
30510         (build_accesses_from_assign): Disable total scalarization if
30511         contains_vce_or_bfcref_p returns true through the new parameter, for
30512         both rhs and lhs.
30514 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
30516         PR c/88568
30517         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30518         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30520         PR target/79645
30521         * common.opt (fdiagnostics-show-labels,
30522         fdiagnostics-show-line-numbers, fdiagnostics-format=,
30523         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30524         gas-locview-support, ginline-points, ginternal-reset-location-views):
30525         Terminate description text with a dot.
30526         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30527         * config/mcore/mcore.opt (m210, m340): Likewise.
30528         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30529         mnops=): Start description text with a capital letter.
30530         * config/arc/arc.opt (msize-level=): Likewise.
30531         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30532         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30533         mnewlib): Likewise.
30534         * config/ft32/ft32.opt (msim): Likewise.
30535         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
30536         (mnodiv, mnopm): Terminate description text with a dot.
30537         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30538         a colon.
30539         * config/i386/i386.opt (prefer_vector_width, instrument_return):
30540         Likewise.
30541         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30542         text.
30544         PR rtl-optimization/89634
30545         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30546         are modified in BB_END (e->src) instruction.
30548 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
30550         PR target/79926
30551         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30552         messages more amenable to translation, and improve wording.
30554 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
30556         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30557         ud- and du-chains between phases.
30559 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
30561         PR debug/89631
30562         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30563         instead of POLY_INT_CST.
30565 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30567         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30568         requirement.
30570 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
30572         PR target/68924
30573         PR target/78782
30574         PR target/87558
30575         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30576         (_mm_storeu_si64): Ditto.
30578 2019-03-08  Martin Liska  <mliska@suse.cz>
30580         PR target/86952
30581         * config/i386/i386.c (ix86_option_override_internal): Disable
30582         jump tables when retpolines are used.
30584 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
30586         PR go/63560
30587         * ipa-split.c (execute_split_functions): Do not split
30588         'noinline' or 'section' function.
30590 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
30592         PR target/79846
30593         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30594         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30595         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
30597         PR ipa/80000
30598         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30599         from diagnostics.  Formatting fixes.
30601         PR target/85665
30602         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30603         warn_odr diagnostics.
30605         PR other/80058
30606         * lra-constraints.c (process_alt_operands): Avoid one space before
30607         " at the end of line and another after " on another line in a string
30608         literal.
30609         * attribs.c (handle_dll_attribute): Likewise.
30610         * config/avr/avr-devices.c (avr_texinfo): Likewise.
30612         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30613         warning_at or inform messages in G_() if there is no ?:.
30615         PR tree-optimization/89550
30616         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30617         returned true.  Formatting fixes.
30618         (expand_builtin_strnlen): Formatting fixes.
30619         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30620         if warning_at returned true.
30621         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30623 2019-03-08  Richard Biener  <rguenther@suse.de>
30625         PR middle-end/89578
30626         * cfgloop.h (struct loop): Add owned_clique field.
30627         * cfgloopmanip.c (copy_loop_info): Copy it.
30628         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30629         cliques.
30630         * tree-inline.c (copy_loops): Remap owned_clique.
30631         * lto-streamer-in.c (input_cfg): Stream owned_clique.
30632         * lto-streamer-out.c (output_cfg): Likewise.
30634 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
30636         PR target/80190
30637         * config/darwin.c: Include intl.h.
30638         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30639         composing the message out of two separate parts.
30641 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
30643         PR target/80003
30644         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30645         doesn't start with a capital letter and doesn't end with a dot.
30646         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30647         with a capital letter.
30648         (ix86_mangle_function_version_assembler_name): Likewise.
30649         (ix86_generate_version_dispatcher_body): Likewise.
30650         (fold_builtin_cpu): Likewise.
30651         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
30652         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30653         translators, wrap full type name in %qs.
30655         PR translation/79999
30656         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30657         depend clause with source (or sink) modifier.
30658         * omp-expand.c (expand_omp_ordered_sink): Likewise.
30660         PR target/89602
30661         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30662         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30663         (avx512f_load<mode>_mask): New define_expand.
30664         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30665         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30666         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30667         __builtin_ia32_movess_mask): New builtins.
30668         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30669         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30670         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30671         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30673 2019-03-07  Martin Jambor  <mjambor@suse.cz>
30675         PR lto/87525
30676         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30677         for extern inline functions.
30679 2019-03-07  Martin Jambor  <mjambor@suse.cz>
30681         PR ipa/88235
30682         * cgraph.h (cgraph_node): New inline method former_thunk_p.
30683         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30684         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30685         have multiple callees.  At the end check if declarations match as
30686         opposed to cgraph_nodes.
30688 2019-03-07  Martin Liska  <mliska@suse.cz>
30690         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30691         which is equivalent to searching for this in clones chain.
30692         * symtab.c (symtab_node::verify_base): Similarly compare ASM
30693         names with a neighbour and special case first node in a chain.
30695 2019-01-25  Jason Merrill  <jason@redhat.com>
30697         PR c++/80916 - spurious "static but not defined" warning.
30698         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30699         for an internal symbol with DECL_EXTERNAL.
30701 2019-04-07  Richard Biener  <rguenther@suse.de>
30703         PR middle-end/89618
30704         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30705         * tree-inline.c (copy_loops): Simplify.
30707 2019-03-07  Martin Liska  <mliska@suse.cz>
30709         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30711 2019-03-07  Richard Biener  <rguenther@suse.de>
30713         PR tree-optimization/89595
30714         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30715         stmt iterator as reference, take boolean output parameter to
30716         indicate whether the stmt was removed and thus the iterator
30717         already advanced.
30718         (dom_opt_dom_walker::before_dom_children): Re-iterate over
30719         stmts created by folding.
30721 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
30723         PR c++/89585
30724         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30725         at toplevel.
30727 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
30729         PR rtl-optimization/88845
30730         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30731         LRA.
30732         * lra.c (remove_scratches_1): New function.
30733         (remove_scratches): Use it.
30734         (lra_emit_move): Likewise.
30736 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
30738         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30739         unaligned_access variable.
30740         * config/arc/arc.c (arc_override_options): Set unaligned access
30741         default on for HS CPUs.
30742         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30744 2019-03-06  Martin Liska  <mliska@suse.cz>
30746         PR gcov-profile/89577
30747         * doc/gcov.texi: Prefer to use --coverage.
30748         * doc/sourcebuild.texi: Likewise.
30750 2019-03-02  Jason Merrill  <jason@redhat.com>
30752         PR c++/86485 - -Wmaybe-unused with empty class ?:
30753         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30755 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
30757         PR target/89587
30758         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30759         if_multiarch.
30761         PR middle-end/89590
30762         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30763         exactly one argument.
30765 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
30766             Richard Sandiford  <richard.sandiford@arm.com>
30768         PR tree-optimization/89570
30769         * match.pd (vec_cond into cond_op simplification): Don't use
30770         get_conditional_internal_fn, use as_internal_fn (cond_op).
30772 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
30774         PR target/89222
30775         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30776         to decide when to split off a non-zero offset from a symbol.
30777         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30778         in function symbols.
30780 2019-03-05  Richard Biener  <rguenther@suse.de>
30782         PR tree-optimization/89594
30783         * tree-if-conv.c (pass_if_conversion::execute): Handle
30784         case where .LOOP_VECTORIZED_FUNCTION was removed.
30786 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
30788         PR bootstrap/89560
30789         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30790         instead alloca it only when needed with the needed size.
30792         PR tree-optimization/89570
30793         * match.pd (vec_cond into cond_op simplification): Guard with
30794         vectorized_internal_fn_supported_p test and #if GIMPLE.
30796         PR tree-optimization/89566
30797         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30798         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30799         Punt if get_user_idx_format succeeds, but idx_format argument is
30800         not provided or doesn't have pointer type, or if idx_args is above
30801         number of provided arguments.
30803 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
30805         PR tree-optimization/89437
30806         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30808 2019-03-04  Richard Biener  <rguenther@suse.de>
30810         PR middle-end/89572
30811         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30812         safe_dyn_cast.
30814 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
30816         PR tree-optimization/89487
30817         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30818         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30819         (distribute_loop): Don't do runtime alias check if there is non-
30820         addressable data reference.
30821         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30822         is a register variable.
30824 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
30826         PR target/89506
30827         * config/arm/arm.md (cmpsi2_addneg): Use
30828         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30829         If operands[2] is 0 or INT_MIN, force use of subs.
30830         (*compare_scc splitter): Use gen_int_mode.
30831         (*negscc): Likewise.
30832         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30834 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
30835             Monk Chiang  <sh.chiang04@gmail.com>
30837         * common/config/riscv/riscv-common.c: Include sstream.
30838         (riscv_subset_list::to_string): New.
30839         (riscv_arch_str): Likewise.
30840         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30841         * config.in: Regen.
30842         * config/riscv/riscv-protos.h (riscv_arch_str): New.
30843         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30844         (riscv_emit_attribute): New.
30845         (riscv_file_start): Emit attribute if needed.
30846         (riscv_option_override): Init riscv_emit_attribute_p.
30847         * config/riscv/riscv.opt (mriscv-attribute): New option.
30848         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30849         * configure: Regen.
30850         * doc/install.texi: Document --with-riscv-attribute.
30851         * doc/invoke.texi: Document -mriscv-attribute.
30853         * common/config/riscv/riscv-common.c:
30854         Include config/riscv/riscv-protos.h.
30855         (INCLUDE_STRING): Defined.
30856         (RISCV_DONT_CARE_VERSION): Defined.
30857         (riscv_subset_t): Declare.
30858         (riscv_subset_t::riscv_subset_t): New.
30859         (riscv_subset_list): Declare.
30860         (riscv_subset_list::riscv_subset_list): New.
30861         (riscv_subset_list::~riscv_subset_list): Likewise.
30862         (riscv_subset_list::parsing_subset_version): Likewise.
30863         (riscv_subset_list::parse_std_ext): Likewise.
30864         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30865         (riscv_subset_list::add): Likewise.
30866         (riscv_subset_list::lookup): Likewise.
30867         (riscv_subset_list::xlen): Likewise.
30868         (riscv_subset_list::parse): Likewise.
30869         (riscv_supported_std_ext): Likewise.
30870         (current_subset_list): Likewise.
30871         (riscv_parse_arch_string): Using riscv_subset_list::parse to
30872         parse.
30874 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
30876         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30877         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30878         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30880 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
30882         PR rtl-optimization/85899
30883         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30884         fallthru edges leading to the exit block.
30886 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
30888         PR target/89517
30889         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30890         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30892 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
30894         PR tree-optimization/89535
30895         * tree-vect-stmts.c (vectorizable_call): Record the vector types
30896         for each operand.  Calculate the fallback choice for mask operands
30897         and pass it to vect_get_vec_def_for_operand.
30899 2019-03-01  Richard Biener  <rguenther@suse.de>
30901         PR middle-end/89541
30902         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30903         get virtual operands.
30904         (get_expr_operands): Handle CONST_DECL like other decls.
30906 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
30908         PR middle-end/89503
30909         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30910         on DECL_P and EXPR_P.
30912 2019-03-01  Richard Biener  <rguenther@suse.de>
30914         PR middle-end/89497
30915         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30916         argument, defaulted to zero.
30917         * passes.c (execute_function_todo): Pass down SSA update flags
30918         to cleanup_tree_cfg.
30919         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30920         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30921         form if requested.
30922         (cleanup_tree_cfg): Get and pass down SSA update flags.
30924 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
30926         PR bootstrap/89539
30927         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30928         early_lto_debug argument.
30930 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
30932         PR tree-optimization/89536
30933         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30934         only whether bit #0 of the value is 0 instead of the entire value.
30936 2019-02-28  Marek Polacek  <polacek@redhat.com>
30938         PR c++/87068 - missing diagnostic with fallthrough statement.
30939         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30940         at the end of a seq, save its location to walk_stmt_info.
30941         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30942         a switch.
30944 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
30946         PR lto/88585
30947         * tree.c (find_atomic_core_type): Move ahead in file.
30948         (check_base_type): Correctly compare alignments of atomic types.
30950 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
30952         PR target/89455
30953         * config/i386/i386.c (get_builtin_code_for_version): Identify
30954         Westmere from PCLMUL, instead of AES.
30956 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
30958         PR target/89434
30959         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30960         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30961         -UINTVAL (...).
30963 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
30965         PR target/88530
30966         * config/aarch64/aarch64-option-extensions.def: Document it.
30967         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30968         if empty hwcaps.
30970 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
30972         PR c/89520
30973         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30974         builtins if they don't have a single scalar floating point argument.
30975         Formatting fixes.
30977 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30979         PR rtl-optimization/89490
30980         * varasm.c (get_block_for_section): Bail out for mergeable sections.
30981         (default_use_anchors_for_symbol_p, output_object_block): Assert the
30982         block section is not mergeable.
30984 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
30986         PR target/70341
30987         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
30988         old define_insn to ...
30989         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
30990         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30991         Rename old define_insn to ...
30992         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
30993         (thumb2_casesi_internal_pic): New define_expand.  Rename old
30994         define_insn to ...
30995         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
30996         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30997         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30999 2019-02-27  Richard Biener  <rguenther@suse.de>
31001         PR debug/88878
31002         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31004 2019-02-27  Richard Biener  <rguenther@suse.de>
31006         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31007         building.
31009 2019-02-27  Richard Biener  <rguenther@suse.de>
31011         PR debug/88878
31012         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31013         parameter, prefix section name with .gnu.debuglto_ if true.
31014         (dwarf2out_finish): Pass false to output_comdat_type_unit.
31015         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31017 2019-02-27  Richard Biener  <rguenther@suse.de>
31019         PR debug/89514
31020         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31021         rather than on use_debug_types, doing what output_die does.
31022         (value_format): Likewise.
31024 2019-02-27  Martin Jambor  <mjambor@suse.cz>
31025             Martin Sebor  <msebor@redhat.com>
31027         * doc/invoke.texi (Warning Options): Reword description of
31028         -Wno-absolute-value.
31030 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
31032         PR tree-optimization/89280
31033         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31034         builtin_setjmp_setup_bb): New functions.
31035         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31036         When visiting __builtin_setjmp_setup block, queue in special
31037         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31038         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
31039         from visited after the loop if they don't have any visited successor
31040         blocks.
31042 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
31044         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31045         New function.
31046         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31048 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31050         PR c++/89507
31051         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31052         with types other than sizetype/ssizetype.
31054 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31056         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31057         (enum sparc_processor_type): ...this.
31058         (enum sparc_code_model_type): New enumeration type.
31059         (enum sparc_memory_model_type): Tweak comments.
31060         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31061         (mtune): Likewise.
31062         (mcmodel): Use sparc_code_model enumeration and variable.
31063         (sparc_code_model): New enumeration.
31064         (mdebug): Add Undocumented marker.
31065         * config/sparc/sparc.h (enum cmodel): Delete.
31066         (sparc_cmodel): Likewise.
31067         (TARGET_CM_MEDLOW): Adjust to above renaming.
31068         (TARGET_CM_MEDMID): Likewise.
31069         (TARGET_CM_MEDANY): Likewise.
31070         (TARGET_CM_EMBMEDANY): Likewise.
31071         * config/sparc/sparc.c (sparc_cmodel): Delete.
31072         (sparc_option_override): Remove string/value mapping support for the
31073         code model.  Move code and memory model support to after the handling
31074         of target flags.  Do private machine setup last.
31075         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31076         (sparc_legitimize_reload_address): Likewise.
31077         (sparc_output_mi_thunk): Likewise.
31078         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31080 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31082         PR tree-optimization/89500
31083         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31084         (handle_builtin_strlen): Remove noncst_bound variable.  Always
31085         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
31086         cst if the first cst bytes starting at x are known to be non-zero,
31087         even if the string is not zero terminated.  Don't try to modify
31088         *si for strnlen.  Update strlen_to_stridx only for strlen or if
31089         we can prove strnlen returns the same value as strlen would.
31091 2019-02-26  Martin Liska  <mliska@suse.cz>
31093         * alloc-pool.h (struct pool_usage): Remove extra
31094         print_dash_line.
31095         * bitmap.h (struct bitmap_usage): Likewise.
31096         * ggc-common.c (struct ggc_usage): Likewise.
31097         * mem-stats.h (struct mem_usage): Likewise.
31098         (mem_alloc_description::dump): Print dash lines
31099         here and repeat header at the end of a table report.
31100         It's then more readable.
31101         * tree-phinodes.c (phinodes_print_statistics): Make
31102         horizontal alignment.
31103         * tree-ssanames.c (ssanames_print_statistics): Likewise.
31104         * vec.c (struct vec_usage): Remove extra print_dash_line.
31105         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31107 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
31109         * doc/extend.texi (__builtin_object_size):
31110         Use @pxref instead of @xref inside parenthesis.
31111         (__builtin_has_attribute): Add missing comma after @xref.
31112         (__builtin_object_size): Ditto.
31113         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31115 2019-02-26  Jeff Law  <law@redhat.com>
31117         PR rtl-optimization/87761
31118         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31119         detect obviously dead insns and delete them.
31121 2019-02-26  Richard Biener  <rguenther@suse.de>
31123         PR tree-optimization/89505
31124         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31125         to handle restrict pointed-to vars with multiple subvars
31126         correctly.
31128 2019-02-26  Richard Biener  <rguenther@suse.de>
31130         PR tree-optimization/89489
31131         * tree-parloops.c (create_loop_fn): Copy over last_clique.
31133 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31135         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31136         and move around comment.
31137         <BIT_AND_EXPR>: Likewise.
31138         <BIT_NOT_EXPR>: Add specific handling for boolean types.
31140 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
31142         PR target/89474
31143         * config/i386/i386.c (remove_partial_avx_dependency): Call
31144         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31145         after changing possibly many instructions to use that pseudo.  Fix up
31146         insertion of v4sf_const0 setter at the start of bb.
31148 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
31150         PR c/80409
31151         * doc/extend.texi (Variadic Pointer Args): New section.
31153 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
31154             Martin Sebor  <msebor@gmail.com>
31156         * common.opt (Wattribute-alias): Likewise.
31157         * doc/invoke.texi (Option Summary): List general form of
31158         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
31159         (-Wmissing-attributes): Invert entry, rewrite and correct default.
31160         Add cross-references.
31161         (-Wattribute-alias): Rewrite and correct default.  Mention
31162         considered attributes (same as for -Wmissing-attributes).
31164 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
31166         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31167         (_mm_cvtpd_ps): Likewise.
31168         (_mm_cvttpd_epi32): Likewise.
31170         PR target/89338
31171         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31172         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31174         PR target/89339
31175         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31177 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31179         PR target/88530
31180         * common/config/aarch64/aarch64-common.c
31181         (struct aarch64_option_extension): Add is_synthetic.
31182         (all_extensions): Use it.
31183         (TARGET_OPTION_INIT_STRUCT): Define hook.
31184         (struct gcc_targetm_common): Moved to end.
31185         (all_extensions_by_on): New.
31186         (opt_ext_cmp, typedef opt_ext): New.
31187         (aarch64_option_init_struct): New.
31188         (aarch64_contains_opt): New.
31189         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31190         * config/aarch64/aarch64-option-extensions.def
31191         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31192         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31193         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31194         Set is_synthetic to false.
31195         (crypto): Set is_synthetic to true.
31196         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31197         SYNTHETIC.
31199 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31201         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31202         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31203         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31204         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31205         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31206         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31207         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31208         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31209         Rename ...
31210         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31211         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31212         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31213         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31214         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31215         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31216         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31217         vfmlsl_laneq_high_f16): ... To this.
31218         * config/arm/neon.md: Update comments.
31220 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
31222         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31223         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31224         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31225         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31226         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31227         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31228         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31229         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31230         Rename ...
31231         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31232         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31233         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31234         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31235         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31236         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31237         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31238         vfmlslq_laneq_high_f16): ... To this.
31240 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
31242         PR rtl-optimization/86096
31243         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31244         comparing mw_order values.
31246 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
31248         PR target/89434
31249         * config/arm/arm.md (*subsi3_carryin_const): Use
31250         arm_neg_immediate_operand predicate instead of
31251         arm_not_immediate_operand, "L" constraint instead of "K" and
31252         print it using %n2 instead of %B2.
31253         (*subsi3_carryin_const0): New define_insn.
31254         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31255         instead of arm_not_operand and "I" constraint instead of "K" and
31256         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
31257         another match_operand and in the condition check that it is negation
31258         of operands[2].
31259         (*subsi3_carryin_compare_const0): New define_ins.
31260         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31261         *subsi3_carryin_const.
31262         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31263         split into *subsi3_carryin_compare_const0 if the highpart is zero.
31265         PR target/89438
31266         * config/arm.vfp.md (*negdf2_vfp): Use
31267         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31268         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31270 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
31272         PR rtl-optimization/89445
31273         * simplify-rtx.c (simplify_ternary_operation): Don't use
31274         simplify_merge_mask on operands that may trap.
31275         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31276         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
31277         second operand is CONST_VECTOR, check if any element could be zero.
31278         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31279         their operands can trap.
31281 2019-02-23  Martin Sebor  <msebor@redhat.com>
31283         * gimple-ssa-sprintf.c (target_strtol): Rename...
31284         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
31285         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
31286         check for range error.
31288 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
31290         PR driver/69471
31291         * opts-common.c (prune_options): Also prune joined switches
31292         with Negative and RejectNegative.
31293         * config/i386/i386.opt (march=): Add Negative(march=).
31294         (mtune=): Add Negative(mtune=).
31295         * doc/options.texi: Document Negative used together with Joined
31296         and RejectNegative.
31298 2019-02-22  Martin Sebor  <msebor@redhat.com>
31300         * doc/extend.texi (Other Builtins): Add
31301         __builtin_is_constant_evaluated.
31303 2019-02-22  Richard Biener  <rguenther@suse.de>
31305         PR tree-optimization/87609
31306         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31308 2019-02-22  Jeff Law  <law@redhat.com>
31310         PR rtl-optimization/87761
31311         * config/mips/mips.md: Add new combiner pattern to recognize
31312         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31314 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
31316         PR target/89324
31317         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31318         destination register in peepholes generating patterns for ADDS/SUBS.
31319         (add<mode>3_compare0,
31320         *addsi3_compare0_uxtw, add<mode>3_compareC,
31321         add<mode>3_compareV_imm, add<mode>3_compareV,
31322         *adds_<optab><ALLX:mode>_<GPI:mode>,
31323         *subs_<optab><ALLX:mode>_<GPI:mode>,
31324         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31325         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31326         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31327         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31328         sub<mode>3_compare1): Allow stack pointer for source register.
31329         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31331 2019-02-22  Martin Sebor  <msebor@redhat.com>
31333         PR tree-optimization/88993
31334         PR tree-optimization/88853
31335         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31336         New helper.
31337         (sprintf_dom_walker::call_info::is_string_func): New helper.
31338         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31339         for formatted string functions.
31340         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31342 2019-02-22  Martin Sebor  <msebor@redhat.com>
31344         PR c/89425
31345         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31346         unreachable subexpressions.
31348 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
31349             Hongtao Liu  <hongtao.liu@intel.com>
31350             Sunil K Pandey  <sunil.k.pandey@intel.com>
31352         PR target/87007
31353         * config/i386/i386-passes.def: Add
31354         pass_remove_partial_avx_dependency.
31355         * config/i386/i386-protos.h
31356         (make_pass_remove_partial_avx_dependency): New.
31357         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31358         New function.
31359         (pass_data_remove_partial_avx_dependency): New.
31360         (pass_remove_partial_avx_dependency): Likewise.
31361         (make_pass_remove_partial_avx_dependency): Likewise.
31362         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31363         (*extendsfdf2): Add avx_partial_xmm_update.
31364         (truncdfsf2): Likewise.
31365         (*float<SWI48:mode><MODEF:mode>2): Likewise.
31366         (SF/DF conversion splitters): Disabled for TARGET_AVX.
31368 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
31370         PR middle-end/85598
31371         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31372         analysis for pass.
31374 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
31376         PR target/89444
31377         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31378         (PTA_SKYLAKE): Add PTA_AES.
31379         (PTA_GOLDMONT): Likewise.
31381 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
31383         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31384         instruction if enabled.
31385         (aarch64_override_options): Remove reference to return address key.
31387 2019-02-22  Richard Biener  <rguenther@suse.de>
31389         PR tree-optimization/89440
31390         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31391         not necessary assert.
31393 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
31395         PR fortran/72741
31396         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31397         (oacc_replace_fn_attrib_attr): ... this new function.
31398         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31399         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31401 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31403         * config/arm/arm-cpus.in (ares): Rename to...
31404         (neoverse-n1): ... This.  Add ares as alias.
31405         * config/arm/arm-tables.opt: Regenerate.
31406         * config/arm/arm-tune.md: Likewise.
31407         * doc/invoke.txt (ARM Options): Document neoverse-n1.
31409 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31411         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31412         * config/aarch64/aarch64-tune.md: Regenerate.
31413         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31415 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31417         * config/aarch64/aarch64.c (ares_tunings): Rename to...
31418         (neoversen1_tunings): ... This.
31419         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31420         (neoverse-n1): New CPU.
31421         * config/aarch64/aarch64-tune.md: Regenerate.
31422         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31424 2019-02-22  Richard Biener  <rguenther@suse.de>
31426         PR middle-end/87609
31427         * cfghooks.h (dependence_hash): New typedef.
31428         (struct copy_bb_data): New type.
31429         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31430         (duplicate_block): Likewise.
31431         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31432         (copy_bbs): Create and pass down copy_bb_data.
31433         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31434         (rtl_duplicate_bb): Likewise.
31435         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31436         remap dependence info.
31438 2019-02-22  Richard Biener  <rguenther@suse.de>
31440         PR tree-optimization/87609
31441         * tree-core.h (tree_base): Document special clique values.
31442         * tree-inline.c (remap_dependence_clique): Do not use the
31443         special clique value of one.
31444         (maybe_set_dependence_info): Use clique one.
31445         (clear_dependence_clique): New callback.
31446         (compute_dependence_clique): Clear clique one from all refs
31447         before assigning it (again).
31449 2019-02-21  Martin Sebor  <msebor@redhat.com>
31451         * doc/extend.texi (__clear_cache): Correct signature.
31453 2019-02-21  Ian Lance Taylor  <iant@golang.org>
31455         PR go/89170
31456         * varasm.c (decode_addr_const): Call lookup_constant_def rather
31457         than output_constant_def.
31458         (add_constant_to_table): New static function.
31459         (output_constant_def): Call add_constant_to_table.
31460         (tree_output_constant_def): Likewise.
31462 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
31464         PR c++/89285
31465         * builtins.c (fold_builtin_arith_overflow): If first two args are
31466         INTEGER_CSTs, set intres and ovfres to constants rather than calls
31467         to ifn.
31469 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31471         PR target/87412
31472         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31473         error for -mindirect-branch/-mfunction-return with incompatible
31474         -fcf-protection.
31476 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
31478         PR bootstrap/88714
31479         * constraints.md (q): Remove.
31480         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31481         instead of q.
31483 2019-02-21  Martin Jambor  <mjambor@suse.cz>
31485         PR hsa/89302
31486         * omp-general.c (omp_extract_for_data): Removed a duplicate call
31487         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31488         (omp_adjust_for_condition): ...here.  Added necessary parameters.
31489         * omp-general.h (omp_adjust_for_condition): Updated declaration.
31490         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31491         proper values to new parameters of omp_adjust_for_condition.
31493 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31495         PR middle-end/89412
31496         * expr.c (expand_assignment): If result is a MEM, use change_address
31497         instead of simplify_gen_subreg.
31499 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31500             David Malcolm  <dmalcolm@redhat.com>
31502         PR middle-end/89091
31503         * fold-const.c (decode_field_reference): Return NULL_TREE if
31504         lang_hooks.types.type_for_size returns NULL.  Check it before
31505         overwriting *exp_.  Use return NULL_TREE instead of return 0.
31507 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
31509         PR middle-end/88074
31510         PR middle-end/89415
31511         * toplev.c (do_compile): Double the emin/emax exponents to workaround
31512         buggy mpc_norm.
31514 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
31516         PR target/89397
31517         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31518         TARGET_SSE in addition to TARGET_SSE_MATH.
31520         (ix86_excess_precision): Ditto.
31521         (ix86_float_exceptions_rounding_supported_p): Ditto.
31522         (use_rsqrt_p): Ditto.
31523         * config/i386/sse.md (rsqrt<mode>2): Ditto.
31525 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
31527         PR c/89410
31528         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31529         linenum_arith_t when determining if two adjacent line spans are
31530         close enough to merge.
31531         (diagnostic_show_locus): Use linenum_arith_t when iterating over
31532         lines within each line_span.
31534 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31536         PR target/86487
31537         * lra-constraints.c(uses_hard_regs_p): Fix handling of
31538         paradoxical SUBREGS.
31540 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
31542         PR target/88100
31543         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31544         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31545         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31546         range checking it.
31548 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
31550         * config/gcn/gcn.c (print_operand): Fix typo.
31552 2019-02-19  Richard Biener  <rguenther@suse.de>
31554         PR middle-end/88074
31555         * toplev.c (do_compile): Initialize mpfr's exponent range
31556         based on available float modes.
31558 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
31560         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31561         as long as the epilogue isn't completed.
31563 2019-02-18  Martin Sebor  <msebor@redhat.com>
31565         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31566         __has_cpp_attribute, and __has_include.
31568 2019-02-18  Martin Sebor  <msebor@redhat.com>
31570         * doc/invoke.texi (-Wreturn-type): Correct and expand.
31572 2019-02-18  Martin Sebor  <msebor@redhat.com>
31574         PR middle-end/89294
31575         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31576         expression.
31577         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31579 2019-02-18  Richard Biener  <rguenther@suse.de>
31581         PR tree-optimization/89296
31582         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31583         of no-warning flag to cases that might emit the bogus warning.
31585 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
31587         PR bootstrap/88714
31588         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31589         "q" constraint.
31590         * config/arm/vfp.md (*movdi_vfp): Likewise.
31591         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31592         "q" constraint for operands[0].
31594         PR target/89369
31595         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31596         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31597         pattern in a temporary buffer.
31598         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
31599         than 64-operands[2].
31601         PR target/89361
31602         * config/s390/s390.c (s390_indirect_branch_attrvalue,
31603         s390_indirect_branch_settings): Define unconditionally.
31604         (s390_set_current_function): Likewise, but guard the whole body except
31605         the s390_indirect_branch_settings call with
31606         #if S390_USE_TARGET_ATTRIBUTE.
31607         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31609         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31610         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31611         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31612         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31613         HOST_WIDE_INT_1U instead of 1ULL.
31614         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31615         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31616         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31617         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31618         instead of 1UL.
31619         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31620         instead of 1ul.
31622 2019-02-18  Martin Jambor  <mjambor@suse.cz>
31624         PR tree-optimization/89209
31625         * tree-sra.c (create_access_replacement): New optional parameter
31626         reg_tree.  Use it as a type if non-NULL and access type is not of
31627         a register type.
31628         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31629         to create_access_replacement.
31630         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31631         Check lacc is non-NULL before attempting to re-create it on the RHS.
31633 2019-02-18  Martin Liska  <mliska@suse.cz>
31635         PR ipa/89306
31636         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31637         by default.
31638         (symbol_table::free_edge): Recycle m_summary_id.
31639         * cgraph.h (get_summary_id): New.
31640         (symbol_table::release_symbol): Set m_summary_id to -1
31641         by default.
31642         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31643         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31644         function_summary to fast_function_summary.
31645         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31646         * ipa-pure-const.c (class funct_state_summary_t):
31647         Switch from function_summary to fast_function_summary.
31648         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31649         (class ipa_ref_opt_summary_t): Switch from function_summary
31650         to fast_function_summary.
31651         * symbol-summary.h (class function_summary_base): New class
31652         that is created from base of former function_summary.
31653         (function_summary_base::unregister_hooks): New.
31654         (class function_summary): Inherit from function_summary_base.
31655         (class call_summary_base): New class
31656         that is created from base of former call_summary.
31657         (class call_summary): Inherit from call_summary_base.
31658         (struct is_same): New.
31659         (class fast_function_summary): New summary class.
31660         (class fast_call_summary): New summary class.
31661         * vec.h (vec_safe_grow_cleared): New function.
31663 2019-02-18  Martin Liska  <mliska@suse.cz>
31665         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31666         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31667         * doc/tm.texi: Document new target hook.
31668         * doc/tm.texi.in: Likewise.
31669         * target.def: Add new target macro.
31670         * gcc.c (find_fortran_preinclude_file): Do not search multilib
31671         suffixes.
31673 2019-02-17  Alan Modra  <amodra@gmail.com>
31675         PR target/89271
31676         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31677         output reg on add insn.
31678         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
31680 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31682         PR target/89372
31683         * config/i386/sse.md (ssedoublemode): Remove V4HI.
31684         (PMULHRSW): Likewise.
31685         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31686         TARGET_AVX2.
31687         (ssse3_pmulhrswv4hi3): New expander.
31689 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31691         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31692         MMX.  Add isa attribute.
31694 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
31696         PR rtl-optimization/66152
31697         * builtins.h (c_readstr): Declare.
31698         * builtins.c (c_readstr): Remove forward declaration.  Add
31699         null_terminated_p argument, if false, read all bytes from the
31700         string instead of stopping after '\0'.
31701         * expr.c (string_cst_read_str): New function.
31702         (store_expr): Use string_cst_read_str instead of
31703         builtin_strncpy_read_str.  Try to store by pieces the whole
31704         exp_len first, and only if that fails, split it up into
31705         store by pieces followed by clear_storage.  Formatting fix.
31707         * config/i386/i386.md (*movqi_internal): Remove static from
31708         buf variable.  Use output_asm_insn (buf, operands); return "";
31709         instead of return buf;.
31710         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31711         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31712         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31714 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
31716         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31717         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31718         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31719         (CC1_SPEC): Likewise.
31720         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31722 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
31724         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31725         the base address on 64-bit strict-alignment platforms.
31727 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
31729         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31731 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
31733         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31735 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
31737         PR rtl-optimization/88308
31738         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31739         on copied instruction.
31741 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
31743         * final.c (insn_current_reference_address): Replace test on JUMP_P
31744         with test on jump_to_label_p.
31745         * config/visium/visium-passes.def: New file.
31746         * config/visium/t-visium (PASSES_EXTRA): Define.
31747         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31748         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31749         (TRAMPOLINE_ALIGNMENT): Define.
31750         * config/visium/visium.c (visium_option_override): Do not register
31751         the machine-specific reorg pass here.
31752         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31753         for the GR6.
31754         (output_branch): Adjust threshold for long branch instruction.
31755         * config/visium/visium.md (cpu): Move around.
31756         (length): Adjust for the GR6.
31758 2019-02-15  Richard Biener  <rguenther@suse.de>
31759             Jakub Jelinek  <jakub@redhat.com>
31761         PR tree-optimization/89278
31762         * tree-loop-distribution.c: Include tree-eh.h.
31763         (generate_memset_builtin, generate_memcpy_builtin): Call
31764         rewrite_to_non_trapping_overflow on builtin->size before passing it
31765         to force_gimple_operand_gsi.
31767 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
31769         PR other/89342
31770         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31771         optimize_debug.
31772         * opth-gen.awk: Likewise.
31774 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
31776         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31777         Enable MMX, SSE and SSE2 by default.
31778         * config/i386/i386.c (ix86_option_override_internal): Do not
31779         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31781 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
31783         PR rtl-optimization/89354
31784         * combine.c (make_extraction): Punt if extraction_mode is narrower
31785         than len bits.
31787 2019-02-14  Maya Rashish  <coypu@sdf.org>
31789         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31790         * config/netbsd-d.c: New file.
31791         * config/t-netbsd: Add netbsd-d.o
31793 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
31795         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31796         affects_type_identity to true for aarch64_vector_pcs.
31797         (aarch64_comp_type_attributes): New function.
31798         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31800 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
31802         PR target/88850
31803         * config/arm/iterators.md (ANY64): Add V4HF.
31805 2019-02-14  Martin Liska  <mliska@suse.cz>
31807         PR rtl-optimization/89242
31808         * dce.c (delete_unmarked_insns): Call free_dominance_info we
31809         process a transformation.
31811 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
31813         PR tree-optimization/89314
31814         * fold-const.c (fold_binary_loc): Cast strlen argument to
31815         const char * before dereferencing it.  Formatting fixes.
31817         PR middle-end/89284
31818         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31820 2019-02-13  Ian Lance Taylor  <iant@golang.org>
31822         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31823         and set current index for other optimizations.
31825 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
31827         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31828         nonimmediate_operand as operand 2 predicate.
31829         (vec_set<VF2_512_256:mode>_0): Ditto.
31830         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31831         (*vec_concatv2si): Remove alternative 2.
31832         (*vec_concatv4si_0): Use vm constraint for alternative 0.
31833         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31834         (vec_concatv2di): Split alternatives 4,5,6 to ...
31835         (*vec_concatv2di_0) ... new pattern.
31837 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
31839         PR target/89190
31840         * config/arm/arm.c (ldm_stm_operation_p) Set
31841         addr_reg_in_reglist correctly for first register.
31842         (load_multiple_sequence): Remove dead base check.
31843         (gen_ldm_seq): Correctly set write_back for Thumb-1.
31845 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
31847         PR target/88847
31848         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31849         Expose as @aarch64_pred_mov.
31850         * config/aarch64/aarch64.c (aarch64_classify_address):
31851         Use expand_insn which legitimizes operands.
31853 2019-02-13  Martin Liska  <mliska@suse.cz>
31855         * builtins.h (expand_builtin_with_bounds): Remove declaration.
31856         * calls.c (struct arg_data): Remove special_slot, pointer_arg
31857         and pointer_offset fields.
31858         (initialize_argument_information): Remove usage of dead
31859         fields.
31860         * cgraph.h (struct cgraph_thunk_info): Remove
31861         add_pointer_bounds_args.
31862         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31863         fields.
31864         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31865         fields.
31866         * config/i386/i386.c (ix86_function_arg_advance): Remove
31867         unrelated comment.
31868         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31869         (def_builtin): Remove usage of dead fields.
31870         (ix86_add_new_builtins): Likewise.
31871         * ipa-fnsummary.c (compute_fn_summary): Likewise.
31872         * ipa-icf.c (sem_function::equals_wpa): Likewise.
31873         (sem_function::init): Likewise.
31874         (sem_variable::merge): Likewise.
31875         * ipa-visibility.c (function_and_variable_visibility): Likewise.
31876         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31877         * lto-cgraph.c (lto_output_node): Likewise.
31878         (lto_output_varpool_node): Likewise.
31879         (input_node): Likewise.
31880         (input_varpool_node): Likewise.
31881         * lto-streamer-out.c (lto_output): Likewise.
31882         * tree-inline.c (expand_call_inline): Remove usage of
31883         assign_stmts.
31884         * tree-inline.h (struct copy_body_data): Likewise.
31885         * varpool.c (varpool_node::dump): Likewise.
31887 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
31889         PR middle-end/89303
31890         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31891         into pt->vars_contains_escaped_heap instead of setting
31892         pt->vars_contains_escaped_heap to it.
31894         PR middle-end/89281
31895         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31896         INTVAL (size), compare it to GET_MODE_MASK instead of
31897         1 << GET_MODE_BITSIZE.
31899         PR target/89290
31900         * config/i386/predicates.md (x86_64_immediate_operand): Allow
31901         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31902         -mcmodel=large.
31904 2019-02-13  Martin Liska  <mliska@suse.cz>
31906         PR lto/88858
31907         * cfgrtl.c (remove_barriers_from_footer): New function.
31908         (try_redirect_by_replacing_jump): Use it.
31909         (cfg_layout_redirect_edge_and_branch): Likewise.
31911 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
31913         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31914         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31915         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31916         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31917         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31918         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31919         New BU_CRYPTO_2.
31920         * config/rs6000/rs6000.c (builtin_function_type)
31921         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31922         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31923         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31924         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31925         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31927 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
31929         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31930         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31932 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31934         PR target/89229
31935         * config/i386/i386.md (*movoi_internal_avx): Revert revision
31936         268678 and revision 268657.
31937         (*movti_internal): Likewise.
31939 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
31941         PR target/89233
31942         * config/s390/s390.c (s390_decompose_address): Update comment.
31943         (s390_check_qrst_address): Reject invalid address forms after
31944         LRA.
31946 2019-02-12  Martin Liska  <mliska@suse.cz>
31948         PR lto/88876
31949         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31950         we need default values of funct_state for a function that
31951         is not optimized.
31953 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
31955         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31956         the object to pick the size of stores on strict-alignment platforms.
31958         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31959         (*movdi_insn_sp32): Likewise.
31960         (*movdi_insn_sp64): Likewise.
31962 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
31964         PR lto/88677
31965         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31966         types that needs constructiong.
31967         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31969 2019-02-12  Richard Biener  <rguenther@suse.de>
31971         PR tree-optimization/89253
31972         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31973         duplicate the loop.
31975 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
31977         PR lto/88147
31978         * input.c (selftest::test_line_offset_overflow): New selftest.
31979         (selftest::input_c_tests): Call it.
31981 2019-02-11  Martin Sebor  <msebor@redhat.com>
31983         PR tree-optimization/88771
31984         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31985         when -Wstringop-overflow is set.
31986         (builtin_memref::builtin_memref): Adjust excessive upper bound
31987         only when lower bound is not excessive.
31988         (maybe_diag_overlap): Detect and diagnose excessive bounds via
31989         -Wstringop-ovefflow.
31990         (maybe_diag_offset_bounds): Rename...
31991         (maybe_diag_access_bounds): ...to this.
31992         (check_bounds_or_overlap): Adjust for name change above.
31994 2019-02-11  Martin Sebor  <msebor@redhat.com>
31996         PR c++/87996
31997         * builtins.c (max_object_size): Move from here...
31998         * builtins.h (max_object_size): ...and here...
31999         * tree.c (max_object_size): ...to here...
32000         * tree.h (max_object_size): ...and here.
32002 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
32004         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32005         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32006         for correct semantics.
32008 2019-02-11  Alan Modra  <amodra@gmail.com>
32010         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32011         -mlongcall and -mpltseq.
32012         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32013         (RS/6000 and PowerPC Options <-mpltseq>): Document.
32014         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32015         * config/rs6000/sysv4.opt (mpltseq): New option.
32016         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32017         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32018         support is lacking.  Don't allow -mpltseq with -mbss-plt.
32019         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32020         -mpltseq given for ELFv1.
32021         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32022         Only use UNSPEC_PLTSEQ for inline PLT calls.
32023         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
32024         use UNSPEC_PLTSEQ for inline PLT calls.
32025         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32026         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32027         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32028         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32029         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32030         (pltseq_mtctr_<mode>): Likewise.
32032 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32034         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32035         Solaris ld.
32036         * configure: Regenerate.
32038 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
32040         PR bootstrap/88714
32041         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32042         instead of r.
32044 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
32046         * function.c (assign_parm_setup_block): Use the stored
32047         size, not the passed size, when allocating stack-space,
32048         also for a parameter with alignment larger than
32049         MAX_SUPPORTED_STACK_ALIGNMENT.
32051 2019-02-11  Martin Liska  <mliska@suse.cz>
32053         PR ipa/89009
32054         * ipa-cp.c (build_toporder_info): Remove usage of a param.
32055         * ipa-inline.c (inline_small_functions): Likewise.
32056         * ipa-pure-const.c (propagate_pure_const): Likewise.
32057         (propagate_nothrow): Likewise.
32058         * ipa-reference.c (propagate): Likewise.
32059         * ipa-utils.c (struct searchc_env): Remove unused field.
32060         (searchc): Always search across AVAIL_INTERPOSABLE.
32061         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32062         the only called IPA pure const can properly not propagate
32063         across interposable boundary.
32064         * ipa-utils.h (ipa_reduced_postorder): Remove param.
32066 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
32068         * config/nds32/nds32.md (call_internal, call_value_internal,
32069         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32071 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
32073         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32074         typo.
32076 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
32078         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32079         in comments
32081 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32083         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32085 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
32087         PR tree-optimization/89268
32088         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32089         if preds is non-NULL.
32091 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32093         PR lto/89272
32094         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32095         polymorphic types.
32097 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
32099         * config/nds32/nds32.md (trap): New pattern.
32101 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
32103         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32104         dwarf span.
32106 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32108         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32109         to split POST_INC.
32111 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32113         * ipa-visibility.c (localize_node): Also do not localize
32114         LDPR_PREVAILING_DEF_IRONLY_EXP.
32116 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32118         PR lto/87957
32119         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32120         instead of type_with_linkage.
32122 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
32124         PR ipa/88755
32125         * params.def (uninlined-function-insns, uninlined-function-time,
32126         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32127         bound so we don't get overflows.
32129 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
32131         * config/rs6000/rs6000-string.c (expand_compare_loop,
32132         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32133         memcmp/strncmp.
32135 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
32137         PR middle-end/89246
32138         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32139         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32140         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32142 2019-02-09  Alan Modra  <amodra@gmail.com>
32144         PR target/88343
32145         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32146         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
32147         setup.
32149 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
32151         PR middle-end/88560
32152         * lra-constraints.c (process_alt_operands): Don't increase reject
32153         for memory when offset memory is required.
32155 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
32157         * config/s390/vector.md: Implement vector copysign.
32159 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
32161         * expr.c (expand_constructor): Correct indentations.
32163 2019-02-08  Richard Biener  <rguenther@suse.de>
32165         PR tree-optimization/89247
32166         * tree-if-conv.c: Include tree-cfgcleanup.h.
32167         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32168         (tree_if_conversion): Pass through predicate vector.
32169         (pass_if_conversion::execute): Do CFG cleanup and SSA update
32170         inline, see if any if-converted loops we refrece in
32171         LOOP_VECTORIZED calls vanished and fixup.
32172         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32174 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
32176         * config/s390/constraints.md (jdd): New constraint.
32178 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
32180         PR target/89229
32181         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32182         upper 16 vector registers without TARGET_AVX512VL.
32183         (*movti_internal): Likewise.
32185 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
32187         PR rtl-optimization/89234
32188         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32189         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32190         (copy_reg_eh_region_note_backward): Likewise.
32192 2019-02-08  Richard Biener  <rguenther@suse.de>
32194         PR middle-end/89223
32195         * tree-data-ref.c (initialize_matrix_A): Fail if constant
32196         doesn't fit in HWI.
32197         (analyze_subscript_affine_affine): Handle failure from
32198         initialize_matrix_A.
32200 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
32202         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32203         cfun everywhere.
32205 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
32207         PR tree-optimization/86637
32208         PR tree-optimization/89235
32209         * tree-vect-loop.c (optimize_mask_stores): Add an
32210         auto_purge_vect_location sentinel to ensure that vect_location is
32211         purged on exit.
32212         * tree-vectorizer.c
32213         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32214         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32215         to ensure that vect_location is purged on exit.
32216         (pass_slp_vectorize::execute): Likewise, replacing the manual
32217         reset.
32218         * tree-vectorizer.h (class auto_purge_vect_location): New class.
32220 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32222         * config/aarch64/iterators.md (max_opp): New code_attr.
32223         (USMAX): New code iterator.
32224         * config/aarch64/predicates.md (aarch64_smin): New predicate.
32225         (aarch64_smax): Likewise.
32226         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32227         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32228         MINUS (MAX MIN).
32230 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
32232         PR target/89229
32233         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32234         for TARGET_AVX512VL.
32235         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32237 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
32239         * config/s390/s390-builtin-types.def: Add new types.
32240         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32241         (s390_vec_xlw4): Make the memory operand into a const pointer.
32242         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32243         float.
32244         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32245         a new vector type with the alignment of the scalar memory operand.
32247 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
32248             Jakub Jelinek  <jakub@redhat.com>
32250         PR bootstrap/88714
32251         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32252         arm_count_ldrdstrd_insns): New declarations.
32253         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32254         MINUS.
32255         (valid_operands_ldrd_strd): New function.
32256         (arm_count_ldrdstrd_insns): New function.
32257         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32258         sets instead of single DImode set and define new insns to match this.
32260 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
32262         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32263         Make it a C initializer.
32265 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
32267         PR/target 88850
32268         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32270 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32272         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32273         Use neon_dot<q> for type.
32274         (neon_<sup>dot_lane<vsi2qi>): Likewise.
32276 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32278         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32279         Use neon_dot<q> for type.
32280         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32281         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32283 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
32285         PR rtl-optimization/89225
32286         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32287         sizes check.
32289 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
32291         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32292         after restoring registers saved to allocate the frame on Windows.
32294 2019-02-06  Richard Biener  <rguenther@suse.de>
32296         PR tree-optimization/89182
32297         * graphite.h (cached_scalar_evolution_in_region): Declare.
32298         * graphite.c (struct seir_cache_key): New.
32299         (struct sese_scev_hash): Likewise.
32300         (seir_cache): New global.
32301         (cached_scalar_evolution_in_region): New function.
32302         (graphite_transform_loops): Allocate and release seir_cache.
32303         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32304         cached_scalar_evolution_in_region.
32305         * graphite-scop-detection.c (scop_detection::can_represent_loop):
32306         Simplify.
32307         (scop_detection::graphite_can_represent_expr: Use
32308         cached_scalar_evolution_in_region.
32309         (scop_detection::stmt_simple_for_scop_p): Likewise.
32310         (find_params_in_bb): Likewise.
32311         (gather_bbs::before_dom_children): Likewise.
32312         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32313         (add_loop_constraints): Likewise.
32315 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
32317         PR middle-end/89210
32318         * fold-const-call.c (fold_const_vec_convert): Pass true as last
32319         operand to new_unary_operation only if both element types are integral
32320         and it isn't a widening conversion.  Return NULL_TREE if
32321         new_unary_operation failed.
32323 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
32325         PR target/88856
32326         * config/s390/s390.md: Remove load and test FP splitter.
32328 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
32330         PR target/89112
32331         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32332         expand_compare_loop, expand_block_compare_gpr,
32333         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32334         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32335         #include "profile-count.h" and "predict.h" for types and functions
32336         needed to work with REG_BR_PROB notes.
32338 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
32340         PR target/89112
32341         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32342         for the long branch case.
32344 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
32346         PR target/89188
32347         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32348         can throw, non-call exceptions are enabled and we can't delete
32349         dead exceptions or alter cfg.  Set must_clean if
32350         delete_insn_and_edges returns true, don't set it blindly for calls.
32351         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32353         PR rtl-optimization/89195
32354         * combine.c (make_extraction): For MEMs, don't extract bytes outside
32355         of the original MEM.
32357 2019-02-05  Martin Liska  <mliska@suse.cz>
32359         PR gcov-profile/89000
32360         * gcov.c (function_summary): Remove argument.
32361         (file_summary): New function.
32362         (print_usage): Replace tabs with spaces.
32363         (generate_results): Use new function file_summary.
32365 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
32367         PR target/89186
32368         * optabs.c (prepare_cmp_insn): Pass x and y to
32369         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32371 2019-02-05  Richard Biener  <rguenther@suse.de>
32373         PR middle-end/89150
32374         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32375         (struct bitmap_element): Drop chain_prev so we properly recurse on
32376         the prev member, supporting tree views.
32377         (struct bitmap_head): GTY skip the obstack member.
32379 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
32381         PR c/88698
32382         * doc/extend.texi (Vector Extensions): Add an example of using vector
32383         types together with x86 intrinsics.
32385 2019-02-04  Alan Modra  <amodra@gmail.com>
32387         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32388         str[] size to 160, and comment.
32390 2019-02-04  Alan Modra  <amodra@gmail.com>
32392         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32393         (rs6000_pltseq_template): Guard output of TLS markers with
32394         TARGET_TLS_MARKERS.
32395         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32396         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32397         to use inline PLT sequences.
32398         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32399         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32400         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32402 2019-02-04  Martin Liska  <mliska@suse.cz>
32404         PR ipa/88985
32405         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32406         out when ipa_fn_summaries does not contain entry for callee.
32408 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
32410         * config/sparc/sparc.h: Remove superfluous blank lines.
32411         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32412         (got_register_rtx): ...this.
32413         (sparc_got): Adjust to above renaming.
32414         (sparc_tls_got): Likewise.
32415         (sparc_delegitimize_address): Likewise.
32416         (sparc_output_mi_thunk): Likewise.
32417         (sparc_init_pic_reg): Likewise.
32418         (save_local_or_in_reg_p): Fix test on the GOT register.
32419         (USE_HIDDEN_LINKONCE): Move around.
32420         (get_pc_thunk_name): Likewise.
32421         (gen_load_pcrel_sym): Likewise.
32422         (load_got_register): Likewise.
32424 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
32426         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32427         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32429 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
32431         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32432         into consideration.
32434 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
32436         * config.gcc (with_nds32_lib, glibc):
32437         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32438         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32439         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32441 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
32443         PR target/89071
32444         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32445         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32446         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32447         (*rcpsf2_sse): Ditto.
32448         (*rsqrtsf2_sse): Ditto.
32449         (sse4_1_round<mode<2): Ditto.
32451 2019-02-03  Richard Biener  <rguenther@suse.de>
32453         PR debug/87295
32454         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32455         orig.
32457 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
32459         PR middle-end/87887
32460         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32461         Punt with warning on aggregate return or argument types.  Ignore
32462         type/mode checking for uniform arguments.
32464 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
32466         * combine.c (try_combine): Do not print "Can't combine" messages unless
32467         printing failed combination attempts.
32469 2019-02-01  Martin Jambor  <mjambor@suse.cz>
32471         PR hsa/87863
32472         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32473         segment and global segment variables before making them static.
32475 2019-02-01  Martin Jambor  <mjambor@suse.cz>
32477         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32478         missed optimization dump with dump_enabled_p.
32480 2019-02-01  Richard Biener  <rguenther@suse.de>
32482         PR middle-end/88597
32483         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32484         the instantiate cache.
32485         (instantiate_scev_binary): Elide second operand procesing
32486         if equal to the first.
32487         * tree-chrec.c (chrec_contains_symbols): Add visited set.
32488         (chrec_contains_undetermined): Likewise.
32489         (tree_contains_chrecs): Likewise.
32491 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
32493         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32495 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
32497         PR tree-optimization/89143
32498         * wide-int-range.h (wide_int_range_absu): Declare.
32499         * wide-int-range.cc (wide_int_range_absu): New function.
32500         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32502         PR tree-optimization/88107
32503         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32504         instead of assertion that eh_region_outermost is non-NULL, if it
32505         is NULL, set *ALL to true and return NULL.
32506         (move_sese_region_to_fn): Adjust caller, if all is set, call
32507         duplicate_eh_regions with NULL region.
32509 2019-02-01  Richard Biener  <rguenth@suse.de>
32511         PR rtl-optimization/88593
32512         * mode-switching.c (optimize_mode_switching): Free dominators before
32513         calling cleanup_cfg.
32515 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
32517         PR tree-optimization/88932
32518         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32520 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
32522         PR middle-end/89137
32523         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32524         bogus clang warning.
32526 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
32528         PR target/89071
32529         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32530         alternative to avoid partial SSE register stall for TARGET_AVX.
32531         (truncdfsf2): Ditto.
32532         (sse4_1_round<mode>2): Ditto.
32534 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
32536         PR tree-optimization/89008
32537         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32538         process anything of the form X * 0.
32540 2019-01-31  Richard Biener  <rguenther@suse.de>
32542         PR tree-optimization/89135
32543         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32544         with abnormal preds.
32546 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
32548         PR sanitizer/89124
32549         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32550         always_inline callees into no_sanitize_address callers.
32552 2019-01-31  Richard Biener  <rguenther@suse.de>
32554         PR rtl-optimization/89115
32555         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32557 2019-01-30  Martin Sebor  <msebor@redhat.com>
32559         PR other/89106
32560         * doc/extend.texi (cast to a union): Correct and expand.
32562 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32564         PR rtl-optimization/87246
32565         * lra-constraints.c (simplify_operand_subreg): Reload memory
32566         in subreg if the address became invalid.
32568 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
32570         PR target/87064
32571         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32572         Disable for little-endian.
32574 2019-01-30  Richard Biener  <rguenther@suse.de>
32576         PR rtl-optimization/89115
32577         * opts.c (default_options_optimization): Reduce
32578         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32579         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32580         to the default.
32582 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
32584         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32585         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
32586         type of vector element when vec_extract is implemented by direct
32587         move.
32589 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
32591         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32593 2019-01-30  Richard Biener  <rguenther@suse.de>
32595         PR tree-optimization/89111
32596         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32597         canonicalization to appropriately sized access types.
32599 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
32601         PR c++/89105
32602         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32603         for arguments to functions that are TU-local and shouldn't be
32604         referenced by assembly.
32606 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
32608         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32609         after '='.
32611 2019-01-29  Martin Sebor  <msebor@redhat.com>
32613         PR c/88956
32614         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32616 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
32618         PR c++/66676
32619         PR ipa/89104
32620         * omp-simd-clone.c (simd_clone_clauses_extract)
32621         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32622         OMP_CLAUSE_ALIGNED_ALIGNMENT.
32624 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
32626         * config.gcc: Force .init_array for ARC.
32628 2019-01-29  Richard Biener  <rguenther@suse.de>
32630         PR debug/87295
32631         * dwarf2out.c (collect_skeleton_dies): New helper.
32632         (copy_decls_for_unworthy_types): Call it.
32633         (build_abbrev_table): Assert we do not try to replace
32634         DW_AT_signature refs with local refs.
32636 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
32638         PR middle-end/89002
32639         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32640         for lastprivate/linear IV, push gimplify context around gimplify_assign
32641         and, if it needed any temporaries, pop it into a gimple bind around the
32642         sequence.
32644 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32646         * common.opt (-Wattribute-alias): Remove "no-" from name.
32647         Make -Wattribute-alias command line option and
32648         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32650 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
32652         PR target/89073
32653         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32654         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32655         x86 ISA options.
32656         (bmi2): Add missing @opindex.
32657         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32658         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
32659         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32660         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32661         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32662         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32663         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32664         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32665         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32666         xsavec, xsaveopt and xsaves options.
32668 2019-01-28  Richard Biener  <rguenther@suse.de>
32670         PR debug/89076
32671         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32672         support removal.
32674 2019-01-28  Richard Biener  <rguenther@suse.de>
32676         PR tree-optimization/88739
32677         * tree-cfg.c (verify_types_in_gimple_reference): Verify
32678         BIT_FIELD_REFs only are applied to mode-precision operands
32679         when they are integral.
32680         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32681         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32682         BIT_FIELD_REFs of non-mode-precision integral operands.
32684 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
32686         PR target/87214
32687         * config/i386/sse.md
32688         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32689         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32690         first constants in pairs are multiples of 2.  Formatting fixes.
32691         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32692         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32693         first constants in each quadruple are multiples of 4.  Formatting fixes.
32695 2019-01-26  Martin Jambor  <mjambor@suse.cz>
32697         PR ipa/88933
32698         * tree-inline.c: Include tree-cfgcleanup.h.
32699         (delete_unreachable_blocks_update_callgraph): Move...
32700         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32701         ...here, make externally visible, make second argument bool, adjust
32702         all callers.
32703         * tree-cfgcleanup.c: Include cgraph.h.
32704         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32705         Declare.
32706         * ipa-prop.c: Include tree-cfgcleanup.h.
32707         (ipcp_transform_function): Call
32708         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32710 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
32712         PR rtl-optimization/88846
32713         * ira.c (process_set_for_memref_referenced_p): New.
32714         (memref_referenced_p): Add new param.  Use
32715         process_set_for_memref_referenced_p.  Add new switch cases.
32716         (memref_used_between_p): Pass new arg to memref_referenced_p.
32718 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
32720         PR target/88469
32721         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32722         argument ABI_BREAK.  Set to true if the calculated alignment has
32723         changed in gcc-9.  Check bit-fields for their base type alignment.
32724         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32725         (aarch64_function_arg_boundary): Likewise.
32726         (aarch64_gimplify_va_arg_expr): Likewise.
32728 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
32730         PR middle-end/89037
32731         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32732         instead of accessing TREE_INT_CST_ELT directly.
32734 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
32736         * doc/sourcebuild.texi (Environment attributes): Add fenv and
32737         fenv_exceptions description.
32739 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
32741         PR rtl-optimization/87763
32742         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32743         Allow SUBREG when matching CC_NZmode compare.
32745 2019-01-25  Richard Biener  <rguenther@suse.de>
32747         PR tree-optimization/89049
32748         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32749         Look at the pattern stmt to determine if the stmt is vectorized.
32751 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
32753         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32754         (pred_mov<mode>): Handle all-register forms using both a new
32755         alternative and a split.
32757 2019-01-25  Richard Biener  <rguenther@suse.de>
32759         PR tree-optimization/86865
32760         * graphite-scop-detection.c (scop_detection::can_represent_loop):
32761         Reject non-do-while loops.
32763 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
32765         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32766         * config/rs6000/constraints.md (Q constraint): Use REG_P.
32767         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32768         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32769         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32770         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32771         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32772         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32773         vlogical_operand, gpc_reg_operand, int_reg_operand,
32774         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32775         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32776         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32777         (save_world_operation, restore_world_operation, lmw_operation,
32778         stmw_operation): Use MEM_P and REG_P.
32779         (tie_operand): Use MEM_P.
32780         (vrsave_operation, crsave_operation): Use REG_P.
32781         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32782         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32783         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32784         (call_operand): Use HARD_REGISTER_P.
32785         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32786         Use CONST_INT_P.
32787         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32788         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32789         quad_aligned_load_p, replace_swapped_aligned_store,
32790         recombine_lvx_pattern, replace_swapped_aligned_load,
32791         recombine_stvx_pattern): Use MEM_P.
32792         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32793         Use MEM_P and SYMBOL_REF_P.
32794         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32795         (insn_is_swappable_p): Use REG_P and MEM_P.
32796         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32797         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32798         Use CONST_INT_P.
32799         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32800         Use CONST_DOUBLE_P.
32801         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32802         CONST_WIDE_INT_P.
32803         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32804         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32805         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32806         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32807         reg_or_subregno:
32808         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32809         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32810         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32811         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32812         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32813         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32814         rs6000_split_logical_di): Use CONST_INT_P.
32815         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32816         REG_P and SYMBOL_REF_P.
32817         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32818         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32819         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32820         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32821         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32822         (small_data_operand, print_operand_address): Use CONST_INT_P and
32823         SYMBOL_REF_P.
32824         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32825         (rs6000_init_hard_regno_mode_ok, direct_move_p):
32826         Use HARD_REGISTER_NUM_P.
32827         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32828         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32829         SUBREG_P and SYMBOL_REF_P.
32830         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32831         and HARD_REGISTER_NUM_P.
32832         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32833         reg_or_subregno.
32834         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32835         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32836         MEM_P and REG_P.
32837         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32838         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32839         find_addr_reg): Use REG_P.
32840         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32841         (rs6000_emit_le_vsx_move): Use SUBREG_P.
32842         (offsettable_ok_by_alignment, constant_pool_expr_p,
32843         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32844         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32845         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32846         rs6000_assemble_integer, create_TOC_reference,
32847         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32848         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32849         (rs6000_split_vec_extract_var): Use reg_or_subregno.
32850         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32851         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32852         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32853         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32854         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32855         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32856         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32857         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32858         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32859         and cbranch<mode>4): Use CONST_INT_P.
32860         (multiple define_splits): Use REG_P and SUBREG_P.
32861         (define_expands call, call_value): Use MEM_P.
32862         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
32863         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32864         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32865         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32866         and HARD_REGISTER_NUM_P.
32867         (multiple define_splits): Use HARD_REGISTER_NUM_P.
32869 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
32871         PR rtl-optimization/88948
32872         * rtl.h (prepare_copy_insn): New prototype.
32873         * gcse.c (prepare_copy_insn): New function, split out from
32874         process_insert_insn.
32875         (process_insert_insn): Use prepare_copy_insn.
32876         * store-motion.c (replace_store_insn): Use prepare_copy_insn
32877         instead of gen_move_insn.
32879 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
32881         PR debug/89006
32882         * config/i386/i386.c (ix86_pic_register_p): Return true for
32883         UNSPEC_SET_GOT too.
32885         PR tree-optimization/88964
32886         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32887         punt if HONOR_SNANS (chrec).
32889         PR middle-end/89015
32890         * tree-nested.c (convert_nonlocal_reference_stmt,
32891         convert_local_reference_stmt, convert_tramp_reference_stmt,
32892         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32893         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32894         or GIMPLE_OMP_TASK.
32896         PR tree-optimization/89027
32897         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32898         for "omp simd array" variables.
32900 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
32902         PR target/88469
32903         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32904         force the alignment of m_val.
32906 2019-01-24  Richard Biener  <rguenther@suse.de>
32908         PR lto/87187
32909         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32910         When in "legacy" debug mode make sure to reset self-origins.
32912 2019-01-24  Martin Liska  <mliska@suse.cz>
32914         PR gcov-profile/88994
32915         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32916         result will be always smaller or equal to the original.
32917         * gcov.c (mangle_name): Fix else branch where we should
32918         also copy to PTR and shift the pointer.
32920 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
32922         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32923         * vr-values.c (find_case_label_ranges): Fix a comment typo.
32925 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
32927         * common/config/i386/i386-common.c
32928         (OPTION_MASK_ISA_ENQCMD_SET,
32929         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32930         (ix86_handle_option): Handle -menqcmd.
32931         * config.gcc (enqcmdintrin.h): New header file.
32932         * config/i386/cpuid.h (bit_ENQCMD): New bit.
32933         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32934         -menqcmd.
32935         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32936         function type.
32937         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32938         __builtin_ia32_enqcmds): New builtins.
32939         * config/i386/i386-c.c (__ENQCMD__): New macro.
32940         * config/i386/i386-option.c (ix86_target_string): Add
32941         -menqcmd.
32942         (ix86_valid_target_attribute_inner_p): Likewise.
32943         * config/i386/i386-expand.c
32944         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32945         IX86_BUILTIN_ENQCMDS.
32946         * config/i386/i386.h (TARGET_ENQCMD): New.
32947         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32948         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32949         (movdir64b_<mode>): Parameterize to enable share expansion code
32950         with ENQCMD in function ix86_expand_builtin.
32951         * config/i386/i386.opt: Add -menqcmd.
32952         * config/i386/immintrin.h: Include enqcmdintrin.h.
32953         * config/i386/enqcmdintrin.h: New intrinsic file.
32954         * doc/invoke.texi: Add -menqcmd.
32956 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
32957             Steve Ellcey  <sellcey@marvell.com>
32959         PR target/85711
32960         * recog.c (address_operand): Return false on wrong mode for address.
32961         (constrain_operands): Check for mode with 'p' constraint.
32963 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
32965         PR target/88998
32966         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32967         Disparage MMX alternative.
32968         (sse2_cvtpd2pi): Ditto.
32969         (sse2_cvttpd2pi): Ditto.
32971 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
32973         PR driver/89014
32974         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32975         use-after-free of the result of
32976         aarch64_get_extension_string_for_isa_flags.
32978 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
32980         PR c/44715
32981         * doc/extend.texi: Document break and continue behavior in
32982         statement expressions.
32984 2019-01-23  Richard Biener  <rguenther@suse.de>
32986         PR tree-optimization/89008
32987         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32988         not leave another stray operand.
32990 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
32992         * BASE-VER: Bump to 9.0.1.
32994 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
32996         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32997         thunk that returns by reference, use the type of the return object
32998         of the thunk instead of that of the alias to build the dereference.
33000 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
33002         * config/arc/atomic.md: Add operand to DMB instruction.
33004 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
33006         PR tree-optimization/88964
33007         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33008         build_zero_cst instead of build_int_cst.  Return false for loop
33009         invariants which honor signed zeros.
33011 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
33013         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33015 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
33017         PR target/88965
33018         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33019         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33020         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33022         PR middle-end/88968
33023         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33024         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33026         PR target/87064
33027         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33028         Disable for little endian.
33030 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
33032         PR target/88469
33033         * config/arm/arm.c (arm_needs_double_word_align): Check
33034         DECL_BIT_FIELD_TYPE.
33036 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
33037             H.J. Lu  <hongjiu.lu@intel.com>
33039         PR target/88909
33040         * config/i386/i386-builtin.def: Add mask2 to all builtin
33041         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33042         SPECIAL_ARGS.
33043         * config/i386/i386.c (BDESC): Add mask2 to the definition.
33044         (BDESC_FIRST): Likewise.
33045         (define_builtin): Add an argument for mask2.  Updated to handle
33046         both ix86_isa_flags and ix86_isa_flags2.
33047         (define_builtin_const): Likewise.
33048         (define_builtin_pure): Likewise.
33049         (define_builtin2): Deleted.
33050         (define_builtin_const2): Likewise.
33051         (builtin_description): Add a member, mask2.
33052         (bdesc_*): Add mask2 to builtin initializations.
33053         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33054         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
33055         support.
33056         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33058 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
33060         PR target/88954
33061         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33062         noplt attribute.
33064 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
33066         PR target/88469
33067         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33068         alignment is dominated by a bitfield with 64-bit aligned base type.
33069         (arm_function_arg): Emit a warning if the alignment has changed since
33070         earlier GCC releases.
33071         (arm_function_arg_boundary): Likewise.
33072         (arm_setup_incoming_varargs): Likewise.
33074 2019-01-22  Richard Biener  <rguenther@suse.de>
33076         PR tree-optimization/88862
33077         * graphite-scop-detection.c
33078         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33080 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
33082         * doc/extend.tex (AMD GCN Function Attributes): New section.
33083         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33084         * doc/invoke.texi (AMD GCN Options): New section.
33085         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33087 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33089         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33090         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33092 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
33094         PR tree-optimization/88044
33095         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33096         is false in the first iteration, but !every_iteration, return false
33097         instead of true with niter->niter zero.
33099         PR rtl-optimization/88904
33100         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33101         any nonequal registers before processing BB_END (b).
33103         PR target/88905
33104         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33105         GET_MODE (op0).
33106         (expand_binop_directly, expand_doubleword_clz,
33107         expand_doubleword_popcount, expand_ctz, expand_ffs,
33108         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33110         PR rtl-optimization/49429
33111         PR target/49454
33112         PR rtl-optimization/86334
33113         PR target/88906
33114         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33115         addressable from here...
33116         (emit_block_op_via_libcall): ... to here.
33118 2019-01-22  Richard Biener  <rguenther@suse.de>
33120         * tree-vect-loop.c (vect_analyze_loop_operations): Use
33121         auto_vec for cost vector to fix memleak.
33122         (vectorize_fold_left_reduction): Properly gather SLP defs.
33123         (vectorizable_comparison): Do not swap operands to properly
33124         gather SLP defs.
33126 2019-01-22  Alan Modra  <amodra@gmail.com>
33128         PR target/88614
33129         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33130         stays a reg.  Allow a const_int.
33131         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33132         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33133         (IS_NOMARK_TLSGETADDR): Define.
33134         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33135         (rs6000_output_tlsargs): New function.
33136         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33137         __tls_get_addr call takes an arg.
33138         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33139         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33140         delete split..
33141         (call_value_nonlocal_sysv): ..or here, delete split.
33142         (tls_gdld_nomark): Delete.
33143         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33144         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
33145         (call_value_nonlocal_sysv): Likewise.
33146         (call_value_nonlocal_sysv_secure): Likewise.
33147         (call_value_nonlocal_aix): Likewise.
33148         (call_value_indirect_aix): Likewise.
33149         (call_value_indirect_elfv2): Likewise.
33150         (call_value_local32, call_value_local64): Disable for no-mark tls.
33151         (call_value_local_aix): Likewise.
33153 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
33155         PR target/88938
33156         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33157         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33159 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
33161         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33162         string contents as hash_map keys.
33164 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33166         PR c/88928
33167         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33168         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
33169         instead of TYPE_ALIGN.
33170         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33171         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
33172         pointer from TYPE_STUB_DECL.
33174 2019-01-21  Richard Biener  <rguenther@suse.de>
33176         PR tree-optimization/88934
33177         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33178         at the possibly non-constant operand.
33179         (vect_get_constant_vectors): Adjust.
33181 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
33183         PR target/71659
33184         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33185         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33186         instead of _X86INTRIN_H_INCLUDED.
33187         * onfig/i386/clwbintrin.h: Likewise.
33188         * config/i386/pkuintrin.h: Likewise.
33189         * config/i386/prfchwintrin.h: Likewise.
33190         * config/i386/rdseedintrin.h: Likewise.
33191         * config/i386/wbnoinvdintrin.h: Likewise.
33192         * config/i386/xsavecintrin.h: Likewise.
33193         * config/i386/xsavesintrin.h: Likewise.
33194         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33195         * config/i386/xsaveintrin.h: Likewise.
33196         * config/i386/xsaveoptintrin.h: Likewise.
33197         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33198         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33199         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33200         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33201         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33202         * config/i386/immintrin.h: Here.
33204 2019-01-20  Martin Jambor  <mjambor@suse.cz>
33206         PR ipa/87615
33207         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33208         with aa_walk_budget.
33209         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33210         aa_walk_budget_p parameter.
33211         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
33212         walk.  Updated all callers.
33213         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33214         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33215         unmodified_parm.
33216         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33217         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
33218         and to unmodified_parm.
33219         (phi_result_unknown_predicate): New parameter fbi, removed parameter
33220         info, updated call to will_be_nonconstant_expr_predicate.
33221         (param_change_prob): New parameter fbi, limit AA walking.
33222         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
33223         calls to various above functions.
33224         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33225         parameter.  Use it to limit AA walking.
33226         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33227         fbi, limit AA walk.
33228         (detect_type_change): New parameter fbi, pass it on to
33229         detect_type_change_from_memory_writes.
33230         (detect_type_change_ssa): Likewise.
33231         (aa_overwalked): Removed.
33232         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33233         accordingly, adjust to the neew AA limiting scheme.
33234         (parm_ref_data_preserved_p): Likewise.
33235         (ipa_compute_jump_functions_for_edge): Adjust call to
33236         get_dynamic_type.
33237         (ipa_analyze_call_uses): Likewise.
33238         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33239         (ipa_analyze_node): Initialize aa_walk_budget.
33240         (ipcp_transform_function): Likewise.
33241         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33242         to get_dynamic_type.
33244 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
33246         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33247         outside of #if CHECKING_P code.
33249 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
33251         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33252         New function, split out from...
33253         (loop_versioning::analyze_stride): ...here.
33254         (loop_versioning::find_per_loop_multiplication): Use gassign.
33255         (loop_versioning::analyze_term_using_scevs): Return a success code.
33256         (loop_versioning::analyze_arbitrary_term): New function.
33257         (loop_versioning::analyze_address_fragment): Use
33258         analyze_arbitrary_term if all else fails.
33260 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
33262         PR target/88892
33263         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33264         operands.
33266 2019-01-18  Richard Biener  <rguenther@suse.de>
33268         PR tree-optimization/88903
33269         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33270         scalar stmts a SLP shift amount is composed of when detecting
33271         shifts by scalars.
33273 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
33275         PR target/88799
33276         * config/arm/arm-cpus.in (mp): New feature.
33277         (sec): New feature.
33278         (fgroup ARMv7ve): Add mp and sec features.
33279         (arch armv7-a): Add options to allow mp and sec extensions.
33280         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33281         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33282         extenstions to the base architecture.
33283         (cpu cortex-a8): Add sec extension to the base architecture.
33284         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33285         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33286         variants down to the base v7-a varaint.
33287         * config/arm/t-multilib (v7_a_arch_variants): New variable.
33288         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33289         of permitted extensions for -march=armv7-a and for
33290         -mcpu=generic-armv7-a.
33292 2019-01-18  Martin Liska  <mliska@suse.cz>
33294         * params.def: Fix comment.
33295         * tree-profile.c (gimple_init_gcov_profiler): Bump function
33296         name.
33297         (gimple_gen_ic_func_profiler): Likewise.
33299 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33301         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33302         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33303         and put in error checks for stack protector guard options.
33304         (aarch64_stack_protect_guard): New.
33305         (TARGET_STACK_PROTECT_GUARD): Define.
33306         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33307         (reg_stack_protect_address<mode>): New.
33308         (stack_protect_set): Adjust for SSP_GLOBAL.
33309         (stack_protect_test): Likewise.
33310         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33311         (-mstack-protector-guard): Likewise.
33312         (-mstack-protector-guard-offset): Likewise.
33314 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
33316         PR tree-optimization/86214
33317         * tree-inline.h (struct copy_body_data): Add
33318         add_clobbers_to_eh_landing_pads member.
33319         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33320         (copy_edges_for_bb): Call it if EH edge destination is <
33321         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
33322         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33323         if flag_stack_reuse != SR_NONE and clear it afterwards.
33325 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
33327         PR target/85596
33328         * doc/install.texi (with-multilib-list): Document for aarch64.
33330 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
33332         PR target/88734
33333         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33334         (("..."))) with ("...").
33336 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33338         * doc/extend.texi (Built-in Functions for Memory Model Aware
33339         Atomic Operations): Document atomic fetch and nand.
33341 2019-01-18  Martin Liska  <mliska@suse.cz>
33342             Richard Biener  <rguenther@suse.de>
33344         PR middle-end/88587
33345         * cgraph.h (create_version_clone_with_body): Add new argument
33346         with attributes.
33347         * cgraphclones.c (cgraph_node::create_version_clone): Add
33348         DECL_ATTRIBUTES to a newly created decl.  And call
33349         valid_attribute_p so that proper cl_target_optimization_node
33350         is set for the newly created declaration.
33351         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33352         for declaration.
33353         (expand_target_clones): Do not call valid_attribute_p, it must
33354         be already done.
33355         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33356         vector types.
33358 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
33360         PR target/88734
33361         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33362         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
33363         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33365 2019-01-17  Martin Sebor  <msebor@redhat.com>
33367         PR middle-end/88273
33368         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33369         Handle anti-ranges the same as no range at all.
33371 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
33373         * config/aarch64/aarch64.c (cgraph.h): New include.
33374         (intl.h): New include.
33375         (supported_simd_type): New function.
33376         (currently_supported_simd_type): Ditto.
33377         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33378         (aarch64_simd_clone_adjust): Ditto.
33379         (aarch64_simd_clone_usable): Ditto.
33380         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33381         (TARGET_SIMD_CLONE_ADJUST): Ditto.
33382         (TARGET_SIMD_CLONE_USABLE): Ditto.
33383         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33384         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33385         call.
33387 2019-01-17  Martin Sebor  <msebor@redhat.com>
33389         PR tree-optimization/88800
33390         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33391         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
33392         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33393         redundant argument.  Add new argument and issue diagnostics under
33394         its control.  Detect out-of-bounds access even with warnings
33395         disabled.
33396         (check_bounds_or_overlap): Change return type.  Add argument.
33397         (wrestrict_dom_walker::check_call): Adjust.
33398         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33399         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33400         check_bounds_or_overlap's return value.
33401         (handle_builtin_stxncpy): Same.
33402         (handle_builtin_strcat): Same.
33404 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33405             Kwok Cheung Yeung  <kcy@codesourcery.com>
33406             Julian Brown  <julian@codesourcery.com>
33407             Tom de Vries  <tom@codesourcery.com>
33409         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33411 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33413         * doc/sourcebuild.texi: Document dg-require-effective-target
33414         llvm_binutils and offload_gcn.
33416 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33417             Kwok Cheung Yeung  <kcy@codesourcery.com>
33418             Julian Brown  <julian@codesourcery.com>
33419             Tom de Vries  <tom@codesourcery.com>
33421         * doc/sourcebuild.texi: Document dg-required-effective-target
33422         exceptions.
33424 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33425             Kwok Cheung Yeung  <kcy@codesourcery.com>
33426             Julian Brown  <julian@codesourcery.com>
33427             Tom de Vries  <tom@codesourcery.com>
33428             Jan Hubicka  <hubicka@ucw.cz>
33429             Martin Jambor  <mjambor@suse.cz>
33431         * config.gcc: Add amdgcn*-*-amdhsa configuration.
33432         * configure.ac: Check for dlopen.
33433         * configure: Regenerate.
33435 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33436             Kwok Cheung Yeung  <kcy@codesourcery.com>
33437             Julian Brown  <julian@codesourcery.com>
33438             Tom de Vries  <tom@codesourcery.com>
33439             Jan Hubicka  <hubicka@ucw.cz>
33440             Martin Jambor  <mjambor@suse.cz>
33442         * common/config/gcn/gcn-common.c: New file.
33443         * config/gcn/driver-gcn.c: New file.
33444         * config/gcn/gcn-builtins.def: New file.
33445         * config/gcn/gcn-hsa.h: New file.
33446         * config/gcn/gcn-modes.def: New file.
33447         * config/gcn/gcn-opts.h: New file.
33448         * config/gcn/gcn-passes.def: New file.
33449         * config/gcn/gcn-protos.h: New file.
33450         * config/gcn/gcn-run.c: New file.
33451         * config/gcn/gcn-tree.c: New file.
33452         * config/gcn/gcn.c: New file.
33453         * config/gcn/gcn.h: New file.
33454         * config/gcn/gcn.opt: New file.
33455         * config/gcn/t-gcn-hsa: New file.
33457 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
33458             Kwok Cheung Yeung  <kcy@codesourcery.com>
33459             Julian Brown  <julian@codesourcery.com>
33460             Tom de Vries  <tom@codesourcery.com>
33461             Jan Hubicka  <hubicka@ucw.cz>
33462             Martin Jambor  <mjambor@suse.cz>
33464         * config/gcn/constraints.md: New file.
33465         * config/gcn/gcn-valu.md: New file.
33466         * config/gcn/gcn.md: New file.
33467         * config/gcn/predicates.md: New file.
33469 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
33471         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33472         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33473         (stmt_uses_0_or_null_in_undefined_way): Likewise.
33474         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33476 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
33478         PR target/88851
33479         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33480         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33481         it and document registers.
33483 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33485         * config/aarch64/aarch64.c (ares_tunings): Define.
33486         * config/aarch64/aarch64-cores.def (ares): Use the above.
33488 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
33490         PR target/88794
33491         Revert:
33492         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
33494         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33495         (_mm512_fixupimm_round_pd): Update parameters and builtin.
33496         (_mm512_maskz_fixupimm_round_pd): Ditto.
33497         (_mm512_fixupimm_round_ps): Ditto.
33498         (_mm512_maskz_fixupimm_round_ps): Ditto.
33499         (_mm_fixupimm_round_sd): Ditto.
33500         (_mm_maskz_fixupimm_round_sd): Ditto.
33501         (_mm_fixupimm_round_ss): Ditto.
33502         (_mm_maskz_fixupimm_round_ss): Ditto.
33503         (_mm512_fixupimm_pd): Ditto.
33504         (_mm512_maskz_fixupimm_pd): Ditto.
33505         (_mm512_fixupimm_ps): Ditto.
33506         (_mm512_maskz_fixupimm_ps): Ditto.
33507         (_mm_fixupimm_sd): Ditto.
33508         (_mm_maskz_fixupimm_sd): Ditto.
33509         (_mm_fixupimm_ss): Ditto.
33510         (_mm_maskz_fixupimm_ss): Ditto.
33511         (_mm512_mask_fixupimm_round_pd): Update builtin.
33512         (_mm512_mask_fixupimm_round_ps): Ditto.
33513         (_mm_mask_fixupimm_round_sd): Ditto.
33514         (_mm_mask_fixupimm_round_ss): Ditto.
33515         (_mm512_mask_fixupimm_pd): Ditto.
33516         (_mm512_mask_fixupimm_ps): Ditto.
33517         (_mm_mask_fixupimm_sd): Ditto.
33518         (_mm_mask_fixupimm_ss): Ditto.
33519         * config/i386/avx512vlintrin.h:
33520         (_mm256_fixupimm_pd): Update parameters and builtin.
33521         (_mm256_maskz_fixupimm_pd): Ditto.
33522         (_mm256_fixupimm_ps): Ditto.
33523         (_mm256_maskz_fixupimm_ps): Ditto.
33524         (_mm_fixupimm_pd): Ditto.
33525         (_mm_maskz_fixupimm_pd): Ditto.
33526         (_mm_fixupimm_ps): Ditto.
33527         (_mm_maskz_fixupimm_ps): Ditto.
33528         (_mm256_mask_fixupimm_pd): Update builtin.
33529         (_mm256_mask_fixupimm_ps): Ditto.
33530         (_mm_mask_fixupimm_pd): Ditto.
33531         (_mm_mask_fixupimm_ps): Ditto.
33532         * config/i386/i386-builtin-types.def: Add new types and remove
33533         useless ones.
33534         * config/i386/i386-builtin.def: Update builtin definitions.
33535         * config/i386/i386.c: Handle new builtin types and remove useless ones.
33536         * config/i386/sse.md: Update VFIXUPIMM* patterns.
33537         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33538         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33539         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33540         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33541         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33542         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33543         * config/i386/subst.md:
33544         (round_saeonly_sd_mask_operand4): Add new subst_attr.
33545         (round_saeonly_sd_mask_op4): Ditto.
33546         (round_saeonly_expand_operand5): Ditto.
33547         (round_saeonly_expand): Update.
33549 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
33551         PR target/88794
33552         Revert:
33553         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
33555         * config/i386/sse.md: Combine VFIXUPIMM* patterns
33556         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33557         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33558         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33559         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33560         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33561         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33563 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
33565         PR target/88794
33566         Revert:
33567         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
33569         PR target/88489
33570         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33571         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33572         instead of UNSPEC_FIXUPIMM.
33574 2019-01-17  Richard Biener  <rguenther@suse.de>
33576         PR lto/86736
33577         * dwarf2out.c (want_pubnames): Never generate pubnames sections
33578         and friends for the LTO part of debug info.
33580 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
33582         PR tree-optimization/86214
33583         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33584         if x == y.
33586         PR rtl-optimization/88870
33587         * dce.c (deletable_insn_p): Never delete const/pure calls that can
33588         throw if we can't alter the cfg or delete dead exceptions.
33589         (mark_insn): Don't call find_call_stack_args for such calls.
33591 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
33593         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33594         prototypes for vec_st.
33595         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33596         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33597         mainly on signed/unsigned long long and double.
33599 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
33601         PR target/88861
33602         * combine.c (delete_noop_moves): Convert to "bool" return,
33603         returning true if any edges are eliminated.
33604         (combine_instructions): Also return true if delete_noop_moves
33605         returns true.
33607 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
33609         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33610         correct max nunits for endian swap.
33611         (aarch64_expand_fcmla_builtin): Correct subreg code.
33612         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33613         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33614         lane endianness.
33616 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
33618         * config/alpha/alpha.c (alpha_gimplify_va_arg):
33619         Handle split indirect COMPLEX_TYPE arguments.
33621 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
33623         PR target/86891
33624         * config/aarch64/aarch64-modes.def: Add comment about how the carry
33625         bit is set by add and compare.
33626         (CC_ADC): New CC_MODE.
33627         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33628         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
33629         comparison.  Add detection for CC_ADCmode.
33630         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
33631         CC_ADCmode.
33632         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33633         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33634         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
33635         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
33636         to eliminate the need for zero-extending the operands.
33637         (add<mode>3_compareC_imm): Delete.  Merge into ...
33638         (add<mode>3_compareC): ... this.  Restructure the comparison to
33639         eliminate the need for zero-extending the operands.
33640         (add<mode>3_carryin): Use LTU for the overflow detection.
33641         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33642         Reexpress comparison for overflow.
33643         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33644         (add<mode>3_carryinC): Likewise.
33645         (add<mode>3_carryinV): Use LTU for carry between partials.
33646         * config/aarch64/predicates.md (aarch64_carry_operation): Update
33647         handling of CC_Cmode and add CC_ADCmode.
33648         (aarch64_borrow_operation): Likewise.
33650 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
33652         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33653         Remove patternmode.
33654         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33655         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33656         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33657         Remove endianness conversion.
33659 2019-01-16  Martin Liska  <mliska@suse.cz>
33661         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33662         for GCC driver.
33663         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33664         a new argument.
33665         * gcc.c (add_sysrooted_hdrs_prefix): New function.
33666         (path_prefix_reset): Move up in the source file.
33667         (find_fortran_preinclude_file): Make complex search for the
33668         fortran header files.
33670 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
33672         * godump.c (go_output_typedef): When outputting a typedef, refer
33673         to the underlying type by its name and not its structure.
33675 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
33677         PR c++/88795
33678         * tree.c (build_function_type): Assert that arg_types is not
33679         error_mark_node.
33681 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
33683         PR inline-asm/52813
33684         * doc/extend.texi: Document that listing the stack pointer in the
33685         clobber list of an asm is a deprecated feature.
33686         * common.opt (Wdeprecated): Moved from c-family/c.opt.
33687         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33688         warning instead of an error for clobbers of the stack pointer.
33689         Add a note explaining why.
33691 2019-01-15  Richard Biener  <rguenther@suse.de>
33693         PR debug/88046
33694         * dwarf2out.c (gen_member_die): Do not generate inheritance
33695         DIEs late.
33697 2019-01-15  Richard Biener  <rguenther@suse.de>
33699         PR tree-optimization/88855
33700         * tree-if-conv.c (combine_blocks): Collect
33701         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33703 2019-01-15  Tom de Vries  <tdevries@suse.de>
33705         PR target/80547
33706         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33707         lhs == NULL_TREE for gang-level reduction.
33709 2019-01-15  Richard Biener  <rguenther@suse.de>
33710             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33712         PR ipa/88788
33713         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33714         return true if SSA_NAME is already marked in visited bitmap.
33715         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33717 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
33719         PR tree-optimization/88775
33720         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33721         equal == 0 equality pointer comparisons some more if compared in
33722         integral types and either one points to an automatic var and the
33723         other to a global, or we can prove at least one points to the middle
33724         or both point to start or both point to end.
33726 2019-01-14  Andi Kleen  <ak@linux.intel.com>
33728         * Makefile.in: Lower autofdo sampling rate by 10x.
33729         * Makefile.tpl: Dito.
33731 2019-01-14  Tom Honermann  <tom@honermann.net>
33733         * defaults.h: Define CHAR8_TYPE.
33735 2019-01-14  Martin Sebor  <msebor@redhat.com>
33737         PR target/88638
33738         * doc/extend.texi (Darwin Format Checks): Clarify.
33740 2019-01-14  Richard Biener  <rguenther@suse.de>
33742         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33743         whether we are in (simplify ...) or (match ...) context.
33745 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
33747         PR rtl-optimization/88796
33748         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33749         * cfgexpand.c (stack_protect_prologue): Initialize
33750         crtl->stack_protect_guard_decl.
33751         * function.c (stack_protect_epilogue): Use it instead of calling
33752         targetm.stack_protect_guard again.
33753         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33754         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33755         crtl->stack_protect_guard_decl.
33756         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33757         on the returned MEM_EXPR.
33759 2019-01-12  Tom de Vries  <tdevries@suse.de>
33761         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33762         vector length using -fopenacc-dim.
33764 2019-01-12  Tom de Vries  <tdevries@suse.de>
33766         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33767         lengths into account.
33769 2019-01-12  Svante Signell  <svante.signell@gmail.com>
33771         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33772         (TARGET_CAN_SPLIT_STACK): Define.
33773         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33775 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
33777         * params.def (inline-unit-growth): Set to 40.
33779 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
33781         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33783 2019-01-12  Tom de Vries  <tdevries@suse.de>
33785         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33786         region calling vector-partitionable routine, set default_vector_length
33787         to WARP_SIZE.
33789 2019-01-12  Tom de Vries  <tdevries@suse.de>
33791         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33792         variable default_vector_length.
33794 2019-01-12  Tom de Vries  <tdevries@suse.de>
33796         PR middle-end/88703
33797         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33798         from oacc_default_dims, as oacc_validate_dims would do it, and apply
33799         dimensions limits.
33801 2019-01-12  Tom de Vries  <tdevries@suse.de>
33803         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33804         (nvptx_goacc_validate_dims): Add used parameter.
33805         * doc/tm.texi: Regenerate.
33806         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33807         argument to call to targetm.goacc.validate_dims.
33808         (default_goacc_validate_dims): Add used
33809         parameter.
33810         * target.def (validate_dims): Add used parameter in DEFHOOK.
33811         * targhooks.h (default_goacc_validate_dims): Add used parameter.
33813 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
33815         PR middle-end/85956
33816         PR lto/88733
33817         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33818         field.
33819         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
33820         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33821         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33822         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33824 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
33826         PR rtl-optimization/87305
33827         * lra-assigns.c
33828         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33829         for little endian pseudos used as paradoxical subreg.
33831 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
33833         PR tree-optimization/88693
33834         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33835         for STRING_CSTs that don't contain any NUL characters in the first
33836         TREE_STRING_LENGTH bytes.
33838 2019-01-11  Alan Modra  <amodra@gmail.com>
33840         PR 88777
33841         PR 88614
33842         * genattrtab.c (min_fn): Don't translate values.
33843         (min_attr_value): Return INT_MAX when the value can't be calculated.
33844         Return minimum among any values that can be calculated.
33845         (max_attr_value): Adjust.
33847 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
33849         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33851 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
33853         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33854         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33855         (aarch64_return_call_with_max_clobbers): New function.
33856         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33857         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33858         argument.
33859         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33860         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33861         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33862         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33863         * cselib.c (cselib_process_insn): Add argument to
33864         targetm.hard_regno_call_part_clobbered call.
33865         * ira-conflicts.c (ira_build_conflicts): Ditto.
33866         * ira-costs.c (ira_tune_allocno_costs): Ditto.
33867         * lra-constraints.c (inherit_reload_reg): Ditto.
33868         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33869         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33870         argument.  Call targetm.return_call_with_max_clobbers.
33871         Add argument to targetm.hard_regno_call_part_clobbered call.
33872         (calls_have_same_clobbers_p): New function.
33873         (process_bb_lives): Add call_insn and last_call_insn variables.
33874         Pass call_insn to check_pseudos_live_through_calls.
33875         Modify if stmt to check targetm.return_call_with_max_clobbers.
33876         Update setting of flush variable.
33877         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33878         to false.
33879         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33880         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33881         targetm.hard_regno_call_part_clobbered call.
33882         * reginfo.c (choose_hard_reg_mode): Ditto.
33883         * regrename.c (check_new_reg_p): Ditto.
33884         * reload.c (find_equiv_reg): Ditto.
33885         * reload1.c (emit_reload_insns): Ditto.
33886         * sched-deps.c (deps_analyze_insn): Ditto.
33887         * sel-sched.c (init_regs_for_mode): Ditto.
33888         (mark_unavailable_hard_regs): Ditto.
33889         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33890         * target.def (hard_regno_call_part_clobbered): Add insn argument.
33891         (return_call_with_max_clobbers): New target function.
33892         * doc/tm.texi: Regenerate.
33893         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33894         * hooks.c (hook_bool_uint_mode_false): Change to
33895         hook_bool_insn_uint_mode_false.
33896         * hooks.h (hook_bool_uint_mode_false): Ditto.
33898 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
33900         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33901         (aarch64_remove_extra_call_preserved_regs): New function.
33902         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33903         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33904         * doc/tm.texi: Regenerate.
33905         * final.c (get_call_reg_set_usage): Call new hook.
33906         * target.def (remove_extra_call_preserved_regs): New hook.
33907         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33908         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33910 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
33912         PR bootstrap/88714
33913         * passes.c (finish_optimization_passes): Call print_combine_total_stats
33914         inside of pass_combine_1 dump rather than pass_profile_1.
33916 2019-01-11  Tom de Vries  <tdevries@suse.de>
33918         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33919         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33920         (PTX_NUM_PER_WORKER_BARRIERS): Define.
33921         (nvptx_apply_dim_limits): Prevent vector_length 64 and
33922         num_workers 16.
33924 2019-01-11  Tom de Vries  <tdevries@suse.de>
33926         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33928 2019-01-11  Jan Beulich  <jbeulich@suse.com>
33930         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33931         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33932         sse2_cvtsi2sd): Add {l}.
33933         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33934         syntax.
33936 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
33938         PR target/88785
33939         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33940         define_expand.
33941         (*float<floatunssuffix>v2div2sf2): New define_insn.
33942         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33943         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33944         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33945         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33946         match_operands with "const0_operand" "C".
33948 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
33950         * config/aarch64/aarch64-builtins.c
33951         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33952         (aarch64_init_simd_builtins): ...Here
33954 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
33956         PR rtl-optimization/87305
33957         * lra-assigns.c
33958         (setup_live_pseudos_and_spill_after_risky_transforms): Check
33959         allocation for big endian pseudos used as paradoxical subregs and
33960         spill them if it is wrong.
33961         * lra-constraints.c (lra_constraints): Add a comment.
33963 2019-01-10  Richard Biener  <rguenther@suse.de>
33965         PR tree-optimization/88792
33966         * tree-ssa-pre.c (get_representative_for): Do not return a
33967         value-number here.
33969 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
33971         PR middle-end/84877
33972         PR bootstrap/88450
33973         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33974         (assign_parm_setup_block): Do the argument slot realignment here
33975         instead.
33977 2019-01-10  Stefan Agner  <stefan@agner.ch>
33979         PR target/88648
33980         * config/arm/arm.c (arm_option_override_internal): Force
33981         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33983 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
33985         PR c/88568
33986         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33987         DECL_EXTERNAL.
33989 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
33991         * config/arm/arm-builtins.c
33992         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33993         (MAC_LANE_PAIR_QUALIFIERS): New.
33994         (arm_expand_builtin_args): Use it.
33995         (arm_expand_builtin_1): Likewise.
33996         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33997         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33998         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33999         * config/arm/arm_neon.h:
34000         (vcadd_rot90_f16): New.
34001         (vcaddq_rot90_f16): New.
34002         (vcadd_rot270_f16): New.
34003         (vcaddq_rot270_f16): New.
34004         (vcmla_f16): New.
34005         (vcmlaq_f16): New.
34006         (vcmla_lane_f16): New.
34007         (vcmla_laneq_f16): New.
34008         (vcmlaq_lane_f16): New.
34009         (vcmlaq_laneq_f16): New.
34010         (vcmla_rot90_f16): New.
34011         (vcmlaq_rot90_f16): New.
34012         (vcmla_rot90_lane_f16): New.
34013         (vcmla_rot90_laneq_f16): New.
34014         (vcmlaq_rot90_lane_f16): New.
34015         (vcmlaq_rot90_laneq_f16): New.
34016         (vcmla_rot180_f16): New.
34017         (vcmlaq_rot180_f16): New.
34018         (vcmla_rot180_lane_f16): New.
34019         (vcmla_rot180_laneq_f16): New.
34020         (vcmlaq_rot180_lane_f16): New.
34021         (vcmlaq_rot180_laneq_f16): New.
34022         (vcmla_rot270_f16): New.
34023         (vcmlaq_rot270_f16): New.
34024         (vcmla_rot270_lane_f16): New.
34025         (vcmla_rot270_laneq_f16): New.
34026         (vcmlaq_rot270_lane_f16): New.
34027         (vcmlaq_rot270_laneq_f16): New.
34028         (vcadd_rot90_f32): New.
34029         (vcaddq_rot90_f32): New.
34030         (vcadd_rot270_f32): New.
34031         (vcaddq_rot270_f32): New.
34032         (vcmla_f32): New.
34033         (vcmlaq_f32): New.
34034         (vcmla_lane_f32): New.
34035         (vcmla_laneq_f32): New.
34036         (vcmlaq_lane_f32): New.
34037         (vcmlaq_laneq_f32): New.
34038         (vcmla_rot90_f32): New.
34039         (vcmlaq_rot90_f32): New.
34040         (vcmla_rot90_lane_f32): New.
34041         (vcmla_rot90_laneq_f32): New.
34042         (vcmlaq_rot90_lane_f32): New.
34043         (vcmlaq_rot90_laneq_f32): New.
34044         (vcmla_rot180_f32): New.
34045         (vcmlaq_rot180_f32): New.
34046         (vcmla_rot180_lane_f32): New.
34047         (vcmla_rot180_laneq_f32): New.
34048         (vcmlaq_rot180_lane_f32): New.
34049         (vcmlaq_rot180_laneq_f32): New.
34050         (vcmla_rot270_f32): New.
34051         (vcmlaq_rot270_f32): New.
34052         (vcmla_rot270_lane_f32): New.
34053         (vcmla_rot270_laneq_f32): New.
34054         (vcmlaq_rot270_lane_f32): New.
34055         (vcmlaq_rot270_laneq_f32): New.
34056         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34057         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34058         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34059         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34060         vcmlaq_lane270): New.
34061         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34062         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34063         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34064         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34065         (arm_option_reconfigure_globals): Use them.
34066         * config/arm/iterators.md (VDF, VQ_HSF): New.
34067         (VCADD, VCMLA): New.
34068         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34069         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34070         New.
34071         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34072         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34074 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
34076         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34077         Add qualifier_lane_pair_index.
34078         (emit-rtl.h): Include.
34079         (TYPES_QUADOP_LANE_PAIR): New.
34080         (aarch64_simd_expand_args): Use it.
34081         (aarch64_simd_expand_builtin): Likewise.
34082         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34083         New.
34084         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34085         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34086         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34087         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34088         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34089         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34090         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34091         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34092         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34093         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34094         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34095         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34096         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34097         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34098         Add __ARM_FEATURE_COMPLEX.
34099         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34100         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34101         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34102         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34103         fcmlaq_lane270): New.
34104         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34105         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34106         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34107         * config/aarch64/arm_neon.h:
34108         (vcadd_rot90_f16): New.
34109         (vcaddq_rot90_f16): New.
34110         (vcadd_rot270_f16): New.
34111         (vcaddq_rot270_f16): New.
34112         (vcmla_f16): New.
34113         (vcmlaq_f16): New.
34114         (vcmla_lane_f16): New.
34115         (vcmla_laneq_f16): New.
34116         (vcmlaq_lane_f16): New.
34117         (vcmlaq_rot90_lane_f16): New.
34118         (vcmla_rot90_laneq_f16): New.
34119         (vcmla_rot90_lane_f16): New.
34120         (vcmlaq_rot90_f16): New.
34121         (vcmla_rot90_f16): New.
34122         (vcmlaq_laneq_f16): New.
34123         (vcmla_rot180_laneq_f16): New.
34124         (vcmla_rot180_lane_f16): New.
34125         (vcmlaq_rot180_f16): New.
34126         (vcmla_rot180_f16): New.
34127         (vcmlaq_rot90_laneq_f16): New.
34128         (vcmlaq_rot270_laneq_f16): New.
34129         (vcmlaq_rot270_lane_f16): New.
34130         (vcmla_rot270_laneq_f16): New.
34131         (vcmlaq_rot270_f16): New.
34132         (vcmla_rot270_f16): New.
34133         (vcmlaq_rot180_laneq_f16): New.
34134         (vcmlaq_rot180_lane_f16): New.
34135         (vcmla_rot270_lane_f16): New.
34136         (vcadd_rot90_f32): New.
34137         (vcaddq_rot90_f32): New.
34138         (vcaddq_rot90_f64): New.
34139         (vcadd_rot270_f32): New.
34140         (vcaddq_rot270_f32): New.
34141         (vcaddq_rot270_f64): New.
34142         (vcmla_f32): New.
34143         (vcmlaq_f32): New.
34144         (vcmlaq_f64): New.
34145         (vcmla_lane_f32): New.
34146         (vcmla_laneq_f32): New.
34147         (vcmlaq_lane_f32): New.
34148         (vcmlaq_laneq_f32): New.
34149         (vcmla_rot90_f32): New.
34150         (vcmlaq_rot90_f32): New.
34151         (vcmlaq_rot90_f64): New.
34152         (vcmla_rot90_lane_f32): New.
34153         (vcmla_rot90_laneq_f32): New.
34154         (vcmlaq_rot90_lane_f32): New.
34155         (vcmlaq_rot90_laneq_f32): New.
34156         (vcmla_rot180_f32): New.
34157         (vcmlaq_rot180_f32): New.
34158         (vcmlaq_rot180_f64): New.
34159         (vcmla_rot180_lane_f32): New.
34160         (vcmla_rot180_laneq_f32): New.
34161         (vcmlaq_rot180_lane_f32): New.
34162         (vcmlaq_rot180_laneq_f32): New.
34163         (vcmla_rot270_f32): New.
34164         (vcmlaq_rot270_f32): New.
34165         (vcmlaq_rot270_f64): New.
34166         (vcmla_rot270_lane_f32): New.
34167         (vcmla_rot270_laneq_f32): New.
34168         (vcmlaq_rot270_lane_f32): New.
34169         (vcmlaq_rot270_laneq_f32): New.
34170         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34171         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34172         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34173         (FCADD, FCMLA): New.
34174         (rot): New.
34175         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34177 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
34179         PR other/16615
34181         * config/pa/pa.c: Change "can not" to "cannot".
34182         * gimple-ssa-evrp-analyze.c: Likewise.
34183         * ipa-icf.c: Likewise.
34184         * ipa-polymorphic-call.c: Likewise.
34185         * ipa-pure-const.c: Likewise.
34186         * lra-constraints.c: Likewise.
34187         * lra-remat.c: Likewise.
34188         * reload1.c: Likewise.
34189         * reorg.c: Likewise.
34190         * tree-ssa-uninit.c: Likewise.
34192 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
34194         PR other/16615
34196         * Makefile.in: Mechanically replace "can not" with "cannot".
34197         * alias.c: Likewise.
34198         * builtins.c: Likewise.
34199         * calls.c: Likewise.
34200         * cgraph.c: Likewise.
34201         * cgraph.h: Likewise.
34202         * cgraphclones.c: Likewise.
34203         * cgraphunit.c: Likewise.
34204         * combine-stack-adj.c: Likewise.
34205         * combine.c: Likewise.
34206         * common/config/i386/i386-common.c: Likewise.
34207         * config/aarch64/aarch64.c: Likewise.
34208         * config/alpha/sync.md: Likewise.
34209         * config/arc/arc.c: Likewise.
34210         * config/arc/predicates.md: Likewise.
34211         * config/arm/arm-c.c: Likewise.
34212         * config/arm/arm.c: Likewise.
34213         * config/arm/arm.h: Likewise.
34214         * config/arm/arm.md: Likewise.
34215         * config/arm/cortex-r4f.md: Likewise.
34216         * config/csky/csky.c: Likewise.
34217         * config/csky/csky.h: Likewise.
34218         * config/darwin-f.c: Likewise.
34219         * config/epiphany/epiphany.md: Likewise.
34220         * config/i386/i386.c: Likewise.
34221         * config/i386/sol2.h: Likewise.
34222         * config/m68k/m68k.c: Likewise.
34223         * config/mcore/mcore.h: Likewise.
34224         * config/microblaze/microblaze.md: Likewise.
34225         * config/mips/20kc.md: Likewise.
34226         * config/mips/sb1.md: Likewise.
34227         * config/nds32/nds32.c: Likewise.
34228         * config/nds32/predicates.md: Likewise.
34229         * config/pa/pa.c: Likewise.
34230         * config/rs6000/e300c2c3.md: Likewise.
34231         * config/rs6000/rs6000.c: Likewise.
34232         * config/s390/s390.h: Likewise.
34233         * config/sh/sh.c: Likewise.
34234         * config/sh/sh.md: Likewise.
34235         * config/spu/vmx2spu.h: Likewise.
34236         * cprop.c: Likewise.
34237         * dbxout.c: Likewise.
34238         * df-scan.c: Likewise.
34239         * doc/cfg.texi: Likewise.
34240         * doc/extend.texi: Likewise.
34241         * doc/fragments.texi: Likewise.
34242         * doc/gty.texi: Likewise.
34243         * doc/invoke.texi: Likewise.
34244         * doc/lto.texi: Likewise.
34245         * doc/md.texi: Likewise.
34246         * doc/objc.texi: Likewise.
34247         * doc/rtl.texi: Likewise.
34248         * doc/tm.texi: Likewise.
34249         * dse.c: Likewise.
34250         * emit-rtl.c: Likewise.
34251         * emit-rtl.h: Likewise.
34252         * except.c: Likewise.
34253         * expmed.c: Likewise.
34254         * expr.c: Likewise.
34255         * fold-const.c: Likewise.
34256         * genautomata.c: Likewise.
34257         * gimple-fold.c: Likewise.
34258         * hard-reg-set.h: Likewise.
34259         * ifcvt.c: Likewise.
34260         * ipa-comdats.c: Likewise.
34261         * ipa-cp.c: Likewise.
34262         * ipa-devirt.c: Likewise.
34263         * ipa-fnsummary.c: Likewise.
34264         * ipa-icf.c: Likewise.
34265         * ipa-inline-transform.c: Likewise.
34266         * ipa-inline.c: Likewise.
34267         * ipa-polymorphic-call.c: Likewise.
34268         * ipa-profile.c: Likewise.
34269         * ipa-prop.c: Likewise.
34270         * ipa-pure-const.c: Likewise.
34271         * ipa-reference.c: Likewise.
34272         * ipa-split.c: Likewise.
34273         * ipa-visibility.c: Likewise.
34274         * ipa.c: Likewise.
34275         * ira-build.c: Likewise.
34276         * ira-color.c: Likewise.
34277         * ira-conflicts.c: Likewise.
34278         * ira-costs.c: Likewise.
34279         * ira-int.h: Likewise.
34280         * ira-lives.c: Likewise.
34281         * ira.c: Likewise.
34282         * ira.h: Likewise.
34283         * loop-invariant.c: Likewise.
34284         * loop-unroll.c: Likewise.
34285         * lower-subreg.c: Likewise.
34286         * lra-assigns.c: Likewise.
34287         * lra-constraints.c: Likewise.
34288         * lra-eliminations.c: Likewise.
34289         * lra-lives.c: Likewise.
34290         * lra-remat.c: Likewise.
34291         * lra-spills.c: Likewise.
34292         * lra.c: Likewise.
34293         * lto-cgraph.c: Likewise.
34294         * lto-streamer-out.c: Likewise.
34295         * postreload-gcse.c: Likewise.
34296         * predict.c: Likewise.
34297         * profile-count.h: Likewise.
34298         * profile.c: Likewise.
34299         * recog.c: Likewise.
34300         * ree.c: Likewise.
34301         * reload.c: Likewise.
34302         * reload1.c: Likewise.
34303         * reorg.c: Likewise.
34304         * resource.c: Likewise.
34305         * rtl.def: Likewise.
34306         * rtl.h: Likewise.
34307         * rtlanal.c: Likewise.
34308         * sched-deps.c: Likewise.
34309         * sched-ebb.c: Likewise.
34310         * sched-rgn.c: Likewise.
34311         * sel-sched-ir.c: Likewise.
34312         * sel-sched.c: Likewise.
34313         * shrink-wrap.c: Likewise.
34314         * simplify-rtx.c: Likewise.
34315         * symtab.c: Likewise.
34316         * target.def: Likewise.
34317         * toplev.c: Likewise.
34318         * tree-call-cdce.c: Likewise.
34319         * tree-cfg.c: Likewise.
34320         * tree-complex.c: Likewise.
34321         * tree-core.h: Likewise.
34322         * tree-eh.c: Likewise.
34323         * tree-inline.c: Likewise.
34324         * tree-loop-distribution.c: Likewise.
34325         * tree-nrv.c: Likewise.
34326         * tree-profile.c: Likewise.
34327         * tree-sra.c: Likewise.
34328         * tree-ssa-alias.c: Likewise.
34329         * tree-ssa-dce.c: Likewise.
34330         * tree-ssa-dom.c: Likewise.
34331         * tree-ssa-forwprop.c: Likewise.
34332         * tree-ssa-loop-im.c: Likewise.
34333         * tree-ssa-loop-ivcanon.c: Likewise.
34334         * tree-ssa-loop-ivopts.c: Likewise.
34335         * tree-ssa-loop-niter.c: Likewise.
34336         * tree-ssa-phionlycprop.c: Likewise.
34337         * tree-ssa-phiopt.c: Likewise.
34338         * tree-ssa-propagate.c: Likewise.
34339         * tree-ssa-threadedge.c: Likewise.
34340         * tree-ssa-threadupdate.c: Likewise.
34341         * tree-ssa-uninit.c: Likewise.
34342         * tree-ssanames.c: Likewise.
34343         * tree-streamer-out.c: Likewise.
34344         * tree.c: Likewise.
34345         * tree.h: Likewise.
34346         * vr-values.c: Likewise.
34348 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
34350         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34351         (ix86_split_xorsign): Ditto.
34352         * config/i386/i386.c (ix86_expand_xorsign): New function.
34353         (ix86_split_xorsign): Ditto.
34354         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34355         (xorsign<mode>3): New expander.
34356         (xorsign<mode>3_1): New insn_and_split pattern.
34357         * config/i386/sse.md (xorsign<mode>3): New expander.
34359 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
34361         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34362         (*tablejump_sp64): Likewise.
34363         (*tablejump<P:mode>): ...this.
34364         (*call_address_sp32): Merge into...
34365         (*call_address_sp64): Likewise.
34366         (*call_address<P:mode>): ...this.
34367         (*call_symbolic_sp32): Merge into...
34368         (*call_symbolic_sp64): Likewise.
34369         (*call_symbolic<P:mode>): ...this.
34370         (call_value): Remove constraint and add predicate.
34371         (*call_value_address_sp32): Merge into...
34372         (*call_value_address_sp64): Likewise.
34373         (*call_value_address<P:mode>): ...this.
34374         (*call_value_symbolic_sp32): Merge into...
34375         (*call_value_symbolic_sp64): Likewise.
34376         (*call_value_symbolic<P:mode>): ...this.
34377         (*sibcall_symbolic_sp32): Merge into...
34378         (*sibcall_symbolic_sp64): Likewise.
34379         (*sibcall_symbolic<P:mode>): ...this.
34380         (sibcall_value): Remove constraint and add predicate.
34381         (*sibcall_value_symbolic_sp32): Merge into...
34382         (*sibcall_value_symbolic_sp64): Likewise.
34383         (*sibcall_value_symbolic<P:mode>): ...this.
34384         (window_save): Minor tweak.
34385         (*branch_sp32): Merge into...
34386         (*branch_sp64): Likewise.
34387         (*branch<P:mode>): ...this.
34389 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
34390             James Clarke  <jrtc27@jrtc27.com>
34392         PR target/84010
34393         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34394         consistently in TLS address generation and adjust code to the renaming
34395         of patterns.  Mark calls to __tls_get_addr as const.
34396         * config/sparc/sparc.md (tgd_hi22): Turn into...
34397         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34398         (tgd_lo10): Turn into...
34399         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34400         (tgd_add32): Merge into...
34401         (tgd_add64): Likewise.
34402         (tgd_add<P:mode>): ...this and use Pmode throughout.
34403         (tldm_hi22): Turn into...
34404         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34405         (tldm_lo10): Turn into...
34406         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34407         (tldm_add32): Merge into...
34408         (tldm_add64): Likewise.
34409         (tldm_add<P:mode>): ...this and use Pmode throughout.
34410         (tldm_call32): Merge into...
34411         (tldm_call64): Likewise.
34412         (tldm_call<P:mode>): ...this and use Pmode throughout.
34413         (tldo_hix22): Turn into...
34414         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34415         (tldo_lox10): Turn into...
34416         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34417         (tldo_add32): Merge into...
34418         (tldo_add64): Likewise.
34419         (tldo_add<P:mode>): ...this and use Pmode throughout.
34420         (tie_hi22): Turn into...
34421         (tie_hi22<P:mode>): ...this and use Pmode throughout.
34422         (tie_lo10): Turn into...
34423         (tie_lo10<P:mode>): ...this and use Pmode throughout.
34424         (tie_ld64): Use DImode throughout.
34425         (tie_add32): Merge into...
34426         (tie_add64): Likewise.
34427         (tie_add<P:mode>): ...this and use Pmode throughout.
34428         (tle_hix22_sp32): Merge into...
34429         (tle_hix22_sp64): Likewise.
34430         (tle_hix22<P:mode>): ...this and use Pmode throughout.
34431         (tle_lox22_sp32): Merge into...
34432         (tle_lox22_sp64): Likewise.
34433         (tle_lox22<P:mode>): ...this and use Pmode throughout.
34434         (*tldo_ldub_sp32): Merge into...
34435         (*tldo_ldub_sp64): Likewise.
34436         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34437         (*tldo_ldub1_sp32): Merge into...
34438         (*tldo_ldub1_sp64): Likewise.
34439         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34440         (*tldo_ldub2_sp32): Merge into...
34441         (*tldo_ldub2_sp64): Likewise.
34442         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34443         (*tldo_ldsb1_sp32): Merge into...
34444         (*tldo_ldsb1_sp64): Likewise.
34445         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34446         (*tldo_ldsb2_sp32): Merge into...
34447         (*tldo_ldsb2_sp64): Likewise.
34448         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34449         (*tldo_ldub3_sp64): Use DImode throughout.
34450         (*tldo_ldsb3_sp64): Likewise.
34451         (*tldo_lduh_sp32): Merge into...
34452         (*tldo_lduh_sp64): Likewise.
34453         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34454         (*tldo_lduh1_sp32): Merge into...
34455         (*tldo_lduh1_sp64): Likewise.
34456         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34457         (*tldo_ldsh1_sp32): Merge into...
34458         (*tldo_ldsh1_sp64): Likewise.
34459         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34460         (*tldo_lduh2_sp64): Use DImode throughout.
34461         (*tldo_ldsh2_sp64): Likewise.
34462         (*tldo_lduw_sp32): Merge into...
34463         (*tldo_lduw_sp64): Likewise.
34464         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34465         (*tldo_lduw1_sp64): Use DImode throughout.
34466         (*tldo_ldsw1_sp64): Likewise.
34467         (*tldo_ldx_sp64): Likewise.
34468         (*tldo_stb_sp32): Merge into...
34469         (*tldo_stb_sp64): Likewise.
34470         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34471         (*tldo_sth_sp32): Merge into...
34472         (*tldo_sth_sp64): Likewise.
34473         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34474         (*tldo_stw_sp32): Merge into...
34475         (*tldo_stw_sp64): Likewise.
34476         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34477         (*tldo_stx_sp64): Use DImode throughout.
34479 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34481         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34482         check configure option to set BTI and Return Address Signing.
34483         * configure.ac: Add --enable-standard-branch-protection and
34484         --disable-standard-branch-protection.
34485         * configure: Regenerated.
34486         * doc/install.texi: Document the same.
34488 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34489             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34491         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34492         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34493         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34494         if bti is enabled.
34495         * config/aarch64/aarch64-bti-insert.c: New file.
34496         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34497         pass.
34498         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34499         new bti pass.
34500         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34501         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34502         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34503         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34505 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34507         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34508         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34509         Disable bti for -mbranch-protection=none.
34510         (aarch64_handle_standard_branch_protection): Enable bti for
34511         -mbranch-protection=standard.
34512         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34513         -mbranch-protection.
34514         (aarch64_bti_enabled): Check if bti is enabled.
34515         * config/aarch64/aarch64.opt: Declare target variable.
34516         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34518 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34520         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34521         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34522         (aarch64_expand_epilogue): Likewise.
34523         (aarch64_output_mi_thunk): Likewise.
34524         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34525         TAILCALL_ADDR_REGS to x16 and x17.
34526         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34528 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34530         * config/aarch64/aarch64-option-extensions.def: Define
34531         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34532         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34533         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34534         (AARCH64_FL_PREDRES): New.
34535         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34536         AARCH64_FL_PREDRES by default.
34537         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34539 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
34541         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34542         ARMv8.5-A.
34543         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34544         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34545         * doc/invoke.texi: Document ARMv8.5-A.
34547 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
34549         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34550         (xorsign<mode>3): Likewise.
34552 2019-01-09  Jelinek  <jakub@redhat.com>
34554         PR middle-end/88758
34555         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34556         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34558         PR rtl-optimization/88331
34559         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34560         not currently_expanding_to_rtl.
34562 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
34564         * doc/invoke.texi (-Os): Remove trailing spaces.
34565         (-finline-functions): Remove reference to -O2.
34567 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
34569         PR rtl-optimization/79593
34570         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34572         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34573         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
34575 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
34577         PR bootstrap/88721
34578         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34579         to -1 on entry.
34581         PR debug/88723
34582         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34583         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34585 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
34587         PR target/88717
34588         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34589         ix86_avx_u128_mode_entry.
34591 2019-01-08  Martin Liska  <mliska@suse.cz>
34593         PR tree-optimization/88753
34594         * tree-switch-conversion.c (switch_conversion::build_one_array):
34595         Come up with local variable constructor.  Convert first to
34596         type of constructor values.
34598 2019-01-08  Richard Biener  <rguenther@suse.de>
34600         PR tree-optimization/86554
34601         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34602         rpo_avail): Move earlier.
34603         (visit_nary_op): When value-numbering to expressions
34604         with different overflow behavior make sure there's an
34605         available expression on the path.
34607 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
34609         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34610         aarch64_parse_branch_protection,
34611         struct aarch64_branch_protect_type,
34612         aarch64_handle_no_branch_protection,
34613         aarch64_handle_standard_branch_protection,
34614         aarch64_validate_mbranch_protection,
34615         aarch64_handle_pac_ret_protection,
34616         aarch64_handle_attr_branch_protection,
34617         accepted_branch_protection_string,
34618         aarch64_pac_ret_subtypes,
34619         aarch64_branch_protect_types,
34620         aarch64_handle_pac_ret_leaf): Define.
34621         (aarch64_override_options_after_change_1, aarch64_override_options):
34622         Add check for accepted_branch_protection_string.
34623         (aarch64_option_save): Save accepted_branch_protection_string.
34624         (aarch64_option_restore): Save accepted_branch_protection_string.
34625         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34626         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34627         msign-return-address.
34628         * doc/invoke.texi: Add mbranch-protection.
34630 2019-01-08  Alan Modra  <amodra@gmail.com>
34632         PR target/88614
34633         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34634         Delete "unknownp" parameter.  Adjust callers.  Handle
34635         CONST_INT, PLUS, MINUS, and MULT.
34636         (attr_value_aligned): Renamed from or_attr_value.
34637         (min_attr_value): Return INT_MIN for unhandled rtl case..
34638         (min_fn): ..and translate to INT_MAX here.
34639         (write_length_unit_log): Modify to cope without "unknown".
34640         (write_attr_value): Handle IF_THEN_ELSE.
34642 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
34644         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34645         optimization for masked stores.
34647 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
34649         PR middle-end/88567
34650         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34651         output vector directly to duplicate_and_interleave instead of
34652         going through a temporary.  Postpone insertion of ctor_seq to
34653         the end of the loop.
34655 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
34657         PR target/86891
34658         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34659         unsigned_p.  Handle signed and unsigned overflow correction as
34660         required.
34661         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34662         prototype.
34663         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34664         for operand 2.
34665         (add<mode>3_compareV_imm): Make this callable for expanding.
34666         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
34667         aarch64_plus_operand for operand 2.
34668         (subv<GPI:mode>_insn): New insn pattern.
34669         (subv<GPI:mode>_imm): Likewise.
34670         (negv<GPI:mode>3): New expand pattern.
34671         (negv<GPI:mode>_insn): New insn pattern.
34672         (negv<GPI:mode>_cmp_only): Likewise.
34673         (cmpv<GPI:mode>_insn): Likewise.
34674         (subvti4): Use register_operand for operand 1.  Update call to
34675         aarch64_expand_subvti.
34676         (usubvti4): Likewise.
34677         (negvti3): New expand pattern.
34678         (negdi_carryout): New insn pattern.
34679         (negvdi_carryinV): New insn pattern.
34680         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34681         version the named version.
34682         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34683         operands.
34684         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34685         patterns.
34686         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34687         patterns.
34688         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34689         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34690         (sub<mode>3_carryinCV): Delete.
34691         (sub<GPI:mode>3_carryinV): New expand pattern.
34692         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34694 2019-01-07  Richard Biener  <rguenther@suse.de>
34696         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34697         of tree_operand_hash.
34699 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
34701         PR tree-optimization/88598
34702         * tree.h (single_nonzero_element): Declare.
34703         * tree.c (single_nonzero_element): New function.
34704         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34705         if I is the only nonzero element of CST.
34707 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
34709         PR tree-optimization/88598
34710         * tree.h (initializer_each_zero_or_onep): Declare.
34711         * tree.c (initializer_each_zero_or_onep): New function.
34712         (signed_or_unsigned_type_for): Handle float types too.
34713         (unsigned_type_for, signed_type_for): Update comments accordingly.
34714         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34715         x & { 0 or -1, 0 or -1, ... }.
34717 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
34719         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34720         with x86_64-pc-linux-gnu.
34722 2019-01-07  Tom de Vries  <tdevries@suse.de>
34724         PR target/85486
34725         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34726         function.
34727         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34728         routines.
34730 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
34732         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34733         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34734         TARGET_AVX512F as condition.
34736         PR debug/88723
34737         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34738         const_not_ok_for_debug_p target hook.
34739         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34740         on UNSPEC and subexpressions thereof if all subexpressions of the
34741         UNSPEC are CONSTANT_P.
34743         PR tree-optimization/88676
34744         * tree-ssa-phiopt.c (two_value_replacement): New function.
34745         (tree_ssa_phiopt_worker): Call it.
34747         PR sanitizer/88619
34748         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34749         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34751         PR c++/85052
34752         * tree-vect-generic.c: Include insn-config.h and recog.h.
34753         (expand_vector_piecewise): Add defaulted ret_type argument,
34754         if non-NULL, use that in preference to type for the result type.
34755         (expand_vector_parallel): Formatting fix.
34756         (do_vec_conversion, do_vec_narrowing_conversion,
34757         expand_vector_conversion): New functions.
34758         (expand_vector_operations_1): Call expand_vector_conversion
34759         for VEC_CONVERT ifn calls.
34760         * internal-fn.def (VEC_CONVERT): New internal function.
34761         * internal-fn.c (expand_VEC_CONVERT): New function.
34762         * fold-const-call.c (fold_const_vec_convert): New function.
34763         (fold_const_call): Use it for CFN_VEC_CONVERT.
34764         * doc/extend.texi (__builtin_convertvector): Document.
34766 2019-01-07  Tom de Vries  <tdevries@suse.de>
34768         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34769         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34770         vector_red_partition, vector_red_sym): New global variables.
34771         (nvptx_option_override): Initialize vector_red_sym.
34772         (nvptx_declare_function_name): Restore red_partition register.
34773         (nvptx_file_end): Emit code to declare the vector reduction variables.
34774         (nvptx_output_red_partition): New function.
34775         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34776         large vector reductions.
34777         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34778         (nvptx_init_builtins): Add VECTOR_ADDR.
34779         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34780         Handle nvptx_expand_shared_addr.
34781         (nvptx_get_shared_red_addr): Add vector argument and handle large
34782         vectors.
34783         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34784         large vectors.
34785         (nvptx_goacc_reduction_init): Likewise.
34786         (nvptx_goacc_reduction_fini): Likewise.
34787         (nvptx_goacc_reduction_teardown): Likewise.
34788         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34789         init,fini,teardown}.
34790         (nvptx_init_axis_predicate): Initialize vector_red_partition.
34791         (nvptx_set_current_function): Init vector_red_partition.
34792         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34793         (nvptx_red_partition): New insn.
34794         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34796 2019-01-07  Tom de Vries  <tdevries@suse.de>
34798         PR target/85381
34799         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34800         empty loops.
34802 2019-01-07  Tom de Vries  <tdevries@suse.de>
34804         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34805         (nvptx_option_override): Init oacc_bcast_partition.
34806         (nvptx_init_oacc_workers): New function.
34807         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34808         (nvptx_needs_shared_bcast): New function.
34809         (nvptx_find_par): Generalize to enable vectors to use shared-memory
34810         to propagate state.
34811         (nvptx_shared_propagate): Initialize vector bcast partition and
34812         synchronization state.
34813         (nvptx_single): Generalize to enable vectors to use shared-memory
34814         to propagate state.
34815         (nvptx_process_pars): Likewise.
34816         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34817         * config/nvptx/nvptx.h (struct machine_function): Add
34818         bcast_partition and sync_bar members.
34820 2019-01-07  Tom de Vries  <tdevries@suse.de>
34822         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34823         (nvptx_apply_dim_limits): New function.
34824         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34825         PTX_WARP_SIZE.
34827 2019-01-07  Tom de Vries  <tdevries@suse.de>
34829         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34830         as late as possible.
34832 2019-01-07  Tom de Vries  <tdevries@suse.de>
34834         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34835         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34836         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34837         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34838         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34840 2019-01-07  Tom de Vries  <tdevries@suse.de>
34842         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34844 2019-01-07  Tom de Vries  <tdevries@suse.de>
34846         * omp-offload.c (oacc_get_min_dim): New function.
34847         * omp-offload.h (oacc_get_min_dim): Declare.
34849 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
34851         PR target/88521
34852         * config/i386/i386.c (function_value_ms_64): Return small sturct in
34853         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34855 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34857         PR tree-opt/86020
34858         Revert:
34859         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
34861         * ipa-inline.c (edge_badness): Use inlined_time instead of
34862         inline_summaries->get.
34864 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34866         * opts.c (enable_fdo_optimizations): Enable
34867         version-loops-for-strides, loop-interchange, unrol-and-jam
34868         and tree-loop-distribution.
34869         * invoke.texi: Document newly enabled options.
34871 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34873         * doc/invoke.texi (max-inline-insns-small): New parameters.
34874         * ipa-inline.c (want_early_inline_function_p): simplify.
34875         (want_inline_small_function_p): Fix pasto from previous patch;
34876         use max-inline-insns-small bound.
34877         * params.def (max-inline-insns-small): New param.
34878         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34879         variables correctly.
34881 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34883         * doc/invoke.texi: Document max-inline-insns-size,
34884         uninlined-function-insns, uninlined-function-time,
34885         uninlined-thunk-insns and uninlined-thunk-time.
34886         * params.def: Add max-inline-insns-size,
34887         uninlined-function-insns, uninlined-function-time,
34888         uninlined-thunk-insns and uninlined-thunk-time.
34889         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34890         new parameters.
34891         * ipa-inline.c (can_inline_edge_by_limits_p,
34892         want_inline_small_function_p): Use new parameters.
34894 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34896         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34898 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
34900         PR middle-end/82564
34901         PR target/88620
34902         * expr.c (expand_assignment): For calls returning VLA structures
34903         if to_rtx is not a MEM, force it into a stack temporary.
34905         PR debug/88635
34906         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34907         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34908         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34909         subexpressions of both operands.
34910         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34911         subrtxes are CONSTANT_P.
34912         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34913         2018-11-09 changes.
34915 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
34917         * params.def (hot-bb-count-ws-permille): Set to 990.
34919 2019-01-04  Martin Sebor  <msebor@redhat.com>
34921         PR c/88546
34922         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34923         leaf.
34925 2019-01-04  Martin Sebor  <msebor@redhat.com>
34927         PR c/88363
34928         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34930 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
34932         * gdbinit.in: Turn off pagination for the skip commands, restore
34933         it to previous state afterwards.
34935 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
34937         PR target/88594
34938         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34939         of GET_MODE (opN) as modes of the libcall arguments.
34941 2019-01-04  Jan Beulich  <jbeulich@suse.com>
34943         * config/i386/sse.md
34944         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34945         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34946         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34947         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34948         avx512f_vmcmp<mode>3<round_saeonly_name>,
34949         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34950         avx512f_maskcmp<mode>3,
34951         <avx512>_cvt<ssemodesuffix>2mask<mode>,
34952         <avx512>_cvt<ssemodesuffix>2mask<mode>,
34953         *<avx512>_cvtmask2<ssemodesuffix><mode>,
34954         *<avx512>_cvtmask2<ssemodesuffix><mode>,
34955         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34956         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34957         <avx512>_gt<mode>3<mask_scalar_merge_name>,
34958         <avx512>_gt<mode>3<mask_scalar_merge_name>,
34959         <avx512>_testm<mode>3<mask_scalar_merge_name>,
34960         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34961         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34962         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34963         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34964         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34965         avx512cd_maskb_vec_dup<mode>,
34966         avx512cd_maskw_vec_dup<mode>,
34967         avx512dq_fpclass<mode><mask_scalar_merge_name>,
34968         avx512dq_vmfpclass<mode>,
34969         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34970         instead of =Yk.
34972 2019-01-03  Martin Sebor  <msebor@redhat.com>
34974         PR tree-optimization/88659
34975         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34977 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
34979         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34980         unaligned vsx and avoid lxvd2x/stxvd2x.
34981         (gen_lvx_v4si_move): New function.
34983 2019-01-03  Tom de Vries  <tdevries@suse.de>
34985         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34986         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34987         function.
34988         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34990 2019-01-03  Tom de Vries  <tdevries@suse.de>
34992         * config/nvptx/nvptx.c (struct offload_attrs): New.
34993         (populate_offload_attrs): New function.  Factor mask extraction out of
34994         nvptx_reorg.  Add extraction of dimensions.
34995         (nvptx_reorg): Use populate_offload_attrs.
34997 2019-01-03  Tom de Vries  <tdevries@suse.de>
34999         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35000         cases for oacc_min_dims_p and routine_p.  Add asserts for
35001         oacc_default_dims_p and offload_region_p.
35003 2019-01-03  Tom de Vries  <tdevries@suse.de>
35005         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35006         factored out of ...
35007         (nvptx_goacc_validate_dims): ... here.
35009 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
35011         PR tree-optimization/85574
35012         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35013         structure.
35014         (struct ssa_equip_hash_traits): Declare.
35015         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35017 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
35019         PR debug/88644
35020         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35021         change it to qualified_type.
35023 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
35025         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35026         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35028 2019-01-02  Martin Sebor  <msebor@redhat.com>
35029             Jeff Law  <law@redhat.com>
35031         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35032         (get_range_strlen_tree): Update appropriately.
35033         (get_range_strlen)
35034         * gimple-fold.h (get_range_strlen): Drop unused last argument.
35036         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35037         rather than set_range_info.
35038         * tree-ssa-strlen.c (set_strlen_range): Extracted from
35039         maybe_set_strlen_range.  Handle potentially boundary crossing
35040         cases more conservatively.
35041         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35042         Call set_strlen_range.
35043         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35045         PR middle-end/88663
35046         * gimple-fold.c (get_range_strlen): Update prototype to no longer
35047         need the flexp argument.
35048         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
35049         from calls to get_range_strlen.  Update comments.  Just update
35050         VAL for an unterminated const char array and let the reset of the
35051         code handle it normally.  No longer try to set *flexp.  Adjust
35052         return value.
35053         (get_range_strlen): Update for the new get_range_strlen API.
35054         (get_maxval_strlen): Similarly.
35055         (gimple_fold_builtin_strlen): Handle update meaning of return value
35056         from get_range_strlen.
35057         * gimple-ssa-sprintf.c (get_string_length): Update for the new
35058         get_range_strlen API.
35060 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
35062         PR lto/88130
35063         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35064         false at WPA time when body was removed.
35066 2019-01-02  Martin Liska  <mliska@suse.cz>
35068         PR tree-optimization/88650
35069         * predict.c (set_even_probabilities): Calculate probability
35070         remainer only when really used.
35072 2019-01-02  Richard Biener  <rguenther@suse.de>
35074         PR middle-end/88651
35075         * tree-data-ref.c (analyze_subscript_affine_affine): Use
35076         widest_ints when mangling max_stmt_execution results.
35078 2019-01-02  Richard Biener  <rguenther@suse.de>
35080         PR tree-optimization/88621
35081         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35082         bitfields when canoncalizing.
35084 2019-01-02  Richard Biener  <rguenther@suse.de>
35086         PR target/87545
35087         * config/i386/x86-tune-costs.h (intel_cost): Adjust
35088         cost of cheap SSE instruction.
35090 2019-01-02  Richard Biener  <rguenther@suse.de>
35092         PR ipa/85574
35093         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35094         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35095         function.
35096         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35097         set after UIDs before splitting them.
35099 2019-01-01  Martin Sebor  <msebor@redhat.com>
35100             Jeff Law  <law@redhat.com>
35102         * gimple-fold.c (get_range_strlen_tree): Record if the computed
35103         length is optimistic.  If it is, then arrange to compute the
35104         conservative length as well.
35106         * gimple-fold.h (get_range_strlen): Update prototype.
35107         * builtins.c (check_access): Update call to get_range_strlen to use
35108         c_strlen_data pointer.   Change various variable accesses to instead
35109         pull data from the c_strlen_data structure.
35110         (check_strncat_sizes, expand_builtin_strncat): Likewise.
35111         * calls.c (maybe_warn_nonstring_arg): Likewise.
35112         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
35113         minimum length if maximum lengh is unknown.
35114         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
35115         that used c_strlen, it's no longer needed.  Restructure slightly.
35116         (format_string): Set unlikely range appropriately.
35117         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
35118         formatting issues.
35119         (get_range_strlen): Accept c_strlen_data pointer for external
35120         call sites as well.  Pass through to call to internal get_range_strlen.
35121         Adjust minlen, maxlen and maxbound as needed.
35122         (get_maxval_strlen): Update comments.
35123         (gimple_fold_builtin_strlen): Update call to get_range_strlen
35124         to use c_strlen_data pointer.  Change variable accesses to instead
35125         use c_strlen_data data members.
35127         * gimple-fold.c (get_range_strlen): Update prototype.
35128         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
35129         local variables.  Use pdata to return information to caller.
35130         Update calls to get_range_strlen.  Update pdata->maxbound.
35131         (get_range_strlen -- static version): Similarly.
35132         (get_range_strlen -- extern version): Update for internal
35133         get_range_strlen API change.  Convert to external data format.
35134         (get_maxval_strlen): Similarly.
35136 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
35138         * coverage.c (get_coverage_counts): Use current_function_decl.
35139         * profile.c (read_thunk_profile): New function.
35140         (branch_prob): Add THUNK parameter.
35141         * tree-profile.c (tree_profiling): Handle thunks.
35142         * value-prof.c (init_node_map): Handle thunks.
35143         * value-prof.h (branch_prob): Upate prototype.
35144         (read_thunk_profile): Declare.
35146 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
35148         Update copyright years.
35150         * gcc.c (process_command): Update copyright notice dates.
35151         * gcov-dump.c (print_version): Ditto.
35152         * gcov.c (print_version): Ditto.
35153         * gcov-tool.c (print_version): Ditto.
35154         * gengtype.c (create_file): Ditto.
35155         * doc/cpp.texi: Bump @copying's copyright year.
35156         * doc/cppinternals.texi: Ditto.
35157         * doc/gcc.texi: Ditto.
35158         * doc/gccint.texi: Ditto.
35159         * doc/gcov.texi: Ditto.
35160         * doc/install.texi: Ditto.
35161         * doc/invoke.texi: Ditto.
35163 Copyright (C) 2019 Free Software Foundation, Inc.
35165 Copying and distribution of this file, with or without modification,
35166 are permitted in any medium without royalty provided the copyright
35167 notice and this notice are preserved.