Rename function.
[official-gcc.git] / gcc / ChangeLog
blob55680d13c2953c5d64ce7bfafbe4d2eaec55d9cd
1 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
3         * config/rs6000/predicates.md (prefixed_mem_operand): Call
4         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
5         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
6         Rename function from rs6000_prefixed_address.
7         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8         TARGET_HAS_TOC.
9         (TARGET_TOC): Likewise.
10         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11         rs6000.h.
12         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
13         TARGET_HAS_TOC.
14         (TARGET_TOC): Likewise.
15         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16         rs6000.h.
17         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18         TARGET_HAS_TOC.
19         (TARGET_TOC): Likewise.
20         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21         check to require -mcmodel=medium for pc-relative addressing.
22         (create_TOC_reference): Add assertion for TARGET_TOC.
23         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
24         TARGET_NO_TOC.
25         (rs6000_emit_move): Likewise.
26         (TOC_alias_set): Rename TOC alias set static variable from 'set'
27         to 'TOC_alias_set'.
28         (get_TOC_alias_set): Likewise.
29         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
30         TARGET_NO_TOC.
31         (rs6000_can_eliminate): Likewise.
32         (rs6000_prefixed_address_mode_p): Rename function from
33         rs6000_prefixed_address.
34         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
35         TARGET_HAS_TOC and not pc-relative.
36         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
37         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
38         TARGET_HAS_TOC.
39         (TARGET_TOC): Likewise.
40         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
41         rs6000.h.
43 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
45         PR target/91188
46         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
47         for operand 0.  Do not use (match_dup) to match operand 1 with
48         operand 0.  Add check in insn constraint that either input operand
49         matches operand 0.  Use SWI12 mode iterator to also handle
50         HImode operands.
51         (*and<mode>_1_slp): Ditto.
52         (*<code>qi_1_slp): Ditto.
53         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
54         Do not use (match_dup) to match operand 1 with operand 0.  Add
55         check in insn constraint that operand 1 matches operand 0.
56         Use SWI12 mode iterator to also handle HImode operands.
57         (*ashl<mode>3_1_slp): Ditto.
58         (*<shift_insn><mode>3_1_slp): Ditto.
59         (*<rotate_insn><mode>3_1_slp): Ditto.
61 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
63         * config/arm/arm-builtins.c
64         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
65         (arm_expand_unop_builtin): Likewise.
66         * config/arm/crypto.md
67         (crypto_sha1h): Convert from define_insn to define_expand.
68         (crypto_<crypto_pattern>): Likewise.
69         (crypto_sha1h_lb): New define_insn.
70         (crypto_<crypto_pattern>_lb): Likewise.
72 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
74         PR target/90317
75         * config/arm/arm_neon.h
76         (vsha1h_u32): Refactor.
77         (vsha1cq_u32): Likewise.
78         (vsha1pq_u32): Likewise.
79         (vsha1mq_u32): Likewise.
80         * config/arm/crypto.md:
81         (crypto_sha1h): Remove zero extend, correct vec select.
82         (crypto_sha1c): Correct vec select.
83         (crypto_sha1m): Likewise.
84         (crypto_sha1p): Likewise.
86 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
88         * config/arm/predicates.md (arm_borrow_operation): New predicate.
89         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
90         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
91         (subdi_zesidi_zesidi): Likewise.
92         (negdi2_compare, negdi2_insn): Likewise.
93         (negdi_extensidi): Likewise.
94         (negdi_zero_extendsidi): Likewise.
95         (arm_cmpdi_insn): Likewise.
96         (subsi3_carryin): Use arm_borrow_operation.
97         (subsi3_carryin_const): Likewise.
98         (subsi3_carryin_const0): Likewise.
99         (subsi3_carryin_compare): Likewise.
100         (subsi3_carryin_compare_const): Likewise.
101         (subsi3_carryin_compare_const0): Likewise.
102         (subsi3_carryin_shift): Likewise.
103         (rsbsi3_carryin_shift): Likewise.
104         (negsi2_carryin_compare): Likewise.
106 2019-07-18  Bin Cheng  <bin.linux@linux.alibaba.com>
108         PR tree-optimization/91137
109         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
110         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
111         Init, use and fini the above new field.
112         (determine_base_object_1): New function.
113         (determine_base_object): Reimplement using walk_tree.
115 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
117         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
118         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
119         CLEANUP_FORCE_FAST_DCE is set.
120         * ifcvt.c (rest_of_handle_if_conversion): Pass
121         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
122         if-conversion succeeded.
124 2019-07-18  Richard Biener  <rguenther@suse.de>
126         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
127         branches to make code less indented.
129 2019-07-17  Alexandre Oliva <oliva@adacore.com>
131         PR middle-end/81824
132         * attribs.c (decls_mismatched_attributes): Simplify the logic
133         that avoids duplicates and false positives.
135 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
137         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
138         data into data section when generating PIC code.
139         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
140         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
141         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
142         return 2 for SOM and 0 for other targets.
143          
144 2019-07-17  Jeff Law  <law@redhat.com>
146         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
147         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
148         avoid unexpected switch statement fallthru.
150 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
152         * config/i386/i386.md (*add<dwi>3_doubleword):
153         Remove redundant constraints.
154         (*add<mode>_1): Ditto.
155         (*addhi_1): Ditto.
156         (*addqi_1): Ditto.
157         (*addqi_1_slp): Ditto.
158         (*add<mode>_2): Ditto.
159         (*addv<mode>4): Ditto.
160         (*sub<dwi>3_doubleword): Ditto.
161         (*sub<mode>_1): Ditto.
162         (*subqi_1_slp): Ditto.
163         (*sub<mode>_2): Ditto.
164         (*subv<mode>4): Ditto.
165         (*sub<mode>_3): Ditto.
166         (@add<mode>3_carry): Ditto.
167         (@sub<mode>3_carry): Ditto.
168         (*add<mode>3_cc_overflow_1): Ditto.
169         (*add<mode>3_zext_cc_overflow_2): Ditto.
170         (*anddi_1): Ditto.
171         (*and<mode>_1): Ditto.
172         (*andqi_1): Ditto.
173         (*andqi_1_slp): Ditto.
174         (*anddi_2): Ditto.
175         (*andqi_2_maybe_si): Ditto.
176         (*and<mode>_2): Ditto.
177         (*andqi_2_slp): Ditto.
178         (*<code><mode>_1): Ditto.
179         (*<code>qi_1): Ditto.
180         (*<code>qi_1_slp): Ditto.
181         (*<code><mode>_2): Ditto.
182         (*<code>qi_2_slp): Ditto.
184 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
186         * alias.c (record_component_aliases): Do not simplify pointed-to
187         types of ODR types.
189 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
191         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
192         partial reg stall on alternative 2.
194 2019-07-17  Richard Biener  <rguenther@suse.de>
196         PR tree-optimization/91178
197         * tree-ssa.c (release_defs_bitset): Iterate from higher to
198         lower SSA names to avoid quadratic behavior in the common case.
199         * tree-data-ref.c (split_constant_offset): Add limit argument
200         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
201         (split_constant_offset_1): Add limit argument and use it to
202         limit SSA def walking.  Optimize the common plus/minus case.
204 2019-07-17  Richard Biener  <rguenther@suse.de>
206         PR tree-optimization/91178
207         * tree-vect-stmts.c (get_group_load_store_type): For SLP
208         loads with a gap larger than the vector size always use
209         VMAT_STRIDED_SLP.
210         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
211         avoid loading vectors that are only contained in the gap
212         and thus are not needed.
214 2019-07-17  Richard Biener  <rguenther@suse.de>
216         PR tree-optimization/91180
217         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
218         computation for memset partial defs.
220 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
222         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
223         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
224         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
225         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
226         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
227         * omp-grid.c (grid_process_grid_body,
228         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
229         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
230         == GF_OMP_FOR_KIND_SIMD.
231         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
232         check_omp_nesting_restrictions, scan_omp_1_stmt,
233         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
234         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
235         omp_find_scan): Likewise.
236         * omp-expand.c (expand_omp_for): Likewise.
237         * omp-general.c (omp_extract_for_data): Likewise.
239         PR tree-optimization/91157
240         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
241         a vector boolean with scalar mode.
242         (expand_vector_condition): Handle first operand being a vector boolean
243         with scalar mode.
244         (expand_vector_operations_1): For comparisons, don't bail out early
245         if the return type is vector boolean with scalar mode, but comparison
246         operand type is not.
248 2019-07-17  Richard Biener  <rguenther@suse.de>
250         PR tree-optimization/91181
251         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
252         IFN_LOADs as calls.
254 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
256         * config/i386/i386.md (*testdi_1): Match CCZmode for
257         constants that might have the SImode sign bit set.
258         (*testqi_1_maybe_si): Remove "!" constraint modifier.
259         Use correct constraints for pentium pairing.
260         (*test<mode>_1): Ditto.
262 2019-07-16  Jeff Law  <law@redhat.com>
264         PR rtl-optimization/91173
265         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
266         SSA_NAME with a constant value, fold its value into the offset
267         and clear the base before calling gen_addr_rtx.
269 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
271         PR rtl-optimization/91164
272         * dse.c (rest_of_handle_dse): If dead edges have been purged,
273         invalidate dominance info.
275 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
277         * read-md.h (md_reader::record_potential_iterator_use): Add a
278         file_location parameter.
279         * read-rtl.c (attribute_use::loc): New field.
280         (map_attr_string): Take a file_location parameter.  Report cases
281         in which attributes map to multiple distinct values.
282         (apply_attribute_uses): Update call accordingly.
283         (md_reader::handle_overloaded_name): Likewise.
284         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
285         nonnull strings.
286         (record_attribute_use): Take a file_location parameter.
287         Initialize attribute_use::loc.
288         (md_reader::record_potential_iterator_use): Take a file_location
289         parameter.  Update call to record_attribute_use.
290         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
291         (rtx_reader::read_rtx_code): Likewise.
292         (rtx_reader::read_rtx_operand): Likewise.  Record a location
293         for implicitly-expanded empty strings.
295 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
297         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
298         Use file_location instead of separate fields.
299         (md_reader::set_md_ptr_loc): Take a file_location instead of a
300         separate filename and line number.
301         * read-md.c (ptr_loc): As above.
302         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
303         (md_reader::fprint_md_ptr_loc): Likewise.
304         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
305         instead of a separate filename and line number.
306         (md_reader::read_string): Update call accordingly.
308 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
310         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
311         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
312         leaving the choice between SFDF and P implicit.
313         (*mov<mode>_update2): Likewise.
314         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
315         rather than leaving the choice betweem IBM128 and GPR implicit.
316         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
317         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
318         QHSI implicit.
319         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
320         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
321         * config/rs6000/vsx.md
322         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
323         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
324         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
325         and VSX_EXTRACT_I implicit.
327 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
329         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
330         Explicitly use <MOVEP1:MODE> for the mode attribute.
332 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
334         PR bootstrap/91176
335         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
337 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
339         PR target/91050
340         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
341         .machine directive.
343 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
345         * config/i386/i386.md (@test<mode>_ccno_1):
346         Rename from test<mode>_ccno_1.
347         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
348         (*testqi_1_maybe_si): Remove modrm attribute.
349         (*test<mode>_1): Ditto.
350         * config/i386/i386-expand.c (ix86_split_idivmod): Use
351         gen_test_ccno_1 and gen_extend_insn.
353 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
355         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
356         to 0.
358 2019-07-15  Richard Biener  <rguenther@suse.de>
360         PR middle-end/91162
361         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
362         node make sure to replace all uses with something valid.
364 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
366         PR tree-optimization/88497
367         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
368         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
369         function undistribute_bitref_for_vector.
370         (undistribute_bitref_for_vector): New function.
371         (cleanup_vinfo_map): Likewise.
372         (sort_by_mach_mode): Likewise.
374 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
376         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
377         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
378         and testdi_ccno_1 using SWI48 mode attribute.
379         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
380         x86_64_szext_general_operand.
381         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
382         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
383         instead of genera_operand mode attribute.
385 2019-07-14  Vladislav Ivanishin <vlad@ispras.ru>
387         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
388         fopen and fclose to their respective types.
389         (DotFn.invoke): Ditto.
391 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
393         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
394         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
395         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
396         (array_index_predicate): Remove.
397         (analyze_function_body): Account cost for variable ofsetted array
398         indexing.
399         (estimate_node_size_and_time): Do not compute array index hint.
400         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
401         (inline_read_section): Do not read array index hint.
402         (ipa_fn_summary_write): Do not write array index hint.
403         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
404         * ipa-cp.c (hint_time_bonus): Remove.
405         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
406         (ipa_fnsummary): Remove array_index.
407         * ipa-inline.c (want_inline_small_function_p): Do not use
408         array_index.
409         (edge_badness): Likewise.
410         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
412 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
414         PR target/91148
415         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
416         superfluous "builtin function" phrasing.
418 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
420         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
421         Break out from ...
422         (aliasing_component_refs_walk): Break out from ...
423         (aliasing_component_refs_p): ... here.
425 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
427         PR target/91148
428         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
429         "builtin function" phrasing.
431 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
433         PR target/90723
434         * recog.h (temporary_volatile_ok): New class.
435         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
436         volatile_ok temporarily to true using temporary_volatile_ok.
437         * expr.c (emit_block_move_via_cpymem): Likewise.
438         * optabs.c (maybe_legitimize_operand): Likewise.
440 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
442         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
443         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
444         uses inside of order(concurrent) constructs.
445         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
446         OMP_CLAUSE_ORDER is seen.
447         * omp-low.c (struct omp_context): Add order_concurrent member.
448         (scan_sharing_clauses): Set ctx->order_concurrent if
449         OMP_CLAUSE_ORDER is seen.
450         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
451         of simd order(concurrent).  Diagnose constructs not allowed inside of
452         for order(concurrent).
453         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
454         complaining about static double setjmp (double); or class static
455         methods or non-global namespace setjmps.
456         (omp_runtime_api_call): New function.
457         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
458         order(concurrent) loops.
460 2019-07-12  Martin Sebor  <msebor@redhat.com>
462         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
463         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
464         * tree-vrp.c (vrp_prop::check_mem_ref): Use
465         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
467 2019-07-12  Jan Hubicka  <jh@suse.cz>
469         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
470         (indirect_refs_may_alias_p): ... here.
471         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
472         mem refs in the access paths.
474 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
476         PR tree-optimization/89430
477         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
478         store elimination for local variable without address escape.
480 2019-07-12  Jeff Law  <law@redhat.com>
482         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
483         for the ".far" section.
485 2019-07-12  Richard Biener  <rguenther@suse.de>
487         PR tree-optimization/91145
488         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
489         chain check.
491 2019-07-12  Alexandre Oliva <oliva@adacore.com>
493         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
494         rather than this_state as the lowering context for the ELSE
495         seq in a GIMPLE_EH_ELSE.
497 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
499         * vector-builder.h (vector_builder::elt): Allow already-supplied
500         elements to be read back before building is complete.
502 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
504         PR rtl-optimization/91136
505         * df-core.c (ACCESSING REFS): Fix typos in comment.
506         * resource.c (mark_target_live_reg): Add artificial defs that occur at
507         the beginning of the block to the initial set of live registers.
509 2019-07-12  Richard Biener  <rguenther@suse.de>
511         * fold-const.h (get_array_ctor_element_at_index): Adjust.
512         * fold-const.c (get_array_ctor_element_at_index): Add
513         ctor_idx output parameter informing the caller where in
514         the constructor the element was (not) found.  Add early exit
515         for when the ctor is sorted.
516         * gimple-fold.c (fold_array_ctor_reference): Support constant
517         folding across multiple array elements.
519 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
521         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
522         doesn't have location, set the current location to the function's end.
524 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
526         * config/aarch64/aarch64.md (*compare_condjump<mode>)
527         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
528         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
529         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
530         * config/aarch64/aarch64-simd.md
531         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
532         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
533         * config/aarch64/aarch64-sve.md
534         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
535         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
537 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
539         * doc/md.texi: Document that @ patterns can have different
540         numbers of operands.
541         * genemit.c (handle_overloaded_gen): Handle this case.
542         * genopinit.c (handle_overloaded_gen): Likewise.
543         * gensupport.c (replace_operands_with_dups): Iterate over
544         the new rtx's format rather than the old one's.
546 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
548         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
549         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
550         order clause entries.
551         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
552         * tree-pretty-print.c (dump_omp_clause): Likewise.
553         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
554         Likewise.
555         * omp-low.c (scan_sharing_clauses): Likewise.
556         * tree-nested.c (convert_nonlocal_omp_clauses,
557         convert_local_omp_clauses): Likewise.
559 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
561         * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
562         fallthrough target of current basic block isn't the placed
563         right next.
565 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
567         PR target/90980
568         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
569         (_mm512_storeu_epi64): Likewise.
570         (_mm512_loadu_epi32): Likewise.
571         (_mm512_storeu_epi32): Likewise.
572         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
573         (_mm_storeu_epi64): Likewise.
574         (_mm256_storeu_epi32): Likewise.
575         (_mm_storeu_epi32): Likewise.
577 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
579         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
581 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
583         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
584         Handle Modula-2.
586 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
588         PR target/91124
589         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
590         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
591         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
592         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
593         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
594         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
595         define_insns.
596         (ufix_truncv2dfv2si2<mask_name>): Change into ...
597         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
598         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
599         define_insns.
600         (sse2_cvttpd2dq<mask_name>): Change into ...
601         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
602         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
603         (*sse2_cvtpd2dq<mask_name>): Change into ...
604         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
605         Add "C" constraint to const0_operand.
606         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
607         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
608         changes.
610         PR target/91124
611         * config/i386/i386-builtin-types.def
612         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
613         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
614         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
615         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
616         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
617         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
618         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
619         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
620         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
621         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
622         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
623         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
624         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
625         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
626         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
627         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
628         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
629         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
630         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
631         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
632         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
633         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
634         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
635         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
636         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
637         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
638         __builtin_ia32_vpdpbusd_v4si_maskz,
639         __builtin_ia32_vpdpbusds_v16si_mask,
640         __builtin_ia32_vpdpbusds_v16si_maskz,
641         __builtin_ia32_vpdpbusds_v8si_mask,
642         __builtin_ia32_vpdpbusds_v8si_maskz,
643         __builtin_ia32_vpdpbusds_v4si_mask,
644         __builtin_ia32_vpdpbusds_v4si_maskz,
645         __builtin_ia32_vpdpwssd_v16si_mask,
646         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
647         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
648         __builtin_ia32_vpdpwssd_v4si_maskz,
649         __builtin_ia32_vpdpwssds_v16si_mask,
650         __builtin_ia32_vpdpwssds_v16si_maskz,
651         __builtin_ia32_vpdpwssds_v8si_mask,
652         __builtin_ia32_vpdpwssds_v8si_maskz,
653         __builtin_ia32_vpdpwssds_v4si_mask,
654         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
655         suffixed types rather than *_INT.
656         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
657         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
658         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
659         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
660         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
661         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
663 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
665         * tree-vrp.c (intersect_ranges): If we know the intersection is
666         empty, there is no need to conservatively add anything else to
667         the set.
669 2019-07-11  Richard Biener  <rguenther@suse.de>
671         PR middle-end/91131
672         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
673         when the object is volatile and we have not cleared it even though
674         there are no nonzero elements.
676 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
678         * config/rs6000/predicates.md (cint34_operand): Update
679         SIGNED_34BIT_OFFSET_P call.
680         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
681         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
682         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
683         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
684         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
685         argument.
686         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
687         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
688         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
689         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
690         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
692 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
694         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
695         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
696         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
697         (DEF_MIN_OSX_VERSION): New.
699 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
701         * fold-const.c (fold_relational_const): Fix folding of
702         vector-to-scalar NE_EXPRs.
703         (test_vector_folding): Add more tests.
705 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
707         PR target/91060
708         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
709         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
710         (vec_setv2di_internal): Reexpress as...
711         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
712         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
713         rather than gen_neon_vset_lane<mode>.
715 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
717         PR target/91102
718         * lra-constraints.c (process_alt_operands): Don't match user
719         defined regs only if they are early clobbers.
721 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
723         * wide-int.h (wi::lshift): Reject negative values for the fast path.
725 2019-07-10  Richard Biener  <rguenther@suse.de>
727         PR tree-optimization/91126
728         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
729         native encoding offset for BYTES_BIG_ENDIAN.
730         (vn_reference_lookup_3): Likewise.
732 2019-07-10  Richard Biener  <rguenther@suse.de>
734         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
735         LHS whenever possible.
737 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
739         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
740         from ...; work also on duplicated types.
741         (nonoverlapping_component_refs_since_match): ... here
742         (ncr_type_uid): Break out from ...
743         (ncr_compar): ... here; look for TYPE_UID of canonical type if
744         available.
745         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
746         the types and nonoverlapping_component_refs_p_1 to disambiguate.
748 2019-07-09  Martin Sebor  <msebor@redhat.com>
750         PR tree-optimization/90989
751         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
752         optimization to just single character stores.
754 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
756         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
757         Swap operands only once.
759 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
761         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
762         for both call instructions.
764 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
766         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
767         rather than GET_MODE_BITSIZE to better handle partial integer modes.
769 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
771         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
772         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
773         function from rs6000-logue.c back to rs6000.c.
774         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
776 2019-07-09  Martin Sebor  <msebor@redhat.com>
778         PR c++/61339
779         * auto-profile.c: Change class-key of PODs to struct and others
780         to class.
781         * basic-block.h: Same.
782         * bitmap.c (bitmap_alloc): Same.
783         * bitmap.h: Same.
784         * builtins.c (expand_builtin_prefetch): Same.
785         (expand_builtin_interclass_mathfn): Same.
786         (expand_builtin_strlen): Same.
787         (expand_builtin_mempcpy_args): Same.
788         (expand_cmpstr): Same.
789         (expand_builtin___clear_cache): Same.
790         (expand_ifn_atomic_bit_test_and): Same.
791         (expand_builtin_thread_pointer): Same.
792         (expand_builtin_set_thread_pointer): Same.
793         * caller-save.c (setup_save_areas): Same.
794         (replace_reg_with_saved_mem): Same.
795         (insert_restore): Same.
796         (insert_save): Same.
797         (add_used_regs): Same.
798         * cfg.c (get_bb_copy): Same.
799         (set_loop_copy): Same.
800         * cfg.h: Same.
801         * cfganal.h: Same.
802         * cfgexpand.c (alloc_stack_frame_space): Same.
803         (add_stack_var): Same.
804         (add_stack_var_conflict): Same.
805         (add_scope_conflicts_1): Same.
806         (update_alias_info_with_stack_vars): Same.
807         (expand_used_vars): Same.
808         * cfghooks.c (redirect_edge_and_branch_force): Same.
809         (delete_basic_block): Same.
810         (split_edge): Same.
811         (make_forwarder_block): Same.
812         (force_nonfallthru): Same.
813         (duplicate_block): Same.
814         (lv_flush_pending_stmts): Same.
815         * cfghooks.h: Same.
816         * cfgloop.c (flow_loops_cfg_dump): Same.
817         (flow_loop_nested_p): Same.
818         (superloop_at_depth): Same.
819         (get_loop_latch_edges): Same.
820         (flow_loop_dump): Same.
821         (flow_loops_dump): Same.
822         (flow_loops_free): Same.
823         (flow_loop_nodes_find): Same.
824         (establish_preds): Same.
825         (flow_loop_tree_node_add): Same.
826         (flow_loop_tree_node_remove): Same.
827         (flow_loops_find): Same.
828         (find_subloop_latch_edge_by_profile): Same.
829         (find_subloop_latch_edge_by_ivs): Same.
830         (mfb_redirect_edges_in_set): Same.
831         (form_subloop): Same.
832         (merge_latch_edges): Same.
833         (disambiguate_multiple_latches): Same.
834         (disambiguate_loops_with_multiple_latches): Same.
835         (flow_bb_inside_loop_p): Same.
836         (glb_enum_p): Same.
837         (get_loop_body_with_size): Same.
838         (get_loop_body): Same.
839         (fill_sons_in_loop): Same.
840         (get_loop_body_in_dom_order): Same.
841         (get_loop_body_in_custom_order): Same.
842         (release_recorded_exits): Same.
843         (get_loop_exit_edges): Same.
844         (num_loop_branches): Same.
845         (remove_bb_from_loops): Same.
846         (find_common_loop): Same.
847         (delete_loop): Same.
848         (cancel_loop): Same.
849         (verify_loop_structure): Same.
850         (loop_preheader_edge): Same.
851         (loop_exit_edge_p): Same.
852         (single_exit): Same.
853         (loop_exits_to_bb_p): Same.
854         (loop_exits_from_bb_p): Same.
855         (get_loop_location): Same.
856         (record_niter_bound): Same.
857         (get_estimated_loop_iterations_int): Same.
858         (max_stmt_executions_int): Same.
859         (likely_max_stmt_executions_int): Same.
860         (get_estimated_loop_iterations): Same.
861         (get_max_loop_iterations): Same.
862         (get_max_loop_iterations_int): Same.
863         (get_likely_max_loop_iterations): Same.
864         * cfgloop.h (simple_loop_desc): Same.
865         (get_loop): Same.
866         (loop_depth): Same.
867         (loop_outer): Same.
868         (loop_iterator::next): Same.
869         (loop_outermost): Same.
870         * cfgloopanal.c (mark_irreducible_loops): Same.
871         (num_loop_insns): Same.
872         (average_num_loop_insns): Same.
873         (expected_loop_iterations_unbounded): Same.
874         (expected_loop_iterations): Same.
875         (mark_loop_exit_edges): Same.
876         (single_likely_exit): Same.
877         * cfgloopmanip.c (fix_bb_placement): Same.
878         (fix_bb_placements): Same.
879         (remove_path): Same.
880         (place_new_loop): Same.
881         (add_loop): Same.
882         (scale_loop_frequencies): Same.
883         (scale_loop_profile): Same.
884         (create_empty_if_region_on_edge): Same.
885         (create_empty_loop_on_edge): Same.
886         (loopify): Same.
887         (unloop): Same.
888         (fix_loop_placements): Same.
889         (copy_loop_info): Same.
890         (duplicate_loop): Same.
891         (duplicate_subloops): Same.
892         (loop_redirect_edge): Same.
893         (can_duplicate_loop_p): Same.
894         (duplicate_loop_to_header_edge): Same.
895         (mfb_keep_just): Same.
896         (has_preds_from_loop): Same.
897         (create_preheader): Same.
898         (create_preheaders): Same.
899         (lv_adjust_loop_entry_edge): Same.
900         (loop_version): Same.
901         * cfgloopmanip.h: Same.
902         * cgraph.h: Same.
903         * cgraphbuild.c: Same.
904         * combine.c (make_extraction): Same.
905         * config/i386/i386-features.c: Same.
906         * config/i386/i386-features.h: Same.
907         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
908         (ix86_emit_outlined_ms2sysv_restore): Same.
909         (ix86_noce_conversion_profitable_p): Same.
910         (ix86_init_cost): Same.
911         (ix86_simd_clone_usable): Same.
912         * configure.ac: Same.
913         * coretypes.h: Same.
914         * data-streamer-in.c (string_for_index): Same.
915         (streamer_read_indexed_string): Same.
916         (streamer_read_string): Same.
917         (bp_unpack_indexed_string): Same.
918         (bp_unpack_string): Same.
919         (streamer_read_uhwi): Same.
920         (streamer_read_hwi): Same.
921         (streamer_read_gcov_count): Same.
922         (streamer_read_wide_int): Same.
923         * data-streamer.h (streamer_write_bitpack): Same.
924         (bp_unpack_value): Same.
925         (streamer_write_char_stream): Same.
926         (streamer_write_hwi_in_range): Same.
927         (streamer_write_record_start): Same.
928         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
929         (add_cross_iteration_register_deps): Same.
930         (build_intra_loop_deps): Same.
931         * df-core.c (df_analyze): Same.
932         (loop_post_order_compute): Same.
933         (loop_inverted_post_order_compute): Same.
934         * df-problems.c (df_rd_alloc): Same.
935         (df_rd_simulate_one_insn): Same.
936         (df_rd_local_compute): Same.
937         (df_rd_init_solution): Same.
938         (df_rd_confluence_n): Same.
939         (df_rd_transfer_function): Same.
940         (df_rd_free): Same.
941         (df_rd_dump_defs_set): Same.
942         (df_rd_top_dump): Same.
943         (df_lr_alloc): Same.
944         (df_lr_reset): Same.
945         (df_lr_local_compute): Same.
946         (df_lr_init): Same.
947         (df_lr_confluence_n): Same.
948         (df_lr_free): Same.
949         (df_lr_top_dump): Same.
950         (df_lr_verify_transfer_functions): Same.
951         (df_live_alloc): Same.
952         (df_live_reset): Same.
953         (df_live_init): Same.
954         (df_live_confluence_n): Same.
955         (df_live_finalize): Same.
956         (df_live_free): Same.
957         (df_live_top_dump): Same.
958         (df_live_verify_transfer_functions): Same.
959         (df_mir_alloc): Same.
960         (df_mir_reset): Same.
961         (df_mir_init): Same.
962         (df_mir_confluence_n): Same.
963         (df_mir_free): Same.
964         (df_mir_top_dump): Same.
965         (df_word_lr_alloc): Same.
966         (df_word_lr_reset): Same.
967         (df_word_lr_init): Same.
968         (df_word_lr_confluence_n): Same.
969         (df_word_lr_free): Same.
970         (df_word_lr_top_dump): Same.
971         (df_md_alloc): Same.
972         (df_md_simulate_one_insn): Same.
973         (df_md_reset): Same.
974         (df_md_init): Same.
975         (df_md_free): Same.
976         (df_md_top_dump): Same.
977         * df-scan.c (df_insn_delete): Same.
978         (df_insn_rescan): Same.
979         (df_notes_rescan): Same.
980         (df_sort_and_compress_mws): Same.
981         (df_install_mws): Same.
982         (df_refs_add_to_chains): Same.
983         (df_ref_create_structure): Same.
984         (df_ref_record): Same.
985         (df_def_record_1): Same.
986         (df_find_hard_reg_defs): Same.
987         (df_uses_record): Same.
988         (df_get_conditional_uses): Same.
989         (df_get_call_refs): Same.
990         (df_recompute_luids): Same.
991         (df_get_entry_block_def_set): Same.
992         (df_entry_block_defs_collect): Same.
993         (df_get_exit_block_use_set): Same.
994         (df_exit_block_uses_collect): Same.
995         (df_mws_verify): Same.
996         (df_bb_verify): Same.
997         * df.h (df_scan_get_bb_info): Same.
998         * doc/tm.texi: Same.
999         * dse.c (record_store): Same.
1000         * dumpfile.h: Same.
1001         * emit-rtl.c (const_fixed_hasher::equal): Same.
1002         (set_mem_attributes_minus_bitpos): Same.
1003         (change_address): Same.
1004         (adjust_address_1): Same.
1005         (offset_address): Same.
1006         * emit-rtl.h: Same.
1007         * except.c (dw2_build_landing_pads): Same.
1008         (sjlj_emit_dispatch_table): Same.
1009         * explow.c (allocate_dynamic_stack_space): Same.
1010         (emit_stack_probe): Same.
1011         (probe_stack_range): Same.
1012         * expmed.c (store_bit_field_using_insv): Same.
1013         (store_bit_field_1): Same.
1014         (store_integral_bit_field): Same.
1015         (extract_bit_field_using_extv): Same.
1016         (extract_bit_field_1): Same.
1017         (emit_cstore): Same.
1018         * expr.c (emit_block_move_via_cpymem): Same.
1019         (expand_cmpstrn_or_cmpmem): Same.
1020         (set_storage_via_setmem): Same.
1021         (emit_single_push_insn_1): Same.
1022         (expand_assignment): Same.
1023         (store_constructor): Same.
1024         (expand_expr_real_2): Same.
1025         (expand_expr_real_1): Same.
1026         (try_casesi): Same.
1027         * flags.h: Same.
1028         * function.c (try_fit_stack_local): Same.
1029         (assign_stack_local_1): Same.
1030         (assign_stack_local): Same.
1031         (cut_slot_from_list): Same.
1032         (insert_slot_to_list): Same.
1033         (max_slot_level): Same.
1034         (move_slot_to_level): Same.
1035         (temp_address_hasher::equal): Same.
1036         (remove_unused_temp_slot_addresses): Same.
1037         (assign_temp): Same.
1038         (combine_temp_slots): Same.
1039         (update_temp_slot_address): Same.
1040         (preserve_temp_slots): Same.
1041         * function.h: Same.
1042         * fwprop.c: Same.
1043         * gcc-rich-location.h: Same.
1044         * gcov.c: Same.
1045         * genattrtab.c (check_attr_test): Same.
1046         (check_attr_value): Same.
1047         (convert_set_attr_alternative): Same.
1048         (convert_set_attr): Same.
1049         (check_defs): Same.
1050         (copy_boolean): Same.
1051         (get_attr_value): Same.
1052         (expand_delays): Same.
1053         (make_length_attrs): Same.
1054         (min_fn): Same.
1055         (make_alternative_compare): Same.
1056         (simplify_test_exp): Same.
1057         (tests_attr_p): Same.
1058         (get_attr_order): Same.
1059         (clear_struct_flag): Same.
1060         (gen_attr): Same.
1061         (compares_alternatives_p): Same.
1062         (gen_insn): Same.
1063         (gen_delay): Same.
1064         (find_attrs_to_cache): Same.
1065         (write_test_expr): Same.
1066         (walk_attr_value): Same.
1067         (write_attr_get): Same.
1068         (eliminate_known_true): Same.
1069         (write_insn_cases): Same.
1070         (write_attr_case): Same.
1071         (write_attr_valueq): Same.
1072         (write_attr_value): Same.
1073         (write_dummy_eligible_delay): Same.
1074         (next_comma_elt): Same.
1075         (find_attr): Same.
1076         (make_internal_attr): Same.
1077         (copy_rtx_unchanging): Same.
1078         (gen_insn_reserv): Same.
1079         (check_tune_attr): Same.
1080         (make_automaton_attrs): Same.
1081         (handle_arg): Same.
1082         * genextract.c (gen_insn): Same.
1083         (VEC_char_to_string): Same.
1084         * genmatch.c (print_operand): Same.
1085         (lower): Same.
1086         (parser::parse_operation): Same.
1087         (parser::parse_capture): Same.
1088         (parser::parse_c_expr): Same.
1089         (parser::parse_simplify): Same.
1090         (main): Same.
1091         * genoutput.c (output_operand_data): Same.
1092         (output_get_insn_name): Same.
1093         (compare_operands): Same.
1094         (place_operands): Same.
1095         (process_template): Same.
1096         (validate_insn_alternatives): Same.
1097         (validate_insn_operands): Same.
1098         (gen_expand): Same.
1099         (note_constraint): Same.
1100         * genpreds.c (write_one_predicate_function): Same.
1101         (add_constraint): Same.
1102         (process_define_register_constraint): Same.
1103         (write_lookup_constraint_1): Same.
1104         (write_lookup_constraint_array): Same.
1105         (write_insn_constraint_len): Same.
1106         (write_reg_class_for_constraint_1): Same.
1107         (write_constraint_satisfied_p_array): Same.
1108         * genrecog.c (optimize_subroutine_group): Same.
1109         * gensupport.c (process_define_predicate): Same.
1110         (queue_pattern): Same.
1111         (remove_from_queue): Same.
1112         (process_rtx): Same.
1113         (is_predicable): Same.
1114         (change_subst_attribute): Same.
1115         (subst_pattern_match): Same.
1116         (alter_constraints): Same.
1117         (alter_attrs_for_insn): Same.
1118         (shift_output_template): Same.
1119         (alter_output_for_subst_insn): Same.
1120         (process_one_cond_exec): Same.
1121         (subst_dup): Same.
1122         (process_define_cond_exec): Same.
1123         (mnemonic_htab_callback): Same.
1124         (gen_mnemonic_attr): Same.
1125         (read_md_rtx): Same.
1126         * ggc-page.c: Same.
1127         * gimple-loop-interchange.cc (dump_reduction): Same.
1128         (dump_induction): Same.
1129         (loop_cand::~loop_cand): Same.
1130         (free_data_refs_with_aux): Same.
1131         (tree_loop_interchange::interchange_loops): Same.
1132         (tree_loop_interchange::map_inductions_to_loop): Same.
1133         (tree_loop_interchange::move_code_to_inner_loop): Same.
1134         (compute_access_stride): Same.
1135         (compute_access_strides): Same.
1136         (proper_loop_form_for_interchange): Same.
1137         (tree_loop_interchange_compute_ddrs): Same.
1138         (prune_datarefs_not_in_loop): Same.
1139         (prepare_data_references): Same.
1140         (pass_linterchange::execute): Same.
1141         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
1142         (unroll_jam_possible_p): Same.
1143         (fuse_loops): Same.
1144         (adjust_unroll_factor): Same.
1145         (tree_loop_unroll_and_jam): Same.
1146         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
1147         (loop_versioning::expensive_stmt_p): Same.
1148         (loop_versioning::version_for_unity): Same.
1149         (loop_versioning::dump_inner_likelihood): Same.
1150         (loop_versioning::find_per_loop_multiplication): Same.
1151         (loop_versioning::analyze_term_using_scevs): Same.
1152         (loop_versioning::record_address_fragment): Same.
1153         (loop_versioning::analyze_expr): Same.
1154         (loop_versioning::analyze_blocks): Same.
1155         (loop_versioning::prune_conditions): Same.
1156         (loop_versioning::merge_loop_info): Same.
1157         (loop_versioning::add_loop_to_queue): Same.
1158         (loop_versioning::decide_whether_loop_is_versionable): Same.
1159         (loop_versioning::make_versioning_decisions): Same.
1160         (loop_versioning::implement_versioning_decisions): Same.
1161         * gimple-ssa-evrp-analyze.c
1162         (evrp_range_analyzer::record_ranges_from_phis): Same.
1163         * gimple-ssa-store-merging.c (split_store::split_store): Same.
1164         (count_multiple_uses): Same.
1165         (split_group): Same.
1166         (imm_store_chain_info::output_merged_store): Same.
1167         (pass_store_merging::process_store): Same.
1168         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
1169         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
1170         (is_max): Same.
1171         (alloca_call_type): Same.
1172         (pass_walloca::execute): Same.
1173         * gimple-streamer-in.c (input_phi): Same.
1174         (input_gimple_stmt): Same.
1175         * gimple-streamer.h: Same.
1176         * godump.c (go_force_record_alignment): Same.
1177         (go_format_type): Same.
1178         (go_output_type): Same.
1179         (go_output_fndecl): Same.
1180         (go_output_typedef): Same.
1181         (keyword_hash_init): Same.
1182         (find_dummy_types): Same.
1183         * graph.c (draw_cfg_nodes_no_loops): Same.
1184         (draw_cfg_nodes_for_loop): Same.
1185         * hard-reg-set.h (hard_reg_set_iter_next): Same.
1186         * hsa-brig.c: Same.
1187         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
1188         * hsa-dump.c (dump_hsa_cfun): Same.
1189         * hsa-gen.c (gen_function_def_parameters): Same.
1190         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
1191         * input.c (dump_line_table_statistics): Same.
1192         (test_lexer): Same.
1193         * input.h: Same.
1194         * internal-fn.c (get_multi_vector_move): Same.
1195         (expand_load_lanes_optab_fn): Same.
1196         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
1197         (expand_GOMP_SIMT_EXIT): Same.
1198         (expand_GOMP_SIMT_LAST_LANE): Same.
1199         (expand_GOMP_SIMT_ORDERED_PRED): Same.
1200         (expand_GOMP_SIMT_VOTE_ANY): Same.
1201         (expand_GOMP_SIMT_XCHG_BFLY): Same.
1202         (expand_GOMP_SIMT_XCHG_IDX): Same.
1203         (expand_addsub_overflow): Same.
1204         (expand_neg_overflow): Same.
1205         (expand_mul_overflow): Same.
1206         (expand_call_mem_ref): Same.
1207         (expand_mask_load_optab_fn): Same.
1208         (expand_scatter_store_optab_fn): Same.
1209         (expand_gather_load_optab_fn): Same.
1210         * ipa-cp.c (ipa_get_parm_lattices): Same.
1211         (print_all_lattices): Same.
1212         (ignore_edge_p): Same.
1213         (build_toporder_info): Same.
1214         (free_toporder_info): Same.
1215         (push_node_to_stack): Same.
1216         (ipcp_lattice<valtype>::set_contains_variable): Same.
1217         (set_agg_lats_to_bottom): Same.
1218         (ipcp_bits_lattice::meet_with): Same.
1219         (set_single_call_flag): Same.
1220         (initialize_node_lattices): Same.
1221         (ipa_get_jf_ancestor_result): Same.
1222         (ipcp_verify_propagated_values): Same.
1223         (propagate_scalar_across_jump_function): Same.
1224         (propagate_context_across_jump_function): Same.
1225         (propagate_bits_across_jump_function): Same.
1226         (ipa_vr_operation_and_type_effects): Same.
1227         (propagate_vr_across_jump_function): Same.
1228         (set_check_aggs_by_ref): Same.
1229         (set_chain_of_aglats_contains_variable): Same.
1230         (merge_aggregate_lattices): Same.
1231         (agg_pass_through_permissible_p): Same.
1232         (propagate_aggs_across_jump_function): Same.
1233         (call_passes_through_thunk_p): Same.
1234         (propagate_constants_across_call): Same.
1235         (devirtualization_time_bonus): Same.
1236         (good_cloning_opportunity_p): Same.
1237         (context_independent_aggregate_values): Same.
1238         (gather_context_independent_values): Same.
1239         (perform_estimation_of_a_value): Same.
1240         (estimate_local_effects): Same.
1241         (value_topo_info<valtype>::add_val): Same.
1242         (add_all_node_vals_to_toposort): Same.
1243         (value_topo_info<valtype>::propagate_effects): Same.
1244         (ipcp_propagate_stage): Same.
1245         (ipcp_discover_new_direct_edges): Same.
1246         (same_node_or_its_all_contexts_clone_p): Same.
1247         (cgraph_edge_brings_value_p): Same.
1248         (gather_edges_for_value): Same.
1249         (create_specialized_node): Same.
1250         (find_more_scalar_values_for_callers_subset): Same.
1251         (find_more_contexts_for_caller_subset): Same.
1252         (copy_plats_to_inter): Same.
1253         (intersect_aggregates_with_edge): Same.
1254         (find_aggregate_values_for_callers_subset): Same.
1255         (cgraph_edge_brings_all_agg_vals_for_node): Same.
1256         (decide_about_value): Same.
1257         (decide_whether_version_node): Same.
1258         (spread_undeadness): Same.
1259         (identify_dead_nodes): Same.
1260         (ipcp_store_vr_results): Same.
1261         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
1262         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
1263         (redirect_to_unreachable): Same.
1264         (edge_set_predicate): Same.
1265         (evaluate_conditions_for_known_args): Same.
1266         (evaluate_properties_for_edge): Same.
1267         (ipa_fn_summary_t::duplicate): Same.
1268         (ipa_call_summary_t::duplicate): Same.
1269         (dump_ipa_call_summary): Same.
1270         (ipa_dump_fn_summary): Same.
1271         (eliminated_by_inlining_prob): Same.
1272         (set_cond_stmt_execution_predicate): Same.
1273         (set_switch_stmt_execution_predicate): Same.
1274         (compute_bb_predicates): Same.
1275         (will_be_nonconstant_expr_predicate): Same.
1276         (phi_result_unknown_predicate): Same.
1277         (analyze_function_body): Same.
1278         (compute_fn_summary): Same.
1279         (estimate_edge_devirt_benefit): Same.
1280         (estimate_edge_size_and_time): Same.
1281         (estimate_calls_size_and_time): Same.
1282         (estimate_node_size_and_time): Same.
1283         (remap_edge_change_prob): Same.
1284         (remap_edge_summaries): Same.
1285         (ipa_merge_fn_summary_after_inlining): Same.
1286         (ipa_fn_summary_generate): Same.
1287         (inline_read_section): Same.
1288         (ipa_fn_summary_read): Same.
1289         (ipa_fn_summary_write): Same.
1290         * ipa-fnsummary.h: Same.
1291         * ipa-hsa.c (ipa_hsa_read_section): Same.
1292         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
1293         * ipa-icf.c (sem_function::param_used_p): Same.
1294         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
1295         * ipa-inline.c (edge_badness): Same.
1296         (inline_small_functions): Same.
1297         * ipa-polymorphic-call.c
1298         (ipa_polymorphic_call_context::stream_out): Same.
1299         * ipa-predicate.c (predicate::remap_after_duplication): Same.
1300         (predicate::remap_after_inlining): Same.
1301         (predicate::stream_out): Same.
1302         * ipa-predicate.h: Same.
1303         * ipa-profile.c (ipa_profile_read_summary): Same.
1304         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
1305         (count_formal_params): Same.
1306         (ipa_dump_param): Same.
1307         (ipa_alloc_node_params): Same.
1308         (ipa_print_node_jump_functions_for_edge): Same.
1309         (ipa_print_node_jump_functions): Same.
1310         (ipa_load_from_parm_agg): Same.
1311         (get_ancestor_addr_info): Same.
1312         (ipa_compute_jump_functions_for_edge): Same.
1313         (ipa_analyze_virtual_call_uses): Same.
1314         (ipa_analyze_stmt_uses): Same.
1315         (ipa_analyze_params_uses_in_bb): Same.
1316         (update_jump_functions_after_inlining): Same.
1317         (try_decrement_rdesc_refcount): Same.
1318         (ipa_impossible_devirt_target): Same.
1319         (update_indirect_edges_after_inlining): Same.
1320         (combine_controlled_uses_counters): Same.
1321         (ipa_edge_args_sum_t::duplicate): Same.
1322         (ipa_write_jump_function): Same.
1323         (ipa_write_indirect_edge_info): Same.
1324         (ipa_write_node_info): Same.
1325         (ipa_read_edge_info): Same.
1326         (ipa_prop_read_section): Same.
1327         (read_replacements_section): Same.
1328         * ipa-prop.h (ipa_get_param_count): Same.
1329         (ipa_get_param): Same.
1330         (ipa_get_type): Same.
1331         (ipa_get_param_move_cost): Same.
1332         (ipa_set_param_used): Same.
1333         (ipa_get_controlled_uses): Same.
1334         (ipa_set_controlled_uses): Same.
1335         (ipa_get_cs_argument_count): Same.
1336         * ipa-pure-const.c (analyze_function): Same.
1337         (pure_const_read_summary): Same.
1338         * ipa-ref.h: Same.
1339         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
1340         * ipa-split.c (test_nonssa_use): Same.
1341         (dump_split_point): Same.
1342         (dominated_by_forbidden): Same.
1343         (split_part_set_ssa_name_p): Same.
1344         (find_split_points): Same.
1345         * ira-build.c (finish_loop_tree_nodes): Same.
1346         (low_pressure_loop_node_p): Same.
1347         * ira-color.c (ira_reuse_stack_slot): Same.
1348         * ira-int.h: Same.
1349         * ira.c (setup_reg_equiv): Same.
1350         (print_insn_chain): Same.
1351         (ira): Same.
1352         * loop-doloop.c (doloop_condition_get): Same.
1353         (add_test): Same.
1354         (record_reg_sets): Same.
1355         (doloop_optimize): Same.
1356         * loop-init.c (loop_optimizer_init): Same.
1357         (fix_loop_structure): Same.
1358         * loop-invariant.c (merge_identical_invariants): Same.
1359         (compute_always_reached): Same.
1360         (find_exits): Same.
1361         (may_assign_reg_p): Same.
1362         (find_invariants_bb): Same.
1363         (find_invariants_body): Same.
1364         (replace_uses): Same.
1365         (can_move_invariant_reg): Same.
1366         (free_inv_motion_data): Same.
1367         (move_single_loop_invariants): Same.
1368         (change_pressure): Same.
1369         (mark_ref_regs): Same.
1370         (calculate_loop_reg_pressure): Same.
1371         * loop-iv.c (biv_entry_hasher::equal): Same.
1372         (iv_extend_to_rtx_code): Same.
1373         (check_iv_ref_table_size): Same.
1374         (clear_iv_info): Same.
1375         (latch_dominating_def): Same.
1376         (iv_get_reaching_def): Same.
1377         (iv_constant): Same.
1378         (iv_subreg): Same.
1379         (iv_extend): Same.
1380         (iv_neg): Same.
1381         (iv_add): Same.
1382         (iv_mult): Same.
1383         (get_biv_step): Same.
1384         (record_iv): Same.
1385         (analyzed_for_bivness_p): Same.
1386         (record_biv): Same.
1387         (iv_analyze_biv): Same.
1388         (iv_analyze_expr): Same.
1389         (iv_analyze_def): Same.
1390         (iv_analyze_op): Same.
1391         (iv_analyze): Same.
1392         (iv_analyze_result): Same.
1393         (biv_p): Same.
1394         (eliminate_implied_conditions): Same.
1395         (simplify_using_initial_values): Same.
1396         (shorten_into_mode): Same.
1397         (canonicalize_iv_subregs): Same.
1398         (determine_max_iter): Same.
1399         (check_simple_exit): Same.
1400         (find_simple_exit): Same.
1401         (get_simple_loop_desc): Same.
1402         * loop-unroll.c (report_unroll): Same.
1403         (decide_unrolling): Same.
1404         (unroll_loops): Same.
1405         (loop_exit_at_end_p): Same.
1406         (decide_unroll_constant_iterations): Same.
1407         (unroll_loop_constant_iterations): Same.
1408         (compare_and_jump_seq): Same.
1409         (unroll_loop_runtime_iterations): Same.
1410         (decide_unroll_stupid): Same.
1411         (unroll_loop_stupid): Same.
1412         (referenced_in_one_insn_in_loop_p): Same.
1413         (reset_debug_uses_in_loop): Same.
1414         (analyze_iv_to_split_insn): Same.
1415         * lra-eliminations.c (lra_debug_elim_table): Same.
1416         (setup_can_eliminate): Same.
1417         (form_sum): Same.
1418         (lra_get_elimination_hard_regno): Same.
1419         (lra_eliminate_regs_1): Same.
1420         (eliminate_regs_in_insn): Same.
1421         (update_reg_eliminate): Same.
1422         (init_elimination): Same.
1423         (lra_eliminate): Same.
1424         * lra-int.h: Same.
1425         * lra-lives.c (initiate_live_solver): Same.
1426         * lra-remat.c (create_remat_bb_data): Same.
1427         * lra-spills.c (lra_spill): Same.
1428         * lra.c (lra_set_insn_recog_data): Same.
1429         (lra_set_used_insn_alternative_by_uid): Same.
1430         (init_reg_info): Same.
1431         (expand_reg_info): Same.
1432         * lto-cgraph.c (output_symtab): Same.
1433         (read_identifier): Same.
1434         (get_alias_symbol): Same.
1435         (input_node): Same.
1436         (input_varpool_node): Same.
1437         (input_ref): Same.
1438         (input_edge): Same.
1439         (input_cgraph_1): Same.
1440         (input_refs): Same.
1441         (input_symtab): Same.
1442         (input_offload_tables): Same.
1443         (output_cgraph_opt_summary): Same.
1444         (input_edge_opt_summary): Same.
1445         (input_cgraph_opt_section): Same.
1446         * lto-section-in.c (lto_free_raw_section_data): Same.
1447         (lto_create_simple_input_block): Same.
1448         (lto_free_function_in_decl_state_for_node): Same.
1449         * lto-streamer-in.c (lto_tag_check_set): Same.
1450         (lto_location_cache::revert_location_cache): Same.
1451         (lto_location_cache::input_location): Same.
1452         (lto_input_location): Same.
1453         (stream_input_location_now): Same.
1454         (lto_input_tree_ref): Same.
1455         (lto_input_eh_catch_list): Same.
1456         (input_eh_region): Same.
1457         (lto_init_eh): Same.
1458         (make_new_block): Same.
1459         (input_cfg): Same.
1460         (fixup_call_stmt_edges): Same.
1461         (input_struct_function_base): Same.
1462         (input_function): Same.
1463         (lto_read_body_or_constructor): Same.
1464         (lto_read_tree_1): Same.
1465         (lto_read_tree): Same.
1466         (lto_input_scc): Same.
1467         (lto_input_tree_1): Same.
1468         (lto_input_toplevel_asms): Same.
1469         (lto_input_mode_table): Same.
1470         (lto_reader_init): Same.
1471         (lto_data_in_create): Same.
1472         * lto-streamer-out.c (output_cfg): Same.
1473         * lto-streamer.h: Same.
1474         * modulo-sched.c (duplicate_insns_of_cycles): Same.
1475         (generate_prolog_epilog): Same.
1476         (mark_loop_unsched): Same.
1477         (dump_insn_location): Same.
1478         (loop_canon_p): Same.
1479         (sms_schedule): Same.
1480         * omp-expand.c (expand_omp_for_ordered_loops): Same.
1481         (expand_omp_for_generic): Same.
1482         (expand_omp_for_static_nochunk): Same.
1483         (expand_omp_for_static_chunk): Same.
1484         (expand_omp_simd): Same.
1485         (expand_omp_taskloop_for_inner): Same.
1486         (expand_oacc_for): Same.
1487         (expand_omp_atomic_pipeline): Same.
1488         (mark_loops_in_oacc_kernels_region): Same.
1489         * omp-offload.c (oacc_xform_loop): Same.
1490         * omp-simd-clone.c (simd_clone_adjust): Same.
1491         * optabs-query.c (get_traditional_extraction_insn): Same.
1492         * optabs.c (expand_vector_broadcast): Same.
1493         (expand_binop_directly): Same.
1494         (expand_twoval_unop): Same.
1495         (expand_twoval_binop): Same.
1496         (expand_unop_direct): Same.
1497         (emit_indirect_jump): Same.
1498         (emit_conditional_move): Same.
1499         (emit_conditional_neg_or_complement): Same.
1500         (emit_conditional_add): Same.
1501         (vector_compare_rtx): Same.
1502         (expand_vec_perm_1): Same.
1503         (expand_vec_perm_const): Same.
1504         (expand_vec_cond_expr): Same.
1505         (expand_vec_series_expr): Same.
1506         (maybe_emit_atomic_exchange): Same.
1507         (maybe_emit_sync_lock_test_and_set): Same.
1508         (expand_atomic_compare_and_swap): Same.
1509         (expand_atomic_load): Same.
1510         (expand_atomic_store): Same.
1511         (maybe_emit_op): Same.
1512         (valid_multiword_target_p): Same.
1513         (create_integer_operand): Same.
1514         (maybe_legitimize_operand_same_code): Same.
1515         (maybe_legitimize_operand): Same.
1516         (create_convert_operand_from_type): Same.
1517         (can_reuse_operands_p): Same.
1518         (maybe_legitimize_operands): Same.
1519         (maybe_gen_insn): Same.
1520         (maybe_expand_insn): Same.
1521         (maybe_expand_jump_insn): Same.
1522         (expand_insn): Same.
1523         * optabs.h (create_expand_operand): Same.
1524         (create_fixed_operand): Same.
1525         (create_output_operand): Same.
1526         (create_input_operand): Same.
1527         (create_convert_operand_to): Same.
1528         (create_convert_operand_from): Same.
1529         * optinfo.h: Same.
1530         * poly-int.h: Same.
1531         * predict.c (optimize_insn_for_speed_p): Same.
1532         (optimize_loop_for_size_p): Same.
1533         (optimize_loop_for_speed_p): Same.
1534         (optimize_loop_nest_for_speed_p): Same.
1535         (get_base_value): Same.
1536         (predicted_by_loop_heuristics_p): Same.
1537         (predict_extra_loop_exits): Same.
1538         (predict_loops): Same.
1539         (predict_paths_for_bb): Same.
1540         (predict_paths_leading_to): Same.
1541         (propagate_freq): Same.
1542         (pass_profile::execute): Same.
1543         * predict.h: Same.
1544         * profile-count.c (profile_count::differs_from_p): Same.
1545         (profile_probability::differs_lot_from_p): Same.
1546         * profile-count.h: Same.
1547         * profile.c (branch_prob): Same.
1548         * regrename.c (free_chain_data): Same.
1549         (mark_conflict): Same.
1550         (create_new_chain): Same.
1551         (merge_overlapping_regs): Same.
1552         (init_rename_info): Same.
1553         (merge_chains): Same.
1554         (regrename_analyze): Same.
1555         (regrename_do_replace): Same.
1556         (scan_rtx_reg): Same.
1557         (record_out_operands): Same.
1558         (build_def_use): Same.
1559         * regrename.h: Same.
1560         * reload.h: Same.
1561         * reload1.c (init_reload): Same.
1562         (maybe_fix_stack_asms): Same.
1563         (copy_reloads): Same.
1564         (count_pseudo): Same.
1565         (count_spilled_pseudo): Same.
1566         (find_reg): Same.
1567         (find_reload_regs): Same.
1568         (select_reload_regs): Same.
1569         (spill_hard_reg): Same.
1570         (fixup_eh_region_note): Same.
1571         (set_reload_reg): Same.
1572         (allocate_reload_reg): Same.
1573         (compute_reload_subreg_offset): Same.
1574         (reload_adjust_reg_for_icode): Same.
1575         (emit_input_reload_insns): Same.
1576         (emit_output_reload_insns): Same.
1577         (do_input_reload): Same.
1578         (inherit_piecemeal_p): Same.
1579         * rtl.h: Same.
1580         * sanopt.c (maybe_get_dominating_check): Same.
1581         (maybe_optimize_ubsan_ptr_ifn): Same.
1582         (can_remove_asan_check): Same.
1583         (maybe_optimize_asan_check_ifn): Same.
1584         (sanopt_optimize_walker): Same.
1585         * sched-deps.c (add_dependence_list): Same.
1586         (chain_to_prev_insn): Same.
1587         (add_insn_mem_dependence): Same.
1588         (create_insn_reg_set): Same.
1589         (maybe_extend_reg_info_p): Same.
1590         (sched_analyze_reg): Same.
1591         (sched_analyze_1): Same.
1592         (get_implicit_reg_pending_clobbers): Same.
1593         (chain_to_prev_insn_p): Same.
1594         (deps_analyze_insn): Same.
1595         (deps_start_bb): Same.
1596         (sched_free_deps): Same.
1597         (init_deps): Same.
1598         (init_deps_reg_last): Same.
1599         (free_deps): Same.
1600         * sched-ebb.c: Same.
1601         * sched-int.h: Same.
1602         * sched-rgn.c (add_branch_dependences): Same.
1603         (concat_insn_mem_list): Same.
1604         (deps_join): Same.
1605         (sched_rgn_compute_dependencies): Same.
1606         * sel-sched-ir.c (reset_target_context): Same.
1607         (copy_deps_context): Same.
1608         (init_id_from_df): Same.
1609         (has_dependence_p): Same.
1610         (change_loops_latches): Same.
1611         (bb_top_order_comparator): Same.
1612         (make_region_from_loop_preheader): Same.
1613         (sel_init_pipelining): Same.
1614         (get_loop_nest_for_rgn): Same.
1615         (make_regions_from_the_rest): Same.
1616         (sel_is_loop_preheader_p): Same.
1617         * sel-sched-ir.h (inner_loop_header_p): Same.
1618         (get_all_loop_exits): Same.
1619         * selftest.h: Same.
1620         * sese.c (sese_build_liveouts): Same.
1621         (sese_insert_phis_for_liveouts): Same.
1622         * sese.h (defined_in_sese_p): Same.
1623         * sreal.c (sreal::stream_out): Same.
1624         * sreal.h: Same.
1625         * streamer-hooks.h: Same.
1626         * target-globals.c (save_target_globals): Same.
1627         * target-globals.h: Same.
1628         * target.def: Same.
1629         * target.h: Same.
1630         * targhooks.c (default_has_ifunc_p): Same.
1631         (default_empty_mask_is_expensive): Same.
1632         (default_init_cost): Same.
1633         * targhooks.h: Same.
1634         * toplev.c: Same.
1635         * tree-affine.c (aff_combination_mult): Same.
1636         (aff_combination_expand): Same.
1637         (aff_combination_constant_multiple_p): Same.
1638         * tree-affine.h: Same.
1639         * tree-cfg.c (build_gimple_cfg): Same.
1640         (replace_loop_annotate_in_block): Same.
1641         (replace_uses_by): Same.
1642         (remove_bb): Same.
1643         (dump_cfg_stats): Same.
1644         (gimple_duplicate_sese_region): Same.
1645         (gimple_duplicate_sese_tail): Same.
1646         (move_block_to_fn): Same.
1647         (replace_block_vars_by_duplicates): Same.
1648         (move_sese_region_to_fn): Same.
1649         (print_loops_bb): Same.
1650         (print_loop): Same.
1651         (print_loops): Same.
1652         (debug): Same.
1653         (debug_loops): Same.
1654         * tree-cfg.h: Same.
1655         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
1656         (chrec_fold_multiply_poly_poly): Same.
1657         (chrec_evaluate): Same.
1658         (chrec_component_in_loop_num): Same.
1659         (reset_evolution_in_loop): Same.
1660         (is_multivariate_chrec): Same.
1661         (chrec_contains_symbols): Same.
1662         (nb_vars_in_chrec): Same.
1663         (chrec_convert_1): Same.
1664         (chrec_convert_aggressive): Same.
1665         * tree-chrec.h: Same.
1666         * tree-core.h: Same.
1667         * tree-data-ref.c (dump_data_dependence_relation): Same.
1668         (canonicalize_base_object_address): Same.
1669         (data_ref_compare_tree): Same.
1670         (prune_runtime_alias_test_list): Same.
1671         (get_segment_min_max): Same.
1672         (create_intersect_range_checks): Same.
1673         (conflict_fn_no_dependence): Same.
1674         (object_address_invariant_in_loop_p): Same.
1675         (analyze_ziv_subscript): Same.
1676         (analyze_siv_subscript_cst_affine): Same.
1677         (analyze_miv_subscript): Same.
1678         (analyze_overlapping_iterations): Same.
1679         (build_classic_dist_vector_1): Same.
1680         (add_other_self_distances): Same.
1681         (same_access_functions): Same.
1682         (build_classic_dir_vector): Same.
1683         (subscript_dependence_tester_1): Same.
1684         (subscript_dependence_tester): Same.
1685         (access_functions_are_affine_or_constant_p): Same.
1686         (get_references_in_stmt): Same.
1687         (loop_nest_has_data_refs): Same.
1688         (graphite_find_data_references_in_stmt): Same.
1689         (find_data_references_in_bb): Same.
1690         (get_base_for_alignment): Same.
1691         (find_loop_nest_1): Same.
1692         (find_loop_nest): Same.
1693         * tree-data-ref.h (dr_alignment): Same.
1694         (ddr_dependence_level): Same.
1695         * tree-if-conv.c (fold_build_cond_expr): Same.
1696         (add_to_predicate_list): Same.
1697         (add_to_dst_predicate_list): Same.
1698         (phi_convertible_by_degenerating_args): Same.
1699         (idx_within_array_bound): Same.
1700         (all_preds_critical_p): Same.
1701         (pred_blocks_visited_p): Same.
1702         (predicate_bbs): Same.
1703         (build_region): Same.
1704         (if_convertible_loop_p_1): Same.
1705         (is_cond_scalar_reduction): Same.
1706         (predicate_scalar_phi): Same.
1707         (remove_conditions_and_labels): Same.
1708         (combine_blocks): Same.
1709         (version_loop_for_if_conversion): Same.
1710         (versionable_outer_loop_p): Same.
1711         (ifcvt_local_dce): Same.
1712         (tree_if_conversion): Same.
1713         (pass_if_conversion::gate): Same.
1714         * tree-if-conv.h: Same.
1715         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
1716         * tree-loop-distribution.c (bb_top_order_cmp): Same.
1717         (free_rdg): Same.
1718         (stmt_has_scalar_dependences_outside_loop): Same.
1719         (copy_loop_before): Same.
1720         (create_bb_after_loop): Same.
1721         (const_with_all_bytes_same): Same.
1722         (generate_memset_builtin): Same.
1723         (generate_memcpy_builtin): Same.
1724         (destroy_loop): Same.
1725         (build_rdg_partition_for_vertex): Same.
1726         (compute_access_range): Same.
1727         (data_ref_segment_size): Same.
1728         (latch_dominated_by_data_ref): Same.
1729         (compute_alias_check_pairs): Same.
1730         (fuse_memset_builtins): Same.
1731         (finalize_partitions): Same.
1732         (find_seed_stmts_for_distribution): Same.
1733         (prepare_perfect_loop_nest): Same.
1734         * tree-parloops.c (lambda_transform_legal_p): Same.
1735         (loop_parallel_p): Same.
1736         (reduc_stmt_res): Same.
1737         (add_field_for_name): Same.
1738         (create_call_for_reduction_1): Same.
1739         (replace_uses_in_bb_by): Same.
1740         (transform_to_exit_first_loop_alt): Same.
1741         (try_transform_to_exit_first_loop_alt): Same.
1742         (transform_to_exit_first_loop): Same.
1743         (num_phis): Same.
1744         (gen_parallel_loop): Same.
1745         (gather_scalar_reductions): Same.
1746         (get_omp_data_i_param): Same.
1747         (try_create_reduction_list): Same.
1748         (oacc_entry_exit_single_gang): Same.
1749         (parallelize_loops): Same.
1750         * tree-pass.h: Same.
1751         * tree-predcom.c (determine_offset): Same.
1752         (last_always_executed_block): Same.
1753         (split_data_refs_to_components): Same.
1754         (suitable_component_p): Same.
1755         (valid_initializer_p): Same.
1756         (find_looparound_phi): Same.
1757         (insert_looparound_copy): Same.
1758         (add_looparound_copies): Same.
1759         (determine_roots_comp): Same.
1760         (predcom_tmp_var): Same.
1761         (initialize_root_vars): Same.
1762         (initialize_root_vars_store_elim_1): Same.
1763         (initialize_root_vars_store_elim_2): Same.
1764         (finalize_eliminated_stores): Same.
1765         (initialize_root_vars_lm): Same.
1766         (remove_stmt): Same.
1767         (determine_unroll_factor): Same.
1768         (execute_pred_commoning_cbck): Same.
1769         (base_names_in_chain_on): Same.
1770         (combine_chains): Same.
1771         (pcom_stmt_dominates_stmt_p): Same.
1772         (try_combine_chains): Same.
1773         (prepare_initializers_chain_store_elim): Same.
1774         (prepare_initializers_chain): Same.
1775         (prepare_initializers): Same.
1776         (prepare_finalizers_chain): Same.
1777         (prepare_finalizers): Same.
1778         (insert_init_seqs): Same.
1779         * tree-scalar-evolution.c (loop_phi_node_p): Same.
1780         (compute_overall_effect_of_inner_loop): Same.
1781         (add_to_evolution_1): Same.
1782         (add_to_evolution): Same.
1783         (follow_ssa_edge_binary): Same.
1784         (follow_ssa_edge_expr): Same.
1785         (backedge_phi_arg_p): Same.
1786         (follow_ssa_edge_in_condition_phi_branch): Same.
1787         (follow_ssa_edge_in_condition_phi): Same.
1788         (follow_ssa_edge_inner_loop_phi): Same.
1789         (follow_ssa_edge): Same.
1790         (analyze_evolution_in_loop): Same.
1791         (analyze_initial_condition): Same.
1792         (interpret_loop_phi): Same.
1793         (interpret_condition_phi): Same.
1794         (interpret_rhs_expr): Same.
1795         (interpret_expr): Same.
1796         (interpret_gimple_assign): Same.
1797         (analyze_scalar_evolution_1): Same.
1798         (analyze_scalar_evolution): Same.
1799         (analyze_scalar_evolution_for_address_of): Same.
1800         (get_instantiated_value_entry): Same.
1801         (loop_closed_phi_def): Same.
1802         (instantiate_scev_name): Same.
1803         (instantiate_scev_poly): Same.
1804         (instantiate_scev_binary): Same.
1805         (instantiate_scev_convert): Same.
1806         (instantiate_scev_not): Same.
1807         (instantiate_scev_r): Same.
1808         (instantiate_scev): Same.
1809         (resolve_mixers): Same.
1810         (initialize_scalar_evolutions_analyzer): Same.
1811         (scev_reset_htab): Same.
1812         (scev_reset): Same.
1813         (derive_simple_iv_with_niters): Same.
1814         (simple_iv_with_niters): Same.
1815         (expression_expensive_p): Same.
1816         (final_value_replacement_loop): Same.
1817         * tree-scalar-evolution.h (block_before_loop): Same.
1818         * tree-ssa-address.h: Same.
1819         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
1820         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
1821         (record_edge_info): Same.
1822         * tree-ssa-live.c (var_map_base_fini): Same.
1823         (remove_unused_locals): Same.
1824         * tree-ssa-live.h: Same.
1825         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
1826         (pass_ch_vect::execute): Same.
1827         (pass_ch::process_loop_p): Same.
1828         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
1829         (movement_possibility): Same.
1830         (outermost_invariant_loop): Same.
1831         (stmt_cost): Same.
1832         (determine_max_movement): Same.
1833         (invariantness_dom_walker::before_dom_children): Same.
1834         (move_computations): Same.
1835         (may_move_till): Same.
1836         (force_move_till_op): Same.
1837         (force_move_till): Same.
1838         (memref_free): Same.
1839         (record_mem_ref_loc): Same.
1840         (set_ref_stored_in_loop): Same.
1841         (mark_ref_stored): Same.
1842         (sort_bbs_in_loop_postorder_cmp): Same.
1843         (sort_locs_in_loop_postorder_cmp): Same.
1844         (analyze_memory_references): Same.
1845         (mem_refs_may_alias_p): Same.
1846         (find_ref_loc_in_loop_cmp): Same.
1847         (rewrite_mem_ref_loc::operator): Same.
1848         (first_mem_ref_loc_1::operator): Same.
1849         (sm_set_flag_if_changed::operator): Same.
1850         (execute_sm_if_changed_flag_set): Same.
1851         (execute_sm): Same.
1852         (hoist_memory_references): Same.
1853         (ref_always_accessed::operator): Same.
1854         (refs_independent_p): Same.
1855         (record_dep_loop): Same.
1856         (ref_indep_loop_p_1): Same.
1857         (ref_indep_loop_p): Same.
1858         (can_sm_ref_p): Same.
1859         (find_refs_for_sm): Same.
1860         (loop_suitable_for_sm): Same.
1861         (store_motion_loop): Same.
1862         (store_motion): Same.
1863         (fill_always_executed_in): Same.
1864         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
1865         (estimated_unrolled_size): Same.
1866         (loop_edge_to_cancel): Same.
1867         (remove_exits_and_undefined_stmts): Same.
1868         (remove_redundant_iv_tests): Same.
1869         (unloop_loops): Same.
1870         (estimated_peeled_sequence_size): Same.
1871         (try_peel_loop): Same.
1872         (canonicalize_loop_induction_variables): Same.
1873         (canonicalize_induction_variables): Same.
1874         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
1875         (name_info): Same.
1876         (stmt_after_inc_pos): Same.
1877         (contains_abnormal_ssa_name_p): Same.
1878         (niter_for_exit): Same.
1879         (find_bivs): Same.
1880         (mark_bivs): Same.
1881         (find_givs_in_bb): Same.
1882         (find_induction_variables): Same.
1883         (find_interesting_uses_cond): Same.
1884         (outermost_invariant_loop_for_expr): Same.
1885         (idx_find_step): Same.
1886         (add_candidate_1): Same.
1887         (add_iv_candidate_derived_from_uses): Same.
1888         (alloc_use_cost_map): Same.
1889         (prepare_decl_rtl): Same.
1890         (generic_predict_doloop_p): Same.
1891         (computation_cost): Same.
1892         (determine_common_wider_type): Same.
1893         (get_computation_aff_1): Same.
1894         (get_use_type): Same.
1895         (determine_group_iv_cost_address): Same.
1896         (iv_period): Same.
1897         (difference_cannot_overflow_p): Same.
1898         (may_eliminate_iv): Same.
1899         (determine_set_costs): Same.
1900         (cheaper_cost_pair): Same.
1901         (compare_cost_pair): Same.
1902         (iv_ca_cand_for_group): Same.
1903         (iv_ca_recount_cost): Same.
1904         (iv_ca_set_remove_invs): Same.
1905         (iv_ca_set_no_cp): Same.
1906         (iv_ca_set_add_invs): Same.
1907         (iv_ca_set_cp): Same.
1908         (iv_ca_add_group): Same.
1909         (iv_ca_cost): Same.
1910         (iv_ca_compare_deps): Same.
1911         (iv_ca_delta_reverse): Same.
1912         (iv_ca_delta_commit): Same.
1913         (iv_ca_cand_used_p): Same.
1914         (iv_ca_delta_free): Same.
1915         (iv_ca_new): Same.
1916         (iv_ca_free): Same.
1917         (iv_ca_dump): Same.
1918         (iv_ca_extend): Same.
1919         (iv_ca_narrow): Same.
1920         (iv_ca_prune): Same.
1921         (cheaper_cost_with_cand): Same.
1922         (iv_ca_replace): Same.
1923         (try_add_cand_for): Same.
1924         (get_initial_solution): Same.
1925         (try_improve_iv_set): Same.
1926         (find_optimal_iv_set_1): Same.
1927         (create_new_iv): Same.
1928         (rewrite_use_compare): Same.
1929         (remove_unused_ivs): Same.
1930         (determine_scaling_factor): Same.
1931         * tree-ssa-loop-ivopts.h: Same.
1932         * tree-ssa-loop-manip.c (create_iv): Same.
1933         (compute_live_loop_exits): Same.
1934         (add_exit_phi): Same.
1935         (add_exit_phis): Same.
1936         (find_uses_to_rename_use): Same.
1937         (find_uses_to_rename_def): Same.
1938         (find_uses_to_rename_in_loop): Same.
1939         (rewrite_into_loop_closed_ssa): Same.
1940         (check_loop_closed_ssa_bb): Same.
1941         (split_loop_exit_edge): Same.
1942         (ip_end_pos): Same.
1943         (ip_normal_pos): Same.
1944         (copy_phi_node_args): Same.
1945         (gimple_duplicate_loop_to_header_edge): Same.
1946         (can_unroll_loop_p): Same.
1947         (determine_exit_conditions): Same.
1948         (scale_dominated_blocks_in_loop): Same.
1949         (niter_for_unrolled_loop): Same.
1950         (tree_transform_and_unroll_loop): Same.
1951         (rewrite_all_phi_nodes_with_iv): Same.
1952         * tree-ssa-loop-manip.h: Same.
1953         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
1954         (number_of_iterations_ne): Same.
1955         (assert_no_overflow_lt): Same.
1956         (assert_loop_rolls_lt): Same.
1957         (number_of_iterations_lt): Same.
1958         (adjust_cond_for_loop_until_wrap): Same.
1959         (tree_simplify_using_condition): Same.
1960         (simplify_using_initial_conditions): Same.
1961         (simplify_using_outer_evolutions): Same.
1962         (loop_only_exit_p): Same.
1963         (ssa_defined_by_minus_one_stmt_p): Same.
1964         (number_of_iterations_popcount): Same.
1965         (number_of_iterations_exit): Same.
1966         (find_loop_niter): Same.
1967         (finite_loop_p): Same.
1968         (chain_of_csts_start): Same.
1969         (get_val_for): Same.
1970         (loop_niter_by_eval): Same.
1971         (derive_constant_upper_bound_ops): Same.
1972         (do_warn_aggressive_loop_optimizations): Same.
1973         (record_estimate): Same.
1974         (get_cst_init_from_scev): Same.
1975         (record_nonwrapping_iv): Same.
1976         (idx_infer_loop_bounds): Same.
1977         (infer_loop_bounds_from_ref): Same.
1978         (infer_loop_bounds_from_array): Same.
1979         (infer_loop_bounds_from_pointer_arith): Same.
1980         (infer_loop_bounds_from_signedness): Same.
1981         (bound_index): Same.
1982         (discover_iteration_bound_by_body_walk): Same.
1983         (maybe_lower_iteration_bound): Same.
1984         (estimate_numbers_of_iterations): Same.
1985         (estimated_loop_iterations): Same.
1986         (estimated_loop_iterations_int): Same.
1987         (max_loop_iterations): Same.
1988         (max_loop_iterations_int): Same.
1989         (likely_max_loop_iterations): Same.
1990         (likely_max_loop_iterations_int): Same.
1991         (estimated_stmt_executions_int): Same.
1992         (max_stmt_executions): Same.
1993         (likely_max_stmt_executions): Same.
1994         (estimated_stmt_executions): Same.
1995         (stmt_dominates_stmt_p): Same.
1996         (nowrap_type_p): Same.
1997         (loop_exits_before_overflow): Same.
1998         (scev_var_range_cant_overflow): Same.
1999         (scev_probably_wraps_p): Same.
2000         (free_numbers_of_iterations_estimates): Same.
2001         * tree-ssa-loop-niter.h: Same.
2002         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
2003         (idx_analyze_ref): Same.
2004         (analyze_ref): Same.
2005         (gather_memory_references_ref): Same.
2006         (mark_nontemporal_store): Same.
2007         (emit_mfence_after_loop): Same.
2008         (may_use_storent_in_loop_p): Same.
2009         (mark_nontemporal_stores): Same.
2010         (should_unroll_loop_p): Same.
2011         (volume_of_dist_vector): Same.
2012         (add_subscript_strides): Same.
2013         (self_reuse_distance): Same.
2014         (insn_to_prefetch_ratio_too_small_p): Same.
2015         * tree-ssa-loop-split.c (split_at_bb_p): Same.
2016         (patch_loop_exit): Same.
2017         (find_or_create_guard_phi): Same.
2018         (easy_exit_values): Same.
2019         (connect_loop_phis): Same.
2020         (connect_loops): Same.
2021         (compute_new_first_bound): Same.
2022         (split_loop): Same.
2023         (tree_ssa_split_loops): Same.
2024         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
2025         (is_maybe_undefined): Same.
2026         (tree_may_unswitch_on): Same.
2027         (simplify_using_entry_checks): Same.
2028         (tree_unswitch_single_loop): Same.
2029         (tree_unswitch_loop): Same.
2030         (tree_unswitch_outer_loop): Same.
2031         (empty_bb_without_guard_p): Same.
2032         (used_outside_loop_p): Same.
2033         (get_vop_from_header): Same.
2034         (hoist_guard): Same.
2035         * tree-ssa-loop.c (gate_oacc_kernels): Same.
2036         (get_lsm_tmp_name): Same.
2037         * tree-ssa-loop.h: Same.
2038         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
2039         (build_and_add_sum): Same.
2040         (no_side_effect_bb): Same.
2041         (get_ops): Same.
2042         (linearize_expr): Same.
2043         (should_break_up_subtract): Same.
2044         (linearize_expr_tree): Same.
2045         * tree-ssa-scopedtables.c: Same.
2046         * tree-ssa-scopedtables.h: Same.
2047         * tree-ssa-structalias.c (condense_visit): Same.
2048         (label_visit): Same.
2049         (dump_pred_graph): Same.
2050         (perform_var_substitution): Same.
2051         (move_complex_constraints): Same.
2052         (remove_preds_and_fake_succs): Same.
2053         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
2054         (determine_bb_domination_status): Same.
2055         (duplicate_thread_path): Same.
2056         (thread_through_all_blocks): Same.
2057         * tree-ssa-threadupdate.h: Same.
2058         * tree-streamer-in.c (streamer_read_string_cst): Same.
2059         (input_identifier): Same.
2060         (unpack_ts_type_common_value_fields): Same.
2061         (unpack_ts_block_value_fields): Same.
2062         (unpack_ts_translation_unit_decl_value_fields): Same.
2063         (unpack_ts_omp_clause_value_fields): Same.
2064         (streamer_read_tree_bitfields): Same.
2065         (streamer_alloc_tree): Same.
2066         (lto_input_ts_common_tree_pointers): Same.
2067         (lto_input_ts_vector_tree_pointers): Same.
2068         (lto_input_ts_poly_tree_pointers): Same.
2069         (lto_input_ts_complex_tree_pointers): Same.
2070         (lto_input_ts_decl_minimal_tree_pointers): Same.
2071         (lto_input_ts_decl_common_tree_pointers): Same.
2072         (lto_input_ts_decl_non_common_tree_pointers): Same.
2073         (lto_input_ts_decl_with_vis_tree_pointers): Same.
2074         (lto_input_ts_field_decl_tree_pointers): Same.
2075         (lto_input_ts_function_decl_tree_pointers): Same.
2076         (lto_input_ts_type_common_tree_pointers): Same.
2077         (lto_input_ts_type_non_common_tree_pointers): Same.
2078         (lto_input_ts_list_tree_pointers): Same.
2079         (lto_input_ts_vec_tree_pointers): Same.
2080         (lto_input_ts_exp_tree_pointers): Same.
2081         (lto_input_ts_block_tree_pointers): Same.
2082         (lto_input_ts_binfo_tree_pointers): Same.
2083         (lto_input_ts_constructor_tree_pointers): Same.
2084         (lto_input_ts_omp_clause_tree_pointers): Same.
2085         (streamer_read_tree_body): Same.
2086         * tree-streamer.h: Same.
2087         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
2088         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
2089         (vect_analyze_possibly_independent_ddr): Same.
2090         (vect_analyze_data_ref_dependence): Same.
2091         (vect_compute_data_ref_alignment): Same.
2092         (vect_enhance_data_refs_alignment): Same.
2093         (vect_analyze_data_ref_access): Same.
2094         (vect_check_gather_scatter): Same.
2095         (vect_find_stmt_data_reference): Same.
2096         (vect_create_addr_base_for_vector_ref): Same.
2097         (vect_setup_realignment): Same.
2098         (vect_supportable_dr_alignment): Same.
2099         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
2100         (adjust_phi_and_debug_stmts): Same.
2101         (vect_set_loop_mask): Same.
2102         (add_preheader_seq): Same.
2103         (vect_maybe_permute_loop_masks): Same.
2104         (vect_set_loop_masks_directly): Same.
2105         (vect_set_loop_condition_masked): Same.
2106         (vect_set_loop_condition_unmasked): Same.
2107         (slpeel_duplicate_current_defs_from_edges): Same.
2108         (slpeel_add_loop_guard): Same.
2109         (slpeel_can_duplicate_loop_p): Same.
2110         (create_lcssa_for_virtual_phi): Same.
2111         (iv_phi_p): Same.
2112         (vect_update_ivs_after_vectorizer): Same.
2113         (vect_gen_vector_loop_niters_mult_vf): Same.
2114         (slpeel_update_phi_nodes_for_loops): Same.
2115         (slpeel_update_phi_nodes_for_guard1): Same.
2116         (find_guard_arg): Same.
2117         (slpeel_update_phi_nodes_for_guard2): Same.
2118         (slpeel_update_phi_nodes_for_lcssa): Same.
2119         (vect_do_peeling): Same.
2120         (vect_create_cond_for_alias_checks): Same.
2121         (vect_loop_versioning): Same.
2122         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
2123         (vect_inner_phi_in_double_reduction_p): Same.
2124         (vect_analyze_scalar_cycles_1): Same.
2125         (vect_fixup_scalar_cycles_with_patterns): Same.
2126         (vect_get_loop_niters): Same.
2127         (bb_in_loop_p): Same.
2128         (vect_get_max_nscalars_per_iter): Same.
2129         (vect_verify_full_masking): Same.
2130         (vect_compute_single_scalar_iteration_cost): Same.
2131         (vect_analyze_loop_form_1): Same.
2132         (vect_analyze_loop_form): Same.
2133         (vect_active_double_reduction_p): Same.
2134         (vect_analyze_loop_operations): Same.
2135         (neutral_op_for_slp_reduction): Same.
2136         (vect_is_simple_reduction): Same.
2137         (vect_model_reduction_cost): Same.
2138         (get_initial_def_for_reduction): Same.
2139         (get_initial_defs_for_reduction): Same.
2140         (vect_create_epilog_for_reduction): Same.
2141         (vectorize_fold_left_reduction): Same.
2142         (vectorizable_reduction): Same.
2143         (vectorizable_induction): Same.
2144         (vectorizable_live_operation): Same.
2145         (loop_niters_no_overflow): Same.
2146         (vect_get_loop_mask): Same.
2147         (vect_transform_loop_stmt): Same.
2148         (vect_transform_loop): Same.
2149         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
2150         (vect_determine_precisions): Same.
2151         (vect_pattern_recog_1): Same.
2152         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
2153         * tree-vect-stmts.c (stmt_vectype): Same.
2154         (process_use): Same.
2155         (vect_init_vector_1): Same.
2156         (vect_truncate_gather_scatter_offset): Same.
2157         (get_group_load_store_type): Same.
2158         (vect_build_gather_load_calls): Same.
2159         (vect_get_strided_load_store_ops): Same.
2160         (vectorizable_simd_clone_call): Same.
2161         (vectorizable_store): Same.
2162         (permute_vec_elements): Same.
2163         (vectorizable_load): Same.
2164         (vect_transform_stmt): Same.
2165         (supportable_widening_operation): Same.
2166         * tree-vectorizer.c (vec_info::replace_stmt): Same.
2167         (vec_info::free_stmt_vec_info): Same.
2168         (vect_free_loop_info_assumptions): Same.
2169         (vect_loop_vectorized_call): Same.
2170         (set_uid_loop_bbs): Same.
2171         (vectorize_loops): Same.
2172         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
2173         * tree.c (add_tree_to_fld_list): Same.
2174         (fld_type_variant_equal_p): Same.
2175         (fld_decl_context): Same.
2176         (fld_incomplete_type_of): Same.
2177         (free_lang_data_in_binfo): Same.
2178         (need_assembler_name_p): Same.
2179         (find_decls_types_r): Same.
2180         (get_eh_types_for_runtime): Same.
2181         (find_decls_types_in_eh_region): Same.
2182         (find_decls_types_in_node): Same.
2183         (assign_assembler_name_if_needed): Same.
2184         * value-prof.c (stream_out_histogram_value): Same.
2185         * value-prof.h: Same.
2186         * var-tracking.c (use_narrower_mode): Same.
2187         (prepare_call_arguments): Same.
2188         (vt_expand_loc_callback): Same.
2189         (resolve_expansions_pending_recursion): Same.
2190         (vt_expand_loc): Same.
2191         * varasm.c (const_hash_1): Same.
2192         (compare_constant): Same.
2193         (tree_output_constant_def): Same.
2194         (simplify_subtraction): Same.
2195         (get_pool_constant): Same.
2196         (output_constant_pool_2): Same.
2197         (output_constant_pool_1): Same.
2198         (mark_constants_in_pattern): Same.
2199         (mark_constant_pool): Same.
2200         (get_section_anchor): Same.
2201         * vr-values.c (compare_range_with_value): Same.
2202         (vr_values::extract_range_from_phi_node): Same.
2203         * vr-values.h: Same.
2204         * web.c (unionfind_union): Same.
2205         * wide-int.h: Same.
2207 2019-07-09  Martin Sebor  <msebor@redhat.com>
2209         PR c++/61339
2210         * align.h: Change class-key from class to struct and vice versa
2211         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
2212         * alloc-pool.h: Same.
2213         * asan.c (shadow_mem_size): Same.
2214         * auto-profile.c: Same.
2215         * basic-block.h: Same.
2216         * bitmap.h: Same.
2217         * cfgexpand.c (set_rtl): Same.
2218         (expand_one_stack_var_at): Same.
2219         * cfghooks.h: Same.
2220         * cfgloop.h: Same.
2221         * cgraph.h: Same.
2222         * config/i386/i386.h: Same.
2223         * df-problems.c (df_print_bb_index): Same.
2224         * df-scan.c: Same.
2225         * df.h (df_single_use): Same.
2226         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
2227         (layout::annotation_line_showed_range_p): Same.
2228         (get_printed_columns): Same.
2229         (correction::ensure_terminated): Same.
2230         (line_corrections::~line_corrections): Same.
2231         * dojump.h: Same.
2232         * dse.c: Same.
2233         * dump-context.h: Same.
2234         * dumpfile.h: Same.
2235         * dwarf2out.c: Same.
2236         * edit-context.c: Same.
2237         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
2238         * flags.h: Same.
2239         * function.c (assign_stack_local): Same.
2240         * function.h: Same.
2241         * gcc.c: Same.
2242         * gcov.c (block_info::block_info): Same.
2243         * genattrtab.c: Same.
2244         * genextract.c: Same.
2245         * genmatch.c (comparison_code_p): Same.
2246         (id_base::id_base): Same.
2247         (decision_tree::print): Same.
2248         * genoutput.c: Same.
2249         * genpreds.c (write_one_predicate_function): Same.
2250         * genrecog.c (validate_pattern): Same.
2251         (find_operand_positions): Same.
2252         (optimize_subroutine_group): Same.
2253         (merge_pattern_transition::merge_pattern_transition): Same.
2254         (merge_pattern_info::merge_pattern_info): Same.
2255         (merge_state_result::merge_state_result): Same.
2256         (merge_into_state): Same.
2257         * gensupport.c: Same.
2258         * gensupport.h: Same.
2259         * ggc-common.c (init_ggc_heuristics): Same.
2260         * ggc-tests.c (test_union): Same.
2261         * gimple-loop-interchange.cc (dump_induction): Same.
2262         * gimple-loop-versioning.cc: Same.
2263         * gimple-match.h (gimple_match_cond::any_else): Same.
2264         * gimple-ssa-backprop.c: Same.
2265         * gimple-ssa-sprintf.c: Same.
2266         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
2267         Same.
2268         (store_immediate_info::store_immediate_info): Same.
2269         (merged_store_group::apply_stores): Same.
2270         (get_location_for_stmts): Same.
2271         * gimple-ssa-strength-reduction.c: Same.
2272         * gimple-ssa-warn-alloca.c: Same.
2273         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
2274         * godump.c (go_type_decl): Same.
2275         * hash-map-tests.c (test_map_of_strings_to_int): Same.
2276         * hash-map.h: Same.
2277         * hash-set-tests.c (test_set_of_strings): Same.
2278         * hsa-brig.c: Same.
2279         * hsa-common.h: Same.
2280         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
2281         * input.c (assert_loceq): Same.
2282         * input.h: Same.
2283         * ipa-cp.c: Same.
2284         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
2285         * ipa-fnsummary.h: Same.
2286         * ipa-inline.h: Same.
2287         * ipa-prop.h: Same.
2288         * ipa-split.c (visit_bb): Same.
2289         * ira-int.h (minmax_set_iter_next): Same.
2290         * loop-invariant.c: Same.
2291         * loop-iv.c: Same.
2292         * lra-eliminations.c: Same.
2293         * lra-int.h: Same.
2294         * lra-lives.c (mark_regno_dead): Same.
2295         * lra-remat.c: Same.
2296         * lra-spills.c: Same.
2297         * lto-streamer.h: Same.
2298         * mem-stats.h: Same.
2299         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
2300         * omp-low.c (omp_clause_aligned_alignment): Same.
2301         * optabs-query.h (get_vcond_eq_icode): Same.
2302         * optabs.h: Same.
2303         * opts.c (wrap_help): Same.
2304         * poly-int.h: Same.
2305         * predict.c (predict_paths_leading_to_edge): Same.
2306         * pretty-print.h: Same.
2307         * profile-count.h: Same.
2308         * read-md.h: Same.
2309         * read-rtl-function.c: Same.
2310         * ree.c: Same.
2311         * reginfo.c: Same.
2312         * regrename.c: Same.
2313         * regrename.h: Same.
2314         * reload.h: Same.
2315         * rtl-iter.h: Same.
2316         * rtl.h (costs_add_n_insns): Same.
2317         * sanopt.c: Same.
2318         * sched-int.h: Same.
2319         * sel-sched-ir.h: Same.
2320         * selftest.h: Same.
2321         * sese.h (vec_find): Same.
2322         * stmt.c: Same.
2323         * target-globals.h: Same.
2324         * tree-affine.c (aff_combination_find_elt): Same.
2325         * tree-affine.h: Same.
2326         * tree-data-ref.h: Same.
2327         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
2328         * tree-predcom.c: Same.
2329         * tree-scalar-evolution.c (find_var_scev_info): Same.
2330         * tree-ssa-alias.h: Same.
2331         * tree-ssa-ccp.c: Same.
2332         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
2333         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
2334         (rewrite_mem_refs): Same.
2335         (execute_sm_if_changed): Same.
2336         (hoist_memory_references): Same.
2337         * tree-ssa-loop-ivopts.c (operator<=): Same.
2338         * tree-ssa-loop.h: Same.
2339         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
2340         * tree-ssa-structalias.c: Same.
2341         * tree-switch-conversion.h (cluster::cluster): Same.
2342         (simple_cluster::simple_cluster): Same.
2343         * tree-vect-patterns.c (type_conversion_p): Same.
2344         * tree-vectorizer.c (dump_stmt_cost): Same.
2345         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
2346         * tree.c (protected_set_expr_location): Same.
2347         * tree.h (desired_pro_or_demotion_p): Same.
2348         (fndecl_built_in_p): Same.
2349         * unique-ptr-tests.cc: Same.
2350         * var-tracking.c (delete_variable_part): Same.
2351         * varasm.c (assemble_real): Same.
2352         (tree_output_constant_def): Same.
2353         * vec.c: Same.
2354         * wide-int-bitmask.h: Same.
2355         * wide-int.h (decompose): Same.
2357 2019-07-09  Richard Biener  <rguenther@suse.de>
2359         PR tree-optimization/91114
2360         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
2361         find a vector type isn't fatal.
2363 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
2365         * config/aarch64/aarch64-simd.md
2366         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
2367         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
2368         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
2369         (*aarch64_crypto_aese_fused,
2370         *aarch64_crypto_aesd_fused): Update to new definition.
2371         * config/aarch64/aarch64.c
2372         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
2374 2019-07-09  Richard Biener  <rguenther@suse.de>
2376         * gimple-match.h (gimple_match_op::resimplify): New.
2377         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
2378         gimple_resimplify4, gimple_resimplify5): Remove.
2379         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
2380         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
2381         Make static.
2382         (gimple_match_op::resimplify): New.
2383         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
2384         according to availability.  Use gimple_match_op::resimplify.
2386 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
2388         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
2390 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
2392         * config/arm/crypto.md:
2393         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
2394         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
2395         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
2396         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
2397         * config/arm/arm.c
2398         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
2399         * config/arm/aarch-common-protos.h
2400         (aarch_crypto_can_dual_issue): Remove.
2401         * config/arm/aarch-common.c
2402         (aarch_crypto_can_dual_issue): Likewise.
2403         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
2404         * config/arm/cortex-a53.md: Likewise.
2405         * config/arm/cortex-a57.md: Likewise.
2406         * config/arm/iterators.md:
2407         (CRYPTO_BINARY): Redefine.
2408         (CRYPTO_UNARY): Removed.
2409         (CRYPTO_AES, CRYPTO_AESMC): New.
2411 2019-07-09  Richard Biener  <rguenther@suse.de>
2413         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
2414         (vn_reference_lookup_3): If the main ref has no access path recorded
2415         but orig_ref has use it to do access-path based disambiguation.
2416         (vn_reference_lookup_pieces): Adjust.
2417         (vn_reference_lookup): Pass down original ref if we valueized.
2419 2019-07-09  Martin Liska  <mliska@suse.cz>
2421         * doc/extend.texi: Document influence on loop
2422         optimizers.
2424 2019-07-09  Martin Liska  <mliska@suse.cz>
2426         * lto-compress.c (lto_normalized_zstd_level): Do not use
2427         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
2428         of libzstd.  One can use 0 as a default compression level.
2430 2019-07-09  Martin Liska  <mliska@suse.cz>
2432         * doc/invoke.texi: Add link from -fprofile-dir option.
2433         Use better wording for 'gcno filename'.
2435 2019-07-08  Martin Sebor  <msebor@redhat.com>
2437         PR middle-end/71924
2438         PR middle-end/90549
2439         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
2440         comment.
2441         (args_loc_t): New type.
2442         (args_loc_t, locmap_t): same.
2443         (diag_returned_locals): New function.
2444         (is_addr_local): Same.
2445         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
2446         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
2447         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
2449 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
2451         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
2452         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
2453         and casts in offset when different, both through gimple stmts
2454         and through trees.  Rewritten using loops to minimize code duplication
2455         for each operand.
2457 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2459         * emit-rtl.c (set_insn_locations): New function moved from...
2460         * function.c (set_insn_locations): ...here.
2461         * ira-emit.c (emit_moves): Propagate location of the first instruction
2462         to the inserted move instructions.
2463         * reg-stack.c (compensate_edge): Set the location if the sequence is
2464         inserted on the edge.
2465         * rtl.h (set_insn_locations): Declare.
2467 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
2469         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
2470         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
2471         .machine string.
2473 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
2475         PR rtl-optimization/88233
2476         * common.opt (fsplit-wide-types-early): New option.
2477         * common/config/rs6000/rs6000-common.c
2478         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
2479         OPT_LEVELS_ALL.
2480         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
2481         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
2482         flag_split_wide_types_early.
2483         (pass_data_lower_subreg3): New.
2484         (pass_lower_subreg3): New.
2485         (make_pass_lower_subreg3): New.
2486         * passes.def (pass_lower_subreg2): Move after the loop passes.
2487         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
2488         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
2489         the pass pipeline; its previous place is taken by ...
2490         (make_pass_lower_subreg3): ... this.
2492 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
2494         * config/s390/s390.c (s390_shift_truncation_mask): Define.
2495         (TARGET_SHIFT_TRUNCATION_MASK): Define.
2497 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
2499         * config/s390/constraints.md: Add new jsc constraint.
2500         * config/s390/predicates.md: New predicates.
2501         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
2502         * config/s390/s390.c (s390_valid_shift_count): New function.
2503         (print_shift_count_operand): Use s390_valid_shift_count.
2504         (print_operand): Likewise.
2505         * config/s390/s390.md: Use new predicate.
2506         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
2507         * config/s390/vector.md: Use new predicate.
2509 2019-07-08  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2511         Avoid clash with system header declaration.
2512         * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
2513         Remove unused declaration.
2515 2019-07-08  Andrew Waterman  <andrew@sifive.com>
2516             Jim Wilson  <jimw@sifive.com>
2518         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
2519         bitsize instead of BITS_PER_WORD.
2520         gcc/testsuite/
2522 2019-07-08  Martin Liska  <mliska@suse.cz>
2524         * collect2.c (defined): Revert to before r254460.
2525         (scan_prog_file): Revert to before r254460.
2527 2019-07-08  Richard Biener  <rguenther@suse.de>
2529         PR tree-optimization/83518
2530         * tree-ssa-sccvn.c: Include splay-tree.h.
2531         (struct pd_range, struct pd_data): New.
2532         (struct vn_walk_cb_data): Add data to track partial definitions.
2533         (vn_walk_cb_data::~vn_walk_cb_data): New.
2534         (vn_walk_cb_data::push_partial_def): New.
2535         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
2536         (vn_reference_lookup_2): When partial defs are registered give up.
2537         (vn_reference_lookup_3): Track partial defs for memset and
2538         constructor zeroing and for defs from constants.
2540 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
2542         * doc/install.texi (bootstrap-Og): Document.
2544 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
2546         * config/riscv/pic.md (*local_pic_load_s<mode>)
2547         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
2548         referenced by <mode>, giving...
2549         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
2550         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
2551         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
2552         use <X:MODE> for the mode attribute.
2554 2019-07-07  Jeff Law  <law@redhat.com>
2556         PR tree-optimization/91090
2557         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
2558         in handling of ranges to simplify switch statements.
2560 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
2562         * config/darwin.c (darwin_override_options): Make a final check on PIC
2563         options.
2565 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
2567         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
2568         on for kernel code.
2570 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
2572         PR target/91068
2573         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
2574         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
2575         instead of matching them to "l" output operands.
2577 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
2579         * config/mips/mips.c (mips_split_move): Zero-initialize addr
2580         and check whether addr.reg is nonnull before using it.
2582 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
2584         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
2585         ctx->for_simd_scan_phase simd copy the outer var to the privatized
2586         variable(s).  For conditional lastprivate look through outer
2587         GIMPLE_OMP_SCAN context.
2588         (lower_omp_1): For conditional lastprivate look through outer
2589         GIMPLE_OMP_SCAN context.
2591         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
2592         member to combined_into_simd_safelen1.
2593         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
2594         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
2595         clauses if ctx->combined_into_simd_safelen1 put statements after the
2596         predicate conditionalized block rather than into it.
2598 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2600         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
2601         operand 1.
2602         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
2603         Make the choice of <mode> explicit, giving...
2604         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
2606 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2608         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
2609         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
2610         of .md attributes.
2611         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
2612         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
2613         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
2614         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
2615         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
2616         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
2617         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
2618         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
2619         (*avx512f_scatterdi<mode>): Likewise.
2620         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
2622 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2624         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
2625         specify the mode iterator referenced by <mode>, giving...
2626         (*push1_h8300hs_<QHI:mode>): ...this.
2628 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2630         * config/gcn/gcn-valu.md
2631         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
2632         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
2633         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
2634         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
2635         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
2636         but using the _exec comparison patterns.
2637         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
2638         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
2639         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
2640         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
2641         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
2642         but using the _exec comparison patterns.
2644 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2646         * config/arm/sync.md
2647         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
2648         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
2649         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
2650         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
2651         <SIDI:cas_cmp_str>.
2653 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
2655         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
2656         (maybe_lookup_ctx): Add forward declaration.
2657         (omp_find_scan): Likewise.  Walk into body of simd if composited
2658         with worksharing loop.
2659         (scan_omp_simd_scan): New function.
2660         (scan_omp_1_stmt): Call it.
2661         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
2662         ctx->for_simd_scan_phase.
2663         (lower_rec_input_clauses): Do much less work for inscan reductions
2664         in ctx->for_simd_scan_phase is_simd regions.
2665         (lower_omp_scan): Set is_simd also on simd constructs composited
2666         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
2667         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
2668         emit their body after in simd constructs composited with worksharing
2669         loop.
2670         (lower_omp_for_scan): Handle worksharing loop composited with simd.
2672         * omp-low.c (omp_find_scan): Make static.
2673         (lower_omp_for_scan): Fix order of merge arguments in input phase of
2674         the second loop, var2 represents the first partial sum and so needs
2675         to go before rprivb[ivar].
2677 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
2679         * config/rs6000/rs6000-logue.c: Remove unused code.
2681 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2683         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2685 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
2687         PR target/90712
2688         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
2689         check with a frame laid out check.
2691 2019-07-05  Richard Biener  <rguenther@suse.de>
2693         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
2694         when comparing against a store with possibly the same value.
2696 2019-07-05  Richard Biener  <rguenther@suse.de>
2698         PR tree-optimization/91091
2699         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
2700         (walk_non_aliased_vuses): Likewise.
2701         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
2702         (get_continuation_for_phi): New tbaa_p parameter and pass
2703         it down.
2704         (walk_non_aliased_vuses): Likewise.
2705         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
2706         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2707         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2708         Likewise.
2709         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
2710         (adjust_offsets_for_equal_base_address): New function.
2711         (vn_reference_lookup_3): Use it to catch more base equivalences.
2712         Handle and pass down tbaa_p flag.
2713         (vn_reference_lookup_pieces): Adjust.
2714         (vn_reference_lookup): Remove alias-set altering, instead pass
2715         down false as tbaa_p.
2717 2019-07-05  Richard Biener  <rguenther@suse.de>
2719         PR tree-optimization/91091
2720         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2721         accesses can happen with -fno-strict-aliasing.
2723 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
2725         * tree-ssa-alias.c (alias_stats): Add
2726         nonoverlapping_component_refs_since_match_p_must_overlap.
2727         (dump_alias_stats): Print it.
2728         (nonoverlapping_component_refs_since_match_p): Add early exit.
2729         (nonoverlapping_component_refs_p): Do not account early exit.
2731 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2733         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
2734         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
2735         (emit_eh_dispatch): Delete.
2736         (lower_catch): Emit the eh_dispatch manually and set the location of
2737         the first catch statement onto it.
2738         (lower_eh_filter): Emit the eh_dispatch manually and set location.
2739         (lower_eh_dispatch): Propagate location.
2740         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
2741         (eliminate_build): Likewise.
2743 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2745         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
2746         phi nodes if possible.
2747         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
2748         location info on the newly created statement.
2749         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
2750         newly created increment if needed.
2752 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2754         PR middle-end/78884
2755         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
2756         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
2757         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
2758         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
2759         ctx->add_safelen1 is set.
2761         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
2762         GOMP_loop_start at the start of second worksharing loop in a scan.
2763         For nowait, don't emit GOMP_loop_end_nowait at the end of first
2764         worksharing loop in a scan even if there are conditional lastprivates,
2765         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
2767 2019-07-04  Jan Hubicka  <jh@suse.cz>
2769         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2770         Fix check for match in the ref walk.
2772 2019-07-04  Martin Liska  <mliska@suse.cz>
2774         * tree-ssa-loop-niter.c
2775         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
2776         (estimate_numbers_of_iterations):
2777         Support __builtin_expect_with_probability for analysis
2778         of # of loop iterations.
2780 2019-07-04  Alexandre Oliva <oliva@adacore.com>
2782         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
2783         * except.c: Likewise.
2784         * expr.c (expand_expr_real_1): Reject it.
2785         * gimplify.c (gimplify_expr): Gimplify it, within
2786         TRY_FINALLY_EXPR.
2787         * tree-dump.c (dequeue_and_dump): Dump it.
2788         * tree-pretty-print.c (dump_generic_node): Likewise.
2789         * tree.c (block_may_fallthru): Handle it.
2790         * tree.def (EH_ELSE_EXPR): Introduce it.
2791         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
2792         with GIMPLE_EH_ELSE as try/finally/else.
2794 2019-07-04  Richard Biener  <rguenther@suse.de>
2796         PR ipa/91062
2797         * tree-pass.h (execute_all_ipa_transforms): Add a flag
2798         parameter whether to disable GC collection.
2799         * passes.c (execute_one_ipa_transform_pass): Likewise, and
2800         honor it.
2801         (execute_all_ipa_transforms): Likewise and pass it down.
2802         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
2803         collection from applying IPA transforms.
2804         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
2805         from applying IPA transforms.
2807 2019-07-04  Richard Biener  <rguenther@suse.de>
2809         PR tree-optimization/90911
2810         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
2811         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
2812         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2813         scalar_loop_scaling.
2814         (vect_transform_loop): Scale scalar loop profile if needed.
2815         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
2816         the loop copy from if-conversion adjust edge probabilities
2817         and scale the vectorized loop body profile, queue the scalar
2818         profile for updating after peeling.
2820 2019-07-04  Jan Hubicka  <jh@suse.cz>
2822         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
2823         parameters; return early for must-alias.
2824         (indirect_ref_may_alias_decl_p): Likewise; when establishing
2825         outer types match, try nonoverlapping_component_refs
2826         if must-alias is not obvious.
2827         (indirect_refs_may_alias_p): Likewise.
2828         (refs_may_alias_p_2): Likewise.
2830 2019-07-04  Richard Biener  <rguenther@suse.de>
2832         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2833         argument.
2834         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2835         globals into...
2836         (struct vn_walk_cb_data): New callback data struct.
2837         (vn_reference_lookup_2): Adjust.
2838         (vn_reference_lookup_3): Likewise.
2839         (vn_reference_lookup_pieces): Likewise.
2840         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
2841         (visit_reference_op_load): Adjust.
2843 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2845         PR tree-optimization/91063
2846         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
2847         stmt from stmts sequence before calling vect_init_vector_1.
2848         Formatting fix.
2850 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2852         PR target/88833
2853         * fwprop.c (reg_single_def_p): New function.
2854         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
2855         (forward_propagate_into): New parameter reg_prop_only
2856         with default value false.
2857         Propagate def's src into loop only if SET_SRC and SET_DEST
2858         of def_set have single definitions.
2859         Likewise if reg_prop_only is set to true.
2860         (fwprop): New param fwprop_addr_p.
2861         Integrate fwprop_addr into fwprop.
2862         (fwprop_addr): Remove.
2863         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
2864         to true.
2865         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
2866         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
2867         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
2869 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2871         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2872         in worksharing loop scans.
2874         PR tree-optimization/91074
2875         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2876         temporary.
2878         PR rtl-optimization/90756
2879         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2880         for VECTOR_TYPE_P.
2882 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
2884         * config/aarch64/aarch64.md: Remove redundant constraints from
2885         define_expand but keep some patterns untouched if they are
2886         specially selected by TARGET_SECONDARY_RELOAD hook.
2887         * config/aarch64/aarch64-sve.md: Likewise.
2888         * config/aarch64/atomics.md: Remove redundant constraints from
2889         define_expand.
2890         * config/aarch64/aarch64-simd.md: Likewise.
2892 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2894         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
2895         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
2896         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
2897         clauses.
2898         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2899         DARWIN_NOPIE_SPEC.
2901 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2903         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
2904         (STARTFILE_SPEC): Split crt3 into a separate spec.
2905         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
2906         (DARWIN_CRT2_SPEC): New.
2907         (DARWIN_CRT3_SPEC): New.
2908         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
2909         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
2910         (DARWIN_CRT3_SPEC): New.
2912 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
2914         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
2915         Change the RTL attribute "length" from "4" to "*" to allow the
2916         length attribute to be adjusted automatically for prefixed load,
2917         store, and add immediate instructions.
2918         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
2919         Likewise.
2920         (extendsi<mode>2, EXTSI iterator): Likewise.
2921         (movsi_internal1): Likewise.
2922         (movsi_from_sf): Likewise.
2923         (movdi_from_sf_zero_ext): Likewise.
2924         (mov<mode>_internal): Likewise.
2925         (movcc_internal1, QHI iterator): Likewise.
2926         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
2927         (movsf_from_si): Likewise.
2928         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
2929         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
2930         (mov<mode>, FMOVE128 iterator): Likewise.
2931         (movdi_internal64): Likewise.
2932         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
2933         Likewise.
2934         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
2935         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
2936         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
2937         (vsx_splat_v4sf): Likewise.
2939 2019-07-03  Mark Wielaard  <mark@klomp.org>
2941         PR debug/90981
2942         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
2943         DW_AT_addr_base if there is actually a .debug_addr section with
2944         addresses.
2945         (output_addr_table): Add DWARF5 table header generation here after
2946         checking there are actually any addresses from...
2947         (dwarf2out_finish): ...here.
2948         * testsuite/g++.dg/pr90981.C: New test.
2950 2019-07-03  Richard Biener  <rguenther@suse.de>
2952         PR middle-end/91069
2953         * match.pd (vec_perm -> bit_insert): Fix element read from
2954         first vector.
2956 2019-07-03  Martin Liska  <mliska@suse.cz>
2958         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2959         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2960         condition.
2961         * generic-match-head.c: Include dbgcnt.h.
2962         * gimple-match-head.c: Likewise.
2964 2019-07-03  Martin Liska  <mliska@suse.cz>
2966         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
2967         (GCOV_COUNTER_V_TOPN): New.
2968         (GCOV_COUNTER_V_INDIR): Use _topn.
2969         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
2970         (GCOV_TOPN_VALUES): New.
2971         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
2972         (GCOV_TOPN_VALUES_COUNTERS): New.
2973         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
2974         * tree-profile.c:
2975         (gimple_init_gcov_profiler): Rename variables from one_value
2976         to topn_values.
2977         (gimple_gen_one_value_profiler): Remove.
2978         (gimple_gen_topn_values_profiler): New function.
2979         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
2980         names instead of SINGLE_VALUE.
2981         (stream_out_histogram_value): Likewise.
2982         (stream_in_histogram_value): Likewise.
2983         (get_most_common_single_value): Likewise.
2984         (gimple_divmod_fixed_value_transform): Likewise.
2985         (gimple_stringops_transform): Likewise.
2986         (gimple_divmod_values_to_profile): Likewise.
2987         (gimple_stringops_values_to_profile): Likewise.
2988         (gimple_find_values_to_profile): Likewise.
2989         * value-prof.h (enum hist_type): Rename to TOPN.
2990         (gimple_gen_one_value_profiler): Remove.
2991         (gimple_gen_topn_values_profiler): New.
2993 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2995         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2996         if it has the DW_AT_data_member_location attribute.
2998 2019-07-03  Richard Biener  <rguenther@suse.de>
3000         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
3001         dumping.
3003 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
3005         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
3006         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
3007         (tlsdesc_small_sve_<mode>): Likewise.
3009 2019-07-03  Martin Liska  <mliska@suse.cz>
3011         * Makefile.in: Define ZSTD_LIB.
3012         * common.opt: Adjust compression level
3013         to support also zstd levels.
3014         * config.in: Regenerate.
3015         * configure: Likewise.
3016         * configure.ac: Add --with-zstd and --with-zstd-include options
3017         and detect ZSTD.
3018         * doc/install.texi: Mention zstd dependency.
3019         * gcc.c: Print supported LTO compression algorithms.
3020         * lto-compress.c (lto_normalized_zstd_level): Likewise.
3021         (lto_compression_zstd): Likewise.
3022         (lto_uncompression_zstd): Likewise.
3023         (lto_end_compression): Dispatch in between zlib and zstd.
3024         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
3025         (lto_uncompression_zlib): Make it static.
3026         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
3027         * lto-section-in.c (lto_get_section_data): Pass info
3028         about used compression.
3029         * lto-streamer-out.c: By default use zstd when possible.
3030         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
3031         (TV_IPA_LTO_COMPRESS): Likewise for compression.
3033 2019-07-03  Martin Liska  <mliska@suse.cz>
3035         * lto-section-in.c (lto_get_section_data): Add "lto" section.
3036         * lto-section-out.c (lto_destroy_simple_output_block): Never
3037         compress LTO_section_lto section.
3038         * lto-streamer-out.c (produce_asm): Do not set major_version
3039         and minor_version.
3040         (lto_output_toplevel_asms): Likewise.
3041         (produce_lto_section): New function.
3042         (lto_output): Call produce_lto_section.
3043         (lto_write_mode_table): Do not set major_version and
3044         minor_version.
3045         (produce_asm_for_decls): Likewise.
3046         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
3047         type.
3048         (struct lto_header): Remove.
3049         (struct lto_section): New struct.
3050         (struct lto_simple_header): Do not inherit from lto_header.
3051         (struct lto_file_decl_data): Add lto_section_header field.
3053 2019-07-03  Martin Liska  <mliska@suse.cz>
3055         * lra-eliminations.c (eliminate_regs_in_insn): Remove
3056         dead assignemts.
3057         * reg-stack.c (check_asm_stack_operands): Likewise.
3058         * tree-ssa-structalias.c (create_function_info_for): Likewise.
3059         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3060         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
3061         force_expand_binop.
3063 2019-07-03  Martin Liska  <mliska@suse.cz>
3065         PR tree-optimization/90892
3066         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
3067         in string constants.
3069 2019-07-03  Martin Liska  <mliska@suse.cz>
3071         PR middle-end/90899
3072         * multiple_target.c (create_dispatcher_calls): Add to comdat
3073         group only if set for ifunc.
3075 2019-07-03  Martin Liska  <mliska@suse.cz>
3077         PR target/88056
3078         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3079         Define local_object_name in outer scope in order to handle
3080         use-after-scope issue.
3082 2019-07-03  Martin Liska  <mliska@suse.cz>
3084         * common.opt: Add fprofile-note.
3085         * coverage.c (coverage_init): Append the option
3086         to bbg_file_name.
3087         * doc/invoke.texi: Document -fprofile-note.
3089 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
3091         PR tree-optimization/91033
3092         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
3093         vect_analyze_data_refs): Add bool * arguments.
3094         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
3095         if failure is due to scatter/gather, set *fatal to false if non-NULL.
3096         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3097         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
3098         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
3099         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
3100         vect_analyze_data_refs caller.
3102         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
3103         clause.
3104         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
3105         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
3106         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
3107         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3108         OMP_CLAUSE__SCANTEMP_ entry.
3109         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
3110         * tree-pretty-print.c (dump_omp_clause): Likewise.
3111         * tree-nested.c (convert_nonlocal_omp_clauses,
3112         convert_local_omp_clauses): Likewise.
3113         * omp-general.h (struct omp_for_data): Add have_scantemp and
3114         have_nonctrl_scantemp members.
3115         * omp-general.c (omp_extract_for_data): Initialize them.
3116         * omp-low.c (struct omp_context): Add scan_exclusive member.
3117         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
3118         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
3119         ctx->scan_exclusive.
3120         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
3121         of !ctx->scan_inclusive.
3122         (lower_rec_input_clauses): Simplify gimplification of dtors using
3123         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
3124         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
3125         loops.  Don't add barrier for reduction_omp_orig_ref if
3126         ctx->scan_??xclusive.
3127         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
3128         (lower_omp_scan): Use ctx->scan_exclusive instead
3129         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
3130         reductions.  Use new_vard != new_var instead of repeated
3131         omp_is_reference calls.
3132         (omp_find_scan, lower_omp_for_scan): New functions.
3133         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
3134         inscan reductions.
3135         * omp-expand.c (expand_omp_scantemp_alloc): New function.
3136         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
3137         and fd->have_scantemp.
3139         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
3140         on worksharing loop propagate it as shared clause to containing
3141         combined parallel.
3143         * omp-expand.c (expand_omp_for_static_nochunk,
3144         expand_omp_for_static_chunk): For nowait worksharing loop with
3145         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
3146         at the end.
3148 2019-07-02  Joern Rennecke  <joern.rennecke@riscy-ip.com>
3150         PR testsuite/91065
3151         * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
3152         to reference fake_var.
3154 2019-07-02  qing zhao  <qing.zhao@oracle.com>
3156         PR preprocessor/90581
3157         * doc/cppopts.texi: Add document for -fmax-include-depth.
3158         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
3160 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
3162         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
3163         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
3164         (mmx_packssdw): Ditto.
3165         (mmx_punpckhbw): Ditto.
3166         (mmx_punpcklbw): Ditto.
3167         (mmx_punpckhwd): Ditto.
3168         (mmx_punpcklwd): Ditto.
3169         (mmx_punpckhdq): Ditto.
3170         (mmx_punpckldq): Ditto.
3171         (*vec_dupv4hi): Ditto.
3172         (*vec_dupv2si): Ditto.
3173         (mmx_pmovmskb): Ditto.
3174         * config/i386/sse.md (sse_cvtpi2ps): Use
3175         TARGET_SSE2 && SSE_REG_P in split condition.
3176         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
3177         TARGET_SSSE3 && SSE_REGNO_P in split condition.
3178         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
3179         (ssse3_pshufbv8qi3): Ditto.
3180         (ssse3_palignrdi): Ditto.
3182 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
3184         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
3185         with inlined save and restore.
3187 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3189         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
3190         to be inserted on single successor edge of the entry block.  Then call
3191         commit_edge_insertions instead of inserting the instructions manually.
3192         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
3193         RTL expansion and rebuild jump labels chain.
3195 2019-07-02  Richard Biener  <rguenther@suse.de>
3197         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
3198         TI_CHREC_KNOWN.
3199         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
3200         Define here.
3201         * tree.c (build_common_tree_nodes): Initialize them.
3202         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
3203         Make declarations comments.
3204         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
3205         chrec_known): Remove definitions.
3206         (initialize_scalar_evolutions_analyzer): Remove.
3207         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
3208         * tree-streamer.c (preload_common_nodes): Do not preload
3209         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
3211 2019-07-02  Jan Hubicka  <jh@suse.cz>
3213         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
3214         sanity check.
3216 2019-07-02  Jan Hubicka  <jh@suse.cz>
3218         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
3219         to ..
3220         (nonoverlapping_component_refs_since_match_p): ... this one;
3221         handle also non-decl bases; return -1 if search gave up.
3222         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
3223         nonoverlapping_component_refs_of_decl_p_no_alias to
3224         nonoverlapping_component_refs_since_match_p_may_alias,
3225         nonoverlapping_component_refs_since_match_p_no_alias.
3226         (dump_alias_stats): Update dumping.
3227         (aliasing_matching_component_refs_p):  Break out from ...;
3228         dispatch to nonoverlapping_component_refs_for_decl_p
3229         and nonoverlapping_component_refs_since_match_p.
3230         (aliasing_component_refs_p): ... here; call
3231         nonoverlapping_component_refs_p in scenarios where we can not
3232         precisely determine base match.
3233         (decl_refs_may_alias_p): Use
3234         nonoverlapping_component_refs_since_match_p.
3235         (indirect_ref_may_alias_decl_p): Do not call
3236         nonoverlapping_component_refs_p.
3237         (indirect_refs_may_alias_p): Likewise.
3239 2019-07-02  Jan Hubicka  <jh@suse.cz>
3241         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
3242         to clobber of return value.
3244 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3246         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
3247         for is_neon_type instructions that have not already been categorized.
3249 2019-07-02  Richard Biener  <rguenther@suse.de>
3251         PR tree-optimization/58483
3252         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
3253         for MEM_REF base hashing.
3254         (equal_mem_array_ref_p): Likewise for base comparison.
3256 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3258         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
3259         parameterized name.
3260         (signbit<mode>2): Use that name.  Simplify.
3262 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
3264         PR middle-end/66726
3265         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
3266         Tune heuristic from PR71016 to allow MIN / MAX.
3267         * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
3269 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3271         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
3272         parameterized name.
3273         (abs<mode>2): Use that name.  Simplify.
3275 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3277         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
3278         parameterized name.
3279         (neg<mode>2): Use that name.  Simplify.
3281 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3283         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
3284         name.
3285         (abs<mode>2): Use that name.  Simplify.
3287 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3289         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
3290         name.
3291         (neg<mode>2): Use that name.  Simplify.
3293 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
3295         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
3296         ("enabled" attribute): Handle sse_noavx isa attribute.
3297         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
3298         Use TARGET_SSE && SSE_REGNO_P in split condition.
3299         (*vec_dupv2sf): Ditto.
3301 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3303         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
3304         name.
3305         (floatsi<mode>2): Use that name.  Simplify.
3307 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3309         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
3310         parameterized name.
3311         (extenddf<mode>2_vsx): Make this a parameterized name.
3312         (extenddf<mode>2): Use those names.  Simplify.
3314 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3316         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
3317         name.
3318         (eh_return): Use that name.  Simplify.
3320 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3322         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
3323         (doloop_end): Use that name.  Simplify.
3325 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3327         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
3328         parameterized name.
3329         (indirect_jump): Use that name.  Simplify.
3331 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3333         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
3334         parameterized name.
3335         (abs<mode>2): Use that name.  Simplify.
3337 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3339         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
3340         parameterized name.
3341         (fix_trunc<mode>si2): Use that name.  Simplify.
3343 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3345         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
3346         (allocate_stack): Use that name.  Simplify.
3348 2019-07-01  Martin Sebor  <msebor@redhat.com>
3350         PR middle-end/90923
3351         * hash-map.h (hash_map::put): On insertion invoke element ctor.
3352         (hash_map::get_or_insert): Same.  Reformat comment.
3353         * hash-set.h (hash_set::add): On insertion invoke element ctor.
3354         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
3355         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
3356         * hash-table.h (hash_table::operator=): Prevent copy assignment.
3357          (hash_table::hash_table (const hash_table&)): Use copy ctor
3358          instead of assignment to copy elements.
3360 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
3361             John David Anglin  <danglin@gcc.gnu.org>
3363         PR target/90963
3364         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
3365         using saved frame pointer.
3367 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3369         PR middle-end/64242
3370         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
3371         Add frame clobber and schedule blockage.
3373 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
3375         * doc/invoke.texi (Link Options): Further editorial changes to
3376         -flinker-output docs.
3378 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
3380         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
3381         Load both operands of a PLUS into registers separately.
3383 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
3385         * config/s390/vector.md: Fix shift count operand printing.
3387 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3389         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
3391 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3393         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
3394         Use recog_data to test for an output operand.
3396 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3398         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
3399         exclude any others that are disparaged or that are bound to need
3400         a reload or spill.
3401         (ira_get_dup_out_num): Expand comment.
3403 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3405         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
3406         constraint string for each operand/alternative combo.  Only handle
3407         '%' at the start of constraint strings, and look for it outside
3408         the main loop.
3410 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3412         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
3413         alternative_mask instead of HARD_REG_SET to represent a
3414         bitmask of alternatives.
3415         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3416         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
3418 2019-07-01  Martin Liska  <mliska@suse.cz>
3420         * edit-context.c (test_applying_fixits_unreadable_file): Do not
3421         use () for a constructor call.
3422         (test_applying_fixits_line_out_of_range): Likewise.
3423         * ggc-page.c (alloc_page): Use (void *) for %p printf format
3424         argument.
3425         (free_page): Likewise.
3427 2019-07-01  Vladislav Ivanishin <vlad@ispras.ru>
3429         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
3430         parameter names to match usage (no functional change).
3431         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
3433 2019-07-01  Richard Biener  <rguenther@suse.de>
3435         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
3436         pass parameter.
3437         (pass_fre::execute): Honor it.
3438         * passes.def: Adjust pass_fre invocations to allow iterating,
3439         add non-iterating pass_fre before late threading/dom.
3441 2019-07-01  Richard Biener  <rguenther@suse.de>
3443         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
3444         TARGET_MEM_REF handling to also handle address-taken ones.
3446 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
3448         * doc/sourcebuild.texi (Effective-Target Keywords, Other
3449         hardware attributes): Document avx512vp2intersect.
3451 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
3453         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
3454         (abs<mode>2): New expander.
3455         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
3456         Use CODE_FOR_ssse3_absv8qi2.
3457         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
3458         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
3460 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
3462         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
3463         to sse, sse_noavx and avx.  Update all uses.
3465 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
3467         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
3468         (*mmx_<plusminus_insn><mode>3): Ditto.
3469         (*mmx_mulv4hi3"): Ditto.
3470         (*mmx_smulv4hi3_highpart): Ditto.
3471         (*mmx_umulv4hi3_highpart): Ditto.
3472         (*mmx_pmaddwd): Ditto.
3473         (*sse2_umulv1siv1di3): Ditto.
3474         (*mmx_<code>v4hi3): Ditto.
3475         (*mmx_<code>v8qi3): Ditto.
3476         (mmx_ashr<mode>3): Ditto.
3477         ("mmx_<shift_insn><mode>3): Ditto.
3478         (*mmx_eq<mode>3): Ditto.
3479         (mmx_gt<mode>3): Ditto.
3480         (mmx_andnot<mode>3): Ditto.
3481         (*mmx_<code><mode>3): Ditto.
3482         (*mmx_pinsrw): Ditto.
3483         (*mmx_pextrw): Ditto.
3484         (mmx_pshufw_1): Ditto.
3485         (*mmx_uavgv8qi3): Ditto.
3486         (*mmx_uavgv4hi3): Ditto.
3487         ("mmx_psadbw): Ditto.
3488         * config/i386/sse.md (sse_cvtps2pi): Ditto.
3489         (sse_cvttps2pi): Ditto.
3490         (ssse3_pmaddubsw): Ditto.
3491         (*ssse3_pmulhrswv4hi3): Ditto.
3492         (ssse3_psign<mode>3): Ditto.
3494 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3496         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
3497         adjustment for bit-fields to all aggregate types.
3499 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
3501         * config/rs6000/predicates.md (pcrel_address):  Use
3502         SYMBOL_REF_LOCAL_P to determine if a label is local.
3503         (pcrel_external_address): New predicate.
3504         (non_prefixed_mem_operand): Delete, predicate not used.
3505         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
3506         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
3507         addressing.
3508         (SYMBOL_REF_PCREL_P): Likewise.
3510         PR target/91009
3511         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
3512         alternative.
3513         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
3514         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
3515         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
3517 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
3519         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
3520         override on extra_headers.
3522 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
3524         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
3525         * config/darwin-driver.c (darwin_default_min_version): Remove newline
3526         from warning.
3527         (darwin_driver_init): Likewise.
3529 2019-06-28  Jan Beulich  <jbeulich@suse.com>
3531         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3532         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
3533         Eliminate redundant alternative.
3535 2019-06-28  Jan Beulich  <jbeulich@suse.com>
3537         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3538         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
3539         Use vector_operand.
3541 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
3543         * config/arc/arc.c (arc_rtx_costs): All short instructions are
3544         having a lower cost regardless of the speed option.
3546 2019-06-28  Jan Beulich  <jbeulich@suse.com>
3548         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
3549         vector_operand plus, on both alternatives, "Bm" constraint.
3551 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
3553         * config/arm/arm.md: Remove redundant constraints from
3554         define_expand but leave reload_inm and reload_outm patterns
3555         untouched since they need special constraints to work.
3556         * config/arm/arm-fixed.md: Remove redundant constraints from
3557         define_expand.
3558         * config/arm/iwmmxt.md: Likewise.
3559         * config/arm/neon.md: Likewise.
3560         * config/arm/sync.md: Likewise.
3561         * config/arm/thumb1.md: Likewise.
3562         * config/arm/vec-common.md: Likewise.
3564 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
3566         * doc/install.texi: Document --disable-tm-clone-registry.
3568 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
3570         PR c++/91024
3571         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
3572         statements.
3574         PR tree-optimization/91010
3575         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
3576         return true.  Otherwise, don't call operand_equal_p if offset1 or
3577         offset2 is NULL and just return false.
3579 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
3581         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
3582         user-specified float mode choice for kernel mode code.
3584 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
3586         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
3587         spec.
3589 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
3591         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
3592         use longcall for 64b code.
3594 2019-06-27  Aaron Sawdey <acsawdey@linux.ibm.com>
3596         * builtins.c (get_memory_rtx): Fix comment.
3597         * optabs.def (movmem_optab): Change to cpymem_optab.
3598         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
3599         (emit_block_move_hints): Change movmem to cpymem.
3600         * defaults.h: Change movmem to cpymem.
3601         * targhooks.c (get_move_ratio): Change movmem to cpymem.
3602         (default_use_by_pieces_infrastructure_p): Ditto.
3603         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
3604         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
3605         to cpymem.
3606         * config/aarch64/aarch64.h: Change movmem to cpymem.
3607         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
3608         * config/alpha/alpha.h: Change movmem to cpymem in comment.
3609         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
3610         movmem to cpymem.
3611         * config/arc/arc-protos.h: Change movmem to cpymem.
3612         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
3613         * config/arc/arc.h: Change movmem to cpymem in comment.
3614         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
3615         * config/arm/arm-protos.h: Change movmem to cpymem in names.
3616         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
3617         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
3618         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
3619         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
3620         * config/avr/avr-protos.h: Change movmem to cpymem.
3621         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
3622         avr_out_movmem): Change movmem to cpymem.
3623         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
3624         Change movmem to cpymem.
3625         * config/bfin/bfin-protos.h: Change movmem to cpymem.
3626         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
3627         Change movmem to cpymem.
3628         * config/bfin/bfin.h: Change movmem to cpymem in comment.
3629         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
3630         * config/c6x/c6x-protos.h: Change movmem to cpymem.
3631         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
3632         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
3633         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
3634         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
3635         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
3636         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
3637         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
3638         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
3639         expand_small_cpymem_or_setmem,
3640         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
3641         expand_set_or_cpymem_constant_prologue,
3642         ix86_expand_set_or_cpymem): Change movmem to cpymem.
3643         * config/i386/i386-protos.h: Change movmem to cpymem.
3644         * config/i386/i386.h: Change movmem to cpymem in comment.
3645         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
3646         (setmem<mode>): Change expansion function name.
3647         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
3648         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
3649         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
3650         * config/m32c/m32c-protos.h: Change movmem to cpymem.
3651         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
3652         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
3653         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
3654         to cpymem.
3655         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
3656         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
3657         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
3658         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
3659         Change movmem to cpymem.
3660         * config/mips/mips.h: Change movmem to cpymem.
3661         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
3662         * config/nds32/nds32-memory-manipulation.c
3663         (nds32_expand_movmemsi_loop_unknown_size,
3664         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
3665         nds32_expand_movmemsi_unroll,
3666         nds32_expand_movmemsi): Change movmem to cpymem.
3667         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
3668         * config/nds32/nds32-protos.h: Change movmem to cpymem.
3669         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
3670         (pa_adjust_insn_length): Change call to compute_movmem_length.
3671         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
3672         movmemdi, movmemdi_prereload,
3673         movmemdi_postreload): Change movmem to cpymem.
3674         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
3675         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
3676         * config/riscv/riscv.c: Change movmem to cpymem in comment.
3677         * config/riscv/riscv.h: Change movmem to cpymem.
3678         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
3679         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
3680         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
3681         movmem to cpymem.
3682         * config/s390/s390-protos.h: Change movmem to cpymem.
3683         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
3684         s390_expand_insv): Change movmem to cpymem.
3685         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
3686         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
3687         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
3688         * config/sparc/sparc.h: Change movmem to cpymem in comment.
3689         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
3690         for nonexistent function.
3691         * config/vax/vax.h: Change movmem to cpymem in comment.
3692         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
3693         * config/visium/visium.h: Change movmem to cpymem in comment.
3694         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
3695         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
3696         * doc/md.texi: Change movmem to cpymem and update description to match.
3697         * doc/rtl.texi: Change movmem to cpymem.
3698         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
3699         * doc/tm.texi: Regenerate.
3701 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
3703         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3704         -fvariable-expansion-in-unroller by default.
3705         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
3706         default for Power.
3708 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
3710         Revert
3711         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3712         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3714         * config.gcc(rs6000-*-*): Define target_gtfiles.
3716 2019-06-27  Jan Hubicka  <jh@suse.cz>
3718         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
3719         (add_type_duplicate): When odr hash is not allocated, to nothing.
3720         (odr_based_tbaa_p): New function.
3721         (set_type_canonical_for_odr_type): New function.
3722         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
3723         set_type_canonical_for_odr_type): New.
3724         * tree.c (gimple_canonical_types_compatible_p): ODR types with
3725         ODR based TBAA are not equivalent to non-ODR types.
3727 2019-06-27  Martin Liska  <mliska@suse.cz>
3729         PR tree-optimization/90974
3730         PR rtl-optimization/90975
3731         PR rtl-optimization/90976
3732         PR target/91016
3733         PR tree-optimization/91017
3734         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3735         unused tmp.
3736         * lra.c (lra_set_insn_recog_data): Remove a leftover from
3737         initial commit of IRA.
3738         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
3739         of op0 and op1.
3740         * tree-vect-loop.c (vect_create_epilog_for_reduction):
3741         Remove unused mode1.
3742         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3743         to new_stmt_info.
3745 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
3747         PR target/90991
3748         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
3749         instead of register_operand for operands[1], add m to its constraints
3750         if operands[2] uses "C" constraint.  Ensure in condition that if
3751         operands[2] is not 0, then operands[1] is not a MEM.  For last two
3752         alternatives, use unaligned loads instead of aligned if operands[1] is
3753         misaligned_operand.
3755 2019-06-27  Martin Liska  <mliska@suse.cz>
3757         * asan.c (asan_emit_allocas_unpoison): Remove obviously
3758         dead assignments.
3759         * bt-load.c (move_btr_def): Likewise.
3760         * builtins.c (expand_builtin_apply_args_1): Likewise.
3761         (expand_builtin_apply): Likewise.
3762         * cfgexpand.c (expand_asm_stmt): Likewise.
3763         (construct_init_block): Likewise.
3764         * cfghooks.c (verify_flow_info): Likewise.
3765         * cfgloopmanip.c (remove_path): Likewise.
3766         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
3767         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
3768         * combine.c (simplify_if_then_else): Likewise.
3769         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3770         (choose_basereg): Likewise.
3771         (ix86_expand_prologue): Likewise.
3772         (ix86_preferred_output_reload_class): Likewise.
3773         * cselib.c (cselib_record_sets): Likewise.
3774         * df-scan.c (df_scan_alloc): Likewise.
3775         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
3776         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
3777         * emit-rtl.c (try_split): Likewise.
3778         * graphite-scop-detection.c (assign_parameter_index_in_region):
3779         Likewise.
3780         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3781         * ira-color.c (setup_profitable_hard_regs): Likewise.
3782         * ira.c (rtx_moveable_p): Likewise.
3783         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3784         * read-rtl.c (read_subst_mapping): Likewise.
3785         * regrename.c (scan_rtx): Likewise.
3786         * reorg.c (fill_slots_from_thread): Likewise.
3787         * tree-inline.c (tree_function_versioning): Likewise.
3788         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
3789         * tree-ssa-sink.c (statement_sink_location): Likewise.
3790         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3791         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
3792         (vect_create_epilog_for_reduction): Likewise.
3793         * tree.c (build_nonstandard_integer_type): Likewise.
3795 2019-06-27  Richard Biener  <rguenther@suse.de>
3797         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3799 2019-06-27  Jun Ma <JunMa@linux.alibaba.com>
3801         PR tree-optimization/89772
3802         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3803         out-of-bound accesses checking.
3805 2019-06-27  Martin Liska  <mliska@suse.cz>
3807         PR tree-optimization/91014
3808         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3809         when LHS is NULL_TREE.
3811 2019-06-27  Martin Liska  <mliska@suse.cz>
3813         * symbol-summary.h (traverse): Pass
3814         argument a to the call of callback.
3815         (gt_ggc_mx): Mark arguments as unused.
3816         (gt_pch_nx): Likewise.
3818 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
3820         PR target/62147
3821         * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3822         finiteness.
3824 2019-06-26  Jeff Law  <law@redhat.com>
3826         PR tree-optimization/90883
3827         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3828         (delete_dead_or_redundant_assignment): Likewise.
3830         PR tree-optimization/90883
3831         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
3832         * tree-ssa-dse.c: Update various comments to distinguish between
3833         dead and redundant stores.
3834         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
3835         (dse_optimize_redundant_stores): New function.
3836         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
3837         Distinguish between dead and redundant calls in dump output.  All
3838         callers updated.
3839         (delete_dead_or_redundant_assignment): Similarly for assignments.
3840         (dse_optimize_stmt): Handle _CHK variants.  For statements which
3841         store 0 into multiple memory locations, try to prove a subsequent
3842         store is redundant.
3844 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
3846         PR target/89021
3847         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3848         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3850 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3852         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
3853         (branch_islands): New extern.
3854         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
3855         * config/rs6000/rs6000.c: .. here.
3857 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3859         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3860         (powerpc*-*-*) ... to here.
3862 2019-06-26  Jeff Law  <law@redhat.com>
3864         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
3865         memcpy, memmove and memset builtins.
3866         (maybe_trim_memstar_call): Likewise.
3868 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3870         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3872 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3874         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3876 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3878         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3879         declaration.
3880         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3881         "static".
3882         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3883         declaration.
3885 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3887         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3889 2019-06-26  Richard Biener  <rguenther@suse.de>
3891         PR ipa/90982
3892         * tree-inline.c (remap_ssa_name): Copy SSA range info.
3894 2019-06-26  Richard Biener  <rguenther@suse.de>
3896         * lto-streamer.h (lto_bitmap_alloc): Remove.
3897         (lto_bitmap_free): Likewise.
3898         * lto-streamer.c (lto_bitmap_alloc): Remove.
3899         (lto_bitmap_free): Likewise.
3900         (lto_obstack): Likewise.
3901         (lto_obstack_initialized): Likewise.
3902         * lto-streamer-out.c (lto_output): Use own obstack for local
3903         bitmap, free it consistently.
3905 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
3907         PR target/90991
3908         * config/i386/sse.md
3909         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
3910         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
3911         insns if operands[2] is misaligned_operand.
3913 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
3915         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3916         TARGET_POWERPC64.
3917         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3918         to GPR.
3920 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3922         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3924 2019-06-26  Martin Liska  <mliska@suse.cz>
3926         PR tree-optimization/90973
3927         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
3928         epilogue_cost_vec instead of prologue_cost_vec for
3929         a epilogue cost.
3931 2019-06-26  Martin Liska  <mliska@suse.cz>
3933         * bb-reorder.c (connect_better_edge_p): Add missing else
3934         statement in the middle of if-else statements.
3936 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
3937             H.J. Lu  <hongjiu.lu@intel.com>
3938             Olga Makhotina  <olga.makhotina@intel.com>
3940         * common/config/i386/i386-common.c
3941         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
3942         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
3943         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
3944         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
3945         (ix86_handle_option): Handle -mavx512vp2intersect.
3946         * config/i386/avx512vp2intersectintrin.h: New.
3947         * config/i386/avx512vp2intersectvlintrin.h: New.
3948         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
3949         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3950         AVX512VP2INTERSECT.
3951         * config/i386/i386-builtin-types.def: Add new types.
3952         * config/i386/i386-builtin.def: Add new builtins.
3953         * config/i386/i386-builtins.c: (enum processor_features): Add
3954         F_AVX512VP2INTERSECT.
3955         (static const _isa_names_table isa_names_table): Ditto.
3956         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3957         __AVX512VP2INTERSECT__.
3958         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
3959         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
3960         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
3961         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
3962         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
3963         * config/i386/i386-options.c (ix86_target_string): Add
3964         -mavx512vp2intersect.
3965         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
3966         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
3967         P2HImode and P2QImode.
3968         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
3969         number for P2QImode and P2HImode.
3970         (ix86_regmode_natural_size): New function.
3971         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
3972         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
3973         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
3974         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
3975         * config/i386/i386.opt: Add -mavx512vp2intersect.
3976         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
3977         avx512vp2intersectvlintrin.h.
3978         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
3979         (define_mode_iterator VI48_AVX512VP2VL): New.
3980         (avx512vp2intersect_2intersect<mode>,
3981         avx512vp2intersect_2intersectv16si): New define_insn patterns.
3982         * config.gcc: Add avx512vp2intersectvlintrin.h and
3983         avx512vp2intersectintrin.h to extra_headers.
3984         * doc/invoke.texi: Document -mavx512vp2intersect.
3986 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
3988         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3990 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3992         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
3993         savres_routine_syms, savres_routine_name, morestack_ref,
3994         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3995         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3996         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3997         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3998         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3999         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4000         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4001         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4002         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4003         get_stack_clash_protection_probe_interval,
4004         get_stack_clash_protection_guard_size,
4005         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4006         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4007         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4008         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4009         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4010         gen_frame_mem_offset, rs6000_savres_routine_name,
4011         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4012         ptr_regno_for_savres, rs6000_emit_savres_rtx,
4013         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4014         rs6000_global_entry_point_prologue_needed_p,
4015         rs6000_get_separate_components, rs6000_components_for_bb,
4016         rs6000_disqualify_components, rs6000_emit_prologue_components,
4017         rs6000_emit_epilogue_components, rs6000_set_handled_components,
4018         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4019         rs6000_output_savres_externs, rs6000_output_function_prologue,
4020         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4021         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4022         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4023         rs6000_output_function_epilogue, gen_add3_const,
4024         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4025         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4026         to rs6000-logue.c.
4027         (machine_function): Moved to rs6000.h.
4028         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
4029         rs6000-internal.h.
4030         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
4031         savres_routine_syms, savres_routine_name, morestack_ref,
4032         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4033         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4034         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4035         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4036         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4037         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4038         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4039         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4040         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4041         get_stack_clash_protection_probe_interval,
4042         get_stack_clash_protection_guard_size,
4043         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4044         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4045         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4046         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4047         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4048         gen_frame_mem_offset, rs6000_savres_routine_name,
4049         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4050         ptr_regno_for_savres, rs6000_emit_savres_rtx,
4051         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4052         rs6000_global_entry_point_prologue_needed_p,
4053         rs6000_get_separate_components, rs6000_components_for_bb,
4054         rs6000_disqualify_components, rs6000_emit_prologue_components,
4055         rs6000_emit_epilogue_components, rs6000_set_handled_components,
4056         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4057         rs6000_output_savres_externs, rs6000_output_function_prologue,
4058         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4059         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4060         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4061         rs6000_output_function_epilogue, gen_add3_const,
4062         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4063         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4064         to here from rs6000.c.
4065         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
4066         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
4067         quad_address_offset_p) Moved to here from rs6000.c.
4068         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
4069         * config/config.gcc: Add new source file rs6000-logue.c to garbage
4070         collector.
4072 2019-06-25  Martin Liska  <mliska@suse.cz>
4074         * hash-table.c (hashtab_chk_error): Move here from ...
4075         * hash-table.h (hashtab_chk_error): ... here.
4077 2019-06-25  Martin Liska  <mliska@suse.cz>
4079         PR tree-optimization/90978
4080         * df-scan.c (df_update_entry_block_defs): Remove dead else
4081         branch.
4082         (df_update_exit_block_uses): Likewise.
4084 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
4085             Andrew Stubbs  <ams@codesourcery.com>
4087         * config.gcc (thread_file): Set to gcn for AMD GCN.
4088         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
4089         (TARGET_EMUTLS_VAR_INIT): New hook.
4091 2019-06-25  Martin Jambor  <mjambor@suse.cz>
4093         PR ipa/90939
4094         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
4096 2019-06-25  Richard Biener  <rguenther@suse.de>
4098         PR tree-optimization/90930
4099         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
4100         into parallel form in the last pass instance.
4102 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
4104         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
4105         (arc_legitimize_pic_address): Simplify and cleanup the function.
4106         (SYMBOLIC_CONST): Remove.
4107         (prepare_pic_move): Likewise.
4108         (prepare_move_operands): Handle complex mov cases here.
4109         (arc_legitimize_address_0): Remove call to
4110         arc_legitimize_pic_address.
4111         (arc_legitimize_address): Remove call to
4112         arc_legitimize_tls_address.
4113         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
4114         (movhi_insn): Likewise.
4116 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4118         * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
4119         alternate "__intN__" name for "__intN" types.
4120         * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
4121         * gcc/cp/lex.c (init_reswords): Likewise.
4122         * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
4123         PTRDIFF_TYPE.
4124         * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
4125         * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
4126         C incompatibility if alternate "__intN__" form is used.
4127         * gcc/cp/decl.c (grokdeclarator): Likewise.
4128         * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
4129         decl_specs->int_n_alt if "__intN__" form is used.
4130         * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
4131         format of "__intN" types for UINTMAX_TYPE.
4132         * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
4133         format of "__intN" types for SIZE_TYPE.
4134         * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
4135         * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
4136         format of "__intN" types for SIZETYPE.
4137         * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
4138         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
4139         * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
4140         warnings.
4142 2019-06-25  Jan Hubicka  <jh@suse.cz>
4144         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
4145         base2_alias_set is non-zero before doing TBAA based disambiguation.
4147 2019-06-25  Martin Liska  <mliska@suse.cz>
4149         PR tree-optimization/90973
4150         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
4151         of prologue and epilogue.
4153 2019-06-24  Jan Hubicka  <jh@suse.cz>
4155         * ipa-utils.h (type_with_linkage_p): Verify that type is
4156         CXX_ODR_P.
4157         (odr_type_p): Remove extra return.
4158         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
4159         hash STRING_FLAG only for arrays and integers.
4160         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
4161         Update analogously.
4162         * tree-streamer-out.c (pack_ts_type_common_value_fields):
4163         Likewise.
4164         * print-tree.c (print_node): Print cxx-odr-p
4165         and string-flag.
4166         * tree.c (need_assembler_name_p): Also check that type
4167         is CXX_ODR_TYPE_P
4168         (verify_type_variant): Update verification of SRING_FLAG;
4169         also check CXX_ODR_P.
4170         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
4171         (TYPE_STRING_FLAG): Use it.
4172         (TYPE_CXX_ODR_P): New macro.
4173         * dwarf2out.c (gen_array_type_die): First check that type
4174         is an array and then test string flag.
4176 2019-06-24  Richard Biener  <rguenther@suse.de>
4178         PR tree-optimization/90972
4179         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
4180         in common code, dealing with STRING_CST properly.
4182 2019-06-24  Richard Biener  <rguenther@suse.de>
4184         PR tree-optimization/90930
4185         PR tree-optimization/90316
4186         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
4187         decrement of limit.
4189 2019-06-24  Martin Sebor  <msebor@redhat.com>
4191         * tree-pretty-print.h: Remove unnecessary punctuation characters
4192         from a diagnostic.
4193         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
4195 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
4197         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
4198         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
4199         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
4201 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
4203         * config/rs6000/darwin.h: Handle GCC target pragma.
4205 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
4207         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
4209 2019-06-22  Jeff Law  <law@redhat.com>
4211         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4213 2019-06-22  Jan Hubicka  <jh@suse.cz>
4215         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
4216         give up on bitfields; continue searching for different refs
4217         appearing later.
4219 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
4221         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
4222         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
4223         containing the offset as possible simd lane access.  Look through
4224         widening conversion.  Move the
4225         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
4227 2019-06-21  Richard Biener  <rguenther@suse.de>
4229         PR tree-optimization/90930
4230         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
4231         flag on new stmts to avoid re-processing them.
4233 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
4235         PR c++/90875 - added -Wswitch-outside-range option
4236         * doc/invoke.texi (Wswitch-outside-range): Document.
4238 2019-06-21  Jeff Law  <law@redhat.com>
4240         PR tree-optimization/90949
4241         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
4242         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
4244 2019-06-21  Richard Biener  <rguenther@suse.de>
4246         PR debug/90914
4247         * dwarf2out.c (prune_unused_types_walk): Always consider
4248         function-local extern declarations as used.
4250 2019-06-21  Richard Biener  <rguenther@suse.de>
4252         PR tree-optimization/90913
4253         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
4254         the scalar variant of if-conversion versioning.
4256 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
4258         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
4259         create another "omp scan inscan exclusive" array if
4260         !ctx->scan_inclusive.
4261         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
4262         (lower_omp_scan): Likewise.
4263         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
4264         2-bit bitfield for simd_lane_access_p member.
4265         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
4266         aux == (void *)-4 as simd lane access.
4267         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
4268         comment with permutations to show the canonical permutation order.
4269         (vectorizable_scan_store): Handle exclusive scan.
4270         (vectorizable_store): Call vectorizable_scan_store even for
4271         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
4273         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
4274         "omp simd array" arrays with one byte elements.
4276 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
4278         * config/alpha/alpha.md (@unaligned_store<mode>):
4279         Rename from unaligned_store<mode>.
4280         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
4281         * config/alpha/sync.md (@load_locked_<mode>): Rename
4282         from load_locked_<mode>.
4283         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
4284         (@atomic_compare_and_swap<mode>_1): Rename
4285         from atomic_compare_and_swap<mode>_1.
4286         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
4287         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
4288         Use gen_reload_in_aligned and gen_unaligned_store.
4289         (emit_load_locked): Remove.
4290         (emit_store_conditional): Ditto.
4291         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
4292         (alpha_split_compare_and_swap): Ditto.
4293         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
4294         (alpha_split_compare_and_swap_12): Use gen_load_locked
4295         and gen_store_conditional.
4296         (alpha_split_atomic_exchange): Ditto.
4297         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
4298         (alpha_split_atomic_exchange_12): Use gen_load_locked
4299         and gen_store_conditional.
4301 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
4303         * config/aarch64/aarch64-errata.h: New file.
4304         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
4305         (CA53_ERR_843419_SPEC): Delete.
4306         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
4307         * config/aarch64/aarch64-linux.h: Likewise.
4308         * config/aarch64/aarch64-netbsd.h: Likewise.
4309         * config/aarch64/aarch64-freebsd.h: Likewise.
4311 2019-06-20  Marek Polacek  <polacek@redhat.com>
4313         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
4315 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
4317         * config/rs6000/rs6000.md (isa attribute): Add support for
4318         for a future processor.
4320 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4322         PR target/54855
4323         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
4324         standard scalar operation pattern for V2DF.
4325         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
4326         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
4327         (*ieee_<ieee_maxmin><mode>3): Likewise.
4328         (vec_setv2df_0): Likewise.
4330 2019-06-20  Jan Hubicka  <jh@suse.cz>
4332         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
4333         parameter; it has no use in gimple memory model.
4334         (indirect_ref_may_alias_decl_p): Update.
4336 2019-06-20  Martin Liska  <mliska@suse.cz>
4338         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
4339         to 10.
4341 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
4343         * tree-vect-stmts.c (enum scan_store_kind): New type.
4344         (scan_store_can_perm_p): Change last argument from int * to
4345         vec<enum scan_store_kind> *, record precisely which permutations
4346         need whole vector left shift or that plus VEC_COND_EXPR.
4347         (vectorizable_scan_store): Adjust caller, use whole vector left shift
4348         and additional VEC_COND_EXPR only for those iterations that need it.
4350 2019-06-20  Alexandre Oliva <oliva@adacore.com>
4352         * config.gcc: Fix ARM --with-fpu checking and error message.
4354 2019-06-19  Marek Polacek  <polacek@redhat.com>
4356         PR c++/60364 - noreturn after first decl not diagnosed.
4357         * attribs.c (get_attribute_namespace): No longer static.
4358         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
4359         attributes.
4360         (attr_noreturn_exclusions): Make it extern.
4361         * attribs.h (get_attribute_namespace): Declare.
4362         * tree-inline.c (function_attribute_inlinable_p): Use
4363         get_attribute_name.
4365 2019-06-19  Martin Sebor  <msebor@redhat.com>
4367         PR tree-optimization/90626
4368         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
4370         PR tree-optimization/90626
4371         * tree-ssa-strlen.c (strxcmp_unequal): New function.
4372         (handle_builtin_string_cmp): Call it.
4374 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
4376         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
4377         and DARWIN_NOPIE_SPEC.
4378         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
4379         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
4380         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
4381         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
4382         (DARWIN_EXPORT_DYNAMIC): Delete.
4383         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
4384         and pie options processing to  darwin.h.
4385         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
4387 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
4389         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
4390         in computing the number of options to be moved.
4392 2019-06-19  Maya Rashish  <coypu@sdf.org>
4394         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
4395         (CLEAR_INSN_CACHE) Use it.
4397 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
4399         * config/i386/i386.md (cmpstrnsi): Remove dead code.
4401 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
4403         PR middle-end/84521
4404         * builtins.c (expand_builtin_setjmp_setup): Save
4405         hard_frame_pointer_rtx.
4406         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
4407         restore fp.
4408         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
4409         non-local goto.
4410         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
4411         elimination code.
4412         (remove_reg_equal_offset_note): Remove unused function.
4413         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
4414         code.
4415         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4416         (arc_builtin_setjmp_frame_value): Remove function.
4417         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4418         (avr_builtin_setjmp_frame_value): Remove function.
4419         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4420         (ix86_builtin_setjmp_frame_value): Remove function.
4421         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
4422         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4423         (sparc_builtin_setjmp_frame_value): Remove function.
4424         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4425         (vax_builtin_setjmp_frame_value): Remove function.
4426         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
4427         pointer if has_nonlocal_label.
4429 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
4431         * doc/md.texi: Document vec_shl_<mode> pattern.
4432         * optabs.def (vec_shl_optab): New optab.
4433         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
4434         argument, if == vec_shl_optab, check for left whole vector shift
4435         pattern rather than right shift.
4436         (expand_vec_perm_const): Add vec_shl_optab support.
4437         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
4438         in the comment.
4439         * tree-vect-generic.c (lower_vec_perm): Support permutations which
4440         can be handled by vec_shl_optab.
4441         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
4442         (check_scan_store): Use it.
4443         (vectorizable_scan_store): If target can't do normal permutations,
4444         try to use whole vector left shifts and if needed a VEC_COND_EXPR
4445         after it.
4446         * config/i386/sse.md (vec_shl_<mode>): New expander.
4448         * omp-low.c (lower_rec_input_clauses): Handle references properly
4449         in inscan clauses.
4450         (lower_omp_scan): Likewise.
4452 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4454         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
4455         mem_mode is BLKmode.
4457 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
4459         PR target/90922
4460         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
4461         pointer adjustment for the case of no callee-saved registers and
4462         stack frame bigger than 128 bytes.
4464 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4466         PR middle-end/90862
4467         * omp-low.c (check_omp_nesting_restrictions): Handle
4468         GF_OMP_TARGET_KIND_OACC_DECLARE.
4470 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
4472         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
4473         (@add<mode>3_carry): Rename from add<mode>3_carry.
4474         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
4475         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
4476         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
4477         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
4478         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
4479         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
4480         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
4481         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
4482         (cmpstrnsi): Use gen_cmp_1.
4483         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
4484         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
4485         (@umonitor_<mode>): Rename from umonitor_<mode>.
4486         * config/i386/i386-expand.c (ix86_expand_copysign):
4487         Use gen_copysign3_const and gen_copysign3_var.
4488         (ix86_expand_xorsign): Use gen_xorsign3_1.
4489         (ix86_expand_branch): Use gen_sub3_carry_ccc,
4490         gen_sub3_carry_ccgz and gen_cmp1.
4491         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
4492         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
4493         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
4494         (ix86_split_lshr): Ditto.
4495         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
4497 2019-06-18  Jason Merrill  <jason@redhat.com>
4499         * tree.c (build_constructor): Add MEM_STAT_DECL.
4501 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4503         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
4504         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
4505         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
4506         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
4507         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
4508         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
4509         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
4510         Use CC_NZC instead of CC.
4511         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
4512         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
4513         (aarch64_print_operand): Handle E_CC_NZCmode.
4514         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
4515         of gen_set_clobber_cc.
4517 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4519         * config/aarch64/aarch64-sve.md: Tabify file.
4521 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4523         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
4524         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
4525         * config/aarch64/aarch64-sve.md: Use it.
4527 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4529         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
4530         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
4531         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
4532         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
4533         (aarch64_expand_sve_vec_cmp_int): Use it.
4534         (aarch64_expand_sve_vec_cmp_float): Likewise.
4535         * config/aarch64/aarch64-sve.md: Likewise throughout.
4537 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4538             Kugan Vivekanandarajah  <kuganv@linaro.org>
4540         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
4541         (*cond_<optab><mode>_z): Fold into...
4542         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
4543         operand 4 can be tied to operand 0 (either inherently or via RA).
4545 2019-06-18  Richard Biener  <rguenther@suse.de>
4547         PR debug/90900
4548         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
4549         as if optimized away.
4551 2019-06-18  Tom de Vries  <tdevries@suse.de>
4553         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
4554         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
4555         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
4556         Rename to ...
4557         (define_insn "@set_softstack_<mode>"): ... this.
4558         (define_insn "omp_simt_enter_<mode>"): Rename to ...
4559         (define_insn "@omp_simt_enter_<mode>"): ... this.
4560         (define_insn "omp_simt_exit_<mode>"): Rename to ...
4561         (define_insn "@omp_simt_exit_<mode>"): ... this.
4563 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
4565         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
4566         vf parameter.  Restore the previous iv step of nscalars_step,
4567         but give it iv_type rather than compare_type.  Tweak code order
4568         to match the comments.
4569         (vect_set_loop_condition_masked): Update accordingly.
4570         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
4571         for iv_precision.  Tweak comment formatting.
4573 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
4575         * config/darwin.c: Strip trailing whitespace.
4577 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
4579         * config/darwin.c (darwin_emit_unwind_label): New default to false.
4580         (darwin_override_options): Set darwin_emit_unwind_label as needed.
4582 2019-06-18  Martin Jambor  <mjambor@suse.cz>
4584         PR ipa/90889
4585         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
4586         caller does not have flag_ipa_cp set.
4588 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
4590         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
4591         from "*fold_left_plus_<mode>", updated operands order.
4592         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
4593         * internal-fn.c (mask_fold_left_direct): New define.
4594         (expand_mask_fold_left_optab_fn): Likewise.
4595         (direct_mask_fold_left_optab_supported_p): Likewise.
4596         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
4597         * optabs.def (mask_fold_left_plus_optab): New optab.
4598         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
4599         masked internal_fn for a reduction ifn.
4600         (vectorize_fold_left_reduction): Add support for masking reductions.
4602 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
4604         PR middle-end/80791
4605         * target.def (predict_doloop_p): New hook.
4606         * targhooks.h (default_predict_doloop_p): New declaration.
4607         * targhooks.c (default_predict_doloop_p): New function.
4608         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
4609         * doc/tm.texi: Regenerate.
4610         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
4611         (TARGET_PREDICT_DOLOOP_P): New macro.
4612         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
4614 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
4616         * omp-low.c (struct omp_context): Add scan_inclusive field.
4617         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
4618         if inclusive scan.
4619         (struct omplow_simd_context): Add lastlane member.
4620         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
4621         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
4622         1 or 2 argument.
4623         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
4624         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
4625         (lower_omp_scan): New function.
4626         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
4627         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
4628         check 3rd argument if present rather than 2nd.
4629         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
4630         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
4631         2-bit bitfield.
4632         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4633         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
4634         than 2nd.
4635         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
4636         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
4637         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
4638         init.
4639         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
4640         IFN_GOMP_SIMD_LANE argument.
4641         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
4642         encoded ->aux value.
4643         * tree-vect-stmts.c: Include attribs.h.
4644         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
4645         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
4646         functions.
4647         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
4648         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
4650 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
4652         PR target/62055
4653         * config/i386/i386.md (*nabstf2_1): New insn pattern.
4654         (*nabs<mode>2_1): Ditto.
4655         (nabs sse-reg splitter): New splitter.
4656         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
4658 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4660         PR bootstrap/90873.
4661         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4662         TMR index check.
4664 2019-06-17  Tom de Vries  <tdevries@suse.de>
4666         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
4667         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
4668         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
4669         ...
4670         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
4671         match_operand 0.
4672         (define_insn "omp_simt_enter_insn"): Rename to ...
4673         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
4674         match_operand 0, 1 and 2, as well as the unspec_volatile result.
4675         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
4676         gen_omp_simt_enter_si.
4677         (define_expand "omp_simt_exit"): New.
4678         (define_insn "omp_simt_exit"): Rename to ...
4679         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
4680         match_operand 0.
4682 2019-06-17  Matthew Green  <mrg@eterna.com.au>
4683             Maya Rashish  <coypu@sdf.org>
4685         * config.gcc (aarch64*-*-netbsd*): New target.
4686         * config/aarch64/aarch64-netbsd.h: New file.
4687         * config/aarch64/t-aarch64-netbsd: Likewise.
4689 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4691         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
4692         the access path from base to first VIEW_CONVERT_EXPR or
4693         BIT_FIELD_REF.
4695 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4697         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
4698         access path on BIT_FIELD_REFs.
4700 2019-06-17  Martin Liska  <mliska@suse.cz>
4702         PR ipa/90874
4703         * ipa-utils.h (odr_type_p): Remove dead code.
4705 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4707         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
4708         alternative Solaris 11.4 format.
4709         * configure: Regenerate.
4711 2019-06-17  Tom de Vries  <tdevries@suse.de>
4713         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
4714         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
4715         match_operand 0.
4716         (define_insn "call_value_insn"): Rename to ...
4717         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
4718         match_operand 0.
4719         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4720         DI.
4722 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
4724         PR middle-end/64242
4725         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
4726         frame clobbers and schedule block.
4727         (builtin_longjmp): Likewise.
4729 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4731         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
4732         describe how to perform MSPABI compliant 64-bit shift.
4733         * config/msp430/msp430.md (ashldi3): New define_expand.
4734         (ashrdi3): New define_expand.
4735         (lshrdi3): New define_expand.
4737 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4739         * doc/sourcebuild.texi: Document new effective target keyword
4740         longlong64.
4742 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4744         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4745         indirect_refs_may_alias_p): Revert accidental commits.
4747         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4748         at the end of structures.
4750 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4752         * config/darwin.c (machopic_indirect_call_target): Use renamed
4753         darwin_picsymbol_stubs to decide on output.
4754         (darwin_override_options): Handle darwin_picsymbol_stubs.
4755         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
4756         (LD64_VERSION): Revise default.
4757         * config/darwin.opt: (mpic-symbol-stubs): New option.
4758         (darwin_picsymbol_stubs): New variable.
4759         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
4760         rename to TARGET_MACHO_PICSYM_STUBS.
4761         * config/i386/i386.c (output_pic_addr_const): Likewise.
4762         * config/i386/i386.h Likewise.
4763         * config/rs6000/darwin.h: Likewise.
4764         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
4765         darwin_picsymbol_stubs.
4767 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4769         * config/darwin.opt (prebind, noprebind, seglinkedit,
4770         noseglinkedit): Add RejectNegative.
4772 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4774         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4775         in my previous patch.
4777 2019-06-16  Tom de Vries  <tdevries@suse.de>
4779         PR tree-optimization/89376
4780         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4782 2019-06-15  Maya Rashish  <coypu@sdf.org>
4784         * doc/invoke.texi (Spec Files): Update location of the
4785         Fortran spec file.
4787 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
4789         * doc/extend.texi (Common Function Attributes): Clarify
4790         no_sanitize.  Fix grammar.
4792 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
4794         * tree-ssa-alias.c (alias_stats): Add
4795         nonoverlapping_component_refs_p_may_alias,
4796         nonoverlapping_component_refs_p_no_alias,
4797         nonoverlapping_component_refs_of_decl_p_may_alias,
4798         nonoverlapping_component_refs_of_decl_p_no_alias.
4799         (dump_alias_stats): Dump them.
4800         (nonoverlapping_component_refs_of_decl_p): Add stats.
4801         (nonoverlapping_component_refs_p): Add stats; do not stop on first
4802         ARRAY_REF.
4804 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
4806         * config/i386/i386.md (and<mode>3): Generate zero-extends for
4807         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4808         only.
4809         (*anddi3_doubleword): Split before reload. Merge with
4810         anddi->zext pre-reload splitter.
4811         (*andndi3_doubleword): Split before reload.
4812         (*<code>di3_doubleword): Ditto.
4813         (*one_cmpldi2_doubleword): Ditto.
4815 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4817         PR middle-end/90779
4818         * gimplify.c: Include omp-offload.h and context.h.
4819         (gimplify_bind_expr): Add "omp declare target" attributes
4820         to static block scope variables inside of target region or target
4821         functions.
4823 2019-06-15  Tom de Vries  <tdevries@suse.de>
4825         PR tree-optimization/90009
4826         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4827         Return NULL if bb contains IFN_UNIQUE.
4829 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
4831         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
4832         (un): New define_mode_attr.
4833         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
4834         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
4835         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
4836         merge into ...
4837         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
4839 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
4841         * config/darwin.opt: Add RejectNegative where needed, reorder
4842         and add minimal functional descriptions.
4844 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4846         PR rtl-optimization/90765
4847         * calls.c (update_stack_alignment_for_call): New function.
4848         (expand_call): Call update_stack_alignment_for_call when
4849         outgoing parameter is passed in the stack.
4850         (emit_library_call_value_1): Likewise.
4851         * function.c (locate_and_pad_parm): Don't update
4852         stack_alignment_needed and preferred_stack_boundary.
4854 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4856         PR target/90877
4857         * config/i386/i386-features.c
4858         (dimode_scalar_chain::compute_convert_gain): Replace
4859         mmxsse_to_integer with sse_to_integer.
4860         * config/i386/i386.c (ix86_register_move_cost): Verify that
4861         moves between MMX and non-MMX units require secondary memory.
4862         Correct costs of moves between SSE and integer units.
4863         * config/i386/i386.h (processor_costs): Rename cost of moving
4864         SSE register to integer to sse_to_integer.  Rename cost of
4866 2019-06-14  Matt Thomas  <matt@3am-software.com>
4867             Matthew Green  <mrg@eterna.com.au>
4868             Nick Hudson  <skrll@netbsd.org>
4869             Maya Rashish  <coypu@sdf.org>
4870             Richard Earnshaw  <rearnsha@arm.com>
4872         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
4873         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
4874         * config/arm/netbsd-eabi.h: New file.
4875         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
4876         redefining.
4877         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
4878         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
4879         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
4880         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
4882 2019-06-14  Richard Biener  <rguenther@suse.de>
4884         * tree-loop-distribution.c (classify_partition): Return
4885         whether a reduction appeared in all partitions and do not
4886         stop builtin detection because of this.
4887         (distribute_loop): Sort a non-builtin partition last if
4888         there's a reduction in all partitions and make sure the
4889         partition prevailing as last is not a builtin.
4891 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
4893         PR ipa/90401
4894         * ipa-prop.c (add_to_agg_contents_list): New function.
4895         (clobber_by_agg_contents_list_p): Likewise.
4896         (extract_mem_content): Likewise.
4897         (get_place_in_agg_contents_list): Delete.
4898         (determine_known_aggregate_parts): Renamed from
4899         determine_locally_known_aggregate_parts.  New parameter
4900         aa_walk_budget_p.
4902 2019-06-13  Martin Sebor  <msebor@redhat.com>
4904         PR tree-optimization/90662
4905         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4906         to the same type.
4908 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4910         PR bootstrap/90873
4911         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4912         dbase is not TARGET_MEM_REF.
4914 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
4916         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4917         Update all uses.
4918         (and<mode>3): Use gen_extend_insn instead of indirect functions.
4919         Do not generate DImode extends for 32bit targets.
4920         (and->zext post-reload splitter): Use gen_extend_insn
4921         instead of indirect functions.
4922         (anddi->zext pre-reload splitter): New.
4923         (*zext<mode>_doubleword_and): Remove.
4924         (*zext<mode>_doubleword): Ditto.
4925         (*zextsi_doubleword): Dittto.
4927 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
4929         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4930         Use gen_sub3_insn instead of indirect function.
4931         (ix86_expand_ashl_const): Use gen_add2_insn instead of
4932         indirect function.
4933         (ix86_adjust_counter): Ditto.
4935 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
4936             Lijia He  <helijia@linux.ibm.com>
4938         PR tree-optimization/77820
4939         * tree-ssa-threadedge.c
4940         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4941         function.
4942         (thread_across_edge): Add call to
4943         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4945 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
4947         * config/darwin-driver.c (validate_macosx_version_min): New.
4948         (darwin_default_min_version): Cleanup and validate supplied version.
4949         (darwin_driver_init): Likewise and push cleaned version into opts.
4951 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4953         PR tree-optimization/90869
4954         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
4955         converts in MEM_REF referencing decl rather than view converts
4956         from decl type to MEM_REF type.
4958 2019-06-13  Richard Biener  <rguenther@suse.de>
4960         PR tree-optimization/90856
4961         * tree-sra.c (build_ref_for_model): Only use
4962         build_reconstructed_reference when address-spaces are the same.
4964 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
4966         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
4967         wrap ei variable name in the declaration in ()s.
4968         (nvptx_single): Actually use mode_label variable.  Formatting fix.
4970 2019-06-13  Richard Biener  <rguenther@suse.de>
4972         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
4973         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
4974         also return the condition stmt.
4975         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
4976         loop we can version and version that, reusing the loop version
4977         created by if-conversion instead of versioning again.
4979 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
4981         * gimple-loop-versioning.cc (prune_loop_conditions): Use
4982         may_contain_p.
4983         * tree-vrp (value_range_base::may_contain_p): Call into
4984         value_inside_range.
4985         (value_inside_range): Make private inside value_range_base class.
4986         Take min/max from *this.
4987         (range_includes_p): Remove.
4988         * tree-vrp.h (value_range_base): Add value_inside_range.
4989         (range_includes_p): Remove.
4990         (range_includes_zero_p): Call may_contain_p.
4991         * vr-values.c (compare_range_with_value): Same.
4993 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
4995         * doc/extend.texi (ARC Function Attributes): Update info.
4997 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4999         PR tree-optimization/89713
5000         * doc/invoke.texi (-ffinite-loops): Document new option.
5001         * common.opt (-ffinite-loops): New option.
5002         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
5003         IFN_GOACC_LOOP calls as necessary.
5004         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
5005         is finite.
5006         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
5007         IFN_GOACC_LOOP call is not used.
5008         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
5010 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5012         PR target/88838
5013         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
5014         compare_type is not with Pmode size, we will create an IV with
5015         Pmode size with truncated use (i.e. converted to the correct type).
5016         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
5017         (vect_iv_limit_for_full_masking): New. Factored out of
5018         vect_set_loop_condition_masked.
5019         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
5020         (vect_iv_limit_for_full_masking): Declare.
5022 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5024         PR target/88834
5025         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
5026         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
5027         (get_alias_ptr_type_for_ptr_address): Likewise.
5028         (add_iv_candidate_for_use): Add scaled index candidate if useful.
5029         * tree-ssa-address.c (preferred_mem_scale_factor): New.
5030         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
5031         allow_reg_index_p.
5033 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5035         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
5037 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
5039         * common/config/pru/pru-common.c: New file.
5040         * config.gcc: Add PRU target.
5041         * config/pru/alu-zext.md: New file.
5042         * config/pru/constraints.md: New file.
5043         * config/pru/predicates.md: New file.
5044         * config/pru/pru-opts.h: New file.
5045         * config/pru/pru-passes.c: New file.
5046         * config/pru/pru-pragma.c: New file.
5047         * config/pru/pru-protos.h: New file.
5048         * config/pru/pru.c: New file.
5049         * config/pru/pru.h: New file.
5050         * config/pru/pru.md: New file.
5051         * config/pru/pru.opt: New file.
5052         * config/pru/t-pru: New file.
5053         * doc/extend.texi: Document PRU pragmas.
5054         * doc/invoke.texi: Document PRU-specific options.
5055         * doc/md.texi: Document PRU asm constraints.
5057 2019-06-12  Martin Sebor  <msebor@redhat.com>
5059         PR middle-end/90676
5060         * tree-pretty-print.c (dump_mem_ref): New function.  Include
5061         MEM_REF type in output when different size than operand.
5062         (dump_generic_node): Move code to dump_mem_ref and call it.
5064 2019-06-12  Martin Sebor  <msebor@redhat.com>
5066         PR tree-optimization/90662
5067         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
5068         to arrays.
5070 2019-06-12  Tom de Vries  <tdevries@suse.de>
5072         PR tree-optimization/90009
5073         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
5075 2019-06-12  Martin Liska  <mliska@suse.cz>
5077         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
5078         the created map.
5079         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
5080         * mem-stats.h (mem_alloc_description::mem_alloc_description):
5081         Do not sanitize created maps.
5083 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
5085         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
5086         value_range::singleton_p.
5087         * tree-vrp.c (value_range_constant_singleton): Remove.
5088         * tree-vrp.h (value_range_constant_singleton): Remove.
5089         * vr-values.c (vr_values::singleton): Use
5090         value_range::singleton_p.
5092 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
5094         PR target/90811
5095         * cfgexpand.c (align_local_variable): Add really_expand argument,
5096         don't SET_DECL_ALIGN if it is false.
5097         (add_stack_var): Add really_expand argument, pass it through to
5098         align_local_variable.
5099         (expand_one_stack_var_1): Pass true as really_expand to
5100         align_local_variable.
5101         (expand_one_ssa_partition): Pass true as really_expand to
5102         add_stack_var.
5103         (expand_one_var): Pass really_expand through to add_stack_var.
5105 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5107         * config/arm/iterators.md (VABAL): New int iterator.
5108         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
5109         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
5110         UNSPEC_VABAL_U values.
5112 2019-06-12  Martin Liska  <mliska@suse.cz>
5114         * value-prof.c (stream_out_histogram_value): Only first value
5115         can't be negative.
5117 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
5119         PR c/90760
5120         * symtab.c (symtab_node::set_section): Allow being called on aliases
5121         as long as they aren't analyzed yet.
5123 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
5125         * config/mips/mips.c (mips_final_postscan_insn): Modify call
5126         to `mips_set_text_contents_type' to indicate whether a
5127         non-debug insn follows.
5129 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
5131         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
5132         enabling -mpcrel by default.
5133         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
5134         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
5135         that the test against -mcpu=future is done first.  Then test if
5136         -mprefixed-addr is on for -mpcrel.
5137         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
5139 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
5141         PR target/90811
5142         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
5143         instead of and.u%d.
5145 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
5147         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
5149 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
5151         PR c++/90449 - add -Winaccessible-base option.
5152         * doc/invoke.texi (Winaccessible-base): Document.
5154 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
5156         PR tree-optimization/62041
5157         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
5159 2019-06-11  Jason Merrill  <jason@redhat.com>
5161         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
5162         * tree.c (get_tree_code_name): Likewise.
5163         * print-tree.c (print_node): Only briefly print a node with an
5164         invalid code.
5166 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
5168         PR bootstrap/90819
5169         * trans-mem.c (tm_memopt_compute_available): Add assertion
5170         that blocks is not empty.  Formatting fix.
5172 2019-06-11  Martin Liska  <mliska@suse.cz>
5174         PR c++/87847
5175         * hash-table.h: Extend create_gcc, add one parameter
5176         that is passed into hash_table::hash_table.
5178 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
5180         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
5181         New prototype.
5182         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
5183         Emit clobber also for non-sse operations.
5184         (ix86_split_fp_absneg_operator): New function.
5185         * config/i386/i386.md (SSEMODEF): New mode iterator.
5186         (ssevecmodef): New mode attribute.
5187         (<code>tf2): Use absneg code iterator.
5188         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
5189         Add three-operand AVX alternatives.
5190         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
5191         Use absneg code iterator and X87MODEF mode iterator.
5192         (absneg fp_reg non-sse splitter): Call absneg code iterator
5193         and X87MODEF mode iterator.
5194         (absneg general_reg non-sse splitter): Use absneg code iterator
5195         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
5196         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
5197         code iterator.  Add three-operand AVX alternative.
5198         (absneg sse_reg splitter): Use absneg code iterator
5199         and SSEMODEF mode iterator.  Handle AVX operands.
5200         (absneg fp_reg splitter): Use absneg code iterator
5201         and MODEF mode iterator.
5202         (absneg general_reg splitter): Merge splitters using MODEF mode
5203         iterator.  Use absneg code iterator.  Call
5204         ix86_split_fp_absneg_operator.
5205         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
5206         Do not enable for non-sse modes before reload.
5207         (CSGNMODE): Remove.
5208         (CSGNVMODE): Ditto.
5209         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
5210         ssevecmodef mode attribute instaed of CSGNVMODE.
5211         (copysign<mode>3_const): Ditto.
5212         (copysign<mode>3_var): Ditto.
5213         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
5214         Use absneg code iterator.  Simplify code using std::swap.
5215         * config/i386/predicates.md (absneg_operator): Remove.
5217 2019-06-10  Martin Sebor  <msebor@redhat.com>
5219         * gimple-fold.c (get_range_strlen): Update comment that didn't
5220         make it into r267503 or related commits.
5222 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
5224         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
5225         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
5227 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
5229         * tree.def (OMP_SCAN): New tree code.
5230         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
5231         OMP_CLAUSE_EXCLUSIVE.
5232         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
5233         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
5234         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
5235         OMP_CLAUSE_{IN,EX}CLUSIVE.
5236         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
5237         * tree-nested.c (convert_nonlocal_reference_stmt,
5238         convert_local_reference_stmt, convert_gimple_call): Handle
5239         GIMPLE_OMP_SCAN.
5240         * tree-pretty-print.c (dump_omp_clause): Handle
5241         OMP_CLAUSE_{IN,EX}CLUSIVE.
5242         (dump_generic_node): Handle OMP_SCAN.
5243         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
5244         * gimple.h (gomp_scan): New type.
5245         (is_a_helper <gomp_scan *>::test,
5246         is_a_helper <const gomp_scan *>::test): New templates.
5247         (gimple_build_omp_scan): Declare.
5248         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
5249         gimple_omp_scan_set_clauses): New inline functions.
5250         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
5251         * gimple.c (gimple_build_omp_scan): New function.
5252         (gimple_copy): Handle GIMPLE_OMP_SCAN.
5253         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
5254         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
5255         GIMPLE_OMP_TASKGROUP.
5256         (dump_gimple_omp_scan): New function.
5257         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
5258         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
5259         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
5260         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
5261         (is_gimple_stmt): Handle OMP_SCAN.
5262         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
5263         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
5264         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
5265         mentioned in nested #pragma omp scan.  Handle
5266         OMP_CLAUSE_{IN,EX}CLUSIVE.
5267         (gimplify_expr): Handle OMP_SCAN.
5268         * omp-low.c (check_omp_nesting_restrictions): For parent context,
5269         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
5270         simd constructs.
5271         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
5272         GIMPLE_OMP_SCAN.
5274 2019-06-10  Martin Liska  <mliska@suse.cz>
5276         * ipa-cp.c (ignore_edge_p): New function.
5277         (build_toporder_info): Use it.
5278         * ipa-inline.c (ignore_edge_p): New function.
5279         (inline_small_functions): Use it.
5280         * ipa-pure-const.c (ignore_edge_for_nothrow):
5281         Verify opt_for_fn for caller and callee.
5282         (ignore_edge_for_pure_const): Likewise.
5283         * ipa-reference.c (ignore_edge_p): Extend to check
5284         for opt_for_fn.
5285         * ipa-utils.c (searchc): Refactor.
5286         * ipa-utils.h: Fix coding style.
5288 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
5290         * config/arc/arc.c (arc_rtx_costs): Update costs.
5292 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
5294         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
5295         (arc_split_ior): Likewise.
5296         (arc_check_mov_const): Likewise.
5297         (arc_split_mov_const): Likewise.
5298         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
5299         (arc_rtx_costs): Replace check Crr with Cax constraint.
5300         (prepare_move_operands): Cleanup, remove unused code.
5301         (arc_split_ior): New function.
5302         (arc_check_ior_const): Likewise.
5303         (arc_split_mov_const): Likewise.
5304         (arc_check_mov_const): Likewise.
5305         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
5306         in define_insn_and_split pattern.
5307         (iorsi3): Likewise.
5308         (mulsi3_v2): Add new matching variant.
5309         (andsi3_i): Cleanup pattern.
5310         (rotrsi3_cnt1): Update pattern.
5311         (rotrsi3_cnt8): New pattern.
5312         (ashlsi2_cnt8): Likewise.
5313         (ashlsi2_cnt16): Likewise.
5314         * config/arc/constraints.md (C0p): Update constraint.
5315         (Crr): Remove it.
5316         (C0x): New pattern.
5317         (Cax): New pattern.
5319 2019-06-10  Martin Liska  <mliska@suse.cz>
5321         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
5322         Update coding style.
5323         (sem_item_optimizer::dump_cong_classes):
5324         Print how many items are in a non-singular class.  Improve
5325         coding style.
5327 2019-06-10  Martin Liska  <mliska@suse.cz>
5329         * value-prof.c (dump_histogram_value): Change dump format.
5330         (gimple_mod_subtract_transform): Remove legacy comment.
5332 2019-06-10  Martin Liska  <mliska@suse.cz>
5334         * value-prof.c (dump_histogram_value): Print histogram values
5335         only if present.
5337 2019-06-10  Martin Liska  <mliska@suse.cz>
5339         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
5340         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
5341         * ipa-profile.c (ipa_profile_generate_summary):
5342         Use get_most_common_single_value.
5343         * tree-profile.c (gimple_init_gcov_profiler):
5344         Instrument with __gcov_one_value_profiler_v2
5345         and __gcov_indirect_call_profiler_v4.
5346         * value-prof.c (dump_histogram_value):
5347         Print all values for HIST_TYPE_SINGLE_VALUE.
5348         (stream_out_histogram_value): Update assert for
5349         N values.
5350         (stream_in_histogram_value): Set number of
5351         counters for HIST_TYPE_SINGLE_VALUE.
5352         (get_most_common_single_value): New.
5353         (gimple_divmod_fixed_value_transform):
5354         Use get_most_common_single_value.
5355         (gimple_ic_transform): Likewise.
5356         (gimple_stringops_transform): Likewise.
5357         (gimple_find_values_to_profile): Set number
5358         of counters for HIST_TYPE_SINGLE_VALUE.
5359         * value-prof.h (get_most_common_single_value): New.
5361 2019-06-10  Martin Liska  <mliska@suse.cz>
5363         * hash-map.h: Pass default value to hash_table ctor.
5364         * hash-table.h: Add default value to call of a ctor.
5366 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
5368         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
5369         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
5371 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
5373         PR target/90751
5374         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
5375         Call pa_output_function_label.
5376         (TARGET_ASM_FUNCTION_PROLOGUE): define.
5377         * config/pa/pa-protos.h (pa_output_function_label): Declare.
5378         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
5379         to declaration.
5380         (pa_linux_output_function_prologue): Declare.
5381         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
5382         (pa_output_function_label): New.
5383         (pa_output_function_prologue): Revise to use pa_output_function_label.
5384         (pa_linux_output_function_prologue): New.
5385         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
5387 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
5389         * tree-vrp.h (value_range_base::intersect): New.
5390         (value_range::intersect_helper): Move from here...
5391         (value_range_base::intersect_helper): ...to here.
5392         * tree-vrp.c (value_range::intersect_helper): Rename to...
5393         (value_range_base::intersect_helper): ...this, and rewrite to
5394         return a value instead of modifying THIS in place.
5395         Also, move equivalence handling...
5396         (value_range::intersect): ...here, while calling intersect_helper.
5397         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
5398         calling intersect.
5399         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
5400         Same.
5401         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
5403 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
5405         * Makefile.in (genprogerr): Add condmd.
5406         (genprog): Remove it here.
5408 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
5410         * doc/invoke.texi (AMD GCN Options): Add gfx906.
5412 2019-06-07  Richard Biener  <rguenther@suse.de>
5414         PR debug/90574
5415         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
5416         that appear after user labels.
5418 2019-06-07  Martin Liska  <mliska@suse.cz>
5420         * cselib.c (cselib_init): Disable hash table
5421         sanitization.
5422         * hash-set.h: Pass new default argument to m_table.
5423         * hash-table.c: Add global variable with hash table
5424         sanitization limit.
5425         * hash-table.h (Allocator>::hash_table): Add new argument
5426         to ctor.
5427         (hashtab_chk_error): New.
5428         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
5429         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
5430         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
5432 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
5434         * common.opt (flto-odr-type-merging): Ignore.
5435         * invoke.texi (-flto-odr-type-merging): Remove.
5436         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
5437         (can_be_vtable_hashed_p): Remove.
5438         (hash_odr_vtable): Remove.
5439         (odr_vtable_hasher::hash): Remove.
5440         (types_same_for_odr): Remove.
5441         (types_odr_comparable): Remove.
5442         (odr_vtable_hasher::equal): Remove.
5443         (odr_vtable_hash_type, odr_vtable_hash): Remove.
5444         (add_type_duplicate): Do not synchronize vtable and name hashtables.
5445         (get_odr_type): Do not use vtable hash.
5446         (dump_odr_type): Remove commented out code.
5447         (build_type_inheritance_graph): Do not allocate vtable hash.
5448         (rebuild_type_inheritance_graph): Do not delete vtable hash.
5449         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
5450         (odr_type_p): Likewise.
5451         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
5452         test.
5454 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
5456         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
5457         immediately after same_types_for_tbaa_p returns -1 and continue
5458         looking for possible exact match; if matching types are arrays
5459         watch for partial overlaps.
5460         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
5461         (indirect_refs_may_alias_p): Do type based disambiguation first;
5462         update comment.
5464 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
5466         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
5468 2019-06-07  Martin Liska  <mliska@suse.cz>
5470         * doc/invoke.texi: Remove param.
5471         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
5472         Remove.
5473         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
5474         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
5475         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
5476         * profile.c (instrument_values): Remove
5477         HIST_TYPE_INDIR_CALL_TOPN.
5478         * tree-profile.c (init_ic_make_global_vars):
5479         Always build __gcov_indirect_call only.
5480         (gimple_init_gcov_profiler): Remove usage
5481         of PARAM_INDIR_CALL_TOPN_PROFILE.
5482         (gimple_gen_ic_profiler): Likewise.
5483         * value-prof.c (dump_histogram_value): Likewise.
5484         (stream_in_histogram_value): Likewise.
5485         (gimple_indirect_call_to_profile): Likewise.
5486         (gimple_find_values_to_profile): Likewise.
5487         * value-prof.h (enum hist_type): Likewise.
5489 2019-06-07  Martin Liska  <mliska@suse.cz>
5491         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
5492         function.
5494 2019-06-07  Martin Liska  <mliska@suse.cz>
5496         PR tree-optimization/78902
5497         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
5498         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
5499         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5500         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5501         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
5502         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5503         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
5504         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
5505         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5506         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5507         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5508         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST):  Remove.
5509         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
5510         New.
5511         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
5512         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
5513         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
5514         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5515         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5516         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
5517         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5518         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5519         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
5520         warn_unused_result attribute.
5521         (BUILT_IN_STRDUP): Likewise.
5522         (BUILT_IN_STRNDUP): Likewise.
5523         (BUILT_IN_ALLOCA): Likewise.
5524         (BUILT_IN_CALLOC): Likewise.
5525         (BUILT_IN_MALLOC): Likewise.
5526         (BUILT_IN_REALLOC): Likewise.
5528 2019-06-06  Jim Wilson  <jimw@sifive.com>
5530         PR target/89955
5531         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
5532         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
5533         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
5535 2019-06-06  Martin Sebor  <msebor@redhat.com>
5537         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
5538         (handle_builtin_malloc): Remove trailing spaces.
5539         (handle_builtin_memset): Same.
5540         (handle_builtin_memcmp): Same.
5541         (compute_string_length): Same.
5542         (determine_min_objsize): Same.
5543         (handle_builtin_string_cmp): Same.
5544         (handle_char_store): Same.  Break up excessively long line.
5546 2019-06-06  Martin Jambor  <mjambor@suse.cz>
5548         * tree-sra.c (build_reconstructed_reference): Drop the alignment
5549         check.
5551 2019-06-06  Martin Jambor  <mjambor@suse.cz>
5553         * tree-sra.c (struct access): New field grp_same_access_path.
5554         (dump_access): Dump it.
5555         (build_reconstructed_reference): New function.
5556         (build_ref_for_model): Use it if possible.
5557         (path_comparable_for_same_access): New function.
5558         (same_access_path_p): Likewise.
5559         (sort_and_splice_var_accesses): Set the new flag.
5560         (analyze_access_subtree): Likewise.
5561         (propagate_subaccesses_across_link): Propagate zero value of the new
5562         flag down the access tree.
5564 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
5566         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
5567         * config/gcn/gcn.opt (gpu_type): Add gfx906.
5568         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
5569         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
5570         Add gfx906.
5572 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5574         PR tree-optimization/90332
5575         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
5576         Handle VALS containing two vectors.
5577         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
5578         to...
5579         (@aarch64_combinez<mode>): ... This.
5580         (*aarch64_combinez_be<mode>): Rename to...
5581         (@aarch64_combinez_be<mode>): ... This.
5582         (vec_init<mode><Vhalf>): New define_expand.
5583         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
5585 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5587         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
5588         library functions only when not optimizing for size.
5589         (ashlsi3): Likewise.
5590         (ashrhi3): Likewise.
5591         (ashrsi3): Likewise.
5592         (lshrhi3): Likewise.
5593         (lshrsi3): Likewise.
5595 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
5597         PR rtl-optimization/88751
5598         * ira.c (ira): Use the number of the actually referenced registers
5599         when calculating the threshold.
5601 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
5603         * configure: Regenerate.
5605 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5607         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
5608         register if it is in memory, so the shift can be emulated with a rotate
5609         instruction.
5610         (ashrhi3): Likewise.
5611         (lshrhi3): Likewise.
5613 2019-06-06  Martin Liska  <mliska@suse.cz>
5615         PR tree-optimization/87954
5616         * match.pd: Simplify mult where both arguments are 0 or 1.
5618 2019-06-06  Richard Biener  <rguenther@suse.de>
5620         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
5621         put equivalences on UNDEFINED ranges.
5622         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5623         Make sure to drop defs of stmts added during simplification
5624         to VARYING.
5626 2019-06-06  Richard Biener  <rguenther@suse.de>
5628         * tree-ssa-structalias.c: Include tree-cfg.h.
5629         (make_heapvar): Do not make heap vars artificial.
5630         (find_func_aliases_for_builtin_call): Handle stack allocation
5631         functions.
5632         (find_func_aliases): Delay processing of simple enough returns
5633         in non-IPA mode.
5634         (set_uids_in_ptset): Adjust.
5635         (find_what_var_points_to): Likewise.
5636         (solve_constraints): Do not dump points-to sets here.
5637         (compute_points_to_sets): Post-process return statements,
5638         amending the escaped solution.  Dump points-to sets afterwards.
5639         (ipa_pta_execute): Dump points-to sets.
5641 2019-06-06  Martin Liska  <mliska@suse.cz>
5643         PR web/87933
5644         * doc/install.texi: Fix HTML headers and
5645         titles for 'Installing GCC' pages.
5647 2019-06-06  Martin Liska  <mliska@suse.cz>
5649         * ipa-icf-gimple.h (dump_message_1): Remove.
5650         (dump_message): Likewise.
5651         (return_false_with_message_1): Print also file.
5652         (return_false_with_msg): Likewise.
5653         (return_with_result): Likewise.
5654         (return_with_debug): Likewise.
5655         * ipa-icf.c (sem_function::equals_private): Remove call
5656         to dump_message.
5658 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
5660         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
5661         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
5662         memory operand for it.
5663         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
5665 2019-06-05  Martin Sebor  <msebor@redhat.com>
5667         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
5668         Adjust quoting and hyphenation.
5669         * convert.c (convert_to_real_1): Same.
5670         * gcc.c (driver_wrong_lang_callback): Same.
5671         (driver::handle_unrecognized_options): Same.
5672         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5673         * opts-common.c (cmdline_handle_error): Same.
5674         (read_cmdline_option): Same.
5675         * opts-global.c (complain_wrong_lang): Same.
5676         (print_ignored_options): Same.
5677         (handle_common_deferred_options): Same.
5678         * pretty-print.h: Same.
5679         * print-rtl.c (debug_bb_n_slim): Same.
5680         * sched-rgn.c (make_pass_sched_fusion): Same.
5681         * tree-cfg.c (verify_gimple_assign_unary): Same.
5682         (verify_gimple_label): Same.
5683         * tree-ssa-operands.c (verify_ssa_operands): Same.
5684         * varasm.c (do_assemble_alias): Same.
5685         (assemble_alias): Same.
5687 2019-06-05  Richard Henderson  <rth@twiddle.net>
5689         * config/alpha/alpha.c (direct_return): Move down after
5690         struct machine_function definition; use saved frame_size;
5691         return bool.
5692         (struct machine_function): Add sa_mask, sa_size, frame_size.
5693         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
5694         (alpha_compute_frame_layout): ... new function.
5695         (TARGET_COMPUTE_FRAME_LAYOUT): New.
5696         (alpha_initial_elimination_offset): Use saved sa_size.
5697         (alpha_vms_initial_elimination_offset): Likewise.
5698         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
5699         (alpha_expand_prologue): Use saved frame data.  Merge integer
5700         and fp register save loops.
5701         (alpha_expand_epilogue): Likewise.
5702         (alpha_start_function): Use saved frame data.
5703         * config/alpha/alpha-protos.h (direct_return): Update.
5704         (alpha_sa_size): Remove.
5706 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5708         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
5709         multiplication by a power-of-two value.
5710         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
5711         and turn the modulo operation into a masking operation.
5713 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5715         PR debug/90733
5716         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5717         with VOIDmode inner operands.
5719 2019-06-05  Richard Biener  <rguenther@suse.de>
5721         PR middle-end/90726
5722         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5723         turn an expression graph into a tree.
5725 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5727         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5728         member.
5729         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
5730         treat it like explicit monotonic schedule modifier.
5731         (expand_omp_for): Initialize has_lastprivate_conditional.
5732         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
5733         schedule modifier.
5735         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5736         references, lookup in in hash map MEM_REF operand instead of the
5737         MEM_REF itself.
5738         (lower_omp_1): When looking for lastprivate conditional assignments,
5739         handle MEM_REFs with REFERENCE_TYPE operands.
5741         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
5742         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
5743         and references a VLA.  Handle references to non-VLAs if is_simd
5744         all privatization clauses like reductions.
5745         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
5746         If omp_is_reference, use always omp simd arrays and set
5747         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
5748         fails, emit reference initialization.
5750 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
5752         PR target/89803
5753         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
5754         _mm_mask_fpclass_sd_mask): New intrinsics.
5755         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
5756         * config/i386/i386-builtin.def
5757         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
5758         New builtins.
5759         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
5760         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
5761         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
5762         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
5763         case QI_FTYPE_V2SF_INT): Ditto.
5764         * config/i386/sse.md
5765         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
5766         Extended to insnstructions with mask operands.
5768 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5770         * config/rs6000/constraints.md (define_register_constraint "wp"):
5771         Delete.
5772         (define_register_constraint "wq"): Delete.
5773         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5774         (rs6000_init_hard_regno_mode_ok): Adjust.
5775         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5776         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
5777         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
5778         (define_mode_attr VSa): Delete.
5779         (define_mode_attr VSisa): New.
5780         (rest of file): Adjust.
5781         * doc/md.texi (Machine Constraints): Adjust.
5783 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5785         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5786         (define_attr "enabled"): Handle those new isa values.
5788 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5790         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
5791         (define_mode_attr VSr5): Delete.
5792         (define_mode_attr VStype_sqrt): Delete.
5793         (define_mode_iterator VSX_SPDP): Delete.
5794         (define_mode_attr VS_spdp_res): Delete.
5795         (define_mode_attr VS_spdp_insn): Delete.
5796         (define_mode_attr VS_spdp_type): Delete.
5797         (*vsx_sqrt<mode>2): Adjust.
5798         (vsx_<VS_spdp_insn>): Delete, split to...
5799         (vsx_xscvdpsp): ... this.  New.  And...
5800         (vsx_xvcvspdp): ... this.  New.  And...
5801         (vsx_xvcvdpsp): ... this.  New.
5803 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5805         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5806         and V2DF.
5807         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5808         (rest of file): Adjust.
5810 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5812         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5813         (vsx_extract_<mode>_var): Ditto.
5815 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5817         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5818         with just "wa".
5820 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5822         * config/rs6000/constraints.md (define_register_constraint "ww"):
5823         Delete.
5824         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5825         (rs6000_init_hard_regno_mode_ok): Adjust.
5826         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5827         RS6000_CONSTRAINT_ww.
5828         * config/rs6000/rs6000.md: Adjust.
5829         * config/rs6000/vsx.md: Adjust.
5830         * doc/md.texi (Machine Constraints): Adjust.
5832 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5834         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
5835         (define_mode_attr sd): New.
5836         (define_mode_attr s): New.
5837         (define_mode_attr Ftrad): Delete.
5838         (define_mode_attr Fvsx): Delete.
5839         (define_mode_attr Fs): Delete.
5840         (rest of file): Use the new mode attributes.
5841         * config.rs6000/vsx.md: Use the new mode attributes.
5843 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5845         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5846         with just "wa".
5848 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5850         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
5851         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
5852         used with VSX_B, VSX_D, or VSX_F, with just "wa".
5854 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
5856         PR target/78263
5857         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5858         C++ with strict ANSI requirements.
5860 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
5862         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5863         computations when step is 1.
5865 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5867         * config/rs6000/constraints.md (define_register_constraint "wf"):
5868         Delete.
5869         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5870         (rs6000_init_hard_regno_mode_ok): Adjust.
5871         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5872         RS6000_CONSTRAINT_wf.
5873         * config/rs6000/rs6000.md: Adjust.
5874         * config/rs6000/vsx.md: Adjust.
5875         * doc/md.texi (Machine Constraints): Adjust.
5877 2019-06-04  Andrew Pinski  <apinski@marvell.com>
5879         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5880         Fix ILP32 value.
5882 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5884         * config/rs6000/constraints.md (define_register_constraint "wd"):
5885         Delete.
5886         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5887         (rs6000_init_hard_regno_mode_ok): Adjust.
5888         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5889         RS6000_CONSTRAINT_wd.
5890         * config/rs6000/rs6000.md: Adjust.
5891         * config/rs6000/vsx.md: Adjust.
5892         * doc/md.texi (Machine Constraints): Adjust.
5894 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5896         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5897         (rest of file): Adjust.
5899 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5901         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
5902         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
5903         (vsx_splat_<mode>_reg): Adjust.
5905 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5907         * config/rs6000/constraints.md (define_register_constraint "ws"):
5908         Delete.
5909         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5910         (rs6000_init_hard_regno_mode_ok): Adjust.
5911         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5912         RS6000_CONSTRAINT_ws.
5913         * config/rs6000/rs6000.md: Adjust.
5914         * config/rs6000/vsx.md: Adjust.
5915         * doc/md.texi (Machine Constraints): Adjust.
5917 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5919         * config/rs6000/constraints.md (define_register_constraint "wv"):
5920         Delete.
5921         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5922         (rs6000_init_hard_regno_mode_ok): Adjust.
5923         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5924         RS6000_CONSTRAINT_wv.
5925         * config/rs6000/rs6000.md: Adjust.
5926         * config/rs6000/vsx.md: Adjust.
5927         * doc/md.texi (Machine Constraints): Adjust.
5929 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5931         * config/rs6000/constraints.md (define_register_constraint "wi"):
5932         Delete.
5933         (define_register_constraint "wt"): Delete.
5934         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5935         (rs6000_init_hard_regno_mode_ok): Adjust.
5936         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5937         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
5938         * config/rs6000/rs6000.md: Adjust.
5939         * config/rs6000/vsx.md: Adjust.
5940         * doc/md.texi (Machine Constraints): Adjust.
5942 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5944         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5945         const.
5946         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5947         default_elf_asm_output_external.
5949 2019-06-04  Martin Liska  <mliska@suse.cz>
5951         * ipa-icf.c (INCLUDE_LIST): Remove.
5952         (sem_item_optimizer::execute): Remove call to init_wpa.
5953         * ipa-icf.h (init_wpa): Remove.
5955 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
5957         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
5958         conditional on combined for simd.
5959         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
5960         member.
5961         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
5962         constructs, don't remove lastprivate_conditional_map, but instead set
5963         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
5964         to parent construct temporaries.
5965         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
5966         like !ctx->lastprivate_conditional_map.
5967         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
5968         use up->outer context instead of up.
5969         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
5970         gimple_omp_for_combined_p.
5971         (expand_omp_for_static_nochunk): Likewise.
5972         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
5973         probably moved over into expand_omp_for_generic rather than being copied
5974         there.
5976 2019-06-04  Martin Liska  <mliska@suse.cz>
5978         * value-prof.c (dump_histogram_value): Fix typo.
5979         (gimple_mod_subtract_transform): Likewise.
5981 2019-06-04  Richard Biener  <rguenther@suse.de>
5983         PR middle-end/90726
5984         * tree-chrec.c (chrec_contains_symbols): Add to visited.
5985         (tree_contains_chrecs): Likewise.
5986         (chrec_contains_symbols_defined_in_loop): Move here and avoid
5987         exponential behaivor from ...
5988         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5989         ... here.
5990         (expression_expensive_p): Avoid exponential behavior and compute
5991         expanded size, rejecting any expansion.
5992         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
5993         (idx_contains_abnormal_ssa_name_p): Likewise.
5994         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
5995         (contains_abnormal_ssa_name_p): Simplify and use
5996         walk_tree_without_duplicates.
5998 2019-06-04  Richard Biener  <rguenther@suse.de>
6000         PR tree-optimization/90738
6001         Revert
6002         2019-06-03  Richard Biener  <rguenther@suse.de>
6004         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6005         full reference tree and record in ref->ref.
6006         (vn_reference_lookup_3): Pass in original ref to
6007         ao_ref_init_from_vn_reference.
6008         (vn_reference_lookup): Likewise.
6009         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6010         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6011         Handle non-decl bases in the original reference.
6013 2019-06-04  Martin Liska  <mliska@suse.cz>
6015         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
6016         number of references.
6017         (sem_item_optimizer::do_congruence_step):
6018         (sem_item_optimizer::worklist_push): Dump how references
6019         a class has.
6020         (sem_item_optimizer::worklist_pop): Use heap.
6021         (sem_item_optimizer::process_cong_reduction): Likewise.
6022         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
6024 2019-06-04  Martin Liska  <mliska@suse.cz>
6026         * ipa-icf.h (struct sem_usage_pair_hash): New.
6027         (sem_usage_pair_hash::hash): Likewise.
6028         (sem_usage_pair_hash::equal): Likewise.
6029         (struct sem_usage_hash): Likewise.
6030         * ipa-icf.c (sem_item::sem_item): Initialize
6031         referenced_by_count.
6032         (sem_item::add_reference): Register a reference
6033         in ref_map and not in target->usages.
6034         (sem_item::setup): Remove initialization of
6035         dead vectors.
6036         (sem_item::~sem_item): Remove usage of dead vectors.
6037         (sem_item::dump): Remove dump of references.
6038         (sem_item_optimizer::sem_item_optimizer): Initialize
6039         m_references.
6040         (sem_item_optimizer::read_section): Remove useless
6041         dump.
6042         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
6043         (sem_item_optimizer::build_graph): Pass m_references
6044         to ::add_reference.
6045         (sem_item_optimizer::verify_classes): Remove usage of dead
6046         vectors.
6047         (sem_item_optimizer::traverse_congruence_split): Return true
6048         when a class is split.
6049         (sem_item_optimizer::do_congruence_step_for_index): Use
6050         hash_map for look up of (sem_item *, index). That brings
6051         significant speed up.
6052         (sem_item_optimizer::do_congruence_step): Return true
6053         when a split is done.
6054         (congruence_class::is_class_used): Use referenced_by_count.
6056 2019-06-04  Alan Modra  <amodra@gmail.com>
6058         PR target/90689
6059         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
6060         error.
6062 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
6064         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
6065         * config/rs6000/rs6000.c (direct_move_p): Adjust.
6066         (rs6000_secondary_reload_simple_move): Adjust.
6067         (rs6000_opt_masks): Neuter the "mfpgpr" option.
6068         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
6069         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
6070         comment.
6071         (power6x): Adjust.
6072         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
6073         (floatunssi<mode>2_lfiwzx): Adjust.
6074         (fix_trunc<mode>si2_stfiwx): Adjust.
6075         (fixuns_trunc<mode>si2_stfiwx): Adjust.
6076         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
6077         (mfpgpr): Mark as deprecated.
6078         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
6079         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
6080         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
6082 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
6084         * config/rs6000/constraints.md (define_register_constraint "wg"):
6085         Delete.
6086         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6087         RS6000_CONSTRAINT_wg.
6088         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6089         (rs6000_init_hard_regno_mode_ok): Adjust.
6090         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
6091         Delete "wg" alternatives.
6092         * doc/md.texi (Machine Constraints): Adjust.
6094 2019-06-03  Alan Modra  <amodra@gmail.com>
6096         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
6097         (get_uncond_jump_length): Assert length less than INT_MAX and
6098         non-negative.
6100 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
6102         PR middle-end/64242
6103         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
6104         block.
6105         (expand_builtin_nonlocal_goto): Likewise.
6107 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6109         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
6110         (aarch64_asm_output_external): Declare.
6111         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
6112         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
6113         (aarch64_asm_output_alias): New.
6114         (aarch64_asm_output_external): New.
6115         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
6116         (ASM_OUTPUT_EXTERNAL): Define.
6118 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
6119         * tree-vrp.h (value_range_base::nonzero_p): New.
6120         (value_range_base::set_nonnull): Rename to...
6121         (value_range_base::set_nonzero): ...this.
6122         (value_range_base::set_null): Rename to...
6123         (value_range_base::set_zero): ...this.
6124         (value_range::set_nonnull): Remove.
6125         (value_range::set_null): Remove.
6126         * tree-vrp.c (range_is_null): Remove.
6127         (range_is_nonnull): Remove.
6128         (extract_range_from_binary_expr): Use value_range_base::*zero_p
6129         instead of range_is_*null.
6130         (extract_range_from_unary_expr): Same.
6131         (value_range_base::set_nonnull): Rename to...
6132         (value_range_base::set_nonzero): ...this.
6133         (value_range::set_nonnull): Remove.
6134         (value_range_base::set_null): Rename to...
6135         (value_range_base::set_zero): ...this.
6136         (value_range::set_null): Remove.
6137         (extract_range_from_binary_expr): Rename set_*null uses to
6138         set_*zero.
6139         (extract_range_from_unary_expr): Same.
6140         (union_helper): Same.
6141         * vr-values.c (get_value_range): Use set_*zero instead of
6142         set_*null.
6143         (vr_values::extract_range_from_binary_expr): Same.
6144         (vr_values::extract_range_basic): Same.
6146 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
6148         PR driver/90684
6149         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
6151 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6153         * config/aarch64/iterators.md (MAX_OPP): New code attr.
6154         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
6155         Rename to...
6156         (aarch64_<su>abd<mode>_3): ... This.
6157         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
6159 2019-06-03  Richard Biener  <rguenther@suse.de>
6161         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6162         full reference tree and record in ref->ref.
6163         (vn_reference_lookup_3): Pass in original ref to
6164         ao_ref_init_from_vn_reference.
6165         (vn_reference_lookup): Likewise.
6166         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6167         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6168         Handle non-decl bases in the original reference.
6170 2019-06-03  Martin Liska  <mliska@suse.cz>
6172         * doc/generic.texi: Remove Java Trees.
6174 2019-06-03  Martin Liska  <mliska@suse.cz>
6176         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
6177         returns 0 when operands are equal.
6179 2019-06-03  Richard Biener  <rguenther@suse.de>
6181         PR tree-optimization/90716
6182         * tree-loop-distribution.c (destroy_loop): Process blocks in
6183         correct order.
6185 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6187         PR target/88837
6188         * vector-builder.h (vector_builder::count_dups): New method.
6189         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
6190         Declare prototype.
6191         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
6192         (vec_init<mode><Vel>): New pattern.
6193         * config/aarch64/aarch64.c (emit_insr): New function.
6194         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
6195         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
6196         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
6197         (aarch64_sve_expand_vector_init): Define two overloaded functions.
6199 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
6201         PR tree-optimization/90681
6202         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
6203         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
6204         special case for SLP, but fail on non-groupped loads.
6206 2019-06-03  Martin Liska  <mliska@suse.cz>
6208         * cfg.c (debug): Use TDF_DETAILS for debug and
6209         print edge info only once.
6211 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
6213         PR fortran/90539
6214         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
6216 2019-06-01  Martin Sebor  <msebor@redhat.com>
6218         PR middle-end/90694
6219         * tree-pretty-print.c (dump_generic_node): Add parentheses.
6221 2019-05-31  Jan Hubicka  <jh@suse.cz>
6223         * alias.c: Include ipa-utils.h.
6224         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
6225         * ipa-devirt.c (prevailing_odr_type): New.
6226         * ipa-utils.h (previaling_odr_type): Declare.
6228 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6229             Hongtao Liu  <hongtao.liu@intel.com>
6231         PR target/89355
6232         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
6233         NOTE_INSN_DELETED_LABEL check.
6235 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
6236             Robert Suchanek  <robert.suchanek@mips.com>
6238         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
6239         and 3rd operands of the fmadd/fmsub/maddv builtin.
6241 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
6243         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
6244         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6245         on OMP_SIMD if not nested inside of worksharing loop that also has
6246         lastprivate conditional clause for the same decl.
6247         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
6248         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
6249         on simd.
6250         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
6251         on simd construct.
6252         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
6253         on simd construct.
6254         (lower_lastprivate_clauses): Likewise.
6255         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
6256         calling lower_rec_input_clauses.
6257         (lower_omp_for): Likewise.
6258         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
6259         clause on simd construct.
6260         * omp-expand.c (expand_omp_simd): Initialize cond_var if
6261         OMP_CLAUSE__CONDTEMP_ clause is present.
6263         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
6264         ivar and lvar.
6266 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
6268         PR c/43673
6269         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
6270         TEX_D32, TEX_D64 or TEX_D128.
6272 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
6274         * match.pd (~(vec?cst1:cst2)): New transformation.
6276 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
6278         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
6279         ((size_t)(A /[ex] B) CMP C): New transformation.
6281 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
6283         * doc/md.texi: Document define_insn_and_rewrite.
6284         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
6285         * gensupport.c (queue_elem): Update comment.
6286         (replace_operands_with_dups): New function.
6287         (gen_rewrite_sequence): Likewise.
6288         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
6289         * read-rtl.c (apply_subst_iterator): Likewise.
6290         (add_condition_to_rtx, named_rtx_p): Likewise.
6291         (rtx_reader::read_rtx_operand): Likewise.
6292         * config/aarch64/aarch64-sve.md
6293         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
6294         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
6295         define_insn_and_rewrite.
6296         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
6297         Remove separate define_split.
6299 2019-05-31  Jan Hubicka  <jh@suse.cz>
6301         * tree-ssa-alias.c (type_has_components_p): New function.
6302         (aliasing_component_refs_p): Use it.
6304 2019-05-31  Martin Liska  <mliska@suse.cz>
6306         * gdbhooks.py: Add const_tree to TreePrinter.
6308 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
6310         PR debug/86964
6311         * common.opt (feliminate-unused-debug-symbols): Enable by default.
6312         * doc/invoke.texi (Debugging Options): Document new default of
6313         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
6315 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
6317         PR tree-optimization/90671
6318         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
6319         template_block used to be empty on the first call, don't use
6320         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
6321         seq with bb_seq and set it with set_bb_seq.
6323 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
6325         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
6327 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
6328             Michael Meissner  <meissner@linux.ibm.com>
6330         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
6331         (prefixed_mem_operand): Likewise.
6332         (non_prefixed_mem_operand): Likewise.
6333         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
6334         prototype.
6335         * config/rs6000/rs6000.c (print_operand_address): Handle
6336         PC-relative addresses.
6337         (mode_supports_prefixed_address_p): New function.
6338         (rs6000_prefixed_address): New function.
6339         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
6340         (SYMBOL_REF_PCREL_P): Likewise.
6342 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
6344         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
6345         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
6346         (gimplify_omp_for): If worksharing loop with lastprivate conditional
6347         is nested inside of parallel region, add _condtemp_ clause to both.
6348         * tree-nested.c (convert_nonlocal_omp_clauses,
6349         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
6350         assertion failure.
6351         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
6352         member.
6353         * omp-general.c (omp_extract_for_data): Compute it.
6354         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
6355         (lower_rec_input_clauses): Likewise.
6356         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
6357         clause is already present, just add one further one after it.
6358         (lower_lastprivate_clauses): Handle cond_ptr with array type.
6359         (lower_send_shared_vars): Clear _condtemp_ vars.
6360         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
6361         or section or taskgroup.
6362         * omp-expand.c (determine_parallel_type): Disallow combining only if
6363         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
6364         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
6365         (expand_omp_for_generic, expand_omp_for_static_nochunk,
6366         expand_omp_for_static_chunk, expand_omp_for): Use
6367         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
6368         determine if a special set of API routines are needed and if condtemp
6369         needs to be initialized, while always initialize cond_var if
6370         fd->lastprivate_conditional is non-zero.
6372 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
6373             Michael Meissner  <meissner@linux.ibm.com>
6375         * config/rs6000/constraints.md (eI): New constraint.
6376         * config/rs6000/predicates.md (cint34_operand): New predicate.
6377         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
6378         (SIGNED_34BIT_OFFSET_P): Likewise.
6379         * doc/md.texi (eI): Document constraint.
6381 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
6383         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
6385 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
6386             Michael Meissner  <meissner@linux.ibm.com>
6388         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
6389         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
6390         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
6391         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
6392         (OTHER_FUTURE_MASKS): Likewise.
6393         (POWERPC_MASKS): Likewise.
6394         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
6395         specified without -mprefixed-addr or -mcpu=future.  Error if
6396         -mprefixed-addr is specified without -mcpu=future.
6397         (rs6000_opt_masks): Add entry for prefixed-addr.
6398         * rs6000.opt (mprefixed-addr): New option.
6400 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
6402         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
6403         cfun->is_thunk check.
6405 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
6407         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
6408         to length.
6410 2019-05-30  Martin Liska  <mliska@suse.cz>
6412         * gdbinit.in: Fix 'ptc' command.  Add trt
6413         that prints TREE_TYPE($).
6415 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
6416             Alan Modra  <amodra@gmail.com>
6418         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
6419         calls here...
6420         (rs6000_indirect_call_template_1): ...and here.
6421         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
6422         plt16_ha, plt16_lo, mtctr indirect calls.  Use
6423         rs6000_pltseq_enum.
6424         (rs6000_decl_ok_for_sibcall): New function.
6425         (rs6000_function_ok_for_sibcall): Refactor.
6426         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
6427         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
6428         when pcrel.  Reorganize.
6429         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
6430         * rs6000.h (rs6000_pltseq_enum): New enum.
6431         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
6432         (*pltseq_tocsave): Use rs6000_pltseq_enum.
6433         (*pltseq_plt16_ha): Likewise.
6434         (*pltseq_plt16_lo): Likewise.
6435         (*pltseq_mtctr): Likewise.
6436         (*pltseq_plt_pcrel): New insn.
6437         (*call_local_aix): Handle @notoc calls.
6438         (*call_value_local_aix): Likewise.
6439         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
6440         (*call_value_nonlocal_aix): Likewise.
6441         (*call_indirect_pcrel): New insn.
6442         (*call_value_indirect_pcrel): Likewise.
6444 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
6446         * config/i386/sse.md (*save_multiple<mode>): Rename from
6447         save_multiple<mode>.
6448         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
6449         (*restore_multiple_and_return<mode>): Rename from
6450         restore_multiple_and_return<mode>.
6451         (*restore_multiple_leave_return<mode>): Rename from
6452         restore_multiple_leave_return<mode>.
6454 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
6456         * config.gcc (rx-*-linux*): New target.
6457         * config/rx/elf.opt: New file.
6458         * config/rx/linux.h: Likewise.
6459         * config/rx/t-linux: Likewise.
6460         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
6461         make it zero.
6462         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
6463         (ASM_APP_OFF): Likewise.
6464         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
6465         moved elsewhere.
6467 2019-05-29  Jan Hubicka  <jh@suse.cz>
6469         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
6470         variants are pointer equivalent.
6472 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
6474         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
6475         * config/aarch64/aarch64-sve2.md: New file.
6476         (<u>avg<mode>3_floor): New pattern.
6477         (<u>avg<mode>3_ceil): Likewise.
6478         (*<sur>h<addsub><mode>): Likewise.
6479         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
6480         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
6482 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
6484         PR bootstrap/90543
6485         * optc-save-gen.awk: In cl_optimization_print, use correct condition
6486         for var_opt_string printing.  In cl_optimization_print_diff, print
6487         (null) instead of invoking undefined behavior if one of the
6488         var_opt_string pointers is NULL and use && instead of first || in the
6489         guarding condition.  For var_target_other options, handle const char *
6490         target variables similarly to const char * optimize node variables.
6492 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
6494         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
6495         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
6496         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
6497         Add autib1716 and pacib1716 initialisation.
6498         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
6499         for autib1716 and pacib1716.
6500         * config/aarch64/aarch64-protos.h (aarch64_key_type,
6501         aarch64_post_cfi_startproc): Define.
6502         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
6503         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
6504         aarch64_handle_pac_ret_protection): Set default sign key to A.
6505         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
6506         aarch64_expand_prologue): Add check for b-key.
6507         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
6508         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
6509         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
6510         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
6511         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
6512         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
6513         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6514         * config/aarch64/aarch64.md (do_return): Add check for b-key.
6515         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
6516         pauth_hint_num_a with pauth_hint_num.
6517         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
6518         pauth_hint_num_a with pauth_hint_num.
6519         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
6520         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
6521         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6522         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
6523         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
6524         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
6525         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
6526         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6527         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
6528         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
6529         UNSPEC_AUTIA1716 respectively.
6530         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
6531         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
6532         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
6533         * doc/invoke.texi (-mbranch-protection): Add b-key type.
6534         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
6535         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
6537 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
6539         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
6540         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
6541         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
6542         explicit clause on combined parallel into implicit shared clause.
6543         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
6544         and firstprivate if the decl has one too from combined parallel to
6545         the worksharing construct.
6547 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
6548             Michael Meissner  <meissner@linux.ibm.com>
6550         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
6552 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
6554         * rtl.h (LABEL_REF_P): New #define.
6556 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
6558         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
6560 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
6562         * internal-fn.c: Marked mask_load_direct as vectorizable.
6563         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
6564         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
6565         combined even if masks different with allow_slp_p param.
6566         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
6567         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
6568         dissolve SLP-only vectorizable groups when SLP has been discarded.
6569         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
6570         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
6571         masks.
6572         (vect_build_slp_tree_1): Fixed comment typo.
6573         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
6574         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
6575         loads for SLP only.
6576         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
6577         vectorizable.
6578         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
6580 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6582         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
6583         Remove obsolete use_thunk reference.
6584         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
6585         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6586         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
6587         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
6588         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6589         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6590         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6591         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
6592         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
6594 2019-05-28  Nathan Sidwell  <nathan@acm.org>
6596         * tree.h (IDENTIFIER_ANON_P): New.
6597         (anon_aggrname_format, anon_aggname_p): Don't declare.
6598         (make_anon_name): Declare.
6599         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
6600         (hash_tree): Likewise.
6601         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
6602         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
6603         (anon_cnt, make_anon_name): New.
6605 2019-05-28  Martin Liska  <mliska@suse.cz>
6607         PR other/90315
6608         * opts-global.c (decode_options): Print help for all
6609         help_option_arguments.
6610         * opts.c (print_help): Add new argument.
6611         (common_handle_option): Remember all values into
6612         help_option_arguments.
6613         * opts.h (print_help): Add new argument.
6615 2019-05-28  Martin Liska  <mliska@suse.cz>
6617         PR ipa/90555
6618         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
6619         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
6620         (func_checker::compare_bb): Call compare_loops.
6622 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
6624         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6625         on sections construct.
6626         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
6627         construct.
6628         (lower_omp_sections): Handle lastprivate conditional.
6629         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
6630         lastprivate_conditional_map.
6631         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
6633         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
6634         critical, taskgroup and section regions when looking for a region
6635         with non-NULL lastprivate_conditional_map.
6637 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
6639         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
6640         (*ix86_gen_sub3): Ditto.
6641         (*ix86_gen_sub3_carry): Ditto.
6642         (*ix86_gen_one_cmpl2): Ditto.
6643         (*ix86_gen_andsp): Ditto.
6644         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
6645         (gen_and2_insn): New static function.
6646         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
6647         Use gen_add3_insn instead of ix86_gen_add3.
6648         (ix86_expand_split_stack_prologue): Use gen_add2_insn
6649         instead of ix86_gen_add3.
6650         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
6651         Use gen_sub3_insn instead of ix86_gen_sub3.
6652         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
6653         instead of ix86_gen_add3.
6654         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
6655         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
6656         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
6657         * config/i386/i386-options.c (ix86_option_override_internal):
6658         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6659         ix86_gen_one_cmpl2 and ix86_gen_andsp.
6661 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6663         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
6664         and DW_OP_GNU_const_index opcodes.
6666 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
6668         * config/i386/i386.h (STACK_SIZE_MODE): Define.
6670 2019-05-27  Richard Biener  <rguenther@suse.de>
6672         PR tree-optimization/90637
6673         * tree-ssa-sink.c (statement_sink_location): Honor the
6674         computed sink location for single-uses.
6676 2019-05-27  Richard Biener  <rguenther@suse.de>
6678         PR middle-end/90610
6679         * match.pd (vec_perm): Avoid clobbering op0 when not generating
6680         a bit-insert.
6682 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
6684         * config/i386/i386.md (@sub<mode>3_carry): Rename
6685         from sub<mode>3_carry.
6686         (@leave_<mode>): New expander.
6687         (*leave): Rename from leave.
6688         (*leave_rex64): Rename from leave_rex64.
6689         (@monitorx_<mode>): Rename from monitorx_<mode>.
6690         (@clzero_<mode>): Rename from clzero_<mode>.
6691         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
6692         from sse3_monitor_<mode>.
6693         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
6694         (*ix86_gen_leave): Ditto.
6695         (*ix86_gen_monitor): Ditto.
6696         (*ix86_gen_monitorx): Ditto.
6697         (*ix86_gen_clzero): Ditto.
6698         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
6699         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
6700         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
6701         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
6702         Use gen_sse3_monitor instead of ix86_gen_monitor.
6703         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
6704         instead of ix86_gen_monitorx.
6705         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
6706         instead of ix86_gen_clzero.
6707         * config/i386/i386-options.c (ix86_option_override_internal):
6708         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
6709         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
6711 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
6713         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
6714         Rename from tls_global_dynamic_64_<mode>.
6715         (@tls_local_dynamic_base_64_<mode>): Rename from
6716         tls_local_dynamic_base_64_<mode>.
6717         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
6718         Remove indirect function.
6719         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
6720         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
6721         instead of ix86_gen_tls_global_dynamic_64.
6722         Use gen_tls_local_dynamic_base_64 instead of
6723         ix86_gen_tls_local_dynamic_base_64.
6724         * config/i386/i386-options.c (ix86_option_override_internal):
6725         Do not initialize ix86_gen_tls_global_dynamic_64 and
6726         ix86_gen_tls_local_dynamic_base_64.
6728 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
6730         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
6731         Rename from pro_epilogue_adjust_stack_<mode>_add.
6732         (@pro_epilogue_adjust_stack_sub_<mode>)
6733         Rename from pro_epilogue_adjust_stack_<mode>_sub.
6734         (@allocate_stack_worker_probe_<mode>):
6735         Rename from allocate_stack_worker_probe_<mode>.
6736         (allocate_stack): Use gen_allocate_stack_worker_probe.
6737         (probe_stack): Use gen_probe_stack_1.
6738         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
6739         (@adjust_stack_and_probe_<mode>): Rename from
6740         adjust_stack_and_probe<mode>.
6741         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
6742         (stack_protect_set): Use gen_stack_protect_set_1.
6743         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
6744         (stack_protect_test): Use gen_stack_protect_test_1.
6745         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
6746         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
6747         Remove indirect function.
6748         (*ix86_gen_adjust_stack_and_probe): Ditto.
6749         (*ix86_gen_probe_stack_range): Ditto.
6750         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
6751         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
6752         (ix86_adjust_stack_and_probe_stack_clash): Use
6753         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
6754         (ix86_adjust_stack_and_probe): Ditto.
6755         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
6756         of ix86_gen_probe_stack_range.
6757         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
6758         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
6759         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
6760         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
6761         CODE_FOR_stack_protect_test_{si,di}.
6762         * config/i386/i386-options.c (ix86_option_override_internal):
6763         Do not initialize ix86_gen_allocate_stack_worker,
6764         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6766 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
6768         * doc/invoke.texi (Link Options): Many editorial changes around
6769         -flinker-output.
6771 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6773         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6774         pre-Solaris 11 referene and most Studio compiler details.
6776 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
6778         PR target/90530
6779         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
6780         DImode to SImode in floating-point registers on 64-bit target.
6781         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
6782         register_operand in xmpyu patterns.
6784 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6786         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
6787         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
6788         OMP_CLAUSE__REDUCTEMP_.
6789         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6790         OMP_CLAUSE__CONDTEMP_.
6791         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
6792         * tree-pretty-print.c (dump_omp_clause): Likewise.
6793         * tree-nested.c (convert_nonlocal_omp_clauses,
6794         convert_local_omp_clauses): Likewise.
6795         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
6796         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
6797         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
6798         on OMP_FOR.
6799         (gimplify_omp_for): Warn and disable conditional modifier from
6800         lastprivate on loop iterators.
6801         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
6802         member.
6803         * omp-general.c (omp_extract_for_data): Initialize it.
6804         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6805         member.
6806         (delete_omp_context): Delete it.
6807         (lower_lastprivate_conditional_clauses): New function.
6808         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
6809         handle lastprivate conditional clauses.
6810         (lower_reduction_clauses): Add CLIST argument, emit it into
6811         the critical section if any.
6812         (lower_omp_sections): Adjust lower_lastprivate_clauses and
6813         lower_reduction_clauses callers.
6814         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
6815         to lower_lastprivate_clauses.
6816         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
6817         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
6818         clist into a critical section if not emitted there already by
6819         lower_reduction_clauses.
6820         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
6821         callers.
6822         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
6823         conditional variables.
6824         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
6825         clause is present.
6826         (expand_omp_for_generic, expand_omp_for_static_nochunk,
6827         expand_omp_for_static_chunk): Handle lastprivate conditional.
6828         (expand_omp_for): Handle fd.lastprivate_conditional like
6829         fd.have_reductemp.
6831 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6833         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
6834         kernel does not exit cleanly.
6835         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
6837 2019-05-24  Jason Merrill  <jason@redhat.com>
6839         Revert:
6840         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6842 2019-05-24  Richard Biener  <rguenther@suse.de>
6844         PR testsuite/90607
6845         * tree-loop-distribution.c (struct partition): Add location
6846         member.
6847         (partition_alloc): Initialize all fields.
6848         (generate_memset_builtin): Use the location recorded in the
6849         partition for the generated call.
6850         (generate_memcpy_builtin): Likewise.
6851         (classify_partition): Record the location of a single store
6852         as location for the partition.
6854 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6856         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6857         for lo-part.
6859 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
6861         PR target/90588
6862         * common/config/aarch64/aarch64-common.c
6863         (aarch64_rewrite_selected_cpu): Change local temporary variable
6864         type from unsigned long to uint64_t.
6865         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
6866         aarch64_get_extension_string_for_isa_flags): Change declaration to
6867         match new definition by replacing unsigned long with uint64_t.
6869 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6871         PR target/90568
6872         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
6873         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
6874         Handle stack_protect_test_<mode> codegen similarly to corresponding
6875         sub instruction.
6877 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
6879         * config/i386/darwin.h: Reject -mfentry*.
6880         * doc/sourcebuild.texi: Document mfentry target support.
6882 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6884         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
6885         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
6886         false for PC-relative functions.
6887         (rs6000_output_function_prologue): Change called function name to
6888         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
6889         name,1" for PC-relative functions.
6890         (rs6000_elf_declare_function_name): Change called function name to
6891         rs6000_global_entry_point_prologue_needed_p.
6893 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
6895         PR target/90552
6896         * config/i386/i386.c (gen_rtx_cost):
6897         Use ix86_tune_cost instead of ix86_cost.
6899 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6900             Michael Meissner  <meissner@linux.ibm.com>
6901             Segher Boessenkool  <segher@kernel.crashing.org>
6903         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6904         OPTION_MASK_PCREL.
6905         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
6906         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
6907         (rs6000_fndecl_pcrel_p): Likewise.
6908         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
6909         error if -mpcrel is requested without -mcpu=future.
6910         (rs6000_opt_masks): Add entry for pcrel.
6911         (rs6000_fndecl_pcrel_p): New function.
6912         (rs6000_pcrel_p): Likewise.
6913         * config/rs6000/rs6000.opt (mpcrel): New option.
6914         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
6916 2019-05-23  Jan Hubicka  <jh@suse.cz>
6917             Martin Liska  <mliska@suse.cz>
6919         PR tree-optimization/90576
6920         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6921         poly_int_tree_p.
6922         (aliasing_component_refs_p): Fix three way size compare conditional;
6923         give up earlier in case we can not decide on equivalence.
6925 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6926             Michael Meissner  <meissner@linux.ibm.com>
6927             Segher Boessenkool  <segher@kernel.crashing.org>
6929         * config.gcc: Add future cpu.
6930         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
6931         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
6932         #define.
6933         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
6934         (RS6000_CPU): New instantiation for future cpu.
6935         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6936         PROCESSOR_FUTURE.
6937         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
6938         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
6939         * config/rs6000/rs6000-tables.opt: Regenerate.
6940         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
6941         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
6942         (rs6000_machine_from_flags): Handle future cpu.
6943         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
6944         PROCESSOR_POWER9 for now.
6945         (rs6000_adjust_cost): Likewise.
6946         (rs6000_issue_rate): Likewise.
6947         (rs6000_register_move_cost): Likewise.
6948         (rs6000_opt_masks): Add entry for future.
6949         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
6950         (MASK_FUTURE): New #define.
6951         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
6952         * config/rs6000/rs6000.opt (mfuture): New target option.
6953         * doc/invoke.texi (mcpu): Add future cpu.
6955 2019-05-23  Martin Liska  <mliska@suse.cz>
6957         PR c++/90587
6958         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
6959         operation points to a temporary (pointed via tree_to_wide_ref)
6960         that is out of scope after the &.
6962 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
6964         PR c++/90592
6965         * doc/extend.texi (Function Names): Add missing word.
6967 2019-05-23  Richard Biener  <rguenther@suse.de>
6969         PR tree-optimization/88440
6970         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6971         at -O[2s]+.
6972         * tree-loop-distribution.c (generate_memset_builtin): Fold the
6973         generated call.
6974         (generate_memcpy_builtin): Likewise.
6975         (distribute_loop): Pass in whether to only distribute patterns.
6976         (prepare_perfect_loop_nest): Also allow size optimization.
6977         (pass_loop_distribution::execute): When optimizing a loop
6978         nest for size allow pattern replacement.
6980 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
6982         PR target/90568
6983         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6984         of xor.
6986 2019-05-23  Martin Liska  <mliska@suse.cz>
6988         PR sanitizer/90570
6989         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6990         expression similarly to gimplify_decl_expr.
6992 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6994         * cse.c (cse_dump_path): s/dump_file/f.
6996 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
6998         PR c++/90462
6999         * diagnostic-format-json.cc: Include "selftest.h".
7000         (json_from_expanded_location): Only add "file" key for non-NULL
7001         file strings.
7002         (json_from_location_range): Don't add "start" and "finish"
7003         children if they are UNKNOWN_LOCATION.
7004         (selftest::test_unknown_location): New selftest.
7005         (selftest::test_bad_endpoints): New selftest.
7006         (selftest::diagnostic_format_json_cc_tests): New function.
7007         * json.cc (json::object::get): New function.
7008         (selftest::test_object_get): New selftest.
7009         (selftest::json_cc_tests): Call it.
7010         * json.h (json::object::get): New decl.
7011         * selftest-run-tests.c (selftest::run_tests): Call
7012         selftest::diagnostic_format_json_cc_tests.
7013         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
7014         decl.
7016 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
7017             Andrew Stubbs  <amd@codesourcery.com>
7019         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
7020         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
7021         (kernel): Rename to...
7022         (main_kernel): ... this.
7023         (load_image): Load _init_array and _fini_array kernels.
7024         (run): Add argument for kernel to run.
7025         (main): Run init_array_kernel before main_kernel, and
7026         fini_array_kernel after.
7027         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
7028         amdgpu_hsa_kernel attribute on functions.
7029         (gcn_disable_constructors): Delete.
7030         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
7031         * config/gcn/crt0.c (size_t): Define.
7032         (_init_array, _fini_array): New.
7033         (__preinit_array_start, __preinit_array_end,
7034         __init_array_start, __init_array_end,
7035         __fini_array_start, __fini_array_end): Declare weak references.
7037 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
7039         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
7041 2019-05-22  Jason Merrill  <jason@redhat.com>
7043         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7045 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7047         PR target/88483
7048         * config/i386/i386-options.c (ix86_init_machine_status): Set
7049         stack_frame_required to true.
7050         * config/i386/i386.c (ix86_get_frame_size): New function.
7051         (ix86_frame_pointer_required): Replace get_frame_size with
7052         ix86_get_frame_size.
7053         (ix86_compute_frame_layout): Likewise.
7054         (ix86_find_max_used_stack_alignment): Changed to void.  Set
7055         stack_frame_required.
7056         (ix86_finalize_stack_frame_flags): Always call
7057         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
7058         ix86_get_frame_size.
7059         * config/i386/i386.h (machine_function): Add stack_frame_required.
7061 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
7063         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
7065 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
7067         * common/config/aarch64/aarch64-common.c
7068         (struct aarch64_option_extension, struct processor_name_to_arch,
7069         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
7070         aarch64_contains_opt,
7071         aarch64_get_extension_string_for_isa_flags): Change type of
7072         variables storing flags to uint64_t.
7073         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
7074         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
7075         * config/aarch64/aarch64.c (struct processor,
7076         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
7077         aarch64_validate_march, aarch64_override_options,
7078         aarch64_option_print, aarch64_handle_attr_isa_flags,
7079         aarch64_declare_function_name, aarch64_start_file): Make flag
7080         variables uint64_t.
7081         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
7082         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
7083         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
7084         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
7085         * config/aarch64/driver-aarch64.c
7086         (struct aarch64_arch_extension, struct aarch64_core_data,
7087         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
7088         flag variables uint64_t.
7089         * doc/invoke.texi: Add documentation for new arguments.
7091 2019-05-22  Richard Biener  <rguenther@suse.de>
7093         * alias.c (ao_ref_from_mem): Move stack-slot sharing
7094         rewrite ...
7095         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
7097 2019-05-22  Martin Liska  <mliska@suse.cz>
7099         PR lto/90500
7100         * doc/extend.texi: Document the change.
7102 2019-05-22  Richard Biener  <rguenther@suse.de>
7104         PR tree-optimization/90450
7105         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
7106         (mem_ref_hasher::equal): Check it.
7107         (mem_ref_alloc): Initialize it.
7108         (gather_mem_refs_stmt): Set it.
7110 2019-05-22  Richard Biener  <rguenther@suse.de>
7112         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
7113         Add ABS_EXPR.
7114         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
7115         as ABSU_EXPR.
7117 2019-05-22  Alan Modra  <amodra@gmail.com>
7119         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
7120         (ASM_CPU_SPEC): Conditionally add -many.
7121         * config/rs6000/rs6000.c (rs6000_machine): New static var.
7122         (rs6000_machine_from_flags, emit_asm_machine): New functions..
7123         (rs6000_file_start): ..extracted from here, and modified to
7124         test all ISA bits.
7125         (rs6000_output_function_prologue): Emit .machine as necessary.
7126         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
7127         power mnemonics.
7128         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
7129         added by check_vect_support_and_set_flags.
7130         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
7131         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
7133 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
7135         PR middle-end/90553
7136         * ira-lives.c (process_bb_node_lives): Consider defs
7137         for a call insn to be die before the call, not after.
7139         * function.c (assign_parm_setup_block): Raise alignment of
7140         stacked parameter only for STRICT_ALIGNMENT targets.
7142 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7144         * config/rs6000/constraints.md (define_register_constraint "wz"):
7145         Delete.
7146         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7147         RS6000_CONSTRAINT_wz.
7148         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7149         (rs6000_init_hard_regno_mode_ok): Adjust.
7150         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
7151         * doc/md.texi (Machine Constraints): Adjust.
7153 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7155         * config/rs6000/constraints.md (define_register_constraint "wl"):
7156         Delete.
7157         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7158         RS6000_CONSTRAINT_wl.
7159         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7160         (rs6000_init_hard_regno_mode_ok): Adjust.
7161         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
7162         * doc/md.texi (Machine Constraints): Adjust.
7164 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7166         * config/rs6000/constraints.md (define_register_constraint "wm"):
7167         Delete.
7168         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7169         RS6000_CONSTRAINT_wm.
7170         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7171         (rs6000_init_hard_regno_mode_ok): Adjust.
7172         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
7173         * doc/md.texi (Machine Constraints): Adjust.
7175 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7177         * config/rs6000/constraints.md (define_register_constraint "wk"):
7178         Delete.
7179         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7180         RS6000_CONSTRAINT_wk.
7181         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7182         (rs6000_init_hard_regno_mode_ok): Adjust.
7183         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
7184         * doc/md.texi (Machine Constraints): Adjust.
7186 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7188         * config/rs6000/constraints.md (define_register_constraint "wj"):
7189         Delete.
7190         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7191         RS6000_CONSTRAINT_wj.
7192         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7193         (rs6000_init_hard_regno_mode_ok): Adjust.
7194         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
7195         (VS_64dm): Delete.
7196         * config/rs6000/vsx.md: Ditto.
7197         * doc/md.texi (Machine Constraints): Adjust.
7199 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7201         * config/rs6000/constraints.md (define_register_constraint "wh"):
7202         Delete.
7203         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7204         RS6000_CONSTRAINT_wh.
7205         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7206         (rs6000_init_hard_regno_mode_ok): Adjust.
7207         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
7208         * doc/md.texi (Machine Constraints): Adjust.
7210 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
7212         PR target/90547
7213         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
7214         Avoid calling gen_lowpart with CONST operand.
7216 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
7218         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
7219         field template_last_to_copy.
7220         (ssa_create_duplicates): Set it, and use it.  Attempt to
7221         preserve more debug stmts.
7223 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
7225         * config/i386/sse.md (VF1_AVX2): New mode iterator.
7226         (signbit<mode>2): New expander
7228 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
7230         PR bootstrap/87338
7231         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
7232         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
7234 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
7236         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
7237         %ebx and %ecx bafore calling cpuid with leaf 1 or
7238         non-constant leaf argument.
7240 2019-05-21  Alan Modra  <amodra@gmail.com>
7242         PR target/90545
7243         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
7244         power9 direct move cost.
7245         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
7246         Correct comments and rename functions to suit parameters.
7248 2019-05-21  Richard Biener  <rguenther@suse.de>
7250         PR middle-end/90510
7251         * fold-const.c (fold_read_from_vector): New function.
7252         * fold-const.h (fold_read_from_vector): Declare.
7253         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
7254         single-element insert permutations.  Canonicalize selector
7255         further and fix issue with last commit.
7257 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
7259         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
7260         parameter with default value false to declaration.
7261         (split_edges_for_insertion): New inline function.  Wrapper for
7262         split_critical_edges with for_edge_insertion_p = true.
7263         * tree-cfg.c (split_critical_edges): Don't split non-critical
7264         edges if for_edge_insertion_p is false.  Fix whitespace.
7265         * tree-ssa-pre.c (pass_pre::execute): Call
7266         split_edges_for_insertion instead of split_critical_edges.
7267         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
7268         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
7269         (pass_data_sink_code): Update function name in the comment.
7271 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
7273         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
7274         around is_value_included_in that knows how to handle BIT_AND_EXPR.
7275         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
7276         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
7277         positives.
7279 2019-05-21  Martin Liska  <mliska@suse.cz>
7281         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
7282         an extra newline.
7283         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
7284         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
7285         vec_lvsr.
7286         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7287         Quote a C type.
7288         (rs6000_function_arg): Likewise.
7289         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
7290         (rs6000_expand_ternop_builtin): Use interval syntax.
7291         (get_element_number): Likewise.
7292         (altivec_expand_builtin): Likewise.
7293         (rs6000_get_function_versions_dispatcher): Quote target_clones.
7295 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
7297         PR c++/59813
7298         PR target/90418
7299         * function.h (struct function): Add calls_eh_return member.
7300         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
7301         gimplifying __builtin_eh_return call.
7302         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
7303         to cfun.
7304         (expand_call_inline): Or in src_cfun->calls_eh_return into
7305         dst_cfun->calls_eh_return.
7306         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
7307         cfun->calls_eh_return.
7308         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
7309         * lto-streamer-out.c (output_struct_function_base): Write
7310         calls_eh_return.
7312 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
7314         PR rtl-optimization/43147
7315         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
7316         IX86_BUILTIN_SHUFPD.
7318 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
7320         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
7321         (refs_may_alias_p_1): ... here; update stats.
7322         (refs_may_alias_p): Do not update stats here.
7324 2019-05-20  Richard Biener  <rguenther@suse.de>
7326         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
7327         doesn't produce pointers.
7328         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
7329         the first operand points to.
7331 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
7333         * tree-ssa-alias.c (compare_sizes): New function.
7334         (sompare_type_sizes): New function
7335         (aliasing_component_refs_p): Use it.
7336         (indirect_ref_may_alias_decl_p): Likewise.
7338 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7340         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
7342 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7344         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
7345         (LIBLSAN_EARLY_SPEC): Likewise.
7346         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
7348 2019-05-20  Martin Liska  <mliska@suse.cz>
7350         * config/i386/i386.c (ix86_libc_has_fast_function):
7351         Add ATTRIBUTE_UNUSED for the argument.
7353 2019-05-20  Richard Biener  <rguenther@suse.de>
7355         * gimple-match-head.c: Include vec-perm-indices.h.
7356         * generic-match-head.c: Likewise.
7357         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
7358         is included.
7359         * fold-const.c (fold_vec_perm): Export.
7360         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
7361         (match.pd): ...here.
7363 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
7365         * cfgloop.h (struct loop): Add simdlen member.
7366         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
7367         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
7368         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
7369         as new argument to autovectorize_vector_sizes target hook.  If
7370         loop->simdlen, pick up vector size where the vectorization factor
7371         is equal to loop->simd, and if there is none, fall back to the first
7372         successful one.
7373         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
7374         caller.
7375         * omp-low.c (omp_clause_aligned_alignment): Likewise.
7376         * omp-general.c (omp_max_vf): Likewise.
7377         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
7378         * tree-vect-slp.c (vect_slp_bb): Likewise.
7379         * target.def (autovectorize_vector_sizes): Add ALL argument and
7380         document it.
7381         * doc/tm.texi: Adjust documentation.
7382         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
7383         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
7384         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
7385         bool argument.
7386         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
7387         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
7388         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
7389         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
7390         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
7391         preferred vector size is not 512-bit or 256-bit, just put those
7392         unpreferred ones last.
7394 2019-05-20  Martin Liska  <mliska@suse.cz>
7396         * targhooks.c (default_libc_has_fast_function): New function.
7397         * targhooks.h (default_libc_has_fast_function): Likewise.
7399 2019-05-20  Martin Liska  <mliska@suse.cz>
7401         PR middle-end/90263
7402         * builtins.c (expand_builtin_memory_copy_args): When having a
7403         target with fast mempcpy implementation do now use memcpy.
7404         * config/i386/i386.c (ix86_libc_has_fast_function): New.
7405         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
7406         * doc/tm.texi: Likewise.
7407         * doc/tm.texi.in: Likewise.
7408         * target.def:
7409         * expr.c (emit_block_move_hints): Add 2 new arguments.
7410         * expr.h (emit_block_move_hints): Bail out when libcall
7411         to memcpy would be used.
7413 2019-05-20  Martin Liska  <mliska@suse.cz>
7415         * profile-count.c: Add vertical spacing in order
7416         to separate functions.
7417         * profile-count.h: Likewise.
7419 2019-05-20  Martin Liska  <mliska@suse.cz>
7421         * profile-count.h: Do not use full qualified
7422         names if possible.
7423         * profile-count.c (profile_count::to_frequency): Likewise.
7425 2019-05-20  Martin Liska  <mliska@suse.cz>
7427         * profile-count.h (enum profile_quality): Use capital letters
7428         for enum value names.  Use the adjusted names.
7429         * profile-count.c: Use the adjusted names.
7431 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7433         * config/rs6000/constraints.md (define_register_constraint "wH"):
7434         Delete.
7435         (define_register_constraint "wI"): Delete.
7436         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7437         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
7438         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7439         (rs6000_init_hard_regno_mode_ok): Adjust.
7440         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
7441         resp. "d", or with "wa" as appropriate, all with "p8v".
7442         * config/rs6000/vsx.md: Ditto.
7443         * doc/md.texi (Machine Constraints): Adjust.
7445 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7447         * config/rs6000/constraints.md (define_register_constraint "wy"):
7448         Delete.
7449         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7450         RS6000_CONSTRAINT_wy.
7451         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7452         (rs6000_init_hard_regno_mode_ok): Adjust.
7453         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
7454         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
7455         (define_mode_attr Fisa): New.
7456         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
7457         * doc/md.texi (Machine Constraints): Adjust.
7459 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7461         * config/rs6000/constraints.md (define_register_constraint "wu"):
7462         Delete.
7463         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7464         RS6000_CONSTRAINT_wu.
7465         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7466         (rs6000_init_hard_regno_mode_ok): Adjust.
7467         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
7468         both with "p8v".
7469         (define_mode_attr Fa): Delete.
7470         * config/rs6000/vsx.md: Ditto.
7471         * doc/md.texi (Machine Constraints): Adjust.
7473 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7475         * config/rs6000/constraints.md (define_register_constraint "wJ"):
7476         Delete.
7477         (define_register_constraint "wK"): Delete.
7478         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7479         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
7480         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7481         (rs6000_init_hard_regno_mode_ok): Adjust.
7482         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
7483         Replace "wK" constraint by "wH" with "p9v".
7484         * config/rs6000/vsx.md: Ditto.
7485         * doc/md.texi (Machine Constraints): Adjust.
7487 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7489         * config/rs6000/constraints.md (define_register_constraint "wb"):
7490         Delete.
7491         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7492         RS6000_CONSTRAINT_wb.
7493         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7494         (rs6000_init_hard_regno_mode_ok): Adjust.
7495         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
7496         * config/rs6000/vsx.md: Ditto.
7497         * doc/md.texi (Machine Constraints): Adjust.
7499 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7501         * config/rs6000/constraints.md (define_register_constraint "wo"):
7502         Delete.
7503         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7504         RS6000_CONSTRAINT_wo.
7505         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7506         (rs6000_init_hard_regno_mode_ok): Adjust.
7507         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
7508         * config/rs6000/altivec.md: Ditto.
7509         * doc/md.texi (Machine Constraints): Adjust.
7511 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
7513         * config/darwin-c.c (darwin_register_objc_includes): Do not
7514         prepend the sysroot when building gnu-runtime header search
7515         paths.
7517 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
7519         * config/darwin.c (darwin_file_end): Use switch_to_section ()
7520         instead of direct output of the asm.
7522 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
7524         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
7525         argument to be type bool (was int before).
7526         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
7527         at first use.  Use type bool for some variables.  Fix a theoretical
7528         eh_return bug for svr4.
7530 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
7532         * config/rs6000/rs6000.md (isa): New attribute.
7533         (enabled): New attribute.
7535 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
7537         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
7538         assemble_start_function and assemble_end_function.
7540 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
7542         PR middle-end/89433
7543         * omp-general.c (oacc_verify_routine_clauses): Change formal
7544         parameters.  Add checking if already marked with an OpenACC
7545         'routine' directive.  Adjust all users.
7547         PR middle-end/89433
7548         * omp-general.c (oacc_build_routine_dims): Move some of its
7549         processing into...
7550         (oacc_verify_routine_clauses): ... this new function.
7551         * omp-general.h (oacc_verify_routine_clauses): New prototype.
7553 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
7555         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
7556         formating of picbase labels to match other ports.
7558 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
7560         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
7561         in the generated code.
7563 2019-05-16  Martin Sebor  <msebor@redhat.com>
7565         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
7566         identifiers, keywords, operators, and types in diagnostics.  Correct
7567         quoting, spelling, and sentence capitalization issues.
7568         (expand_builtin_atomic_is_lock_free): Same.
7569         (fold_builtin_next_arg): Same.
7570         * cfgexpand.c (expand_one_var): Same.
7571         (tree_conflicts_with_clobbers_p): Same.
7572         (expand_asm_stmt): Same.
7573         (verify_loop_structure): Same.
7574         * cgraphunit.c (process_function_and_variable_attributes): Same.
7575         * collect-utils.c (collect_execute): Same.
7576         * collect2.c (maybe_run_lto_and_relink): Same.
7577         (is_lto_object_file): Same.
7578         (scan_prog_file): Same.
7579         * convert.c (convert_to_real_1): Same.
7580         * dwarf2out.c (dwarf2out_begin_prologue): Same.
7581         * except.c (verify_eh_tree): Same.
7582         * gcc.c (execute): Same.
7583         (eval_spec_function): Same.
7584         (run_attempt): Same.
7585         (driver::set_up_specs): Same.
7586         (compare_debug_auxbase_opt_spec_function): Same.
7587         * gcov-tool.c (unlink_gcda_file): Same.
7588         (do_merge): Same.
7589         (do_rewrite): Same.
7590         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
7591         * gimplify.c (gimplify_asm_expr): Same.
7592         (gimplify_adjust_omp_clauses): Same.
7593         * hsa-gen.c (gen_hsa_addr_insns): Same.
7594         (gen_hsa_insns_for_load): Same.
7595         (gen_hsa_cmp_insn_from_gimple): Same.
7596         (gen_hsa_insns_for_operation_assignment): Same.
7597         (gen_get_level): Same.
7598         (gen_hsa_alloca): Same.
7599         (omp_simple_builtin::generate): Same.
7600         (gen_hsa_atomic_for_builtin): Same.
7601         (gen_hsa_insns_for_call): Same.
7602         * input.c (dump_location_info): Same.
7603         * ipa-devirt.c (compare_virtual_tables): Same.
7604         * ira.c (ira_setup_eliminable_regset): Same.
7605         * lra-assigns.c (lra_assign): Same.
7606         * lra-constraints.c (lra_constraints): Same.
7607         * lto-streamer-in.c (lto_input_mode_table): Same.
7608         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
7609         (merge_and_complain): Same.
7610         (compile_offload_image): Same.
7611         (compile_images_for_offload_targets): Same.
7612         (debug_objcopy): Same.
7613         (run_gcc): Same.
7614         (main): Same.
7615         * opts.c (print_specific_help): Same.
7616         (parse_no_sanitize_attribute): Same.
7617         (print_help): Same.
7618         (handle_param): Same.
7619         * plugin.c (add_new_plugin): Same.
7620         (parse_plugin_arg_opt): Same.
7621         (try_init_one_plugin): Same.
7622         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
7623         operators, and types in diagnostics.  Correct quoting and spelling
7624         issues.
7625         * read-rtl-function.c (parse_edge_flag_token): Same.
7626         (function_reader::parse_enum_value): Same.
7627         * reg-stack.c (check_asm_stack_operands): Same.
7628         * regcprop.c (validate_value_data): Same.
7629         * sched-rgn.c (make_pass_sched_fusion): Same.
7630         * stmt.c (check_unique_operand_names): Same.
7631         * targhooks.c (default_target_option_pragma_parse): Same.
7632         * tlink.c (recompile_files): Same.
7633         * toplev.c (process_options): Same.
7634         (do_compile): Same.
7635         * trans-mem.c (diagnose_tm_1): Same.
7636         (ipa_tm_scan_irr_block): Same.
7637         (ipa_tm_diagnose_transaction): Same.
7638         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
7639         format a tree code name in a diagnostic.
7640         (verify_types_in_gimple_min_lval): Same.
7641         (verify_types_in_gimple_reference): Same.
7642         (verify_gimple_call): Same.
7643         (verify_gimple_assign_unary): Same.
7644         (verify_gimple_assign_binary): Same.
7645         (verify_gimple_assign_ternary): Same.
7646         (verify_gimple_assign_single): Same.
7647         (verify_gimple_switch): Same.
7648         (verify_gimple_label): Same.
7649         (verify_gimple_phi): Same.
7650         (verify_gimple_in_seq): Same.
7651         (verify_eh_throw_stmt_node): Same.
7652         (collect_subblocks): Same.
7653         (gimple_verify_flow_info): Same.
7654         (do_warn_unused_result): Same.
7655         * tree-inline.c (expand_call_inline): Same.
7656         * tree-into-ssa.c (update_ssa): Same.
7657         * tree.c (tree_int_cst_elt_check_failed): Same.
7658         (tree_vec_elt_check_failed): Same.
7659         (omp_clause_operand_check_failed): Same.
7660         (verify_type_variant): Same.
7661         (verify_type): Same.
7662         * value-prof.c (verify_histograms): Same.
7663         * varasm.c (assemble_start_function): Same.
7665 2019-05-16  Martin Sebor  <msebor@redhat.com>
7667         * config/i386/i386-expand.c (get_element_number): Quote keywords
7668         and other internal names in diagnostics.  Adjust other diagnostic
7669         formatting issues noted by -Wformat-diag.
7670         * config/i386/i386-features.c
7671         (ix86_mangle_function_version_assembler_name): Same.
7672         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
7673         * config/i386/i386.c (ix86_function_type_abi): Same.
7674         (ix86_function_ms_hook_prologue): Same.
7675         (classify_argument): Same.
7676         (ix86_expand_prologue): Same.
7677         (ix86_md_asm_adjust): Same.
7678         (ix86_memmodel_check): Same.
7680 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
7682         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
7683         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
7684         and fpxx modes.
7686 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7688         PR target/90497
7689         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
7690         intrinsics without SSE/SSE2/SSSE3.
7691         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
7692         check.
7693         (*mmx_uavgv8qi3): Likewise.
7695 2019-05-17  Richard Biener  <rguenther@suse.de>
7697         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
7698         VEC_PERM_EXPR as __VEC_PERM with -gimple.
7700 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
7702         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
7703         vec_sldw insn pattern.
7705 2019-05-17  Richard Biener  <rguenther@suse.de>
7707         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
7709 2019-05-17  Martin Liska  <mliska@suse.cz>
7711         PR driver/90496
7712         * toplev.c (output_stack_usage): With LTO and sanitizer it
7713         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
7714         has no file location.
7716 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7718         PR c++/90484
7719         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
7720         sz0 is equal to sz1, instead return false in that case.
7722         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
7723         has non-constant expression, force sctx.lane and use two
7724         argument IFN_GOMP_SIMD_LANE instead of single argument.
7725         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
7726         two argument IFN_GOMP_SIMD_LANE without lhs.
7727         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
7728         member.
7729         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7730         Define.
7731         (LOOP_REQUIRES_VERSIONING): Or in
7732         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
7733         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7734         simd_if_cond.
7735         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
7736         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
7737         from simd if clause if needed.
7739 2019-05-16  Richard Biener  <rguenther@suse.de>
7741         * tree-affine.c (expr_to_aff_combination): New function split
7742         out from...
7743         (tree_to_aff_combination): ... here.
7744         (aff_combination_expand): Avoid building a GENERIC tree.
7746 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
7748         * cgraphunit.c (cgraph_node::expand_thunk): Remove
7749         assemble_start_function and assemble_end_function calls.
7750         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
7751         assemble_start_function and assemble_end_function.
7752         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
7753         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
7754         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
7755         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
7756         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
7757         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
7758         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
7759         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
7760         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7761         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7762         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7763         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
7764         Likewise.
7765         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7766         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
7767         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
7768         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
7769         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7770         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7771         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
7772         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
7773         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7774         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7775         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7776         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7777         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
7778         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
7779         Likewise.
7780         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7781         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7782         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
7784 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
7786         * tree-ssa-alias.c (alias_stats): Add
7787         aliasing_component_refs_p_may_alias and
7788         aliasing_component_refs_p_no_alias.
7789         (dump_alias_stats): Print aliasing_component_refs_p stats.
7790         (aliasing_component_refs_p): Update stats.
7792 2019-05-16  Martin Liska  <mliska@suse.cz>
7794         PR lto/90500
7795         * multiple_target.c (expand_target_clones): Do not allow
7796         target_clones being used with a symbol that is an alias.
7798 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
7800         PR tree-optimization/90394
7801         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
7802         positives rather than ICE for cases where (code2 == NE_EXPR
7803         && code1 == BIT_AND_EXPR).
7805 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7807         PR fortran/90329
7808         * tree-core.h (struct tree_decl_common): Document
7809         decl_nonshareable_flag for PARM_DECLs.
7810         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
7811         * calls.c (expand_call): Don't try tail call if caller
7812         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
7813         passed on the stack and callee needs to pass any arguments on the
7814         stack.
7815         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7816         else if instead of series of mutually exclusive ifs.  Handle
7817         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
7818         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7820         * lto-streamer.h (LTO_major_version): Bump to 9.
7822 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
7824         PR tree-optimization/90106
7825         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
7826         new parameter as new internal function call, also move it to new
7827         basic block.
7828         (use_internal_fn): Pass internal function call to
7829         shrink_wrap_one_built_in_call_with_conds.
7831 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
7833         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7834         max_vf to 1.
7835         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7836         safelen_int and set loop->dont_vectorize.
7838 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7840         PR target/89021
7841         * config/i386/i386-builtin.def: Enable MMX intrinsics with
7842         SSE/SSE2/SSSE3.
7843         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7844         Likewise.
7845         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
7846         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
7847         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
7848         is defined.
7850 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7852         PR target/89021
7853         * config/i386/mmx.md (*vec_dupv2sf): Changed to
7854         define_insn_and_split to support SSE emulation.
7855         (*vec_extractv2sf_0): Likewise.
7856         (*vec_extractv2sf_1): Likewise.
7857         (*vec_extractv2si_0): Likewise.
7858         (*vec_extractv2si_1): Likewise.
7859         (*vec_extractv2si_zext_mem): Likewise.
7860         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
7861         (vec_extractv2sf_1 splitter): Likewise.
7862         (vec_extractv2sfsf): Likewise.
7863         (vec_setv2si): Likewise.
7864         (vec_extractv2si_1 splitter): Likewise.
7865         (vec_extractv2sisi): Likewise.
7866         (vec_setv4hi): Likewise.
7867         (vec_extractv4hihi): Likewise.
7868         (vec_setv8qi): Likewise.
7869         (vec_extractv8qiqi): Likewise.
7870         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7871         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
7872         (vec_extractv2sisi): Likewise.
7873         (vec_extractv4hihi): Likewise.
7874         (vec_extractv8qiqi): Likewise.
7875         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7876         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
7877         (vec_initv2sisi): Likewise.
7878         (vec_initv4hihi): Likewise.
7879         (vec_initv8qiqi): Likewise.
7880         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
7881         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
7882         (vec_setv4hi): Likewise.
7883         (vec_setv8qi): Likewise.
7885 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7887         PR target/89021
7888         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
7889         TARGET_MMX_WITH_SSE.
7890         (MMXMODE:*mov<mode>_internal): Likewise.
7891         (MMXMODE:movmisalign<mode>): Likewise.
7893 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
7895         PR target/89021
7896         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
7897         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
7898         (sse2_cvtpd2pi): Ditto.
7899         (sse2_cvttpd2pi): Ditto.
7900         (*vec_concatv2sf_sse4_1): Ditto.
7901         (*vec_concatv2sf_sse): Ditto.
7902         (*vec_concatv2si_sse4_1): Ditto.
7903         (*vec_concatv2si): Ditto.
7904         (*vec_concatv4si_0): Ditto.
7905         (*vec_concatv2di_0): Ditto.
7907 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7909         PR target/89021
7910         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7912 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7914         PR target/89021
7915         * config/i386/sse.md (ssse3_palignrdi): Changed to
7916         define_insn_and_split to support SSE emulation.
7918 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7920         PR target/89021
7921         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7923 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7925         PR target/89021
7926         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7927         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
7928         SSE emulation.
7930 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7932         PR target/89021
7933         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7934         or TARGET_MMX_WITH_SSE.
7935         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7937 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7939         PR target/89021
7940         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7942 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7944         PR target/89021
7945         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7946         Changed to define_insn_and_split to support SSE emulation.
7948 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7950         PR target/89021
7951         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7952         Changed to define_insn_and_split to support SSE emulation.
7954 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7956         PR target/89021
7957         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7958         (*mmx_<emms>): This.
7959         (mmx_<emms>): New expander.
7961 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7963         PR target/89021
7964         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7965         support.
7966         (*sse2_umulv1siv1di3): Add SSE2 emulation.
7968 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7970         PR target/89021
7971         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7973 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7975         PR target/89021
7976         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7978 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7980         PR target/89021
7981         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7982         TARGET_MMX_WITH_SSE.
7983         (*mmx_uavgv4hi3): Add SSE emulation.
7985 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7987         PR target/89021
7988         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7989         and TARGET_MMX_WITH_SSE.
7990         (*mmx_uavgv8qi3): Add SSE emulation.
7992 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7994         PR target/89021
7995         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7996         maskmovdqu for __MMX_WITH_SSE__.
7998 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8000         PR target/89021
8001         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
8002         TARGET_MMX and TARGET_MMX_WITH_SSE.
8003         (*mmx_umulv4hi3_highpart): Add SSE emulation.
8005 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8007         PR target/89021
8008         * config/i386/mmx.md (mmx_pmovmskb): Changed to
8009         define_insn_and_split to support SSE emulation.
8011 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8013         PR target/89021
8014         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
8015         and TARGET_MMX_WITH_SSE.
8016         (mmx_<code>v8qi3): Likewise.
8017         (smaxmin:<code>v4hi3): New.
8018         (umaxmin:<code>v8qi3): Likewise.
8019         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
8020         (umaxmin:*mmx_<code>v8qi3): Likewise.
8022 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8024         PR target/89021
8025         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
8026         TARGET_MMX_WITH_SSE.
8027         (*mmx_pinsrw): Add SSE emulation.
8029 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8031         PR target/89021
8032         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
8034 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8036         PR target/89021
8037         * config/i386/sse.md (sse_cvtpi2ps): Changed to
8038         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
8039         SSE emulation.
8041 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8043         PR target/89021
8044         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
8045         (sse_cvttps2pi): Likewise.
8047 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8049         PR target/89021
8050         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
8051         TARGET_MMX_WITH_SSE.
8052         (mmx_pshufw_1): Add SSE emulation.
8053         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
8054         TARGET_MMX_WITH_SSE to support SSE emulation.
8056 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8058         PR target/89021
8059         * config/i386/constraints.md (Yw): New constraint.
8060         * config/i386/mmx.md (*vec_dupv2si): Changed to
8061         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
8062         support SSE emulation.
8064 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8066         PR target/89021
8067         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
8068         TARGET_MMX_WITH_SSE.
8069         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
8070         support.
8071         (mmx_gt<mode>3): Likewise.
8073 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8075         PR target/89021
8076         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
8077         TARGET_MMX_WITH_SSE.  Add SSE support.
8079 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8081         PR target/89021
8082         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
8083         TARGET_MMX_WITH_SSE.
8084         (any_logic:<code><mode>3): New.
8085         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
8086         Add SSE support.
8088 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8090         PR target/89021
8091         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
8092         TARGET_MMX_WITH_SSE.  Add SSE emulation.
8093         (mmx_<shift_insn><mode>3): Likewise.
8094         (ashr<mode>3): New.
8095         (<shift_insn><mode>3): Likewise.
8097 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8099         PR target/89021
8100         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
8101         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
8103 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8105         PR target/89021
8106         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
8107         TARGET_MMX_WITH_SSE.
8108         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
8109         SSE support.
8111 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8113         PR target/89021
8114         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
8115         TARGET_MMX_WITH_SSE.
8116         (mulv4hi3): New.
8117         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
8118         support.
8120 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8122         PR target/89021
8123         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
8124         (plusminus:mmx_<plusminus_insn><mode>3): Check
8125         TARGET_MMX_WITH_SSE.
8126         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
8127         (<plusminus_insn><mode>3): New.
8128         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
8129         (*mmx_<plusminus_insn><mode>3): Likewise.
8131 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8133         PR target/89021
8134         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
8135         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
8136         prototype.
8137         * config/i386/mmx.m (mmx_punpckhbw): Changed to
8138         define_insn_and_split to support SSE emulation.
8139         (mmx_punpcklbw): Likewise.
8140         (mmx_punpckhwd): Likewise.
8141         (mmx_punpcklwd): Likewise.
8142         (mmx_punpckhdq): Likewise.
8143         (mmx_punpckldq): Likewise.
8145 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8146             Uros Bizjak  <ubizjak@gmail.com>
8148         PR target/89021
8149         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
8150         New function.
8151         (ix86_split_mmx_pack): Likewise.
8152         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
8153         New prototype.
8154         (ix86_split_mmx_pack): Likewise.
8155         * config/i386/i386.md (mmx_isa): New.
8156         (enabled): Also check mmx_isa.
8157         * config/i386/mmx.md (any_s_truncate): New code iterator.
8158         (s_trunsuffix): New code attr.
8159         (mmx_packsswb): Removed.
8160         (mmx_packssdw): Likewise.
8161         (mmx_packuswb): Likewise.
8162         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
8163         MMX packsswb/packuswb with SSE2.
8164         (mmx_packssdw): Likewise.
8165         * config/i386/predicates.md (register_mmxmem_operand): New.
8167 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8169         PR target/89021
8170         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8171         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
8172         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
8173         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
8174         (ix86_vector_mode_supported_p): Likewise.
8175         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
8177 2019-05-15  Martin Liska  <mliska@suse.cz>
8179         PR middle-end/90478
8180         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
8181         Check for overflow.
8183 2019-05-15  Richard Biener  <rguenther@suse.de>
8185         * tree-into-ssa.c (pass_build_ssa::execute): Run
8186         update_address_taken before going into SSA.
8188 2019-05-15  Richard Biener  <rguenther@suse.de>
8190         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
8191         as __BIT_FIELD_REF with type with -gimple.
8193 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
8195         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
8196         semantically equivalent branches (left over after prior refactorings).
8198 2019-05-15  Richard Biener  <rguenther@suse.de>
8200         PR tree-optimization/88828
8201         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
8202         bogus check.
8204 2019-05-14  Richard Biener  <rguenther@suse.de>
8206         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
8207         as __VIEW_CONVERT with -gimple.
8209 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
8211         PR target/82920
8212         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
8213         Darwin.
8215 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
8217         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
8218         define_split to become a define_insn_and_split.
8220 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
8222         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
8223         arguments.
8224         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
8225         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
8226         (sibcall_epilogue): Adjust.
8227         (epilogue): Adjust.
8229 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8231         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
8232         to unsupported ones.
8233         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
8234         * config.host: Likewise.
8235         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
8236         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
8237         __svr4__]: Remove "brand" fallback.
8238         [!KSTAT_DATA_STRING]: Remove.
8239         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
8240         to *-*-solaris2*.
8241         (comdat_group): Likewise.
8242         (set_have_as_tls): Likewise.
8243         (gcc_cv_target_dl_iterate_phdr): Likewise.
8244         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
8245         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
8246         * configure: Regenerate.
8247         * doc/install.texi: Simplify Solaris target triplets.
8248         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
8249         (Specific, *-*-solaris2*): Document Solaris 10 removal.
8250         Remove Solaris 10 references.
8251         Remove obsolete Solaris bug reference.
8252         (Specific, sparc-sun-solaris2.10): Remove.
8254 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
8256         * config/i386/i386.md (any_div): New code iterator.
8257         (paired_mod): New code attribute.
8258         (sgnprefix): Handle DIV and UDIV RTXes.
8259         (u): Ditto.
8260         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
8261         and udivmod<mode>4 patterns using any_div code iterator.
8262         (divmod splitters): Macroize splitters using any_div code iterator.
8263         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
8264         (*udivmodsi4_pow2_zext_2): Ditto.
8265         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
8266         and *udivmod<mode>4_noext patterns using any_div code iterator.
8267         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
8268         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
8269         patterns using any_div code iterator.
8270         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
8271         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
8272         patterns using any_div code iterator.
8273         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
8274         udivmodhiqi3 patterns using any_extend code iterator.
8276 2019-05-14  Richard Biener  <rguenther@suse.de>
8277             H.J. Lu  <hongjiu.lu@intel.com>
8279         PR tree-optimization/88828
8280         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
8281         permuting in a single non-constant element not extracted
8282         from a vector.
8284 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
8286         * internal-fn.def (SIGNBIT): New.
8287         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
8288         defined.
8289         (signbitv4sf2): Likewise.
8291 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
8293         PR target/90357
8294         * config/mips/mips.c (mips_split_move): Skip forward SRC into
8295         next insn when the SRC reg is dead.
8297 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
8299         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
8300         (alloc_cand_and_find_basis): Ditto.
8301         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
8302         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
8303         (create_add_imm_cand, slsr_process_cast): Ditto.
8304         (slsr_process_copy, replace_mult_candidate): Ditto.
8305         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
8306         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
8307         (pass_strength_reduction::execute): Init the first NULL element.
8309 2019-05-13  Nathan Sidwell  <nathan@acm.org>
8311         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
8312         (run_attempt): Reformat line break.
8314 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
8316         PR target/90418
8317         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
8318         data registers in sibcall epilogues.
8319         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
8321 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
8323         PR target/89221
8324         * configure.ac (--enable-frame-pointer):
8325         Disable by default for cygwin and mingw.
8326         * configure: Regenerate.
8328 2019-05-13  Nathan Sidwell  <nathan@acm.org>
8330         * dwarf2out.c (breakout_comdat_types): Move comment to correct
8331         piece of code.
8332         (const_ok_for_output_1): Balance parens around #if/#else/#endif
8333         (gen_member_die): Move abstract origin check earlier.  Only VARs
8334         can be static_inline_p.  Simplify splicing control flow.
8336 2019-05-13  Richard Biener  <rguenther@suse.de>
8338         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
8339         VIEW_CONVERT_EXPR.
8340         (vect_build_slp_tree_1): Likewise.
8342 2019-05-13  Richard Biener  <rguenther@suse.de>
8344         PR tree-optimization/90402
8345         * tree-if-conv.c (tree_if_conversion): Value number only
8346         the loop body by making the latch an exit of the region
8347         as well.
8348         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
8349         processing PHIs.
8350         (do_rpo_vn): Deal with multiple edges into the entry block
8351         that are not backedges inside the region by skipping PHIs
8352         of the entry block.
8354 2019-05-13  Richard Biener  <rguenther@suse.de>
8356         PR tree-optimization/90316
8357         * tree-ssa-pre.c (insert_aux): Fold into ...
8358         (insert): ... this function.  Use a RPO walk to reduce the
8359         number of required iterations.
8361 2019-05-13  Martin Liska  <mliska@suse.cz>
8363         PR tree-optimization/90416
8364         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
8365         string instead of passing the second part as va_arg argument.
8367 2019-05-13  Martin Liska  <mliska@suse.cz>
8369         PR gcov-profile/90380
8370         * gcov.c (handle_cycle): Do not support zero cycle count,
8371         it should not be possible.
8372         (path_contains_zero_cycle_arc): New function.
8373         (circuit): Ignore zero cycle arc counts.
8375 2019-05-13  Martin Liska  <mliska@suse.cz>
8377         PR gcov-profile/90380
8378         * gcov.c (enum loop_type): Remove the enum and
8379         the operator.
8380         (handle_cycle): Assert that we should not reach
8381         a negative count.
8382         (circuit): Use loop_found instead of a tri-state loop_type.
8383         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
8384         happen.
8386 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
8388         PR target/82920
8389         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
8390         (ix86_output_indirect_branch_via_reg): Use output mechanism
8391         accounting for __USER_LABEL_PREFIX__.
8392         (ix86_output_indirect_branch_via_push): Likewise.
8393         (ix86_output_function_return): Likewise.
8394         (ix86_output_indirect_function_return): Likewise.
8396 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
8398         * doc/md.texi: Document use of code attributes in rtx patterns.
8399         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
8400         * read-rtl.c (find_code): Split out search loops into...
8401         (maybe_find_code): ...this new function.
8402         (check_code_iterator): Make the error message more informative.
8403         (check_code_attribute): New function.
8404         (rtx_reader::rtx_alloc_for_name): Likewise.
8405         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
8406         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
8407         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
8408         <max_opp> directly as an rtx code instead of via a match_operator.
8409         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
8410         (<su>abd<mode>_3): Update accordingly.
8412 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
8414         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
8415         is given, print the state of the EH "save world" computation for
8416         Darwin.
8418 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
8420         PR c++/59813
8421         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
8422         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
8424 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
8426         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
8427         Use pinsrd for TARGET_SSE4_1.
8428         * config/i386/sse.md (movdi_to_sse): Ditto.
8430 2019-05-10  Richard Biener  <rguenther@suse.de>
8432         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
8433         (do_rpo_vn): Initialize next_value_id.
8435 2019-05-10  Martin Liska  <mliska@suse.cz>
8437         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8438         Fix plural form.
8440 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
8442         PR tree-optimization/90385
8443         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
8444         arguments of the exit phis.
8446         PR c++/90383
8447         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
8448         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
8449         id->do_not_fold.
8450         (copy_tree_body_r): Likewise.
8451         (copy_fn): Set id.do_not_fold to true.
8453 2019-05-10  Martin Liska  <mliska@suse.cz>
8455         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
8456         Reapply changes from r269790.
8458 2019-05-10  Martin Liska  <mliska@suse.cz>
8460         PR middle-end/90340
8461         * doc/invoke.texi: New params.
8462         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
8463         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
8464         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
8465         Use it.
8466         * tree-switch-conversion.h (struct jump_table_cluster):
8467         Likewise.
8469 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
8471         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
8473 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
8475         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
8477 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
8479         PR rtl-optimization/88879
8480         * sel-sched.c (sel_target_adjust_priority): Remove assert.
8482 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
8484         PR target/90405
8485         * config/arm/arm.c (callee_saved_reg_p): Move before
8486         thumb_find_work_register.
8487         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
8488         thumb_find_work_register.  Only call df_get_live_out once.
8489         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
8490         (thumb_find_work_register): Use
8491         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
8492         algorithms to locate a spare call clobbered reg.
8494 2019-05-09  Martin Liska  <mliska@suse.cz>
8496         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
8497         and MAX_EXPR in GIMPLE FE format.
8499 2019-05-09  Martin Liska  <mliska@suse.cz>
8501         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
8502         * gimple-pretty-print.c (dump_gimple_bb_header):
8503         Dump BB count.
8504         (pp_cfg_jump): Dump edge probability.
8505         * profile-count.c (profile_quality_as_string): Simplify
8506         with a static array.
8507         (parse_profile_quality): New function.
8508         (profile_count::dump): Simplify with a static array.
8509         (profile_count::from_gcov_type): Add new argument.
8510         * profile-count.h (parse_profile_quality): Likewise.
8511         * predict.h (set_hot_bb_threshold): New.
8512         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8513         New param.
8514         * predict.c (get_hot_bb_threshold): Set from the new param.
8515         (set_hot_bb_threshold): New.
8517 2019-05-09  Richard Biener  <rguenther@suse.de>
8519         PR tree-optimization/90395
8520         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
8521         rewrite vector stores that throw internally.
8523 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
8525         * cif-code.def (CHKP): Remove.
8527         PR target/89221
8528         * configure.ac (--enable-frame-pointer): Disable by default for
8529         GNU systems.
8530         * configure: Regenerate.
8532 2019-05-09  Alan Modra  <amodra@gmail.com>
8534         PR target/89271
8535         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
8536         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
8537         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
8538         cost for general <-> vsx when direct moves are available.
8539         Cost union classes at minimal cost for any reg in the class.
8540         Correct calculation for moves between vsx, float, and altivec.
8541         Don't return a low cost for moves between special regs.  Don't
8542         use hard coded register numbers.
8543         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
8544         (rs6000_ira_change_pseudo_allocno_class): New function.
8545         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
8546         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
8547         alternatives.
8548         (movsi_internal1): Don't disparage vector alternatives.
8549         (mov<mode>_internal): Likewise, excepting alternative that
8550         will be split.
8551         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
8552         we <- b alternative.
8554 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
8556         PR c++/59813
8557         PR tree-optimization/89060
8558         * tree-ssa-live.h (live_vars_map): New typedef.
8559         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
8560         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
8561         (struct compute_live_vars_data): New type.
8562         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
8563         live_vars_at_stmt, destroy_live_vars): New functions.
8564         * tree-tailcall.c: Include tree-ssa-live.h.
8565         (live_vars, live_vars_vec): New global variables.
8566         (find_tail_calls): Perform variable life analysis before punting.
8567         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
8568         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
8569         member.
8570         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
8571         Perform variable life analysis to select variables that really need
8572         clobbers added.
8573         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
8574         instead set id->eh_landing_pad_dest and assert it is the same.
8575         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
8577 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
8578             Richard Earnshaw  <rearnsha@arm.com>
8580         PR target/88167
8581         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
8582         function.
8583         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
8584         (thumb1_compute_save_core_reg_mask): Don't force a spare work
8585         register if both the epilogue and prologue can use call-clobbered
8586         regs.
8587         (thumb1_unexpanded_epilogue): Use
8588         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
8589         picking temporaries for restoring high regs to match that of the
8590         prologue where possible.
8591         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
8592         the list of work registers.  Detect if the return address is still live
8593         at the end of the prologue and avoid using it for a work register if so.
8594         If the return address is not live, add LR to the list of pushable regs
8595         after the first pass.
8597 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
8599         PR tree-optimization/90078
8600         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
8601         (INFTY): Increase the value for infinite cost.
8602         (struct comp_cost): Promote type of members to int64_t.
8603         (infinite_cost): Don't set complexity in initialization.
8604         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
8605         overflows to infinite_cost.
8606         (adjust_setup_cost): Promote type of parameter and cost computation
8607         to int64_t.
8608         (struct ainc_cost_data, struct iv_ca): Promote type of member to
8609         int64_t.
8610         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
8611         cost computation to int64_t.
8612         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
8613         int64_t's format specifier in dump.
8615 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
8617         PR tree-optimization/90240
8618         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
8619         with respect to scaling factor pre-computed for each basic block.
8620         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
8621         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
8622         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
8623         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
8624         live range for array of loop's basic blocks.  Cleanup aux field of
8625         loop's basic blocks.
8627 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
8629         PR tree-optimization/90356
8630         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
8632 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
8634         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
8635         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
8636         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
8637         (ix86_handle_option): Handle -mavx512bf16.
8638         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
8639         to extra_headers.
8640         * config/i386/avx512bf16vlintrin.h: New.
8641         * config/i386/avx512bf16intrin.h: New.
8642         * config/i386/cpuid.h (bit_AVX512BF16): New.
8643         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
8644         * config/i386/i386-builtin-types.def: Add new types.
8645         * config/i386/i386-builtin.def: Add new builtins.
8646         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8647         __AVX512BF16__.
8648         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
8649         (ix86_option_override_internal): Handle BF16.
8650         (ix86_valid_target_attribute_inner_p): Ditto.
8651         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
8652         * config/i386/i386-builtin.c (enum processor_features): Add
8653         F_AVX512BF16.
8654         (static const _isa_names_table isa_names_table): Ditto.
8655         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
8656         (PTA_AVX512BF16): Ditto.
8657         * config/i386/i386.opt: Add -mavx512bf16.
8658         * config/i386/immintrin.h: Include avx512bf16intrin.h
8659         and avx512bf16vlintrin.h.
8660         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
8661         avx512f_cvtneps2bf16_<mode><mask_name>,
8662         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
8663         * config/i386/subst.md (mask_half): Add new subst.
8664         * doc/invoke.texi: Document -mavx512bf16.
8666 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
8668         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
8669         Delete declaration.
8670         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
8671         (rs6000_debug_legitimize_reload_address): Delete.
8672         (rs6000_legitimize_reload_address_ptr): Delete.
8673         (rs6000_option_override_internal): Adjust.
8674         (mem_operand_gpr): Adjust comment.
8675         (legitimate_lo_sum_address_p): Ditto.
8676         (rs6000_legitimize_reload_address): Delete.
8677         (rs6000_debug_legitimize_reload_address): Delete.
8678         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
8680 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8682         PR target/89765
8683         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8684         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
8685         to compute vector element selector for both constant and variable
8686         operands.
8688 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
8690         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
8691         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
8692         ashrdi3_cvt using SWI48 mode iterator.
8694 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
8696         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
8697         (aarch64_<su>abd<mode>_3): Likewise.
8698         (*aarch64_<su>abd<mode>_3): New define_insn.
8699         (<sur>sad<vsi2qi>): New define_expand.
8700         * config/aarch64/iterators.md: Added MAX_OPP attribute.
8701         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
8702         (build_vect_cond_expr): Likewise.
8704 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
8706         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
8707         clobbers outside of accessible_reg_set.
8708         * config/i386/i386.c (ix86_conditional_register_usage):
8709         Disable register sets by clearing corresponding bits in
8710         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
8711         call_used_regs and don't clear corresponding reg_names array members.
8713 2019-05-07  Richard Biener  <rguenther@suse.de>
8715         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8716         not specified still compute a comp_vectype for invariant
8717         compares.
8719 2019-05-07  Richard Biener  <rguenther@suse.de>
8721         PR tree-optimization/90316
8722         * tree-ssa-pre.c (translate_vuse_through_block): When
8723         same_valid is NULL do not bother to search for a virtual
8724         PHI continuation.
8725         (phi_translate_1): When operands changed we cannot keep
8726         the same value-number so do not bother to ask whether
8727         that's possible from translate_vuse_through_block.
8729 2019-05-07  Martin Liska  <mliska@suse.cz>
8731         * bitmap.c (bitmap_register): Come up with
8732         alloc_descriptor_max_uid and assign it for
8733         a new bitmap.
8734         (register_overhead): Use get_descriptor as
8735         a descriptor.
8736         (release_overhead): New.
8737         (bitmap_elem_to_freelist): Call it.
8738         (bitmap_elt_clear_from): Likewise.
8739         (bitmap_obstack_free): Likewise.
8740         (bitmap_move): Sensitively release memory.
8741         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
8742         (bitmap_initialize): Initialize alloc_descriptor to zero.
8743         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
8745 2019-05-07  Richard Biener  <rguenther@suse.de>
8747         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
8748         we build a SLP node.  Remove max_size and limiting.
8749         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
8751 2019-05-07  Richard Biener  <rguenther@suse.de>
8753         PR tree-optimization/90316
8754         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8755         limit by reference.
8756         (walk_non_aliased_vuses): Take walking limit argument.
8757         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
8758         walking if it is reached instead of just counting.
8759         (get_continuation_for_phi): Likewise.
8760         (walk_non_aliased_vuses): Likewise, instead of leaving counter
8761         limiting to the callback.
8762         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
8763         (vn_reference_lookup_3): Likewise.
8764         (vn_reference_lookup_pieces): Likewise.
8765         (vn_reference_lookup): Likewise.
8766         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
8767         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
8768         (avail_exprs_stack::lookup_avail_expr): Likewise.
8770 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
8772         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
8773         for comparaible types in the second direction even if first one
8774         hits incomparable type.
8776 2019-05-07  Richard Biener  <rguenther@suse.de>
8778         PR lto/90369
8779         * lto-wrapper.c (debug_objcopy): Use the original filename
8780         including archive offset for the filename used for -save-temps.
8782 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
8784         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8785         detection.
8787 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8788             Hongtao Liu  <hongtao.liu@intel.com>
8790         PR target/89750
8791         PR target/86444
8792         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8793         Modified, original implementation isn't correct.
8795 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8797         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
8798         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
8799         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
8800         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
8801         (FRAME_POINTER_REGNUM): Change numbering.
8802         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
8803         (alt_reg_names): Adjust.
8804         (rs6000_conditional_register_usage): Don't mark hard register 64 as
8805         fixed.
8806         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8807         (DWARF_FRAME_REGISTERS): Delete.
8808         (DWARF2_FRAME_REG_OUT): Fix whitespace.
8809         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8810         Adjust.
8811         (REG_ALLOC_ORDER): Adjust.
8812         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
8813         (REG_CLASS_CONTENTS): Adjust.
8814         (RETURN_ADDR_RTX): Change comment.
8815         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
8816         instead of 67.
8817         (REGISTER_NAMES): Adjust.
8818         (ADDITIONAL_REGISTER_NAMES): Adjust.
8819         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8821 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8823         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8824         Delete.
8825         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8826         (DWARF_FRAME_REGISTERS): Adjust.
8827         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8828         Adjust.
8829         (REG_ALLOC_ORDER): Adjust.
8830         (enum reg_class): Delete SPR_REGS.
8831         (REG_CLASS_NAMES): Delete SPR_REGS.
8832         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
8833         (REGISTER_NAMES): Adjust.
8834         (ADDITIONAL_REGISTER_NAMES): Adjust.
8835         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8836         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
8837         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
8838         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
8839         (htm_spr_regno): Delete.
8840         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
8841         argument.
8842         (rs6000_dbx_register_number): Adjust.
8844 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8846         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8848 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8850         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8851         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8853 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
8855         PR tree-optimization/88709
8856         PR tree-optimization/90271
8857         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
8858         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
8859         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
8860         variable.
8861         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
8862         of the store merging group is larger than
8863         PARAM_STORE_MERGING_MAX_SIZE parameter.
8864         (split_group): Add bzero_first argument.  If set, always emit first
8865         the first store which must be = {} of the whole area and then for the
8866         rest of the stores consider all zero bytes as paddings.
8867         (imm_store_chain_info::output_merged_store): Check if first store
8868         is = {} of the whole area and if yes, determine which setting of
8869         bzero_first for split_group gives smaller number of stores.  Adjust
8870         split_group callers.
8871         (lhs_valid_for_store_merging_p): Allow decls.
8872         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
8873         no elts.
8874         (pass_store_merging::process_store): Likewise.
8876 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8878         PR target/89424
8879         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8880         handling of V1TImode.
8882 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
8884         PR target/89221
8885         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
8886         and enable_frame_pointer ...
8887         * configure.ac: ... here.  Update help strings for
8888         --enable-frame-pointer.
8889         * configure: Regenerate.
8890         * config/i386/i386-options.c (ix86_option_override_internal): Remove
8891         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
8892         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
8893         (USE_X86_64_FRAME_POINTER): Ditto.
8895 2019-05-06  Martin Liska  <mliska@suse.cz>
8897         * config.gcc: Append to target_gtfiles and fix indentation.
8899 2019-05-06  Richard Biener  <rguenther@suse.de>
8901         PR tree-optimization/90358
8902         * tree-vect-stmts.c (get_group_load_store_type): Properly
8903         detect unused upper half of load.
8904         (vectorizable_load): Likewise.
8906 2019-05-06  Richard Biener  <rguenther@suse.de>
8908         PR tree-optimization/88828
8909         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
8910         (simplify_vector_constructor): ...here.  Handle constants in
8911         the constructor.
8913 2019-05-06  Richard Biener  <rguenther@suse.de>
8915         PR tree-optimization/90328
8916         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
8917         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
8918         is valid in the loop nest before using it.
8919         (initialize_data_dependence_relation): Adjust.
8920         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
8921         loop as loop-nest to dr_may_alias_p.
8923 2019-05-06  Richard Biener  <rguenther@suse.de>
8925         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8927 2019-05-06  Richard Biener  <rguenther@suse.de>
8929         PR tree-optimization/90316
8930         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
8931         compute target on demand.
8932         (get_continuation_for_phi): Remove code walking stmts to
8933         get to a target virtual operand which could end up being
8934         quadratic.
8936 2019-05-06  Martin Liska  <mliska@suse.cz>
8938         PR sanitizer/90312
8939         * config/i386/i386-options.c (ix86_option_override_internal): Error only
8940         when -mabi is selected to a non-default version.
8942 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
8943             Martin Liska  <mliska@suse.cz>
8945         * Makefile.in: Add lto-dump.texi.
8946         * cgraph.h: Add new functions get_visibility_string and
8947         get_symtab_type_string.
8948         * doc/gcc.texi: Include lto-dump section.
8949         * doc/lto-dump.texi: New file.
8950         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
8951         (parse_dump_option): Factor out this function.
8952         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
8953         (parse_dump_option): Export the function.
8954         * symtab.c (symtab_node::get_visibility_string): New function.
8955         (symtab_node::get_symtab_type_string): Likewise.
8957 2019-05-06  Martin Liska  <mliska@suse.cz>
8959         * config/i386/i386-builtins.c: New file.
8960         * config/i386/i386-builtins.h: New file.
8961         * config/i386/i386-expand.c: New file.
8962         * config/i386/i386-expand.h: New file.
8963         * config/i386/i386-features.c: New file.
8964         * config/i386/i386-features.h: New file.
8965         * config/i386/i386-options.c: New file.
8966         * config/i386/i386-options.h: New file.
8967         * config.gcc: Add new files into extra_objs and
8968         target_gtfiles.
8969         * config/i386/i386.c: Split content of the file
8970         into newly introduced files.
8971         * config/i386/i386.h: Declare common variables
8972         and macros.
8973         * config/i386/t-i386: Define dependencies for new files.
8975 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
8977         PR target/89400
8978         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
8979         Restrict 'all' variant to 32-bit configurations.
8980         (unaligned_loadhiu): Likewise.
8981         (unaligned_storehi): Likewise.
8982         (unaligned_storesi): Likewise.
8983         (unaligned_loadhis): Disable when compiling for thumb1.
8985 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
8987         PR tree-optimization/90269
8988         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8989         Ignore clobbers.
8991 2019-05-03  Martin Liska  <mliska@suse.cz>
8993         * hash-map.h: Add is_empty function.
8994         * hash-set.h: Likewise.
8995         * hash-table.h: Likewise.
8996         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
8997         elements () == 0 (and similar usages).
8998         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
8999         * gimplify.c (gimplify_bind_expr): Likewise.
9000         (gimplify_switch_expr): Likewise.
9001         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
9002         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
9003         * postreload-gcse.c (dump_hash_table): Likewise.
9004         (gcse_after_reload_main): Likewise.
9005         * predict.c (combine_predictions_for_bb): Likewise.
9006         * tree-parloops.c (reduction_phi): Likewise.
9007         (separate_decls_in_region): Likewise.
9008         (transform_to_exit_first_loop): Likewise.
9009         (gen_parallel_loop): Likewise.
9010         (gather_scalar_reductions): Likewise.
9011         (try_create_reduction_list): Likewise.
9012         * var-tracking.c (dump_vars): Likewise.
9013         (emit_notes_for_changes): Likewise.
9014         (vt_emit_notes): Likewise.
9016 2019-05-03  Richard Biener  <rguenther@suse.de>
9018         PR tree-optimization/90316
9019         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
9020         before running VN.
9022 2019-05-03  Richard Biener  <rguenther@suse.de>
9024         * tree-vect-stmts.c (get_group_load_store_type): Avoid
9025         peeling for gaps by loading only lower halves of vectors
9026         if possible.
9027         (vectorizable_load): Likewise.
9029 2019-05-03  Richard Biener  <rguenther@suse.de>
9031         PR middle-end/89518
9032         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
9034 2019-05-03  Richard Biener  <rguenther@suse.de>
9036         PR middle-end/87314
9037         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
9038         Handle STRING_CST vs DECL or STRING_CST.
9040 2019-05-03  Richard Biener  <rguenther@suse.de>
9042         PR tree-optimization/88963
9043         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
9044         vector loads feeding only BIT_FIELD_REFs to component
9045         loads.  Rewrite stores fed by CONSTRUCTORs to component
9046         stores.
9048 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
9050         * opts.h (finish_options): Remove lang_mask argument.
9051         (print_help, help_option_argument): Declare.
9052         * opts.c (print_help): Remove forward declaration, no longer static.
9053         (finish_options): Remove lang_mask argument, don't call print_help
9054         here.
9055         * opts-global.c (decode_options): Adjust finish_option caller, call
9056         print_help here.
9058         PR tree-optimization/90303
9059         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
9060         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
9062 2019-05-03  Richard Biener  <rguenther@suse.de>
9064         PR tree-optimization/89698
9065         * gimple-fold.c (canonicalize_constructor_val): Early out
9066         for constants, handle unfolded INTEGER_CSTs as they appear in
9067         C++ virtual table ctors.
9069 2019-05-03  Richard Biener  <rguenther@suse.de>
9071         * passes.c (execute_function_todo): Remove dead code.
9073 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
9075         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
9076         the internal register number, for any "real" register.
9078 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
9080         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
9081         correct numbers for TFHAR, TFIAR, TEXASR.
9083 2019-05-02  Richard Biener  <rguenther@suse.de>
9085         PR tree-optimization/89653
9086         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
9087         update-address-taken before the pass.
9088         * passes.def (pass_tree_loop_init): Put comment before it.
9090 2019-05-02  Richard Biener  <rguenther@suse.de>
9092         PR tree-optimization/89509
9093         * tree-ssa-structalias.c (compute_dependence_clique): Look
9094         at the first subvar when determining whether it is restrict.
9096 2019-05-02  Richard Biener  <rguenther@suse.de>
9098         PR tree-optimization/90273
9099         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
9100         useless debug stmts.
9102 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
9104         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
9105         ACLE branch.
9106         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
9107         SVE ACLE branch.
9108         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
9109         VEC_COND_EXPR be inserted to emulate a conditional internal function.
9110         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
9111         (vectorizable_reduction): Use the functions above to vectorize in a
9112         fully masked loop codes that don't have a conditional internal
9113         function.
9115 2019-05-02  Martin Liska  <mliska@suse.cz>
9117         * cgraphclones.c: Call valid_attribute_p with 1 for
9118         target_clone.
9119         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
9120         it's for target attribute.
9121         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
9122         Add new boolean argument.
9123         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9124         Likewise.
9125         (ix86_valid_target_attribute_tree): Pass target_clone_attr
9126         to ix86_valid_target_attribute_inner_p.
9127         (ix86_valid_target_attribute_p): Pass flags argument to
9128         ix86_valid_target_attribute_inner_p.
9129         (get_builtin_code_for_version): Use 0 as it's target attribute.
9131 2019-05-02  Martin Liska  <mliska@suse.cz>
9133         * gcc.c (process_command): Add dummy file only
9134         if n_infiles == 0.
9135         * opts-global.c (decode_options): Pass lang_mask.
9136         * opts.c (print_help): New function.
9137         (finish_options): Print --help if help_option_argument
9138         is set.
9139         (common_handle_option): Factor out content of OPT__help_
9140         into print_help.
9141         * opts.h (finish_options): Add new argument.
9143 2019-05-02  Martin Liska  <mliska@suse.cz>
9145         PR target/88809
9146         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
9147         With -minline-all-stringops use inline expansion using 4B loop.
9148         * doc/invoke.texi: Document the change of
9149         -minline-all-stringops.
9151 2019-05-01  Jeff Law  <law@redhat.com>
9153         PR tree-optimization/88797
9154         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
9155         PHI feeds a conditional on the RHS of an assignment.
9157 2019-04-30  Andrew Waterman  <andrew@sifive.com>
9158             Jim Wilson  <jimw@sifive.com>
9160         * config/riscv/constraints.md (L): New.
9161         * config/riscv/predicates.md (lui_operand): New.
9162         (sfb_alu_operand): New.
9163         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
9164         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
9165         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
9166         * config/riscv/risc.md (type): Add sfb_alu.
9167         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
9168         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
9169         (branch_zero<mode>): Delete.
9170         (mov<mode>cc): New.
9171         (mov<GPR:mode><X:mode>cc): Likewise.
9172         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
9174 2019-04-30  Nathan Sidwell  <nathan@acm.org>
9176         * tree.h (MARK_TS_EXP): New.
9178 2019-04-30  Martin Liska  <mliska@suse.cz>
9180         * opts.c (enable_warning_as_error): Provide hints
9181         for unknown options.
9183 2019-04-30  Martin Liska  <mliska@suse.cz>
9185         PR debug/90288
9186         * doc/invoke.texi: Add missing dash for gas-locview-support
9187         and gno-as-locview-support.
9189 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
9191         PR target/89093
9192         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
9193         whitespace at the start of target attribute string.
9195 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9197         PR target/86538
9198         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9199         Define __ARM_FEATURE_ATOMICS.
9201 2019-04-30  Martin Liska  <mliska@suse.cz>
9203         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
9204         into built_in_function enum. Remove code for endp == 2 and
9205         use BUILT_IN_* constants.
9206         (gimple_fold_builtin): Call the function with fcode.
9208 2019-04-30  Martin Liska  <mliska@suse.cz>
9210         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
9211         DECL_FUNCTION_CODE into ix86_builtins enum before
9212         the switch statement.
9214 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
9216         PR tree-optimization/89475
9217         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
9218         calls.
9220 2019-04-30  Martin Liska  <mliska@suse.cz>
9222         PR translation/90274
9223         * opts.c (print_filtered_help): Wrap string in _(...).
9225 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
9227         PR tree-optimization/90240
9228         Revert:
9229         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
9231         PR tree-optimization/90078
9232         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9233         checks for infinite_cost overflow.
9235 2019-04-29  Jeff Law  <law@redhat.com>
9237         * passes.def: Move -Wrestrict pass after copy propagation.
9239 2019-04-29  Maya Rashish  <coypu@sdf.org>
9241         * config.gcc (default_gnu_indirect_function): Default to yes
9242         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
9243         sparc*-*-netbsd*, x86_64-*-netbsd*.
9245 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
9247         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
9248         where cond2 is NE_EXPR.
9249         (is_value_included_in): Update comment.
9251 2019-04-29  Richard Biener  <rguenther@suse.de>
9253         PR tree-optimization/90278
9254         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
9255         EH on comparison simplification.
9257 2019-04-29  Jason Merrill  <jason@redhat.com>
9259         PR c++/82081 - tail call optimization breaks noexcept
9260         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
9261         nothrow function to a might-throw function into a tail call.
9263 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9265         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
9266         (DDR_INNER_LOOP): Likewise.
9267         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
9268         (initialize_data_dependence_relation): Likewise.
9269         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
9271 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
9273         PR rtl-optimization/90257
9274         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
9275         return value.
9277         Revert the revert:
9278         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9280         PR target/90178
9281         Revert:
9282         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
9284         Revert the revert:
9285         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
9287         Revert:
9288         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9290         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9292 2019-04-29  Richard Biener  <rguenther@suse.de>
9294         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
9295         rhs issue a reset.
9297 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
9299         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
9300         varasm.h, and netbsd-protos.h.
9302 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
9304         PR target/89261
9305         * config/i386/i386-protos.h (ix86_data_alignment): Change
9306         the second argument type to unsigned int.
9307         * config/i386/i386.c (ix86_data_alignment): Change "align"
9308         argument type to unsigned int.
9310 2019-04-27  Martin Liska  <mliska@suse.cz>
9312         PR middle-end/90258
9313         * opt-suggestions.c (option_proposer::build_option_suggestions):
9314         When get_valid_option_values returns empty values, add the
9315         misspelling candidate.
9317 2019-04-26  Jim Wilson  <jimw@sifive.com>
9319         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
9320         parameter.
9321         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
9322         Pass orig_mode to riscv_build_integer.
9323         (riscv_split_integer): Pass mode to riscv_move_integer.
9324         (riscv_legitimize_const_move): Likewise.
9325         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
9326         promoted_mode.  Replace force_reg call with code to load constant into
9327         promoted reg and then subreg it for the store.
9328         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
9329         riscv_move_integer.
9331 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
9333         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
9334         corrupt codes.
9336 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
9338         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
9339         commentary about the encoding of precision.
9341 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
9343         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
9344         * config/i386/t-freebsd64: New file.
9345         * config.gcc: Add the t-freebsd64 for multilib support.
9347 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
9349         * doc/extend.texi (vector_size): Add missing comma after @xref.
9351 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
9353         * BASE-VER: Set to 10.0.0.
9355 2019-04-25  Richard Biener  <rguenther@suse.de>
9357         PR middle-end/89765
9358         * gimplify.c (gimplify_expr): Avoid turning a lvalue
9359         VIEW_CONVERT_EXPR into one operating on an rvalue.
9361 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9363         PR target/89929
9364         * config/i386/i386.c (feature_priority): Moved to file scope.
9365         (processor_features): Likewise.
9366         (processor_model): Likewise.
9367         (_arch_names_table): Likewise.
9368         (arch_names_table): Likewise.
9369         (_feature_list): Removed.
9370         (feature_list): Likewise.
9371         (_isa_names_table): Moved to file scope.  Add priority.
9372         (isa_names_table): Likewise.
9373         (get_builtin_code_for_version): Replace feature_list with
9374         isa_names_table.  Update error message for P_ZERO priority.
9376 2019-04-25  Richard Biener  <rguenther@suse.de>
9378         * tree-pass.h (make_pass_phi_only_cprop): Remove.
9379         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
9381 2019-04-24  Jeff Law  <law@redhat.com>
9383         PR tree-optimization/90037
9384         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
9385         * passes.def: Replace all instance of phi-only cprop with the
9386         lattice propagator.  Move propagation pass from after erroneous
9387         path isolation to before erroneous path isolation.
9388         * tree-ssa-phionlycprop.c: Remove.
9390 2019-04-24  Richard Biener  <rguenther@suse.de>
9392         PR middle-end/90213
9393         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
9394         by size and BITS_PER_UNIT on poly-wide-ints.
9396 2019-04-25  Richard Biener  <rguenther@suse.de>
9398         PR middle-end/90194
9399         * match.pd: Add pattern to simplify view-conversion of an
9400         empty constructor.
9402 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
9404         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
9405         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
9406         for Go on 32 bit AIX.
9407         * config/rs6000/aix72.h: Likewise.
9409 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
9411         PR target/90193
9412         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
9413         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
9415 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
9417         PR target/89952
9418         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
9419         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
9420         for restored hard frame pointer.
9421         (s390_sched_dependencies_evaluation): Implement new target hook.
9422         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
9424 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
9426         * config/arc/arc-options.def: Fix typos and spelling mistakes.
9427         * config/arc/arc.c (arc_init): Cleanup warning message.
9428         (arc_override_options): Likewise.
9430 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
9432         PR target/90187
9433         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
9434         a register if both if_true and if_false are MEMs.
9436         PR tree-optimization/90208
9437         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
9438         after labels of new_bb, not before them.
9440         PR tree-optimization/90211
9441         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
9442         which are not SSA_NAMEs.
9444 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
9446         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
9447         AArch64.
9448         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
9450 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
9452         PR rtl-optimization/87979
9453         * modulo-sched.c (sms_schedule): Start ii value "mii" should
9454         not equal zero.
9456 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
9458         PR rtl-optimization/84032
9459         * modulo-sched.c (ps_insn_find_column): Change condition so that
9460         branch will always be the last insn in a row inside partial
9461         schedule.
9463 2019-04-23  Richard Biener  <rguenther@suse.de>
9465         PR debug/90131
9466         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
9467         dest_single_pred_p argument.
9468         (remove_forwarder_block): Adjust.
9469         (remove_forwarder_block_with_phi): Likewise.
9471 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9472             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9473             Jakub Jelinek  <jakub@redhat.com>
9475         PR target/89093
9476         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
9477         if used with general-regs-only.
9478         (arm_conditional_register_usage): Don't add non-general regs if
9479         general-regs-only.
9480         (arm_valid_target_attribute_rec): Handle general-regs-only.
9481         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
9482         general-regs-only.
9483         (TARGET_HARD_FLOAT_SUB): Define.
9484         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
9485         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
9486         (TARGET_REALLY_IWMMXT2): Likewise.
9487         * config/arm/arm.opt: Add -mgeneral-regs-only.
9488         * doc/extend.texi: Document ARM general-regs-only target.
9489         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
9491 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
9493         PR tree-optimization/90078
9494         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9495         checks for infinite_cost overflow.
9497 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
9499         PR tree-optimization/90021
9500         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
9501         and check univariate against it.
9502         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
9503         * tree-data-ref.c (add_other_self_distances): Pass new argument.
9505 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9507         PR target/90178
9508         Revert:
9509         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
9511         Revert the revert:
9512         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
9514         Revert:
9515         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9517         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9519 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
9521         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
9522         names using operand format, rather than hard-wired.
9523         (speculation_barrier): Likewise.
9525 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
9527         PR tree-optimization/88055
9528         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
9529         (gen_one_condition): Use it if !HONOR_NANS.
9531 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
9533         PR middle-end/90139
9534         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
9535         assign_temp instead of gen_reg_rtx.
9537 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
9539         PR translation/90118
9540         * config/aarch64/aarch64.c (aarch64_override_options_internal):
9541         Add missing space before %<.
9543 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
9545         PR rtl-optimization/87871
9546         * ira-lives.c (make_object_dead): Don't add conflicts to
9547         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
9549 2019-04-18  Martin Sebor  <msebor@redhat.com>
9551         PR middle-end/89797
9552         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
9553         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
9554         assuming type size fits in SHWI.
9556 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
9558         PR ipa/85051
9559         * ipa-inline.c (flatten_function): New parameter UPDATE.
9560         (ipa_inline, early_inliner): Use it.
9562 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
9564         * fold-const.c (int_const_binop): Return early on failure.
9566 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
9568         PR middle-end/85164
9569         * combine.c (force_int_to_mode): Cast the argument rather than
9570         the result of known_alignment.
9571         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
9573 2019-04-18  Richard Biener  <rguenther@suse.de>
9575         PR debug/90131
9576         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
9577         out from ...
9578         (remove_forwarder_block): ... here.
9579         (remove_forwarder_block_with_phi): Also move debug stmts here.
9581 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
9583         PR translation/79183
9584         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
9585         inform where appropriate.
9587 2019-04-18  Richard Biener  <rguenther@suse.de>
9589         * tree.c (get_qualified_type): Put found type variants at the
9590         head of the variant list.
9592 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
9594         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
9596 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
9598         PR target/90125
9599         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
9600         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
9601         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
9602         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
9603         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
9605 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
9607         * ira-conflicts.c (print_allocno_conflicts): Always print something,
9608         even for allocno's with no conflicts.
9609         (print_conflicts): Print an extra newline.
9611 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
9613         * auto-inc-dec.c (attempt_change): Set the alignment of the
9614         temporary memory to that of the original.
9616 2019-04-17  Joao Moreira  <jmoreira@suse.de>
9618         * targhooks.c (default_print_patchable_function_entry): Emit
9619         __patchable_function_entries section with writable flags to allow
9620         relocation resolution.
9622 2019-04-17  Jonny Grant  <jg@jguk.org>
9624         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
9626 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
9628         PR middle-end/90095
9629         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
9630         on lowpart SUBREGs.
9632 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
9634         * config/arc/arc.c (arc_init): Format diagnostic string.
9635         (arc_override_options): Likewise.
9636         (check_if_valid_regno_const): Likewise.
9637         (arc_reorg): Likewise.
9639 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
9641         PR target/17108
9642         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
9643         name.
9644         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
9645         name.
9646         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
9647         (*movdi_update1): Use Pmode.
9648         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
9649         (movdi_<mode>_update_stack): Rename to ...
9650         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
9651         use Pmode.
9652         (*movsi_update1): Use Pmode.
9653         (*movsi_update2): Use Pmode.
9654         (movsi_update): Rename to ...
9655         (movsi_<mode>_update): ... this.  Use Pmode.
9656         (movsi_update_stack): Fix condition.
9657         (*movhi_update1): Use Pmode.  Fix argument to
9658         avoiding_indexed_address_p.
9659         (*movhi_update2): Ditto.
9660         (*movhi_update3): Ditto.
9661         (*movhi_update4): Ditto.
9662         (*movqi_update1): Ditto.
9663         (*movqi_update2): Ditto.
9664         (*movqi_update3): Ditto.
9665         (*movsf_update1, *movdf_update1): Merge, rename to...
9666         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
9667         avoiding_indexed_address_p.  Add "size" attribute.
9668         (*movsf_update2, *movdf_update2): Merge, rename to...
9669         (*mov<mode>_update2): This.  Ditto.
9670         (*movsf_update3): Use Pmode.  Fix argument to
9671         avoiding_indexed_address_p.
9672         (*movsf_update4): Ditto.
9673         (allocate_stack): Simplify condition.  Adjust pattern names.
9675 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
9677         PR target/89093
9678         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
9679         whitespace at the start of target attribute string.
9681 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
9683         PR target/84369
9684         * config/rs6000/power9.md: Add store forwarding bypass.
9686 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
9688         PR debug/89528
9689         * valtrack.c (dead_debug_insert_temp): Reset debug references
9690         to the return value of a call being removed.
9692 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9694         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
9695         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
9696         implement target hook.
9697         (arc_memory_move_cost): New function.
9698         (TARGET_REGISTER_MOVE_COST): Define.
9699         (TARGET_MEMORY_MOVE_COST): Likewise.
9700         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
9701         (MEMORY_MOVE_COST): Likewise.
9703 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9705         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
9706         (sibcall_value_insn): Likewise.
9707         * config/arc/constraints.md (Rs5): Remove.
9709 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9711         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
9712         for last two fake registers.
9713         (arc_conditional_register_usage): Make sure fake frame and arg
9714         pointer regs are in general regs class.
9715         (FRAME_POINTER_MASK): Remove.
9716         (RETURN_ADDR_MASK): Remove.
9717         (arc_must_save_register): Use hard frame regnum.
9718         (frame_restore_reg): Use hard_frame_pointer_rtx.
9719         (arc_save_callee_saves): Likewise.
9720         (arc_restore_callee_saves): Likewise.
9721         (arc_save_callee_enter): Likewise.
9722         (arc_restore_callee_leave): Likewise.
9723         (arc_save_callee_milli): Likewise.
9724         (arc_eh_return_address_location): Likewise.
9725         (arc_check_multi): Use hard frame regnum.
9726         (arc_can_eliminate): Likewise.
9727         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
9728         for register allocator.
9729         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
9730         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
9731         (FRAME_POINTER_REGNUM): Change it to a fake register.
9732         (HARD_FRAME_POINTER_REGNUM): Defined.
9733         (ARG_POINTER_REGNUM): Change it to a new fake register.
9734         (ELIMINABLE_REGS): Update.
9735         (REGISTER_NAMES): Update names.
9736         * config/arc/arc.md (LP_START): Remove.
9737         (LP_END): Likewise.
9738         (shift_si3_loop): Update pattern.
9740 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9742         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
9743         to avoid delay slot scheduling.
9744         (arc_must_save_register): Don't save SP.
9745         * config/arc/arc.md (stack_tie): Remove.
9746         (UNSPEC_ARC_STKTIE): Likewise.
9748 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
9749             Shiva Chen  <shiva0217@gmail.com>
9751         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9752         code gen with large shift amount.
9754 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
9756         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9757         subreg.
9759 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
9761         PR target/90096
9762         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
9763         print -m64/-mx32/-m32 if it is true.
9764         (ix86_debug_options, ix86_function_specific_print): Pass true as
9765         ADD_ABI_P to ix86_target_string.
9766         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
9767         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
9768         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
9770         PR rtl-optimization/90082
9771         * dce.c (can_delete_call): New function.
9772         (deletable_insn_p, mark_insn): Use it.
9774         PR tree-optimization/90090
9775         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9776         throw internally.
9777         (is_division_by_square): Likewise.  Formatting fix.
9779 2019-04-16  Richard Biener  <rguenther@suse.de>
9781         PR tree-optimization/56049
9782         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
9783         equality check if alias-set zero will prevail.
9785 2019-04-15  Jeff Law  <law@redhat.com>
9787         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9788         size and alignment as unsigned.
9790 2019-04-15  Richard Biener  <rguenther@suse.de>
9792         PR debug/90074
9793         * tree-loop-distribution.c (destroy_loop): Preserve correct
9794         debug info.
9796 2019-04-15  Richard Biener  <rguenther@suse.de>
9798         PR tree-optimization/90071
9799         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9800         abnormal operands from def stmts.
9802 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
9804         PR rtl-optimization/89794
9805         * combine.c (count_auto_inc): New function.
9806         (try_combine): Count how many auto_inc expressions there were in the
9807         original instructions.  Ensure we have the same number in the new
9808         instructions.  Remove the code that tried to ensure auto_inc side
9809         effects on i1 and i0 are not lost.
9811 2019-04-15  Richard Biener  <rguenther@suse.de>
9813         PR ipa/88936
9814         * tree.h (auto_var_p): Declare.
9815         * tree.c (auto_var_p): New function, split out from ...
9816         (auto_var_in_fn_p): ... here.
9817         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
9818         member.
9819         (new_var_info): Initialize it.
9820         (set_uids_in_ptset): Also set the shadow variable uid if required.
9821         (ipa_pta_execute): Postprocess points-to solutions assigning
9822         shadow variable uids for locals that may reach their containing
9823         function recursively.
9824         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
9825         assert but instead check whether the points-to solution is
9826         a singleton.
9828 2019-04-15  Martin Jambor  <mjambor@suse.cz>
9830         PR ipa/pr89693
9831         * cgraph.c (clone_of_p): Loop over clone chain for each step in
9832         the thunk chain.
9834 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9836         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9838 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9839             Kito Cheng  <kito.cheng@gmail.com>
9840             Shiva Chen  <shiva0217@gmail.com>
9842         * config/nds32/nds32-md-auxiliary.c
9843         (nds32_legitimize_pic_address): Use new PIC pattern.
9844         (nds32_legitimize_tls_address): Use new TLS pattern.
9845         (nds32_output_symrel): New.
9846         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
9847         (nds32_alloc_relax_group_id): Ditto.
9848         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
9849         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
9850         relax_group_id.
9851         (nds32_group_tls_insn): Ditto.
9852         (nds32_group_float_insns): Ditto.
9853         * config/nds32/nds32.md (tls_le): New.
9854         (sym_got): Ditto.
9856 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
9858         * configure: Add nds32 target for dwarf2 debug_line checking.
9859         * configure.ac: Regenerated.
9861 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
9863         PR lto/89358
9864         * ipa-devirt.c (skip_in_fields_list_p): New.
9865         (odr_types_equivalent_p): Use it.
9867 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
9869         PR target/89093
9870         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9871         instead of strncmp when checking for thumb and arm.  Formatting fixes.
9873 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
9875         * doc/install.texi: Document --with-target-system-zlib.
9877 2019-04-12  Martin Sebor  <msebor@redhat.com>
9879         PR c/88383
9880         PR c/89288
9881         PR c/89798
9882         PR c/89797
9883         * targhooks.c (default_vector_alignment): Avoid assuming
9884         argument fits in SHWI.
9885         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9886         a shift expression.
9887         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9889 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9891         PR rtl-optimization/89965
9892         * dce.c: Include rtl-iter.h.
9893         (struct check_argument_load_data): New type.
9894         (check_argument_load): New function.
9895         (find_call_stack_args): Check for loads from stack slots still tracked
9896         in sp_bytes and punt if any is found.
9898         * config/mips/loongson-mmiintrin.h: Fix up #error message.
9900 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
9902         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9903         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9905 2019-04-12  Martin Liska  <mliska@suse.cz>
9907         PR middle-end/89970
9908         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9909         in error message.
9910         (separate_attrs): Handle multiple 'default's.
9911         (expand_target_clones): Rework error handling code.
9913 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9915         PR target/87532
9916         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
9917         mode of vector rather than mode of destination for move instruction.
9918         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
9919         Use QI inner mode with V16QI vector mode.
9921 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9923         PR target/52726
9924         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9925         "invalid %%t operand" in output_operand_lossage message.
9927 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
9929         * config/s390/predicates.md (permute_pattern_operand): New
9930         predicate.
9931         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
9932         operand for the permute pattern.
9933         ("*vec_perm<mode>"): New insn definition.
9934         ("bswap<mode>"): Generate the permute pattern operand in the
9935         expander and perform the operand reloads for pre arch13 level
9936         already.
9937         ("*bswap<mode>_emu"): Rename to ...
9938         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
9939         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
9940         Add the USE operand for the permute pattern.
9941         ("*vec_set_bswap_vec<mode>"): Likewise.
9943 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9945         PR c/89946
9946         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
9947         and gcc_unreachable if it fails, just call tree_to_uhwi which
9948         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
9949         Start warning message with a lower-case letter.  Formatting fixes.
9951         PR rtl-optimization/90026
9952         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
9953         successors, look for BARRIERs inside of the whole BB_FOOTER chain
9954         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
9955         in cfglayout mode, use emit_barrier_after_bb.
9957 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
9959         PR rtl-optimization/87763
9960         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9961         New Instruction.
9963 2019-04-11  Tom de Vries  <tdevries@suse.de>
9965         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9966         max macro using statement expression.
9968 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
9970         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
9971         * xcoffout.c (xcoff_private_rodata_section_name): Define.
9972         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
9973         read_only_private_data_section using xcoff_private_rodata_section_name.
9974         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
9976 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
9978         PR target/90016
9979         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9981 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
9983         PR rtl-optimization/89965
9984         * dce.c (sp_based_mem_offset): New function.
9985         (find_call_stack_args): Use sp_based_mem_offset.
9987 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
9989         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9991 2019-04-11  Richard Biener  <rguenther@suse.de>
9993         PR tree-optimization/90020
9994         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
9995         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
9996         * tree-ssa-pre.c (compute_avail): Use it to not put
9997         possibly trapping references after a call that might not
9998         return into EXP_GEN.
9999         * gcse.c (compute_hash_table_work): Do not elide
10000         marking a block containing a call if the call might not
10001         return.
10003 2019-04-11  Richard Biener  <rguenther@suse.de>
10005         PR tree-optimization/90018
10006         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
10007         Test both SLP and interleaving variants.
10009 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
10011         * config/s390/8561.md: New file.
10012         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10013         Add arch13 cpu model.
10014         * config/s390/s390-opts.h (enum processor_type): Likewise.
10015         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
10016         (s390_get_unit_mask): Likewise.
10017         (s390_is_fpd): Likewise.
10018         (s390_is_fxd): Likewise.
10019         * config/s390/s390.h (s390_tune_attr): Likewise.
10020         * config/s390/s390.md: Include arch13 pipeline description.
10021         * config/s390/s390.opt: Add arch13.
10023 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
10025         PR rtl-optimization/87763
10026         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
10027         New prototype.
10028         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
10029         New function.
10030         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
10031         New instruction.
10032         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
10033         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
10034         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
10035         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
10037 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
10039         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
10040         "Although" in -fipa-icf documentation.
10042         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
10043         of using multiple -g options.
10045 2019-04-10  Martin Liska  <mliska@suse.cz>
10047         PR gcov-profile/89959
10048         * doc/gcov.texi: Make documentation of -x option
10049         more precise.
10051 2019-04-10  Richard Biener  <rguenther@suse.de>
10053         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
10054         member.
10055         (DR_GROUP_SAME_DR_STMT): Remove.
10056         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
10057         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
10058         replace with assert.
10059         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
10060         (vect_record_grouped_load_vectors): Remove unreachable code.
10062 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
10064         PR target/90016
10065         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
10066         obsolete reference to N.
10068 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
10070         PR middle-end/90025
10071         * expr.c (store_expr): Set properly size on the MEM passed to
10072         clear_storage.
10074         PR c++/90010
10075         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
10076         with strlen in between hostsz-3 and hostsz-1 inclusive when no
10077         translation is needed, and when translation is needed, only append
10078         ... if the string length is hostsz or more bytes long.  Avoid using
10079         strncpy or strcat.
10081 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
10083         PR target/90024
10084         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
10085         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
10086         into three.
10087         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
10088         differences directly.
10089         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
10091 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
10093         PR translation/90011
10094         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
10095         from diagnostics.
10096         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
10097         diagnostics.
10098         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
10099         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
10100         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
10101         trailing space from -gsplit-dwarf diagnostics.
10103         PR tree-optimization/89998
10104         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
10105         instead of integer_type_node if possible, don't add ranges if return
10106         type is not compatible with int.
10107         * gimple-fold.c (gimple_fold_builtin_sprintf,
10108         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
10109         integer_type_node.
10111 2019-04-09  Martin Liska  <mliska@suse.cz>
10113         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
10114         * doc/install.texi: Document the new config.
10116 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
10118         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
10119         use gimple_expr_type for load and store calls.  Skip over the
10120         condition argument in a conditional internal function.
10121         Protect use of TREE_INT_CST_LOW.
10123 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
10125         PR target/90015
10126         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
10127         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
10128         trailing period from it too.
10130 2019-04-08  wu yuan  <wuyuan5@huawei.com>
10132         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
10133         * config/aarch64/aarch64.md : Add "tsv110.md"
10134         * config/aarch64/tsv110.md: New file.
10136 2019-04-08  Richard Biener  <rguenther@suse.de>
10138         PR tree-optimization/90006
10139         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
10140         calls like lrint.
10142 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
10144         PR target/83033
10145         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
10146         construction.
10147         (fma_root_node): Likewise.
10148         (func_fma_steering): Likewise.
10150 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
10152         PR rtl-optimization/89865
10153         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
10155         PR rtl-optimization/89865
10156         * config/i386/i386.md
10157         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
10158         numbers not to clash with the additional operands[4].
10159         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
10160         with extra register copy in the middle.
10162 2019-04-08  Martin Liska  <mliska@suse.cz>
10164         PR gcov-profile/89961
10165         * doc/gcov.texi: Document data_file.
10166         * gcov.c (generate_results): Add data_info into JSON output.
10168 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
10170         PR tree-optimization/89725
10171         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
10172         loop's chrec as invariant symbol.
10173         * tree-chrec.h (chrec_contains_symbols): New parameter.
10174         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
10175         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
10176         function of loops not in DDR's loop_nest.
10177         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
10179 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
10181         PR target/89623
10182         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
10183         Mask.
10185 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
10187         PR target/89945
10188         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10189         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
10191 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
10193         * sched-deps.c (sched_macro_fuse_insns): Check return value of
10194         targetm.fixed_condition_code_regs.
10196 2019-04-05  Richard Biener  <rguenther@suse.de>
10198         PR debug/89892
10199         PR debug/89905
10200         * tree-cfgcleanup.c (remove_forwarder_block): Always move
10201         debug bind stmts but reset them if they are not valid at the
10202         destination.
10204 2019-04-05  Martin Liska  <mliska@suse.cz>
10206         PR translation/89936
10207         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
10208         order to wrap keywords or arguments.
10209         * collect2.c (main): Likewise.
10210         (scan_prog_file): Likewise.
10211         (scan_libraries): Likewise.
10212         * common/config/riscv/riscv-common.c
10213         (riscv_subset_list::parsing_subset_version): Likewise.
10214         (riscv_subset_list::parse_std_ext): Likewise.
10215         * config/aarch64/aarch64.c (aarch64_override_options_internal):
10216         Likewise.
10217         * config/arm/arm.c (arm_option_override): Likewise.
10218         * config/cris/cris.c (cris_print_operand): Likewise.
10219         * config/darwin-c.c (darwin_pragma_options): Likewise.
10220         (darwin_pragma_unused): Likewise.
10221         (darwin_pragma_ms_struct): Likewise.
10222         * config/ft32/ft32.c (ft32_print_operand): Likewise.
10223         * config/i386/i386.c (print_reg): Likewise.
10224         (ix86_print_operand): Likewise.
10225         * config/i386/xm-djgpp.h: Likewise.
10226         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
10227         * config/m32c/m32c.c (m32c_option_override): Likewise.
10228         * config/msp430/msp430.c (msp430_option_override): Likewise.
10229         * config/nds32/nds32.c (nds32_option_override): Likewise.
10230         * config/nvptx/mkoffload.c (main): Likewise.
10231         * config/rx/rx.c (rx_print_operand): Likewise.
10232         (valid_psw_flag): Likewise.
10233         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
10234         (vms_pragma_nomember_alignment): Likewise.
10235         (vms_pragma_extern_model): Likewise.
10236         * lto-wrapper.c (compile_offload_image): Likewise.
10237         * omp-offload.c (oacc_parse_default_dims): Likewise.
10238         * symtab.c (symtab_node::verify_base): Likewise.
10239         * tlink.c (recompile_files): Likewise.
10240         (start_tweaking): Likewise.
10241         * tree-profile.c (parse_profile_filter): Likewise.
10243 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
10245         PR tree-optimization/89956
10246         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
10247         multiple negates of the same value.
10249 2019-04-04  Martin Sebor  <msebor@redhat.com>
10251         PR middle-end/89957
10252         PR middle-end/89911
10253         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
10254         have the same precision since the function crashes otherwise.
10255         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
10256         has non-zero arguments.
10258 2019-04-04  Martin Sebor  <msebor@redhat.com>
10260         PR middle-end/89934
10261         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
10262         out if the number of arguments is less than expected.
10264 2019-04-04  Jeff Law  <law@redhat.com>
10266         PR rtl-optimization/89399
10267         * ree.c (combine_set_extension): Use single_set rather than
10268         digging into PATTERN for items on the candidate list.
10269         (combine_reaching_defs): Likewise.
10271 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
10273         PR rtl-optimization/46590
10274         * loop-invariant.c (find_defs): Move df_remove_problem and
10275         df_process_deferred_rescans to move_invariants.
10276         Move df_live_add_problem and df_live_set_all_dirty calls
10277         to move_invariants.
10278         (move_invariants): Likewise.
10279         (move_loop_invariants): Likewise, making the df_live calls
10280         conditional on -O.  Remove the problem again if we added it
10281         locally.
10283 2019-04-03  qing zhao  <qing.zhao@oracle.com>
10285         PR tree-optimization/89730
10286         * ipa-inline.c (can_inline_edge_p): Delete the checking for
10287         -flive-patching=inline-only-static.
10288         (can_inline_edge_by_limits_p): Add the checking for
10289         -flive-patching=inline-only-static and grant always_inline
10290         even when -flive-patching=inline-only-static is specified.
10292 2019-04-03  Jeff Law  <law@redhat.com>
10294         PR rtl-optimization/81025
10295         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
10297 2019-04-03  Richard Biener  <rguenther@suse.de>
10299         PR tree-optimization/84101
10300         * tree-vect-stmts.c: Include explow.h for hard_function_value,
10301         regs.h for hard_regno_nregs.
10302         (cfun_returns): New helper.
10303         (vect_model_store_cost): When vectorizing a store to a decl
10304         we return and the function ABI returns in a multi-reg location
10305         account for the possible spilling that will happen.
10307 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
10309         * config/s390/s390.c (s390_legitimate_address_p): Reject long
10310         displacement addresses for vector mode operands.
10312 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
10314         * config/arc/arc.c (GMASK_LEN): Define.
10315         (arc_restore_callee_saves): Restore first blink when
10316         !optimize_size.
10318 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
10320         * doc/extend.texi: Add deprecated comment on sign-return-address
10321         function attribute and add mbranch-protection.
10322         * doc/invoke.texi: Add bti to the options for mbranch-protection.
10324 2019-04-03  Richard Biener  <rguenther@suse.de>
10326         PR lto/89896
10327         * lto-wrapper.c (run_gcc): Avoid implicit rules making
10328         the all target phony.
10330 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
10332         PR target/89902
10333         PR target/89903
10334         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
10335         Return false for variable DImode shifts.
10336         (dimode_scalar_chain::compute_convert_gain): Do not handle
10337         register count operand in variable DImode shifts.
10338         (dimode_scalar_chain::make_vector_copies): Remove support to copy
10339         count argument of a variable shift instruction to a vector register.
10340         (dimode_scalar_chain::convert_reg): Remove support to convert
10341         count argument of a variable shift instruction.
10343 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
10345         PR rtl-optimization/84206
10346         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
10347         iterating over loop headers.
10349 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
10351         PR rtl-optimization/85876
10352         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
10353         beyond the original fence.
10355 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
10357         * config.gcc: Mark spu* targets as deprecated/obsolete.
10359 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10361         * config/s390/s390-builtin-types.def: New builtin function type
10362         definitions. Remove unused types.
10363         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
10364         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
10365         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
10366         overloaded builtins.
10367         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
10368         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
10369         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
10370         (vec_double, vec_signed, vec_unsigned): Define to use the new
10371         overloaded builtins.
10372         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
10373         Remove expanders.
10375 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10377         * config/s390/s390-builtin-types.def: New builtin function type
10378         definitions.
10379         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
10380         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
10381         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
10382         (s390_vstrszh, s390_vstrszf): New low-level builtins.
10383         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
10384         constant definitions.
10385         * config/s390/vecintrin.h (vec_search_string_cc)
10386         (vec_search_string_until_zero_cc): New builtin name definitions.
10387         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
10388         expanders.
10389         ("vec_vstrs<mode>"): New insn definition.
10391 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10393         * config/s390/s390-builtin-types.def: Add new builtin function
10394         types.
10395         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
10396         New overloaded builtins.
10397         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
10398         s390_vsrd.
10399         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
10400         (UNSPEC_VEC_SLDBYTE): ... this.
10401         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
10402         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
10403         definitions.
10404         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
10405         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
10406         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
10408 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10410         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
10411         New insn definition.
10412         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
10413         * config/s390/vector.md (V_HW_HSD): ... here.
10415 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10417         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
10418         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
10419         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
10420         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
10421         New insn definitions.
10423 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10425         * config/s390/s390-builtin-types.def: Add new builtin function type.
10426         * config/s390/s390-builtins.def: Add overloaded builtin
10427         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
10428         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
10429         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
10430         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
10431         ("eltswap<mode>"): New expander.
10432         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
10433         insn definitions.
10435 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10437         * config/s390/s390-builtin-types.def: Add new builtin function types.
10438         * config/s390/s390-builtins.def: Add overloaded builtin
10439         s390_vec_revb. Add low-level builtins for vlbr and vstbr
10440         instructions.
10441         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
10442         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
10443         ("bswap<mode>"): New expander.
10444         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
10446 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10448         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
10449         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
10450         vector builtin version number in __VEC__.
10452 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10454         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
10455         iterators.
10456         (SFSI): New mode attribute.
10457         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
10458         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
10459         rename to ...
10460         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
10461         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
10462         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
10463         ("floatsi<mode>2"): Add wcefb instruction.
10465 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10467         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
10468         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
10469         mode iterators.
10470         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
10471         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
10472         support 32 bit fp-int conversions. Rename to ...
10473         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
10474         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
10475         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
10476         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
10477         ... to these.
10479 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10481         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
10482         if-then-else constructs if we can use the select instruction.
10483         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
10485 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10487         * config/s390/s390.md ("*popcountdi_arch13_cc")
10488         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
10489         definition.
10490         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
10491         Append _z196 to make it ...
10492         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
10493         ("popcounthi2_z196"): ... this.
10494         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
10495         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
10497 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10499         * config/s390/s390.c (s390_canonicalize_comparison): Convert
10500         certain compares for arch13 in order to make use of the condition
10501         code result produced by the new instructions.
10502         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
10503         nxrk, and nxgrk instruction patterns.
10504         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
10505         (inv_no): Add new code iterator together with some attributes.
10506         ("*andc_split_<mode>"): Disable splitter for arch13.
10507         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
10508         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
10509         ("*<ANDOR:bitops_name>c<GPR:mode>")
10510         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
10511         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
10512         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
10513         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
10515 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
10517         * common/config/s390/s390-common.c (processor_flags_table): New
10518         entry for arch13.
10519         * config.gcc: Support arch13 with the --with-arch= configure flag.
10520         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10521         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
10522         * config/s390/s390.c (s390_get_sched_attrmask)
10523         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
10524         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
10525         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
10526         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
10527         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
10528         definitions.
10529         * config/s390/s390.opt: Support arch13 as processor type in
10530         command line options.
10532 2019-04-02  Martin Liska  <mliska@suse.cz>
10534         PR translation/89912
10535         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
10536         Fix param description of graphite-max-arrays-per-scop.
10538 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
10540         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
10541         (ASAN_CC1_SPEC): Use it in 64-bit mode.
10542         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
10544 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
10546         PR rtl-optimization/85412
10547         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
10548         sel_sched_region_1, not after.
10550 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
10552         PR rtl-optimization/86928
10553         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
10554         compute_live if necessary.
10555         (sel_redirect_edge_and_branch): Likewise.
10557 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
10559         PR rtl-optimization/89865
10560         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
10561         register if it is a part of small class.
10563 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
10565         PR rtl-optimization/87273
10566         * sel-sched-ir.c (merge_fences): Remove assert.
10568 2019-04-01  Richard Biener  <rguenther@suse.de>
10570         PR tree-optimization/46590
10571         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
10572         (dom_walker::m_reachability): Add in place of...
10573         (dom_walker::m_skip_unreachable_blocks): ...this.
10574         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
10575         Move complex initialization ...
10576         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
10577         lazily and initialize edge flags on each invocation.
10578         (dom_walker::bb_reachable): Use m_reachability.
10580 2019-04-01  Martin Liska  <mliska@suse.cz>
10582         PR driver/89861
10583         * opt-suggestions.c (option_proposer::build_option_suggestions):
10584         Add variant without any argument in order to provide better
10585         hints.
10587 2019-04-01  Richard Biener  <rguenther@suse.de>
10589         PR c/71598
10590         * gimple.c: Include langhooks.h.
10591         (gimple_get_alias_set): Treat enumeral types as the underlying
10592         integer type.
10594 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
10595             Eric Botcazou  <ebotcazou@adacore.com>
10597         PR rtl-optimization/89862
10598         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
10599         that operates on the full registers for WORD_REGISTER_OPERATIONS
10600         architectures.
10602 2019-03-29  Jim Wilson  <jimw@sifive.com>
10604         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
10605         Clear MASK_RVC and then set if C subset supported.
10607 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
10609         PR c/89872
10610         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
10611         non-addressable complit into its initializer if it is volatile.
10613 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
10615         * opts-common.c (integral_argument): Set errno properly in one case.
10617 2019-03-29  Martin Liska  <mliska@suse.cz>
10619         * doc/invoke.texi: Remove -Wchkp from documentation.
10621 2019-03-29  Martin Liska  <mliska@suse.cz>
10623         * dbgcnt.c (print_limit_reach): New function.
10624         (dbg_cnt): Use it.
10626 2019-03-29  Martin Liska  <mliska@suse.cz>
10628         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
10629         (dbg_cnt_process_opt): Parse first tokens aas
10630         dbg_cnt_process_single_pair is also using strtok.
10632 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
10634         PR rtl-optimization/87485
10635         * function.c (expand_function_end): Move stack_protect_epilogue
10636         before loading of return value into hard register(s).
10638 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
10640         PR middle-end/89621
10641         * tree-inline.h (struct copy_body_data): Add
10642         dont_remap_vla_if_no_change flag.
10643         * tree-inline.c (remap_type_3, remap_type_2): New functions.
10644         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
10645         and remap_type_2 returns false.
10646         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
10647         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
10648         only from where it is copied to nested contexts.
10650 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
10652         PR target/89865
10653         * config/i386/i386.md (RMW operation with LEA peephole):
10654         Use LEAMODE mode attribute instead of SWI mode iterator for
10655         LEA pattern.
10657 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
10659         PR target/89848
10660         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10661         Also process XEXP (src, 0) of a shift insn.
10663 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
10665         PR middle-end/89725
10666         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
10667         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
10669 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
10671         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
10672         test.
10673         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
10674         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
10675         immediately after first one with df_analyze in between, but rather
10676         process all bbs, queueing ones that need second pass in a worklist,
10677         df_analyze, process queued debug insn changes and if second pass is
10678         needed, process bbs from worklist, df_analyze, process queued debug
10679         insns again.
10681         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
10682         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
10683         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
10685 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
10687         PR c/79022
10688         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
10689         definition.
10691 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
10693         PR target/85667
10694         * config/i386/i386.c (ix86_function_value_1): Call the newly added
10695         function for 32-bit MS_ABI.
10696         (function_value_ms_32): New function.
10698 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
10700         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
10701         (movdi): Call gen_movdi_symbol_save_scc.
10702         (gen_movdi_symbol_save_scc): New insn and split.
10704 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
10706         PR rtl-optimization/89313
10707         * function.c (matching_constraint_num): New static function.
10708         (match_asm_constraints_1): Use it.  Fixup white space and comment.
10709         Don't replace inputs with non-matching constraints which conflict
10710         with early clobber outputs.
10712 2019-03-27  Jeff Law  <law@redhat.com>
10715         PR rtl-optimization/87761
10716         PR rtl-optimization/89826
10717         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10718         slightly later.
10719         (pass_cprop_hardreg::execute): Call df_analyze after adding the
10720         note problem to get REG_DEAD/REG_UNUSED notes updated.
10722 2019-03-27  Richard Biener  <rguenther@suse.de>
10724         PR tree-optimization/89463
10725         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
10726         queue edges to remove.
10727         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
10728         dead stmts.  Delay edge removal until PHIs are removed to
10729         make debug-stmt creation not confused by seemingly degenerate
10730         PHIs.
10732 2019-03-27  Alan Modra  <amodra@gmail.com>
10734         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10735         throughout file.
10736         * config/rs6000/darwin.h: Likewise.
10737         * config/rs6000/rs6000.c: Likewise.
10739 2019-03-27  Alan Modra  <amodra@gmail.com>
10741         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10742         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
10744 2019-03-26  Andrew Waterman  <andrew@sifive.com>
10745             Jim Wilson  <jimw@sifive.com>
10747         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
10748         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
10749         (generic_idivdi, generic_fmul_single, generic_fmul_double)
10750         (generic_fdiv, generic_fsqrt): Add check for generic tune.
10751         (generic_alu): Add auipc to type list.
10752         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
10753         (riscv_microarchitecture): Declare.
10754         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
10755         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
10756         field.
10757         (riscv_microarchitecture): New.
10758         (sifive_7_tune_info): New.
10759         (riscv_cpu_info_table): Add microarchitecture value for rocket and
10760         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
10761         entries.
10762         (riscv_store_data_bypass_p): New.
10763         (riscv_option_override): Set riscv_microarchitecture from
10764         cpu->microarchitecture.
10765         * config/riscv/riscv.md: Include sifive-7.md.
10766         (type): Add auipc.
10767         (tune): New.
10768         (auipc<mode>): Change type to auipc.
10769         (restore_stack_nonlocal): New.
10770         * config/riscv/sifive-7.md: New.
10771         * doc/invoke.texi (RISC-V Options): Update mtune docs.
10773 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
10775         PR target/89827
10776         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10777         Also process XEXP (src, 0) of a shift insn.
10779 2019-03-26  Richard Biener  <rguenther@suse.de>
10781         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
10782         (copy_debug_stmt): Likewise.
10783         (expand_call_inline): Likewise.
10784         (copy_bb): Avoid redundant lookup & set of gimple_block.
10785         * gimple-low.c (lower_gimple_return): Likewise.
10786         (lower_builtin_setjmp): Likewise.
10788 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
10790         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
10791         is constant 0, turn into static const data member initialized to false.
10792         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
10793         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
10795 2019-03-26  Jason Merrill  <jason@redhat.com>
10796             Jakub Jelinek  <jakub@redhat.com>
10798         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10799         method.
10800         (mem_alloc_description::release_object_overhead): Fix comment typos.
10801         * hash-table.h (hash_table::~hash_table): Call
10802         release_instance_overhead only if m_entries is non-NULL, otherwise
10803         call unregister_descriptor.
10805 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
10807         PR tree-optimization/81740
10808         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10809         In case of outer loop vectorization, check for backward dependence
10810         at the inner loop if outer loop dependence is reversed.
10812 2019-03-26  Alan Modra  <amodra@gmail.com>
10814         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10815         rs6000_vector_mem init.  Correct wI and wJ comment.
10817 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
10819         PR rtl-optimization/88347
10820         PR rtl-optimization/88423
10821         * sched-deps.c (sched_analyze_insn): Take into account that for
10822         tablejumps the barrier appears after a label and a jump_table_data.
10824 2019-03-25  Martin Sebor  <msebor@redhat.com>
10826         PR c/89812
10827         * c-common.c (check_user_alignment): Rename local.  Correct maximum
10828         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
10829         convert it to UHWI when it fits.
10831 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
10833         PR debug/86964
10834         * dwarf2out.c (premark_used_variables): New function.
10835         (prune_unused_types_walk): Do not mark not premarked external
10836         variables.
10837         (prune_unused_types): Call premark_used_variables.
10839 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
10841         PR rtl-optimization/89676
10842         * lra-constraints.c (curr_insn_transform): Do match reload for
10843         early clobbers when the match was successful only for different
10844         registers.
10846 2019-03-25  Martin Sebor  <msebor@redhat.com>
10848         * doc/extend.texi (Common Type Attributes): Document vector_size.
10849         (Common Variable Attributes): Mention size constraint.  Correct
10850         quoting and typos.
10851         (Vector Extensions): Use @dfn when defining bas type.  Clarify
10852         base type and size constraints.
10854 2019-03-25  Richard Biener  <rguenther@suse.de>
10856         PR tree-optimization/89789
10857         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
10858         changes from non-undefined back to undefined.
10860 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
10862         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
10863         heap string and a gc string, but since this variable is unknown to
10864         ggc the gc string might get reused and corrupted. Fixed by always
10865         using a heap string.
10867 2019-03-25  Richard Biener  <rguenther@suse.de>
10869         PR tree-optimization/89779
10870         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
10871         to remove IV defs, delay actual removal.
10872         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
10873         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
10874         very end, properly also reset loop control IV information.
10876 2019-03-25  Richard Biener  <rguenther@suse.de>
10878         PR tree-optimization/89802
10879         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10880         move EH data to folded stmt.
10882 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10884         * config/s390/s390-builtin-types.def: Remove few unused types and
10885         fix sort order for others.
10887 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10889         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10890         expected and found types with -mdebug during builtin matching.
10892 2019-03-25  Richard Biener  <rguenther@suse.de>
10894         PR middle-end/89790
10895         * fold-const.c (operand_equal_p): Revert last change with
10896         updated comment.
10898 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
10900         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
10901         notes for the result of the __tls_get_addr calls.
10902         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
10904 2019-03-24  Jeff Law  <law@redhat.com>
10906         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10908         PR rtl-optimization/87761
10909         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
10910         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
10911         as needed.
10912         (pass_cprop_hardreg::execute): Add df note problem and defer insn
10913         rescans.  Reprocess blocks as needed, calling df_analyze before
10914         reprocessing.  Always call df_analyze before fixing up debug bind
10915         insns.
10917 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
10919         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10920         big endian.
10922 2019-03-22  Andrew Pinski  <apinski@marvell.com>
10924         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10925         attrribute for uxtw.
10927 2019-03-26  Jeff Law  <law@redhat.com>
10929         PR rtl-optimization/87761
10930         * config/mips/mips-protos.h (mips_split_move): Add new argument.
10931         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
10932         (mips_split_move): Accept new INSN argument.  Try to forward SRC
10933         into the next instruction.
10934         (mips_split_move_insn): Pass INSN through to mips_split_move.
10936 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10938         PR rtl-optimization/89676
10939         * lra-constraints.c (curr_insn_transform): Do match reload for
10940         early clobbers even if the match was successful.
10942 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10944         PR c++/87481
10945         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10947 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
10949         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10951 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10953         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
10954         <avx512>_fmsub_<mode>_mask3<round_name>,
10955         <avx512>_fnmadd_<mode>_mask3<round_name>,
10956         <avx512>_fnmsub_<mode>_mask3<round_name>,
10957         avx512f_vmfmadd_<mode>_mask3<round_name>,
10958         avx512f_vmfmsub_<mode>_mask3<round_name>,
10959         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
10960         instead of register_operand and %v instead of v for match_operand 1.
10961         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
10962         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
10963         <round_nimm_predicate> instead of register_operand and %v instead of v
10964         for match_operand 1.
10966         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
10967         <avx512>_fmadd_<mode>_mask3<round_name>,
10968         <avx512>_fmsub_<mode>_mask<round_name>,
10969         <avx512>_fmsub_<mode>_mask3<round_name>,
10970         <avx512>_fnmadd_<mode>_mask<round_name>,
10971         <avx512>_fnmadd_<mode>_mask3<round_name>,
10972         <avx512>_fnmsub_<mode>_mask<round_name>,
10973         <avx512>_fnmsub_<mode>_mask3<round_name>,
10974         <avx512>_fmaddsub_<mode>_mask<round_name>,
10975         <avx512>_fmaddsub_<mode>_mask3<round_name>,
10976         <avx512>_fmsubadd_<mode>_mask<round_name>,
10977         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
10978         <round_nimm_predicate> instead of nonimmediate_operand.
10979         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
10980         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
10981         Use register_operand instead of <round_nimm_predicate> for the
10982         operand that needs to match output.
10983         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
10984         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
10985         Likewise.  Formatting fixes.
10987         PR target/89784
10988         * config/i386/i386.c (enum ix86_builtins): Remove
10989         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
10990         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
10991         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
10992         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
10993         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
10994         __builtin_ia32_vfmsubss3_mask3): New builtins.
10995         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
10996         avx512f_vmfmadd_<mode>_mask3<round_name>,
10997         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
10998         *avx512f_vmfmsub_<mode>_mask<round_name>,
10999         avx512f_vmfmsub_<mode>_mask3<round_name>,
11000         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
11001         *avx512f_vmfnmadd_<mode>_mask<round_name>,
11002         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
11003         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
11004         *avx512f_vmfnmsub_<mode>_mask<round_name>,
11005         avx512f_vmfnmsub_<mode>_mask3<round_name>,
11006         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
11007         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
11008         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
11009         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
11010         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
11011         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
11012         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
11013         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
11014         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
11015         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
11016         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
11017         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
11018         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
11019         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
11020         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
11021         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
11022         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
11023         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
11024         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
11025         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
11026         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
11027         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
11029 2019-03-21  Martin Sebor  <msebor@redhat.com>
11031         PR tree-optimization/89350
11032         * builtins.c (compute_objsize): Also ignore offsets whose upper
11033         bound is negative.
11034         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
11035         (builtin_memref::builtin_memref): Initialize new member.
11036         Allow EXPR to be null.
11037         (builtin_memref::extend_offset_range): Replace local with a member.
11038         Avoid assuming pointer offsets are unsigned.
11039         (builtin_memref::set_base_and_offset): Determine base object
11040         before computing offset range.
11041         (builtin_access::builtin_access): Handle memset.
11042         (builtin_access::generic_overlap): Replace local with a member.
11043         (builtin_access::strcat_overlap): Same.
11044         (builtin_access::overlap): Same.
11045         (maybe_diag_overlap): Same.
11046         (maybe_diag_access_bounds): Same.
11047         (wrestrict_dom_walker::check_call): Handle memset.
11048         (check_bounds_or_overlap): Same.
11050 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
11051             Jakub Jelinek  <jakub@redhat.com>
11053         PR lto/89692
11054         * tree.c (fld_type_variant, fld_incomplete_type_of,
11055         fld_process_array_type): Call fld->pset.add and don't call
11056         add_tree_to_fld_list if it returns true.
11057         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
11058         non-marked types from TYPE_NEXT_VARIANT list.
11059         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
11061 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
11063         * hash-table.h (hash_table): Add Lazy template parameter defaulted
11064         to false, if true, don't alloc_entries during construction, but defer
11065         it to the first method that needs m_entries allocated.
11066         (hash_table::hash_table, hash_table::~hash_table,
11067         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
11068         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
11069         hash_table::clear_slot, hash_table::traverse_noresize,
11070         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
11071         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
11072         false.
11073         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
11074         NO_INSERT instead of find_with_hash.
11075         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
11076         hash_set::m_table): Add Lazy to template params of hash_table.
11077         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
11078         * attribs.c (test_attribute_exclusions): Likewise.
11079         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
11080         hash_set.  Add tests for hash_set with Lazy = true.
11082 2019-03-21  Richard Biener  <rguenther@suse.de>
11084         PR tree-optimization/89779
11085         * tree.c (tree_nop_conversion): Consolidate and fix defensive
11086         checks with respect to released SSA names now having error_mark_node
11087         type.
11088         * fold-const.c (operand_equal_p): Likewise.
11090 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
11092         PR target/89775
11093         * config/s390/s390.c (global_not_special_regno_p): Move to make it
11094         available to ...
11095         (s390_optimize_register_info): Use global_not_special_regno_p to
11096         check for global regs.
11098 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
11100         PR target/89752
11101         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
11102         update this_alternative nor this_alternative_set.
11104 2019-03-19  Jim Wilson  <jimw@sifive.com>
11106         PR target/89411
11107         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
11108         align, size, offset.  Use them to handle a BLKmode reference.  Update
11109         comment.
11110         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
11112 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
11114         PR rtl-optimization/89768
11115         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
11116         instead of GEN_INT.
11117         (unroll_loop_runtime_iterations): Likewise.
11119 2019-03-19  Martin Sebor  <msebor@redhat.com>
11121         PR tree-optimization/89644
11122         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
11123         rather than endptr as an indicator of nul-termination.
11125         PR tree-optimization/89644
11126         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
11127         arrays in determining sequence sizes in strncpy and stpncpy.
11129 2019-03-19  Martin Liska  <mliska@suse.cz>
11131         PR middle-end/89737
11132         * predict.c (combine_predictions_for_bb): Empty likely_edges and
11133         unlikely_edges if there's an edge that belongs to both these sets.
11135 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
11137         PR target/89746
11138         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
11139         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
11140         go via a stack temporary.
11142 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
11144         PR target/89378
11145         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
11146         instead of gen_rtx_SUBREG.
11147         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
11149 2019-03-19  Richard Biener  <rguenther@suse.de>
11151         PR debug/88389
11152         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
11154 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
11156         PR lto/87809
11157         PR lto/89335
11158         * tree.c (free_lang_data_in_decl): Do not free context of C++
11159         destrutors.
11161 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
11163         PR target/89506
11164         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
11165         subs for the first alternative except when operands[3] is 1.
11167         PR target/89752
11168         * gimplify.c (gimplify_asm_expr): For output argument with
11169         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
11170         diagnose error.
11172 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
11174         PR rtl-optimization/89753
11175         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11176         explicit unrolling factor even more robust.
11178 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
11180         PR target/89726
11181         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
11182         compensation use x2 += 1 instead of x2 -= -1 and when honoring
11183         signed zeros, do another copysign after the compensation.
11185 2019-03-18  Martin Sebor  <msebor@redhat.com>
11187         PR tree-optimization/89720
11188         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
11189         more conservatively, the same as anti-range.
11191 2019-03-18  Richard Biener  <rguenther@suse.de>
11193         PR middle-end/88945
11194         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
11195         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
11196         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
11197         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
11199 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
11201         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
11202         Extend queue to 1024 entries.
11203         Add "consumed" field.
11204         (gomp_print_output): Remove print_index parameter.
11205         Add final parameter.
11206         Change limit to unsigned.
11207         Use consumed field to implement circular buffer.
11208         Detect interrupted print in final pass.
11209         Flush output at the end.
11210         (run): Update gomp_print_output usage.
11211         (main): Initialize kernargs->output_data.consumed.
11213 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
11215         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
11216         calculation of the minimum number of scalar iterations for
11217         fully-predicated loops.
11219 2019-03-18  Martin Jambor  <mjambor@suse.cz>
11221         PR tree-optimization/89546
11222         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
11223         any propagation to its children took place.
11225 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
11227         PR target/89627
11228         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
11229         parameter, and make use of it.
11230         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
11232 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
11234         * config/arc/arc.opt (mcode-density-frame): Get the inital value
11235         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
11236         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
11237         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
11238         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
11239         match what the ops is doing.
11240         (push_multi_fp_blink): Likewise.
11241         * config/arc/arc.c (arc_override_options): Enable enter/leave when
11242         compiling for size and elf target.
11243         (arc_save_callee_enter): Adjust note to match what enter/leave
11244         operation does.
11246 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
11248         * config/arc/arc.md (tst_movb): Fix constraint.
11250 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
11252         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11254 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
11256         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
11257         * config/arc/arc.c (arc_conditional_register_usage): Remove all
11258         reg_alloc_order references.
11259         (size_alloc_order): Define.
11260         (arc_adjust_reg_alloc_order): New function.
11261         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
11262         order.
11263         (ADJUST_REG_ALLOC_ORDER): Define.
11264         (HONOR_REG_ALLOC_ORDER): Likewise.
11266 2019-03-18  Richard Biener  <rguenther@suse.de>
11268         PR target/87561
11269         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
11270         loads and stores a bit more.
11272 2019-03-18  Richard Biener  <rguenther@suse.de>
11274         PR target/87561
11275         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
11276         load pessimization to stores as well.
11278 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
11280         PR middle-end/86979
11281         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
11282         successor, use NULL as its av set.
11284 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11286         PR rtl-optimization/89721
11287         * lra-constraints (invariant_p): Return false if side_effects_p holds.
11289 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11291         PR target/87532
11292         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11293         When handling vec_extract, use modular arithmetic to allow
11294         constant selectors greater than vector length.
11295         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
11296         V1TImode vectors to have constant selector values greater than 0.
11297         Use modular arithmetic to compute vector index.
11298         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
11299         index for in-memory vectors.  Correct code generation for
11300         in-register vectors.
11301         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
11302         compute index.
11304 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
11306         PR c++/88534
11307         PR c++/88537
11308         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
11309         VAR_DECL args.
11311 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
11313         PR c++/89709
11314         * tree.c (inchash::add_expr): Strip any location wrappers.
11315         * fold-const.c (operand_equal_p): Move stripping of location wrapper
11316         after hash verification.
11318         PR debug/89704
11319         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
11320         SIGN_EXTEND and ZERO_EXTEND.
11322 2019-03-14  Jason Merrill  <jason@redhat.com>
11323             Jakub Jelinek  <jakub@redhat.com>
11325         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
11326         than if is_empty (*slot).
11327         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
11328         existing elt and for elt removal.
11329         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
11330         of already removed elt.
11332 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
11334         PR target/89650
11335         * config/i386/i386.c (remove_partial_avx_dependency): Handle
11336         REG_EH_REGION note.
11338 2019-03-14  Martin Liska  <mliska@suse.cz>
11340         PR other/89712
11341         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
11343 2019-03-14  Richard Biener  <rguenther@suse.de>
11345         PR target/89711
11346         * config/i386/i386.c (make_resolver_func): Properly set
11347         DECL_CONTEXT on the RESULT_DECL.
11348         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
11350 2019-03-14  Richard Biener  <rguenther@suse.de>
11352         * gimple-pretty-print.c: Include cfgloop.h.
11353         (dump_gimple_phi): Adjust.
11354         (dump_gimple_bb_header): Dump loop header for GIMPLE.
11355         (pp_cfg_jump): Adjust.
11356         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
11357         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
11358         (lower_phi_internal_fn): Remove.
11359         (verify_gimple_call): Remove IFN_PHI special-casing.
11360         (dump_function_to_file): Dump IL state.
11361         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
11362         done to deal with PHI nodes being present in non-SSA state.
11364 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
11366         PR ipa/89684
11367         * multiple_target.c (create_dispatcher_calls): Change
11368         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
11369         In the node->iterate_referring loop, push *ref rather than ref, call
11370         ref->remove_reference () and always pass 0 to iterate_referring.
11372         PR rtl-optimization/89679
11373         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
11374         would contain a paradoxical SUBREG.
11376 2019-03-14  Richard Biener  <rguenther@suse.de>
11378         PR tree-optimization/89710
11379         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
11380         safe_dyn_cast.
11382 2019-03-14  Martin Liska  <mliska@suse.cz>
11384         * coverage.c (coverage_begin_function): Stream also
11385         end_column.
11386         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
11387         documentation about function declaration location.
11388         * gcov-dump.c (tag_function): Print whole range
11389         of function declaration.
11390         * gcov.c (struct function_info): Add end_column field.
11391         (function_info::function_info): Initialize it.
11392         (output_json_intermediate_file): Output {start,end}_column
11393         fields.
11394         (read_graph_file): Read end_column.
11396 2019-03-14  Richard Biener  <rguenther@suse.de>
11398         PR middle-end/89698
11399         * fold-const.c (operand_equal_p): For INDIRECT_REF check
11400         that the access types are similar.
11402 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
11404         PR tree-optimization/89703
11405         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
11406         aren't compatible also with builtin_decl_explicit.  Check pure
11407         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
11408         and BUILT_IN_STPNCPY{,_CHK}.
11410 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
11412         PR target/89523
11413         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
11414         addr32 prefix to VSIB address for X32.
11415         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
11416         "%M2" to opcode.
11417         (*avx512pf_gatherpf<mode>df_mask): Likewise.
11418         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
11419         (*avx512pf_scatterpf<mode>df_mask): Likewise.
11420         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
11421         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
11422         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
11423         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
11424         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
11425         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
11426         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
11427         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
11428         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
11429         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
11430         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
11431         (*avx512f_scatterdi<mode>): Likewise.
11433 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
11435         PR target/85860
11436         * lra-constraints.c (inherit_in_ebb): Update
11437         potential_reload_hard_regs along with live_hard_regs.
11439 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
11441         PR debug/89498
11442         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
11443         DWARF_OFFSET_SIZE.
11444         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
11446 2019-03-13  Martin Sebor  <msebor@redhat.com>
11448         PR tree-optimization/89662
11449         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
11450         has a size.
11452 2019-03-13  Richard Biener  <rguenther@suse.de>
11454         PR middle-end/89677
11455         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
11456         throw FP expressions at tree-affine.
11458 2019-03-14  Richard Biener  <rguenther@suse.de>
11460         * tree-pretty-print.c (dump_generic_node): For -gimple properly
11461         dump negative integer constants using _Literal (type) -num.
11463 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
11465         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
11466         nonlocal_value member.
11468         PR middle-end/88588
11469         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
11470         (ipa_simd_modify_function_body): Handle PHIs.
11472 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
11474         * config/s390/s390.c (s390_option_override_internal): Use more
11475         aggressive inlining parameters.
11477 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
11479         * config/s390/3906.md: New file.
11480         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
11481         (LONGRUNNING_THRESHOLD): Remove.
11482         (MAX_SCHED_MIX_SCORE): Decrease.
11483         (MAX_SCHED_MIX_DISTANCE): Decrease.
11484         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
11485         (struct s390_sched_state): New struct to hold scheduling state.
11486         (S390_SCHED_STATE_NORMAL): Remove.
11487         (S390_SCHED_STATE_CRACKED): Remove.
11488         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
11489         (s390_get_sched_attrmask): Use new attribute.
11490         (s390_get_unit_mask): Use new units.
11491         (s390_is_fpd): New function.
11492         (s390_is_fxd): New function.
11493         (s390_is_longrunning): New function.
11494         (s390_sched_score): Use new functions.
11495         (s390_sched_reorder): Likewise.
11496         (s390_sched_variable_issue): Rework and use new functions.
11497         (s390_sched_init): Use new functions.
11498         * config/s390/s390.h (s390_tune_attr):  Add z14.
11499         * config/s390/s390.md: Add z14.
11501 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
11503         * config/s390/2964.md: Update pipeline description.
11504         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
11505         (LONGRUNNING_THRESHOLD): Remove.
11506         (LATENCY_FACTOR): Remove.
11507         (s390_get_unit_mask): Add unit.
11508         (s390_sched_score): Use fxd/fpd.
11509         (s390_sched_variable_issue): Use fxd/fpd.
11511 2019-03-12  Martin Liska  <mliska@suse.cz>
11513         * config/i386/i386.c: Reword an error message.
11515 2019-03-12  Martin Jambor  <mjambor@suse.cz>
11517         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
11518         terminate with newline.
11520 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
11522         PR target/52726
11523         * config/s390/s390.md (tabort): Use %wd instead of
11524         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
11525         letters and periods.
11526         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
11527         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
11528         's with %< and %>.
11530         PR middle-end/89663
11531         * builtins.c (expand_builtin_int_roundingfn,
11532         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
11533         gcc_unreachable if validate_arglist fails.
11535 2019-03-12  Richard Biener  <rguenther@suse.de>
11537         PR tree-optimization/89664
11538         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
11539         free the occurance tree after the early out.
11541 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
11543         PR middle-end/89655
11544         PR bootstrap/89656
11545         * vr-values.c (vr_values::update_value_range): If
11546         old_vr->varying_p (), don't update it, make new_vr also VARYING
11547         and return false.
11549 2019-03-11  Martin Liska  <mliska@suse.cz>
11551         * config/aarch64/aarch64.c (aarch64_override_options_internal):
11552         Fix double string quoting.
11554 2019-03-11  Martin Liska  <mliska@suse.cz>
11556         * collect-utils.c (collect_wait): Wrap apostrophes
11557         in gcc internal format with %'.
11558         * collect2.c (main): Likewise.
11559         (scan_prog_file): Likewise.
11560         (scan_libraries): Likewise.
11561         * config/i386/i386.c (ix86_expand_call): Likewise.
11562         (ix86_handle_interrupt_attribute): Likewise.
11563         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
11564         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
11565         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
11566         * lto-wrapper.c (find_crtoffloadtable): Likewise.
11567         * symtab.c (symtab_node::verify_base): Likewise.
11568         * tree-cfg.c (verify_gimple_label): Likewise.
11569         * tree.c (verify_type_variant): Likewise.
11571 2019-03-11  Martin Liska  <mliska@suse.cz>
11573         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
11574         in a string format message and fix GNU coding style.
11575         (expand_builtin_set_thread_pointer): Likewise.
11576         * common/config/aarch64/aarch64-common.c
11577         (aarch64_rewrite_selected_cpu): Likewise.
11578         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
11579         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
11580         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
11581         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
11582         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
11583         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
11584         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
11585         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
11586         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
11587         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
11588         Likewise.
11589         * common/config/riscv/riscv-common.c
11590         (riscv_subset_list::parsing_subset_version): Likewise.
11591         (riscv_subset_list::parse_std_ext): Likewise.
11592         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11593         (riscv_subset_list::parse): Likewise.
11594         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
11595         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
11596         (aarch64_override_options_internal): Likewise.
11597         (aarch64_validate_mcpu): Likewise.
11598         (aarch64_validate_march): Likewise.
11599         (aarch64_validate_mtune): Likewise.
11600         (aarch64_override_options): Likewise.
11601         * config/alpha/alpha.c (alpha_option_override): Likewise.
11602         * config/arc/arc.c (arc_init): Likewise.
11603         (parse_mrgf_banked_regs_option): Likewise.
11604         (arc_override_options): Likewise.
11605         (arc_expand_builtin_aligned): Likewise.
11606         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
11607         (arm_expand_builtin): Likewise.
11608         * config/arm/arm.c (arm_option_check_internal): Likewise.
11609         (arm_configure_build_target): Likewise.
11610         (arm_option_override): Likewise.
11611         (arm_options_perform_arch_sanity_checks): Likewise.
11612         (arm_handle_cmse_nonsecure_entry): Likewise.
11613         (arm_handle_cmse_nonsecure_call): Likewise.
11614         (arm_tls_referenced_p): Likewise.
11615         (thumb1_expand_prologue): Likewise.
11616         * config/avr/avr.c (avr_option_override): Likewise.
11617         * config/bfin/bfin.c (bfin_option_override): Likewise.
11618         * config/c6x/c6x.c (c6x_option_override): Likewise.
11619         * config/cr16/cr16.c (cr16_override_options): Likewise.
11620         * config/cris/cris.c (cris_option_override): Likewise.
11621         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
11622         * config/darwin-c.c (macosx_version_as_macro): Likewise.
11623         * config/darwin.c (darwin_override_options): Likewise.
11624         * config/frv/frv.c (frv_expand_builtin): Likewise.
11625         * config/h8300/h8300.c (h8300_option_override): Likewise.
11626         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
11627         (ix86_option_override_internal): Likewise.
11628         (warn_once_call_ms2sysv_xlogues): Likewise.
11629         (ix86_expand_prologue): Likewise.
11630         (split_stack_prologue_scratch_regno): Likewise.
11631         (ix86_warn_parameter_passing_abi): Likewise.
11632         * config/ia64/ia64.c (fix_range): Likewise.
11633         * config/m68k/m68k.c (m68k_option_override): Likewise.
11634         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
11635         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
11636         (mips_set_compression_mode): Likewise.
11637         * config/mmix/mmix.c (mmix_option_override): Likewise.
11638         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
11639         * config/msp430/msp430.c (msp430_option_override): Likewise.
11640         * config/nds32/nds32.c (nds32_option_override): Likewise.
11641         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
11642         (nios2_option_override): Likewise.
11643         (nios2_expand_custom_builtin): Likewise.
11644         * config/nvptx/mkoffload.c (main): Likewise.
11645         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
11646         * config/pa/pa.c (fix_range): Likewise.
11647         (pa_option_override): Likewise.
11648         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
11649         (riscv_option_override): Likewise.
11650         * config/rl78/rl78.c (rl78_option_override): Likewise.
11651         * config/rs6000/aix61.h: Likewise.
11652         * config/rs6000/aix71.h: Likewise.
11653         * config/rs6000/aix72.h: Likewise.
11654         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
11655         * config/rs6000/freebsd64.h: Likewise.
11656         * config/rs6000/linux64.h: Likewise.
11657         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
11658         (rs6000_expand_zeroop_builtin): Likewise.
11659         (rs6000_expand_mtfsb_builtin): Likewise.
11660         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
11661         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
11662         (rs6000_invalid_builtin): Likewise.
11663         (rs6000_expand_split_stack_prologue): Likewise.
11664         * config/rs6000/rtems.h: Likewise.
11665         * config/rx/rx.c (valid_psw_flag): Likewise.
11666         (rx_expand_builtin): Likewise.
11667         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
11668         * config/s390/s390.c (s390_expand_builtin): Likewise.
11669         (s390_function_profiler): Likewise.
11670         (s390_option_override_internal): Likewise.
11671         (s390_option_override): Likewise.
11672         * config/sh/sh.c (sh_option_override): Likewise.
11673         (sh_builtin_saveregs): Likewise.
11674         (sh_fix_range): Likewise.
11675         * config/sh/vxworks.h: Likewise.
11676         * config/sparc/sparc.c (sparc_option_override): Likewise.
11677         * config/spu/spu.c (spu_option_override): Likewise.
11678         (fix_range): Likewise.
11679         * config/visium/visium.c (visium_option_override): Likewise.
11680         (visium_handle_interrupt_attr): Likewise.
11681         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
11682         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
11683         (dbg_cnt_process_opt): Likewise.
11684         * dwarf2out.c (output_dwarf_version): Likewise.
11685         * except.c (expand_eh_return): Likewise.
11686         * gcc.c (defined): Likewise.
11687         (driver_handle_option): Likewise.
11688         (process_command): Likewise.
11689         (compare_files): Likewise.
11690         (driver::prepare_infiles): Likewise.
11691         (driver::do_spec_on_infiles): Likewise.
11692         (driver::maybe_run_linker): Likewise.
11693         * omp-offload.c (oacc_parse_default_dims): Likewise.
11694         * opts-global.c (handle_common_deferred_options): Likewise.
11695         * opts.c (parse_sanitizer_options): Likewise.
11696         (common_handle_option): Likewise.
11697         (enable_warning_as_error): Likewise.
11698         * passes.c (enable_disable_pass): Likewise.
11699         * plugin.c (parse_plugin_arg_opt): Likewise.
11700         (default_plugin_dir_name): Likewise.
11701         * targhooks.c (default_expand_builtin_saveregs): Likewise.
11702         (default_pch_valid_p): Likewise.
11703         * toplev.c (init_asm_output): Likewise.
11704         (process_options): Likewise.
11705         (toplev::run_self_tests): Likewise.
11706         * tree-cfg.c (verify_gimple_call): Likewise.
11707         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
11708         (tree_inlinable_function_p): Likewise.
11709         * var-tracking.c (vt_find_locations): Likewise.
11711 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
11713         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11714         only on the else branch.
11716 2019-03-11  Martin Liska  <mliska@suse.cz>
11718         * gcov.c (output_intermediate_json_line): Print function
11719         name of each line.
11720         (output_json_intermediate_file): Add new argument.
11721         * doc/gcov.texi: Document the change.
11723 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
11725         PR rtl-optimization/89588
11726         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11727         explicit unrolling factor more robust.
11729 2019-03-11  Richard Biener  <rguenther@suse.de>
11731         PR tree-optimization/89649
11732         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
11733         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
11734         on the prolog and epilog loops.
11735         (vect_loop_versioning): Return copy of loop.
11736         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
11737         on the non-vectorized version of the loop.
11739 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
11741         PR target/68924
11742         * config/i386/sse.md (*vec_extractv2di_0_sse):
11743         Add (=r,x) alternative and corresponding splitter.
11745 2019-03-10  Martin Jambor  <mjambor@suse.cz>
11747         PR tree-optimization/85762
11748         PR tree-optimization/87008
11749         PR tree-optimization/85459
11750         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
11751         it points to if there is a type changing MEM_REF.  Adjust all callers.
11752         (build_accesses_from_assign): Disable total scalarization if
11753         contains_vce_or_bfcref_p returns true through the new parameter, for
11754         both rhs and lhs.
11756 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
11758         PR c/88568
11759         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
11760         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
11762         PR target/79645
11763         * common.opt (fdiagnostics-show-labels,
11764         fdiagnostics-show-line-numbers, fdiagnostics-format=,
11765         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
11766         gas-locview-support, ginline-points, ginternal-reset-location-views):
11767         Terminate description text with a dot.
11768         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
11769         * config/mcore/mcore.opt (m210, m340): Likewise.
11770         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
11771         mnops=): Start description text with a capital letter.
11772         * config/arc/arc.opt (msize-level=): Likewise.
11773         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
11774         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
11775         mnewlib): Likewise.
11776         * config/ft32/ft32.opt (msim): Likewise.
11777         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
11778         (mnodiv, mnopm): Terminate description text with a dot.
11779         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
11780         a colon.
11781         * config/i386/i386.opt (prefer_vector_width, instrument_return):
11782         Likewise.
11783         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11784         text.
11786         PR rtl-optimization/89634
11787         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
11788         are modified in BB_END (e->src) instruction.
11790 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
11792         PR target/79926
11793         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11794         messages more amenable to translation, and improve wording.
11796 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
11798         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11799         ud- and du-chains between phases.
11801 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
11803         PR debug/89631
11804         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11805         instead of POLY_INT_CST.
11807 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11809         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11810         requirement.
11812 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
11814         PR target/68924
11815         PR target/78782
11816         PR target/87558
11817         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11818         (_mm_storeu_si64): Ditto.
11820 2019-03-08  Martin Liska  <mliska@suse.cz>
11822         PR target/86952
11823         * config/i386/i386.c (ix86_option_override_internal): Disable
11824         jump tables when retpolines are used.
11826 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
11828         PR go/63560
11829         * ipa-split.c (execute_split_functions): Do not split
11830         'noinline' or 'section' function.
11832 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11834         PR target/79846
11835         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
11836         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
11837         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
11839         PR ipa/80000
11840         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11841         from diagnostics.  Formatting fixes.
11843         PR target/85665
11844         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11845         warn_odr diagnostics.
11847         PR other/80058
11848         * lra-constraints.c (process_alt_operands): Avoid one space before
11849         " at the end of line and another after " on another line in a string
11850         literal.
11851         * attribs.c (handle_dll_attribute): Likewise.
11852         * config/avr/avr-devices.c (avr_texinfo): Likewise.
11854         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11855         warning_at or inform messages in G_() if there is no ?:.
11857         PR tree-optimization/89550
11858         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
11859         returned true.  Formatting fixes.
11860         (expand_builtin_strnlen): Formatting fixes.
11861         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
11862         if warning_at returned true.
11863         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
11865 2019-03-08  Richard Biener  <rguenther@suse.de>
11867         PR middle-end/89578
11868         * cfgloop.h (struct loop): Add owned_clique field.
11869         * cfgloopmanip.c (copy_loop_info): Copy it.
11870         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
11871         cliques.
11872         * tree-inline.c (copy_loops): Remap owned_clique.
11873         * lto-streamer-in.c (input_cfg): Stream owned_clique.
11874         * lto-streamer-out.c (output_cfg): Likewise.
11876 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11878         PR target/80190
11879         * config/darwin.c: Include intl.h.
11880         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
11881         composing the message out of two separate parts.
11883 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11885         PR target/80003
11886         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
11887         doesn't start with a capital letter and doesn't end with a dot.
11888         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
11889         with a capital letter.
11890         (ix86_mangle_function_version_assembler_name): Likewise.
11891         (ix86_generate_version_dispatcher_body): Likewise.
11892         (fold_builtin_cpu): Likewise.
11893         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
11894         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
11895         translators, wrap full type name in %qs.
11897         PR translation/79999
11898         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
11899         depend clause with source (or sink) modifier.
11900         * omp-expand.c (expand_omp_ordered_sink): Likewise.
11902         PR target/89602
11903         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
11904         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
11905         (avx512f_load<mode>_mask): New define_expand.
11906         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
11907         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
11908         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
11909         __builtin_ia32_movess_mask): New builtins.
11910         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
11911         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
11912         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
11913         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
11915 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11917         PR lto/87525
11918         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11919         for extern inline functions.
11921 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11923         PR ipa/88235
11924         * cgraph.h (cgraph_node): New inline method former_thunk_p.
11925         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
11926         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
11927         have multiple callees.  At the end check if declarations match as
11928         opposed to cgraph_nodes.
11930 2019-03-07  Martin Liska  <mliska@suse.cz>
11932         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
11933         which is equivalent to searching for this in clones chain.
11934         * symtab.c (symtab_node::verify_base): Similarly compare ASM
11935         names with a neighbour and special case first node in a chain.
11937 2019-01-25  Jason Merrill  <jason@redhat.com>
11939         PR c++/80916 - spurious "static but not defined" warning.
11940         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
11941         for an internal symbol with DECL_EXTERNAL.
11943 2019-04-07  Richard Biener  <rguenther@suse.de>
11945         PR middle-end/89618
11946         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11947         * tree-inline.c (copy_loops): Simplify.
11949 2019-03-07  Martin Liska  <mliska@suse.cz>
11951         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11953 2019-03-07  Richard Biener  <rguenther@suse.de>
11955         PR tree-optimization/89595
11956         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
11957         stmt iterator as reference, take boolean output parameter to
11958         indicate whether the stmt was removed and thus the iterator
11959         already advanced.
11960         (dom_opt_dom_walker::before_dom_children): Re-iterate over
11961         stmts created by folding.
11963 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11965         PR c++/89585
11966         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11967         at toplevel.
11969 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
11971         PR rtl-optimization/88845
11972         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11973         LRA.
11974         * lra.c (remove_scratches_1): New function.
11975         (remove_scratches): Use it.
11976         (lra_emit_move): Likewise.
11978 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
11980         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
11981         unaligned_access variable.
11982         * config/arc/arc.c (arc_override_options): Set unaligned access
11983         default on for HS CPUs.
11984         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
11986 2019-03-06  Martin Liska  <mliska@suse.cz>
11988         PR gcov-profile/89577
11989         * doc/gcov.texi: Prefer to use --coverage.
11990         * doc/sourcebuild.texi: Likewise.
11992 2019-03-02  Jason Merrill  <jason@redhat.com>
11994         PR c++/86485 - -Wmaybe-unused with empty class ?:
11995         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11997 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11999         PR target/89587
12000         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
12001         if_multiarch.
12003         PR middle-end/89590
12004         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
12005         exactly one argument.
12007 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
12008             Richard Sandiford  <richard.sandiford@arm.com>
12010         PR tree-optimization/89570
12011         * match.pd (vec_cond into cond_op simplification): Don't use
12012         get_conditional_internal_fn, use as_internal_fn (cond_op).
12014 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
12016         PR target/89222
12017         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
12018         to decide when to split off a non-zero offset from a symbol.
12019         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
12020         in function symbols.
12022 2019-03-05  Richard Biener  <rguenther@suse.de>
12024         PR tree-optimization/89594
12025         * tree-if-conv.c (pass_if_conversion::execute): Handle
12026         case where .LOOP_VECTORIZED_FUNCTION was removed.
12028 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
12030         PR bootstrap/89560
12031         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
12032         instead alloca it only when needed with the needed size.
12034         PR tree-optimization/89570
12035         * match.pd (vec_cond into cond_op simplification): Guard with
12036         vectorized_internal_fn_supported_p test and #if GIMPLE.
12038         PR tree-optimization/89566
12039         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
12040         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
12041         Punt if get_user_idx_format succeeds, but idx_format argument is
12042         not provided or doesn't have pointer type, or if idx_args is above
12043         number of provided arguments.
12045 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
12047         PR tree-optimization/89437
12048         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
12050 2019-03-04  Richard Biener  <rguenther@suse.de>
12052         PR middle-end/89572
12053         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
12054         safe_dyn_cast.
12056 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
12058         PR tree-optimization/89487
12059         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
12060         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
12061         (distribute_loop): Don't do runtime alias check if there is non-
12062         addressable data reference.
12063         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
12064         is a register variable.
12066 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
12068         PR target/89506
12069         * config/arm/arm.md (cmpsi2_addneg): Use
12070         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
12071         If operands[2] is 0 or INT_MIN, force use of subs.
12072         (*compare_scc splitter): Use gen_int_mode.
12073         (*negscc): Likewise.
12074         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
12076 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
12077             Monk Chiang  <sh.chiang04@gmail.com>
12079         * common/config/riscv/riscv-common.c: Include sstream.
12080         (riscv_subset_list::to_string): New.
12081         (riscv_arch_str): Likewise.
12082         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
12083         * config.in: Regen.
12084         * config/riscv/riscv-protos.h (riscv_arch_str): New.
12085         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
12086         (riscv_emit_attribute): New.
12087         (riscv_file_start): Emit attribute if needed.
12088         (riscv_option_override): Init riscv_emit_attribute_p.
12089         * config/riscv/riscv.opt (mriscv-attribute): New option.
12090         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
12091         * configure: Regen.
12092         * doc/install.texi: Document --with-riscv-attribute.
12093         * doc/invoke.texi: Document -mriscv-attribute.
12095         * common/config/riscv/riscv-common.c:
12096         Include config/riscv/riscv-protos.h.
12097         (INCLUDE_STRING): Defined.
12098         (RISCV_DONT_CARE_VERSION): Defined.
12099         (riscv_subset_t): Declare.
12100         (riscv_subset_t::riscv_subset_t): New.
12101         (riscv_subset_list): Declare.
12102         (riscv_subset_list::riscv_subset_list): New.
12103         (riscv_subset_list::~riscv_subset_list): Likewise.
12104         (riscv_subset_list::parsing_subset_version): Likewise.
12105         (riscv_subset_list::parse_std_ext): Likewise.
12106         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12107         (riscv_subset_list::add): Likewise.
12108         (riscv_subset_list::lookup): Likewise.
12109         (riscv_subset_list::xlen): Likewise.
12110         (riscv_subset_list::parse): Likewise.
12111         (riscv_supported_std_ext): Likewise.
12112         (current_subset_list): Likewise.
12113         (riscv_parse_arch_string): Using riscv_subset_list::parse to
12114         parse.
12116 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
12118         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12119         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
12120         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
12122 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
12124         PR rtl-optimization/85899
12125         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
12126         fallthru edges leading to the exit block.
12128 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
12130         PR target/89517
12131         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
12132         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
12134 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
12136         PR tree-optimization/89535
12137         * tree-vect-stmts.c (vectorizable_call): Record the vector types
12138         for each operand.  Calculate the fallback choice for mask operands
12139         and pass it to vect_get_vec_def_for_operand.
12141 2019-03-01  Richard Biener  <rguenther@suse.de>
12143         PR middle-end/89541
12144         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
12145         get virtual operands.
12146         (get_expr_operands): Handle CONST_DECL like other decls.
12148 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
12150         PR middle-end/89503
12151         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
12152         on DECL_P and EXPR_P.
12154 2019-03-01  Richard Biener  <rguenther@suse.de>
12156         PR middle-end/89497
12157         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
12158         argument, defaulted to zero.
12159         * passes.c (execute_function_todo): Pass down SSA update flags
12160         to cleanup_tree_cfg.
12161         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
12162         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
12163         form if requested.
12164         (cleanup_tree_cfg): Get and pass down SSA update flags.
12166 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
12168         PR bootstrap/89539
12169         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
12170         early_lto_debug argument.
12172 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12174         PR tree-optimization/89536
12175         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
12176         only whether bit #0 of the value is 0 instead of the entire value.
12178 2019-02-28  Marek Polacek  <polacek@redhat.com>
12180         PR c++/87068 - missing diagnostic with fallthrough statement.
12181         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
12182         at the end of a seq, save its location to walk_stmt_info.
12183         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
12184         a switch.
12186 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
12188         PR lto/88585
12189         * tree.c (find_atomic_core_type): Move ahead in file.
12190         (check_base_type): Correctly compare alignments of atomic types.
12192 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
12194         PR target/89455
12195         * config/i386/i386.c (get_builtin_code_for_version): Identify
12196         Westmere from PCLMUL, instead of AES.
12198 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
12200         PR target/89434
12201         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
12202         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
12203         -UINTVAL (...).
12205 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
12207         PR target/88530
12208         * config/aarch64/aarch64-option-extensions.def: Document it.
12209         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
12210         if empty hwcaps.
12212 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
12214         PR c/89520
12215         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
12216         builtins if they don't have a single scalar floating point argument.
12217         Formatting fixes.
12219 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12221         PR rtl-optimization/89490
12222         * varasm.c (get_block_for_section): Bail out for mergeable sections.
12223         (default_use_anchors_for_symbol_p, output_object_block): Assert the
12224         block section is not mergeable.
12226 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
12228         PR target/70341
12229         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
12230         old define_insn to ...
12231         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
12232         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
12233         Rename old define_insn to ...
12234         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
12235         (thumb2_casesi_internal_pic): New define_expand.  Rename old
12236         define_insn to ...
12237         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
12238         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
12239         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
12241 2019-02-27  Richard Biener  <rguenther@suse.de>
12243         PR debug/88878
12244         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
12246 2019-02-27  Richard Biener  <rguenther@suse.de>
12248         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
12249         building.
12251 2019-02-27  Richard Biener  <rguenther@suse.de>
12253         PR debug/88878
12254         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
12255         parameter, prefix section name with .gnu.debuglto_ if true.
12256         (dwarf2out_finish): Pass false to output_comdat_type_unit.
12257         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
12259 2019-02-27  Richard Biener  <rguenther@suse.de>
12261         PR debug/89514
12262         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
12263         rather than on use_debug_types, doing what output_die does.
12264         (value_format): Likewise.
12266 2019-02-27  Martin Jambor  <mjambor@suse.cz>
12267             Martin Sebor  <msebor@redhat.com>
12269         * doc/invoke.texi (Warning Options): Reword description of
12270         -Wno-absolute-value.
12272 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
12274         PR tree-optimization/89280
12275         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
12276         builtin_setjmp_setup_bb): New functions.
12277         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
12278         When visiting __builtin_setjmp_setup block, queue in special
12279         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
12280         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
12281         from visited after the loop if they don't have any visited successor
12282         blocks.
12284 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
12286         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
12287         New function.
12288         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
12290 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
12292         PR c++/89507
12293         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
12294         with types other than sizetype/ssizetype.
12296 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
12298         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
12299         (enum sparc_processor_type): ...this.
12300         (enum sparc_code_model_type): New enumeration type.
12301         (enum sparc_memory_model_type): Tweak comments.
12302         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
12303         (mtune): Likewise.
12304         (mcmodel): Use sparc_code_model enumeration and variable.
12305         (sparc_code_model): New enumeration.
12306         (mdebug): Add Undocumented marker.
12307         * config/sparc/sparc.h (enum cmodel): Delete.
12308         (sparc_cmodel): Likewise.
12309         (TARGET_CM_MEDLOW): Adjust to above renaming.
12310         (TARGET_CM_MEDMID): Likewise.
12311         (TARGET_CM_MEDANY): Likewise.
12312         (TARGET_CM_EMBMEDANY): Likewise.
12313         * config/sparc/sparc.c (sparc_cmodel): Delete.
12314         (sparc_option_override): Remove string/value mapping support for the
12315         code model.  Move code and memory model support to after the handling
12316         of target flags.  Do private machine setup last.
12317         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
12318         (sparc_legitimize_reload_address): Likewise.
12319         (sparc_output_mi_thunk): Likewise.
12320         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
12322 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
12324         PR tree-optimization/89500
12325         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
12326         (handle_builtin_strlen): Remove noncst_bound variable.  Always
12327         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
12328         cst if the first cst bytes starting at x are known to be non-zero,
12329         even if the string is not zero terminated.  Don't try to modify
12330         *si for strnlen.  Update strlen_to_stridx only for strlen or if
12331         we can prove strnlen returns the same value as strlen would.
12333 2019-02-26  Martin Liska  <mliska@suse.cz>
12335         * alloc-pool.h (struct pool_usage): Remove extra
12336         print_dash_line.
12337         * bitmap.h (struct bitmap_usage): Likewise.
12338         * ggc-common.c (struct ggc_usage): Likewise.
12339         * mem-stats.h (struct mem_usage): Likewise.
12340         (mem_alloc_description::dump): Print dash lines
12341         here and repeat header at the end of a table report.
12342         It's then more readable.
12343         * tree-phinodes.c (phinodes_print_statistics): Make
12344         horizontal alignment.
12345         * tree-ssanames.c (ssanames_print_statistics): Likewise.
12346         * vec.c (struct vec_usage): Remove extra print_dash_line.
12347         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
12349 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
12351         * doc/extend.texi (__builtin_object_size):
12352         Use @pxref instead of @xref inside parenthesis.
12353         (__builtin_has_attribute): Add missing comma after @xref.
12354         (__builtin_object_size): Ditto.
12355         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
12356         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
12357         in the list.
12359 2019-02-26  Jeff Law  <law@redhat.com>
12361         PR rtl-optimization/87761
12362         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
12363         detect obviously dead insns and delete them.
12365 2019-02-26  Richard Biener  <rguenther@suse.de>
12367         PR tree-optimization/89505
12368         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
12369         to handle restrict pointed-to vars with multiple subvars
12370         correctly.
12372 2019-02-26  Richard Biener  <rguenther@suse.de>
12374         PR tree-optimization/89489
12375         * tree-parloops.c (create_loop_fn): Copy over last_clique.
12377 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
12379         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
12380         and move around comment.
12381         <BIT_AND_EXPR>: Likewise.
12382         <BIT_NOT_EXPR>: Add specific handling for boolean types.
12384 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
12386         PR target/89474
12387         * config/i386/i386.c (remove_partial_avx_dependency): Call
12388         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
12389         after changing possibly many instructions to use that pseudo.  Fix up
12390         insertion of v4sf_const0 setter at the start of bb.
12392 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
12394         PR c/80409
12395         * doc/extend.texi (Variadic Pointer Args): New section.
12397 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
12398             Martin Sebor  <msebor@gmail.com>
12400         * common.opt (Wattribute-alias): Likewise.
12401         * doc/invoke.texi (Option Summary): List general form of
12402         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
12403         (-Wmissing-attributes): Invert entry, rewrite and correct default.
12404         Add cross-references.
12405         (-Wattribute-alias): Rewrite and correct default.  Mention
12406         considered attributes (same as for -Wmissing-attributes).
12408 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
12410         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
12411         (_mm_cvtpd_ps): Likewise.
12412         (_mm_cvttpd_epi32): Likewise.
12414         PR target/89338
12415         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
12416         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
12418         PR target/89339
12419         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
12421 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
12423         PR target/88530
12424         * common/config/aarch64/aarch64-common.c
12425         (struct aarch64_option_extension): Add is_synthetic.
12426         (all_extensions): Use it.
12427         (TARGET_OPTION_INIT_STRUCT): Define hook.
12428         (struct gcc_targetm_common): Moved to end.
12429         (all_extensions_by_on): New.
12430         (opt_ext_cmp, typedef opt_ext): New.
12431         (aarch64_option_init_struct): New.
12432         (aarch64_contains_opt): New.
12433         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
12434         * config/aarch64/aarch64-option-extensions.def
12435         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
12436         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
12437         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
12438         Set is_synthetic to false.
12439         (crypto): Set is_synthetic to true.
12440         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
12441         SYNTHETIC.
12443 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
12445         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
12446         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
12447         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
12448         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
12449         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
12450         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
12451         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
12452         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
12453         Rename ...
12454         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
12455         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
12456         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
12457         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
12458         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
12459         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
12460         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
12461         vfmlsl_laneq_high_f16): ... To this.
12462         * config/arm/neon.md: Update comments.
12464 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
12466         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
12467         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
12468         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
12469         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
12470         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
12471         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
12472         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
12473         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
12474         Rename ...
12475         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
12476         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
12477         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
12478         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
12479         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
12480         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
12481         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
12482         vfmlslq_laneq_high_f16): ... To this.
12484 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
12486         PR rtl-optimization/86096
12487         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
12488         comparing mw_order values.
12490 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
12492         PR target/89434
12493         * config/arm/arm.md (*subsi3_carryin_const): Use
12494         arm_neg_immediate_operand predicate instead of
12495         arm_not_immediate_operand, "L" constraint instead of "K" and
12496         print it using %n2 instead of %B2.
12497         (*subsi3_carryin_const0): New define_insn.
12498         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
12499         instead of arm_not_operand and "I" constraint instead of "K" and
12500         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
12501         another match_operand and in the condition check that it is negation
12502         of operands[2].
12503         (*subsi3_carryin_compare_const0): New define_ins.
12504         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
12505         *subsi3_carryin_const.
12506         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
12507         split into *subsi3_carryin_compare_const0 if the highpart is zero.
12509         PR target/89438
12510         * config/arm.vfp.md (*negdf2_vfp): Use
12511         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
12512         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
12514 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
12516         PR rtl-optimization/89445
12517         * simplify-rtx.c (simplify_ternary_operation): Don't use
12518         simplify_merge_mask on operands that may trap.
12519         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
12520         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
12521         second operand is CONST_VECTOR, check if any element could be zero.
12522         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
12523         their operands can trap.
12525 2019-02-23  Martin Sebor  <msebor@redhat.com>
12527         * gimple-ssa-sprintf.c (target_strtol): Rename...
12528         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
12529         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
12530         check for range error.
12532 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
12534         PR driver/69471
12535         * opts-common.c (prune_options): Also prune joined switches
12536         with Negative and RejectNegative.
12537         * config/i386/i386.opt (march=): Add Negative(march=).
12538         (mtune=): Add Negative(mtune=).
12539         * doc/options.texi: Document Negative used together with Joined
12540         and RejectNegative.
12542 2019-02-22  Martin Sebor  <msebor@redhat.com>
12544         * doc/extend.texi (Other Builtins): Add
12545         __builtin_is_constant_evaluated.
12547 2019-02-22  Richard Biener  <rguenther@suse.de>
12549         PR tree-optimization/87609
12550         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
12552 2019-02-22  Jeff Law  <law@redhat.com>
12554         PR rtl-optimization/87761
12555         * config/mips/mips.md: Add new combiner pattern to recognize
12556         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
12558 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
12560         PR target/89324
12561         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
12562         destination register in peepholes generating patterns for ADDS/SUBS.
12563         (add<mode>3_compare0,
12564         *addsi3_compare0_uxtw, add<mode>3_compareC,
12565         add<mode>3_compareV_imm, add<mode>3_compareV,
12566         *adds_<optab><ALLX:mode>_<GPI:mode>,
12567         *subs_<optab><ALLX:mode>_<GPI:mode>,
12568         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
12569         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
12570         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
12571         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
12572         sub<mode>3_compare1): Allow stack pointer for source register.
12573         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
12575 2019-02-22  Martin Sebor  <msebor@redhat.com>
12577         PR tree-optimization/88993
12578         PR tree-optimization/88853
12579         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
12580         New helper.
12581         (sprintf_dom_walker::call_info::is_string_func): New helper.
12582         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
12583         for formatted string functions.
12584         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
12586 2019-02-22  Martin Sebor  <msebor@redhat.com>
12588         PR c/89425
12589         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
12590         unreachable subexpressions.
12592 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
12593             Hongtao Liu  <hongtao.liu@intel.com>
12594             Sunil K Pandey  <sunil.k.pandey@intel.com>
12596         PR target/87007
12597         * config/i386/i386-passes.def: Add
12598         pass_remove_partial_avx_dependency.
12599         * config/i386/i386-protos.h
12600         (make_pass_remove_partial_avx_dependency): New.
12601         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
12602         New function.
12603         (pass_data_remove_partial_avx_dependency): New.
12604         (pass_remove_partial_avx_dependency): Likewise.
12605         (make_pass_remove_partial_avx_dependency): Likewise.
12606         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
12607         (*extendsfdf2): Add avx_partial_xmm_update.
12608         (truncdfsf2): Likewise.
12609         (*float<SWI48:mode><MODEF:mode>2): Likewise.
12610         (SF/DF conversion splitters): Disabled for TARGET_AVX.
12612 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
12614         PR middle-end/85598
12615         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
12616         analysis for pass.
12618 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
12620         PR target/89444
12621         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
12622         (PTA_SKYLAKE): Add PTA_AES.
12623         (PTA_GOLDMONT): Likewise.
12625 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
12627         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
12628         instruction if enabled.
12629         (aarch64_override_options): Remove reference to return address key.
12631 2019-02-22  Richard Biener  <rguenther@suse.de>
12633         PR tree-optimization/89440
12634         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12635         not necessary assert.
12637 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
12639         PR fortran/72741
12640         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
12641         (oacc_replace_fn_attrib_attr): ... this new function.
12642         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
12643         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
12645 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12647         * config/arm/arm-cpus.in (ares): Rename to...
12648         (neoverse-n1): ... This.  Add ares as alias.
12649         * config/arm/arm-tables.opt: Regenerate.
12650         * config/arm/arm-tune.md: Likewise.
12651         * doc/invoke.txt (ARM Options): Document neoverse-n1.
12653 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12655         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
12656         * config/aarch64/aarch64-tune.md: Regenerate.
12657         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
12659 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12661         * config/aarch64/aarch64.c (ares_tunings): Rename to...
12662         (neoversen1_tunings): ... This.
12663         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
12664         (neoverse-n1): New CPU.
12665         * config/aarch64/aarch64-tune.md: Regenerate.
12666         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
12668 2019-02-22  Richard Biener  <rguenther@suse.de>
12670         PR middle-end/87609
12671         * cfghooks.h (dependence_hash): New typedef.
12672         (struct copy_bb_data): New type.
12673         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
12674         (duplicate_block): Likewise.
12675         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
12676         (copy_bbs): Create and pass down copy_bb_data.
12677         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
12678         (rtl_duplicate_bb): Likewise.
12679         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
12680         remap dependence info.
12682 2019-02-22  Richard Biener  <rguenther@suse.de>
12684         PR tree-optimization/87609
12685         * tree-core.h (tree_base): Document special clique values.
12686         * tree-inline.c (remap_dependence_clique): Do not use the
12687         special clique value of one.
12688         (maybe_set_dependence_info): Use clique one.
12689         (clear_dependence_clique): New callback.
12690         (compute_dependence_clique): Clear clique one from all refs
12691         before assigning it (again).
12693 2019-02-21  Martin Sebor  <msebor@redhat.com>
12695         * doc/extend.texi (__clear_cache): Correct signature.
12697 2019-02-21  Ian Lance Taylor  <iant@golang.org>
12699         PR go/89170
12700         * varasm.c (decode_addr_const): Call lookup_constant_def rather
12701         than output_constant_def.
12702         (add_constant_to_table): New static function.
12703         (output_constant_def): Call add_constant_to_table.
12704         (tree_output_constant_def): Likewise.
12706 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
12708         PR c++/89285
12709         * builtins.c (fold_builtin_arith_overflow): If first two args are
12710         INTEGER_CSTs, set intres and ovfres to constants rather than calls
12711         to ifn.
12713 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12715         PR target/87412
12716         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12717         error for -mindirect-branch/-mfunction-return with incompatible
12718         -fcf-protection.
12720 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
12722         PR bootstrap/88714
12723         * constraints.md (q): Remove.
12724         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12725         instead of q.
12727 2019-02-21  Martin Jambor  <mjambor@suse.cz>
12729         PR hsa/89302
12730         * omp-general.c (omp_extract_for_data): Removed a duplicate call
12731         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
12732         (omp_adjust_for_condition): ...here.  Added necessary parameters.
12733         * omp-general.h (omp_adjust_for_condition): Updated declaration.
12734         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
12735         proper values to new parameters of omp_adjust_for_condition.
12737 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12739         PR middle-end/89412
12740         * expr.c (expand_assignment): If result is a MEM, use change_address
12741         instead of simplify_gen_subreg.
12743 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12744             David Malcolm  <dmalcolm@redhat.com>
12746         PR middle-end/89091
12747         * fold-const.c (decode_field_reference): Return NULL_TREE if
12748         lang_hooks.types.type_for_size returns NULL.  Check it before
12749         overwriting *exp_.  Use return NULL_TREE instead of return 0.
12751 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12753         PR middle-end/88074
12754         PR middle-end/89415
12755         * toplev.c (do_compile): Double the emin/emax exponents to workaround
12756         buggy mpc_norm.
12758 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
12760         PR target/89397
12761         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12762         TARGET_SSE in addition to TARGET_SSE_MATH.
12764         (ix86_excess_precision): Ditto.
12765         (ix86_float_exceptions_rounding_supported_p): Ditto.
12766         (use_rsqrt_p): Ditto.
12767         * config/i386/sse.md (rsqrt<mode>2): Ditto.
12769 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
12771         PR c/89410
12772         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
12773         linenum_arith_t when determining if two adjacent line spans are
12774         close enough to merge.
12775         (diagnostic_show_locus): Use linenum_arith_t when iterating over
12776         lines within each line_span.
12778 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
12780         PR target/86487
12781         * lra-constraints.c(uses_hard_regs_p): Fix handling of
12782         paradoxical SUBREGS.
12784 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
12786         PR target/88100
12787         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
12788         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
12789         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
12790         range checking it.
12792 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
12794         * config/gcn/gcn.c (print_operand): Fix typo.
12796 2019-02-19  Richard Biener  <rguenther@suse.de>
12798         PR middle-end/88074
12799         * toplev.c (do_compile): Initialize mpfr's exponent range
12800         based on available float modes.
12802 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12804         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12805         as long as the epilogue isn't completed.
12807 2019-02-18  Martin Sebor  <msebor@redhat.com>
12809         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12810         __has_cpp_attribute, and __has_include.
12812 2019-02-18  Martin Sebor  <msebor@redhat.com>
12814         * doc/invoke.texi (-Wreturn-type): Correct and expand.
12816 2019-02-18  Martin Sebor  <msebor@redhat.com>
12818         PR middle-end/89294
12819         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12820         expression.
12821         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12823 2019-02-18  Richard Biener  <rguenther@suse.de>
12825         PR tree-optimization/89296
12826         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
12827         of no-warning flag to cases that might emit the bogus warning.
12829 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
12831         PR bootstrap/88714
12832         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12833         "q" constraint.
12834         * config/arm/vfp.md (*movdi_vfp): Likewise.
12835         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
12836         "q" constraint for operands[0].
12838         PR target/89369
12839         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
12840         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
12841         pattern in a temporary buffer.
12842         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
12843         than 64-operands[2].
12845         PR target/89361
12846         * config/s390/s390.c (s390_indirect_branch_attrvalue,
12847         s390_indirect_branch_settings): Define unconditionally.
12848         (s390_set_current_function): Likewise, but guard the whole body except
12849         the s390_indirect_branch_settings call with
12850         #if S390_USE_TARGET_ATTRIBUTE.
12851         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
12853         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
12854         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
12855         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
12856         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
12857         HOST_WIDE_INT_1U instead of 1ULL.
12858         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
12859         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
12860         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
12861         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
12862         instead of 1UL.
12863         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12864         instead of 1ul.
12866 2019-02-18  Martin Jambor  <mjambor@suse.cz>
12868         PR tree-optimization/89209
12869         * tree-sra.c (create_access_replacement): New optional parameter
12870         reg_tree.  Use it as a type if non-NULL and access type is not of
12871         a register type.
12872         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
12873         to create_access_replacement.
12874         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
12875         Check lacc is non-NULL before attempting to re-create it on the RHS.
12877 2019-02-18  Martin Liska  <mliska@suse.cz>
12879         PR ipa/89306
12880         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12881         by default.
12882         (symbol_table::free_edge): Recycle m_summary_id.
12883         * cgraph.h (get_summary_id): New.
12884         (symbol_table::release_symbol): Set m_summary_id to -1
12885         by default.
12886         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
12887         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
12888         function_summary to fast_function_summary.
12889         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
12890         * ipa-pure-const.c (class funct_state_summary_t):
12891         Switch from function_summary to fast_function_summary.
12892         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
12893         (class ipa_ref_opt_summary_t): Switch from function_summary
12894         to fast_function_summary.
12895         * symbol-summary.h (class function_summary_base): New class
12896         that is created from base of former function_summary.
12897         (function_summary_base::unregister_hooks): New.
12898         (class function_summary): Inherit from function_summary_base.
12899         (class call_summary_base): New class
12900         that is created from base of former call_summary.
12901         (class call_summary): Inherit from call_summary_base.
12902         (struct is_same): New.
12903         (class fast_function_summary): New summary class.
12904         (class fast_call_summary): New summary class.
12905         * vec.h (vec_safe_grow_cleared): New function.
12907 2019-02-18  Martin Liska  <mliska@suse.cz>
12909         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
12910         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
12911         * doc/tm.texi: Document new target hook.
12912         * doc/tm.texi.in: Likewise.
12913         * target.def: Add new target macro.
12914         * gcc.c (find_fortran_preinclude_file): Do not search multilib
12915         suffixes.
12917 2019-02-17  Alan Modra  <amodra@gmail.com>
12919         PR target/89271
12920         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
12921         output reg on add insn.
12922         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
12924 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12926         PR target/89372
12927         * config/i386/sse.md (ssedoublemode): Remove V4HI.
12928         (PMULHRSW): Likewise.
12929         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12930         TARGET_AVX2.
12931         (ssse3_pmulhrswv4hi3): New expander.
12933 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12935         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12936         MMX.  Add isa attribute.
12938 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
12940         PR rtl-optimization/66152
12941         * builtins.h (c_readstr): Declare.
12942         * builtins.c (c_readstr): Remove forward declaration.  Add
12943         null_terminated_p argument, if false, read all bytes from the
12944         string instead of stopping after '\0'.
12945         * expr.c (string_cst_read_str): New function.
12946         (store_expr): Use string_cst_read_str instead of
12947         builtin_strncpy_read_str.  Try to store by pieces the whole
12948         exp_len first, and only if that fails, split it up into
12949         store by pieces followed by clear_storage.  Formatting fix.
12951         * config/i386/i386.md (*movqi_internal): Remove static from
12952         buf variable.  Use output_asm_insn (buf, operands); return "";
12953         instead of return buf;.
12954         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
12955         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
12956         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
12958 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12960         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
12961         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
12962         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
12963         (CC1_SPEC): Likewise.
12964         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
12966 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12968         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12969         the base address on 64-bit strict-alignment platforms.
12971 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12973         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12975 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
12977         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12979 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
12981         PR rtl-optimization/88308
12982         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12983         on copied instruction.
12985 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12987         * final.c (insn_current_reference_address): Replace test on JUMP_P
12988         with test on jump_to_label_p.
12989         * config/visium/visium-passes.def: New file.
12990         * config/visium/t-visium (PASSES_EXTRA): Define.
12991         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
12992         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
12993         (TRAMPOLINE_ALIGNMENT): Define.
12994         * config/visium/visium.c (visium_option_override): Do not register
12995         the machine-specific reorg pass here.
12996         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
12997         for the GR6.
12998         (output_branch): Adjust threshold for long branch instruction.
12999         * config/visium/visium.md (cpu): Move around.
13000         (length): Adjust for the GR6.
13002 2019-02-15  Richard Biener  <rguenther@suse.de>
13003             Jakub Jelinek  <jakub@redhat.com>
13005         PR tree-optimization/89278
13006         * tree-loop-distribution.c: Include tree-eh.h.
13007         (generate_memset_builtin, generate_memcpy_builtin): Call
13008         rewrite_to_non_trapping_overflow on builtin->size before passing it
13009         to force_gimple_operand_gsi.
13011 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
13013         PR other/89342
13014         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
13015         optimize_debug.
13016         * opth-gen.awk: Likewise.
13018 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
13020         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
13021         Enable MMX, SSE and SSE2 by default.
13022         * config/i386/i386.c (ix86_option_override_internal): Do not
13023         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
13025 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
13027         PR rtl-optimization/89354
13028         * combine.c (make_extraction): Punt if extraction_mode is narrower
13029         than len bits.
13031 2019-02-14  Maya Rashish  <coypu@sdf.org>
13033         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
13034         * config/netbsd-d.c: New file.
13035         * config/t-netbsd: Add netbsd-d.o
13037 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
13039         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
13040         affects_type_identity to true for aarch64_vector_pcs.
13041         (aarch64_comp_type_attributes): New function.
13042         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
13044 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
13046         PR target/88850
13047         * config/arm/iterators.md (ANY64): Add V4HF.
13049 2019-02-14  Martin Liska  <mliska@suse.cz>
13051         PR rtl-optimization/89242
13052         * dce.c (delete_unmarked_insns): Call free_dominance_info we
13053         process a transformation.
13055 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
13057         PR tree-optimization/89314
13058         * fold-const.c (fold_binary_loc): Cast strlen argument to
13059         const char * before dereferencing it.  Formatting fixes.
13061         PR middle-end/89284
13062         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
13064 2019-02-13  Ian Lance Taylor  <iant@golang.org>
13066         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
13067         and set current index for other optimizations.
13069 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
13071         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
13072         nonimmediate_operand as operand 2 predicate.
13073         (vec_set<VF2_512_256:mode>_0): Ditto.
13074         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
13075         (*vec_concatv2si): Remove alternative 2.
13076         (*vec_concatv4si_0): Use vm constraint for alternative 0.
13077         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
13078         (vec_concatv2di): Split alternatives 4,5,6 to ...
13079         (*vec_concatv2di_0) ... new pattern.
13081 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
13083         PR target/89190
13084         * config/arm/arm.c (ldm_stm_operation_p) Set
13085         addr_reg_in_reglist correctly for first register.
13086         (load_multiple_sequence): Remove dead base check.
13087         (gen_ldm_seq): Correctly set write_back for Thumb-1.
13089 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
13091         PR target/88847
13092         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
13093         Expose as @aarch64_pred_mov.
13094         * config/aarch64/aarch64.c (aarch64_classify_address):
13095         Use expand_insn which legitimizes operands.
13097 2019-02-13  Martin Liska  <mliska@suse.cz>
13099         * builtins.h (expand_builtin_with_bounds): Remove declaration.
13100         * calls.c (struct arg_data): Remove special_slot, pointer_arg
13101         and pointer_offset fields.
13102         (initialize_argument_information): Remove usage of dead
13103         fields.
13104         * cgraph.h (struct cgraph_thunk_info): Remove
13105         add_pointer_bounds_args.
13106         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
13107         fields.
13108         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
13109         fields.
13110         * config/i386/i386.c (ix86_function_arg_advance): Remove
13111         unrelated comment.
13112         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
13113         (def_builtin):  Remove usage of dead
13114         fields.
13115         (ix86_add_new_builtins): Likewise.
13116         * ipa-fnsummary.c (compute_fn_summary): Likewise.
13117         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13118         (sem_function::init): Likewise.
13119         (sem_variable::merge): Likewise.
13120         * ipa-visibility.c (function_and_variable_visibility): Likewise.
13121         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
13122         * lto-cgraph.c (lto_output_node): Likewise.
13123         (lto_output_varpool_node): Likewise.
13124         (input_node): Likewise.
13125         (input_varpool_node): Likewise.
13126         * lto-streamer-out.c (lto_output): Likewise.
13127         * tree-inline.c (expand_call_inline): Remove usage of
13128         assign_stmts.
13129         * tree-inline.h (struct copy_body_data): Likewise.
13130         * varpool.c (varpool_node::dump): Likewise.
13132 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
13134         PR middle-end/89303
13135         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
13136         into pt->vars_contains_escaped_heap instead of setting
13137         pt->vars_contains_escaped_heap to it.
13139         PR middle-end/89281
13140         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
13141         INTVAL (size), compare it to GET_MODE_MASK instead of
13142         1 << GET_MODE_BITSIZE.
13144         PR target/89290
13145         * config/i386/predicates.md (x86_64_immediate_operand): Allow
13146         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
13147         -mcmodel=large.
13149 2019-02-13  Martin Liska  <mliska@suse.cz>
13151         PR lto/88858
13152         * cfgrtl.c (remove_barriers_from_footer): New function.
13153         (try_redirect_by_replacing_jump): Use it.
13154         (cfg_layout_redirect_edge_and_branch): Likewise.
13156 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
13158         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
13159         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
13160         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
13161         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
13162         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
13163         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
13164         New BU_CRYPTO_2.
13165         * config/rs6000/rs6000.c (builtin_function_type)
13166         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
13167         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
13168         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
13169         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
13170         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
13172 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
13174         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
13175         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
13177 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13179         PR target/89229
13180         * config/i386/i386.md (*movoi_internal_avx): Revert revision
13181         268678 and revision 268657.
13182         (*movti_internal): Likewise.
13184 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
13186         PR target/89233
13187         * config/s390/s390.c (s390_decompose_address): Update comment.
13188         (s390_check_qrst_address): Reject invalid address forms after
13189         LRA.
13191 2019-02-12  Martin Liska  <mliska@suse.cz>
13193         PR lto/88876
13194         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
13195         we need default values of funct_state for a function that
13196         is not optimized.
13198 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13200         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
13201         the object to pick the size of stores on strict-alignment platforms.
13203         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
13204         (*movdi_insn_sp32): Likewise.
13205         (*movdi_insn_sp64): Likewise.
13207 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
13209         PR lto/88677
13210         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
13211         types that needs constructiong.
13212         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
13214 2019-02-12  Richard Biener  <rguenther@suse.de>
13216         PR tree-optimization/89253
13217         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
13218         duplicate the loop.
13220 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
13222         PR lto/88147
13223         * input.c (selftest::test_line_offset_overflow): New selftest.
13224         (selftest::input_c_tests): Call it.
13226 2019-02-11  Martin Sebor  <msebor@redhat.com>
13228         PR tree-optimization/88771
13229         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
13230         when -Wstringop-overflow is set.
13231         (builtin_memref::builtin_memref): Adjust excessive upper bound
13232         only when lower bound is not excessive.
13233         (maybe_diag_overlap): Detect and diagnose excessive bounds via
13234         -Wstringop-ovefflow.
13235         (maybe_diag_offset_bounds): Rename...
13236         (maybe_diag_access_bounds): ...to this.
13237         (check_bounds_or_overlap): Adjust for name change above.
13239 2019-02-11  Martin Sebor  <msebor@redhat.com>
13241         PR c++/87996
13242         * builtins.c (max_object_size): Move from here...
13243         * builtins.h (max_object_size): ...and here...
13244         * tree.c (max_object_size): ...to here...
13245         * tree.h (max_object_size): ...and here.
13247 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
13249         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
13250         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
13251         for correct semantics.
13253 2019-02-11  Alan Modra  <amodra@gmail.com>
13255         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
13256         -mlongcall and -mpltseq.
13257         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
13258         (RS/6000 and PowerPC Options <-mpltseq>): Document.
13259         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
13260         * config/rs6000/sysv4.opt (mpltseq): New option.
13261         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
13262         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
13263         support is lacking.  Don't allow -mpltseq with -mbss-plt.
13264         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
13265         -mpltseq given for ELFv1.
13266         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
13267         Only use UNSPEC_PLTSEQ for inline PLT calls.
13268         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
13269         use UNSPEC_PLTSEQ for inline PLT calls.
13270         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
13271         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
13272         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
13273         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13274         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13275         (pltseq_mtctr_<mode>): Likewise.
13277 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13279         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
13280         Solaris ld.
13281         * configure: Regenerate.
13283 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
13285         PR bootstrap/88714
13286         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
13287         instead of r.
13289 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
13291         * function.c (assign_parm_setup_block): Use the stored
13292         size, not the passed size, when allocating stack-space,
13293         also for a parameter with alignment larger than
13294         MAX_SUPPORTED_STACK_ALIGNMENT.
13296 2019-02-11  Martin Liska  <mliska@suse.cz>
13298         PR ipa/89009
13299         * ipa-cp.c (build_toporder_info): Remove usage of a param.
13300         * ipa-inline.c (inline_small_functions): Likewise.
13301         * ipa-pure-const.c (propagate_pure_const): Likewise.
13302         (propagate_nothrow): Likewise.
13303         * ipa-reference.c (propagate): Likewise.
13304         * ipa-utils.c (struct searchc_env): Remove unused field.
13305         (searchc): Always search across AVAIL_INTERPOSABLE.
13306         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
13307         the only called IPA pure const can properly not propagate
13308         across interposable boundary.
13309         * ipa-utils.h (ipa_reduced_postorder): Remove param.
13311 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
13313         * config/nds32/nds32.md (call_internal, call_value_internal,
13314         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
13316 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
13318         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
13319         typo.
13321 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
13323         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
13324         in comments
13326 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
13328         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
13330 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
13332         PR tree-optimization/89268
13333         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
13334         if preds is non-NULL.
13336 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
13338         PR lto/89272
13339         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
13340         polymorphic types.
13342 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
13344         * config/nds32/nds32.md (trap): New pattern.
13346 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
13348         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
13349         dwarf span.
13351 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
13353         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
13354         to split POST_INC.
13356 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
13358         * ipa-visibility.c (localize_node): Also do not localize
13359         LDPR_PREVAILING_DEF_IRONLY_EXP.
13361 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
13363         PR lto/87957
13364         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
13365         instead of type_with_linkage.
13367 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
13369         PR ipa/88755
13370         * params.def (uninlined-function-insns, uninlined-function-time,
13371         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
13372         bound so we don't get overflows.
13374 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
13376         * config/rs6000/rs6000-string.c (expand_compare_loop,
13377         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
13378         memcmp/strncmp.
13380 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
13382         PR middle-end/89246
13383         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13384         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
13385         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
13387 2019-02-09  Alan Modra  <amodra@gmail.com>
13389         PR target/88343
13390         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
13391         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
13392         setup.
13394 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
13396         PR middle-end/88560
13397         * lra-constraints.c (process_alt_operands): Don't increase reject
13398         for memory when offset memory is required.
13400 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
13402         * config/s390/vector.md: Implement vector copysign.
13404 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
13406         * expr.c (expand_constructor): Correct indentations.
13408 2019-02-08  Richard Biener  <rguenther@suse.de>
13410         PR tree-optimization/89247
13411         * tree-if-conv.c: Include tree-cfgcleanup.h.
13412         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
13413         (tree_if_conversion): Pass through predicate vector.
13414         (pass_if_conversion::execute): Do CFG cleanup and SSA update
13415         inline, see if any if-converted loops we refrece in
13416         LOOP_VECTORIZED calls vanished and fixup.
13417         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
13419 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
13421         * config/s390/constraints.md (jdd): New constraint.
13423 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
13425         PR target/89229
13426         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
13427         upper 16 vector registers without TARGET_AVX512VL.
13428         (*movti_internal): Likewise.
13430 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
13432         PR rtl-optimization/89234
13433         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
13434         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
13435         (copy_reg_eh_region_note_backward): Likewise.
13437 2019-02-08  Richard Biener  <rguenther@suse.de>
13439         PR middle-end/89223
13440         * tree-data-ref.c (initialize_matrix_A): Fail if constant
13441         doesn't fit in HWI.
13442         (analyze_subscript_affine_affine): Handle failure from
13443         initialize_matrix_A.
13445 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
13447         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
13448         cfun everywhere.
13450 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
13452         PR tree-optimization/86637
13453         PR tree-optimization/89235
13454         * tree-vect-loop.c (optimize_mask_stores): Add an
13455         auto_purge_vect_location sentinel to ensure that vect_location is
13456         purged on exit.
13457         * tree-vectorizer.c
13458         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
13459         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
13460         to ensure that vect_location is purged on exit.
13461         (pass_slp_vectorize::execute): Likewise, replacing the manual
13462         reset.
13463         * tree-vectorizer.h (class auto_purge_vect_location): New class.
13465 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13467         * config/aarch64/iterators.md (max_opp): New code_attr.
13468         (USMAX): New code iterator.
13469         * config/aarch64/predicates.md (aarch64_smin): New predicate.
13470         (aarch64_smax): Likewise.
13471         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
13472         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
13473         MINUS (MAX MIN).
13475 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
13477         PR target/89229
13478         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
13479         for TARGET_AVX512VL.
13480         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
13482 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
13484         * config/s390/s390-builtin-types.def: Add new types.
13485         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
13486         (s390_vec_xlw4): Make the memory operand into a const pointer.
13487         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
13488         float.
13489         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
13490         a new vector type with the alignment of the scalar memory operand.
13492 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
13493             Jakub Jelinek  <jakub@redhat.com>
13495         PR bootstrap/88714
13496         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
13497         arm_count_ldrdstrd_insns): New declarations.
13498         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
13499         MINUS.
13500         (valid_operands_ldrd_strd): New function.
13501         (arm_count_ldrdstrd_insns): New function.
13502         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
13503         sets instead of single DImode set and define new insns to match this.
13505 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
13507         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
13508         Make it a C initializer.
13510 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
13512         PR/target 88850
13513         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
13515 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13517         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
13518         Use neon_dot<q> for type.
13519         (neon_<sup>dot_lane<vsi2qi>): Likewise.
13521 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13523         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
13524         Use neon_dot<q> for type.
13525         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
13526         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
13528 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
13530         PR rtl-optimization/89225
13531         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
13532         sizes check.
13534 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
13536         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
13537         after restoring registers saved to allocate the frame on Windows.
13539 2019-02-06  Richard Biener  <rguenther@suse.de>
13541         PR tree-optimization/89182
13542         * graphite.h (cached_scalar_evolution_in_region): Declare.
13543         * graphite.c (struct seir_cache_key): New.
13544         (struct sese_scev_hash): Likewise.
13545         (seir_cache): New global.
13546         (cached_scalar_evolution_in_region): New function.
13547         (graphite_transform_loops): Allocate and release seir_cache.
13548         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
13549         cached_scalar_evolution_in_region.
13550         * graphite-scop-detection.c (scop_detection::can_represent_loop):
13551         Simplify.
13552         (scop_detection::graphite_can_represent_expr: Use
13553         cached_scalar_evolution_in_region.
13554         (scop_detection::stmt_simple_for_scop_p): Likewise.
13555         (find_params_in_bb): Likewise.
13556         (gather_bbs::before_dom_children): Likewise.
13557         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
13558         (add_loop_constraints): Likewise.
13560 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
13562         PR middle-end/89210
13563         * fold-const-call.c (fold_const_vec_convert): Pass true as last
13564         operand to new_unary_operation only if both element types are integral
13565         and it isn't a widening conversion.  Return NULL_TREE if
13566         new_unary_operation failed.
13568 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
13570         PR target/88856
13571         * config/s390/s390.md: Remove load and test FP splitter.
13573 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
13575         PR target/89112
13576         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
13577         expand_compare_loop, expand_block_compare_gpr,
13578         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
13579         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
13580         #include "profile-count.h" and "predict.h" for types and functions
13581         needed to work with REG_BR_PROB notes.
13583 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
13585         PR target/89112
13586         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
13587         for the long branch case.
13589 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
13591         PR target/89188
13592         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
13593         can throw, non-call exceptions are enabled and we can't delete
13594         dead exceptions or alter cfg.  Set must_clean if
13595         delete_insn_and_edges returns true, don't set it blindly for calls.
13596         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
13598         PR rtl-optimization/89195
13599         * combine.c (make_extraction): For MEMs, don't extract bytes outside
13600         of the original MEM.
13602 2019-02-05  Martin Liska  <mliska@suse.cz>
13604         PR gcov-profile/89000
13605         * gcov.c (function_summary): Remove argument.
13606         (file_summary): New function.
13607         (print_usage): Replace tabs with spaces.
13608         (generate_results): Use new function file_summary.
13610 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
13612         PR target/89186
13613         * optabs.c (prepare_cmp_insn): Pass x and y to
13614         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
13616 2019-02-05  Richard Biener  <rguenther@suse.de>
13618         PR middle-end/89150
13619         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
13620         (struct bitmap_element): Drop chain_prev so we properly recurse on
13621         the prev member, supporting tree views.
13622         (struct bitmap_head): GTY skip the obstack member.
13624 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
13626         PR c/88698
13627         * doc/extend.texi (Vector Extensions): Add an example of using vector
13628         types together with x86 intrinsics.
13630 2019-02-04  Alan Modra  <amodra@gmail.com>
13632         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
13633         str[] size to 160, and comment.
13635 2019-02-04  Alan Modra  <amodra@gmail.com>
13637         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
13638         (rs6000_pltseq_template): Guard output of TLS markers with
13639         TARGET_TLS_MARKERS.
13640         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
13641         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
13642         to use inline PLT sequences.
13643         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13644         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13645         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
13647 2019-02-04  Martin Liska  <mliska@suse.cz>
13649         PR ipa/88985
13650         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
13651         out when ipa_fn_summaries does not contain entry for callee.
13653 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
13655         * config/sparc/sparc.h: Remove superfluous blank lines.
13656         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
13657         (got_register_rtx): ...this.
13658         (sparc_got): Adjust to above renaming.
13659         (sparc_tls_got): Likewise.
13660         (sparc_delegitimize_address): Likewise.
13661         (sparc_output_mi_thunk): Likewise.
13662         (sparc_init_pic_reg): Likewise.
13663         (save_local_or_in_reg_p): Fix test on the GOT register.
13664         (USE_HIDDEN_LINKONCE): Move around.
13665         (get_pc_thunk_name): Likewise.
13666         (gen_load_pcrel_sym): Likewise.
13667         (load_got_register): Likewise.
13669 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
13671         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
13672         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
13674 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13676         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
13677         into consideration.
13679 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13681         * config.gcc (with_nds32_lib, glibc):
13682         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
13683         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
13684         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
13686 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
13688         PR target/89071
13689         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
13690         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
13691         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
13692         (*rcpsf2_sse): Ditto.
13693         (*rsqrtsf2_sse): Ditto.
13694         (sse4_1_round<mode<2): Ditto.
13696 2019-02-03  Richard Biener  <rguenther@suse.de>
13698         PR debug/87295
13699         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
13700         orig.
13702 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
13704         PR middle-end/87887
13705         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13706         Punt with warning on aggregate return or argument types.  Ignore
13707         type/mode checking for uniform arguments.
13709 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
13711         * combine.c (try_combine): Do not print "Can't combine" messages unless
13712         printing failed combination attempts.
13714 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13716         PR hsa/87863
13717         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13718         segment and global segment variables before making them static.
13720 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13722         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13723         missed optimization dump with dump_enabled_p.
13725 2019-02-01  Richard Biener  <rguenther@suse.de>
13727         PR middle-end/88597
13728         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
13729         the instantiate cache.
13730         (instantiate_scev_binary): Elide second operand procesing
13731         if equal to the first.
13732         * tree-chrec.c (chrec_contains_symbols): Add visited set.
13733         (chrec_contains_undetermined): Likewise.
13734         (tree_contains_chrecs): Likewise.
13736 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
13738         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13740 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
13742         PR tree-optimization/89143
13743         * wide-int-range.h (wide_int_range_absu): Declare.
13744         * wide-int-range.cc (wide_int_range_absu): New function.
13745         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
13747         PR tree-optimization/88107
13748         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
13749         instead of assertion that eh_region_outermost is non-NULL, if it
13750         is NULL, set *ALL to true and return NULL.
13751         (move_sese_region_to_fn): Adjust caller, if all is set, call
13752         duplicate_eh_regions with NULL region.
13754 2019-02-01  Richard Biener  <rguenth@suse.de>
13756         PR rtl-optimization/88593
13757         * mode-switching.c (optimize_mode_switching): Free dominators before
13758         calling cleanup_cfg.
13760 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
13762         PR tree-optimization/88932
13763         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13765 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13767         PR middle-end/89137
13768         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13769         bogus clang warning.
13771 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
13773         PR target/89071
13774         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
13775         alternative to avoid partial SSE register stall for TARGET_AVX.
13776         (truncdfsf2): Ditto.
13777         (sse4_1_round<mode>2): Ditto.
13779 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
13781         PR tree-optimization/89008
13782         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13783         process anything of the form X * 0.
13785 2019-01-31  Richard Biener  <rguenther@suse.de>
13787         PR tree-optimization/89135
13788         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13789         with abnormal preds.
13791 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13793         PR sanitizer/89124
13794         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13795         always_inline callees into no_sanitize_address callers.
13797 2019-01-31  Richard Biener  <rguenther@suse.de>
13799         PR rtl-optimization/89115
13800         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13802 2019-01-30  Martin Sebor  <msebor@redhat.com>
13804         PR other/89106
13805         * doc/extend.texi (cast to a union): Correct and expand.
13807 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13809         PR rtl-optimization/87246
13810         * lra-constraints.c (simplify_operand_subreg): Reload memory
13811         in subreg if the address became invalid.
13813 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
13815         PR target/87064
13816         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13817         Disable for little-endian.
13819 2019-01-30  Richard Biener  <rguenther@suse.de>
13821         PR rtl-optimization/89115
13822         * opts.c (default_options_optimization): Reduce
13823         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
13824         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
13825         to the default.
13827 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13829         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
13830         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
13831         type of vector element when vec_extract is implemented by direct
13832         move.
13834 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
13836         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13838 2019-01-30  Richard Biener  <rguenther@suse.de>
13840         PR tree-optimization/89111
13841         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13842         canonicalization to appropriately sized access types.
13844 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
13846         PR c++/89105
13847         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
13848         for arguments to functions that are TU-local and shouldn't be
13849         referenced by assembly.
13851 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
13853         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13854         after '='.
13856 2019-01-29  Martin Sebor  <msebor@redhat.com>
13858         PR c/88956
13859         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13861 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
13863         PR c++/66676
13864         PR ipa/89104
13865         * omp-simd-clone.c (simd_clone_clauses_extract)
13866         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13867         OMP_CLAUSE_ALIGNED_ALIGNMENT.
13869 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
13871         * config.gcc: Force .init_array for ARC.
13873 2019-01-29  Richard Biener  <rguenther@suse.de>
13875         PR debug/87295
13876         * dwarf2out.c (collect_skeleton_dies): New helper.
13877         (copy_decls_for_unworthy_types): Call it.
13878         (build_abbrev_table): Assert we do not try to replace
13879         DW_AT_signature refs with local refs.
13881 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13883         PR middle-end/89002
13884         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
13885         for lastprivate/linear IV, push gimplify context around gimplify_assign
13886         and, if it needed any temporaries, pop it into a gimple bind around the
13887         sequence.
13889 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13891         * common.opt (-Wattribute-alias): Remove "no-" from name.
13892         Make -Wattribute-alias command line option and
13893         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
13895 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13897         PR target/89073
13898         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13899         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13900         x86 ISA options.
13901         (bmi2): Add missing @opindex.
13902         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
13903         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
13904         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
13905         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
13906         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
13907         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
13908         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
13909         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
13910         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
13911         xsavec, xsaveopt and xsaves options.
13913 2019-01-28  Richard Biener  <rguenther@suse.de>
13915         PR debug/89076
13916         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13917         support removal.
13919 2019-01-28  Richard Biener  <rguenther@suse.de>
13921         PR tree-optimization/88739
13922         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13923         BIT_FIELD_REFs only are applied to mode-precision operands
13924         when they are integral.
13925         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
13926         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
13927         BIT_FIELD_REFs of non-mode-precision integral operands.
13929 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
13931         PR target/87214
13932         * config/i386/sse.md
13933         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
13934         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
13935         first constants in pairs are multiples of 2.  Formatting fixes.
13936         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
13937         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
13938         first constants in each quadruple are multiples of 4.  Formatting fixes.
13940 2019-01-26  Martin Jambor  <mjambor@suse.cz>
13942         PR ipa/88933
13943         * tree-inline.c: Include tree-cfgcleanup.h.
13944         (delete_unreachable_blocks_update_callgraph): Move...
13945         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
13946         ...here, make externally visible, make second argument bool, adjust
13947         all callers.
13948         * tree-cfgcleanup.c: Include cgraph.h.
13949         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13950         Declare.
13951         * ipa-prop.c: Include tree-cfgcleanup.h.
13952         (ipcp_transform_function): Call
13953         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13955 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
13957         PR rtl-optimization/88846
13958         * ira.c (process_set_for_memref_referenced_p): New.
13959         (memref_referenced_p): Add new param.  Use
13960         process_set_for_memref_referenced_p.  Add new switch cases.
13961         (memref_used_between_p): Pass new arg to memref_referenced_p.
13963 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
13965         PR target/88469
13966         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
13967         argument ABI_BREAK.  Set to true if the calculated alignment has
13968         changed in gcc-9.  Check bit-fields for their base type alignment.
13969         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
13970         (aarch64_function_arg_boundary): Likewise.
13971         (aarch64_gimplify_va_arg_expr): Likewise.
13973 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13975         PR middle-end/89037
13976         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13977         instead of accessing TREE_INT_CST_ELT directly.
13979 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
13981         * doc/sourcebuild.texi (Environment attributes): Add fenv and
13982         fenv_exceptions description.
13984 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
13986         PR rtl-optimization/87763
13987         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13988         Allow SUBREG when matching CC_NZmode compare.
13990 2019-01-25  Richard Biener  <rguenther@suse.de>
13992         PR tree-optimization/89049
13993         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13994         Look at the pattern stmt to determine if the stmt is vectorized.
13996 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13998         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
13999         (pred_mov<mode>): Handle all-register forms using both a new
14000         alternative and a split.
14002 2019-01-25  Richard Biener  <rguenther@suse.de>
14004         PR tree-optimization/86865
14005         * graphite-scop-detection.c (scop_detection::can_represent_loop):
14006         Reject non-do-while loops.
14008 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
14010         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
14011         * config/rs6000/constraints.md (Q constraint): Use REG_P.
14012         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
14013         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14014         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
14015         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14016         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
14017         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
14018         vlogical_operand, gpc_reg_operand, int_reg_operand,
14019         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
14020         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
14021         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
14022         (save_world_operation, restore_world_operation, lmw_operation,
14023         stmw_operation): Use MEM_P and REG_P.
14024         (tie_operand): Use MEM_P.
14025         (vrsave_operation, crsave_operation): Use REG_P.
14026         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
14027         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
14028         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
14029         (call_operand): Use HARD_REGISTER_P.
14030         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
14031         Use CONST_INT_P.
14032         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
14033         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
14034         quad_aligned_load_p, replace_swapped_aligned_store,
14035         recombine_lvx_pattern, replace_swapped_aligned_load,
14036         recombine_stvx_pattern): Use MEM_P.
14037         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
14038         Use MEM_P and SYMBOL_REF_P.
14039         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
14040         (insn_is_swappable_p): Use REG_P and MEM_P.
14041         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
14042         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
14043         Use CONST_INT_P.
14044         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
14045         Use CONST_DOUBLE_P.
14046         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
14047         CONST_WIDE_INT_P.
14048         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
14049         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
14050         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
14051         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
14052         reg_or_subregno:
14053         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14054         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
14055         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
14056         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
14057         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
14058         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
14059         rs6000_split_logical_di): Use CONST_INT_P.
14060         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
14061         REG_P and SYMBOL_REF_P.
14062         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
14063         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
14064         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
14065         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
14066         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
14067         (small_data_operand, print_operand_address): Use CONST_INT_P and
14068         SYMBOL_REF_P.
14069         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
14070         (rs6000_init_hard_regno_mode_ok, direct_move_p):
14071         Use HARD_REGISTER_NUM_P.
14072         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
14073         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
14074         SUBREG_P and SYMBOL_REF_P.
14075         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
14076         and HARD_REGISTER_NUM_P.
14077         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
14078         reg_or_subregno.
14079         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
14080         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
14081         MEM_P and REG_P.
14082         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
14083         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
14084         find_addr_reg): Use REG_P.
14085         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
14086         (rs6000_emit_le_vsx_move): Use SUBREG_P.
14087         (offsettable_ok_by_alignment, constant_pool_expr_p,
14088         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
14089         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
14090         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
14091         rs6000_assemble_integer, create_TOC_reference,
14092         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
14093         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
14094         (rs6000_split_vec_extract_var): Use reg_or_subregno.
14095         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14096         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14097         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14098         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14099         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
14100         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
14101         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
14102         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
14103         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
14104         and cbranch<mode>4): Use CONST_INT_P.
14105         (multiple define_splits): Use REG_P and SUBREG_P.
14106         (define_expands call, call_value): Use MEM_P.
14107         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
14108         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
14109         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
14110         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
14111         and HARD_REGISTER_NUM_P.
14112         (multiple define_splits): Use HARD_REGISTER_NUM_P.
14114 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
14116         PR rtl-optimization/88948
14117         * rtl.h (prepare_copy_insn): New prototype.
14118         * gcse.c (prepare_copy_insn): New function, split out from
14119         process_insert_insn.
14120         (process_insert_insn): Use prepare_copy_insn.
14121         * store-motion.c (replace_store_insn): Use prepare_copy_insn
14122         instead of gen_move_insn.
14124 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
14126         PR debug/89006
14127         * config/i386/i386.c (ix86_pic_register_p): Return true for
14128         UNSPEC_SET_GOT too.
14130         PR tree-optimization/88964
14131         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
14132         punt if HONOR_SNANS (chrec).
14134         PR middle-end/89015
14135         * tree-nested.c (convert_nonlocal_reference_stmt,
14136         convert_local_reference_stmt, convert_tramp_reference_stmt,
14137         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
14138         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
14139         or GIMPLE_OMP_TASK.
14141         PR tree-optimization/89027
14142         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
14143         for "omp simd array" variables.
14145 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
14147         PR target/88469
14148         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
14149         force the alignment of m_val.
14151 2019-01-24  Richard Biener  <rguenther@suse.de>
14153         PR lto/87187
14154         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
14155         When in "legacy" debug mode make sure to reset self-origins.
14157 2019-01-24  Martin Liska  <mliska@suse.cz>
14159         PR gcov-profile/88994
14160         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
14161         result will be always smaller or equal to the original.
14162         * gcov.c (mangle_name): Fix else branch where we should
14163         also copy to PTR and shift the pointer.
14165 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
14167         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
14168         * vr-values.c (find_case_label_ranges): Fix a comment typo.
14170 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
14172         * common/config/i386/i386-common.c
14173         (OPTION_MASK_ISA_ENQCMD_SET,
14174         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
14175         (ix86_handle_option): Handle -menqcmd.
14176         * config.gcc (enqcmdintrin.h): New header file.
14177         * config/i386/cpuid.h (bit_ENQCMD): New bit.
14178         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
14179         -menqcmd.
14180         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
14181         function type.
14182         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
14183         __builtin_ia32_enqcmds): New builtins.
14184         * config/i386/i386-c.c (__ENQCMD__): New macro.
14185         * config/i386/i386-option.c (ix86_target_string): Add
14186         -menqcmd.
14187         (ix86_valid_target_attribute_inner_p): Likewise.
14188         * config/i386/i386-expand.c
14189         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
14190         IX86_BUILTIN_ENQCMDS.
14191         * config/i386/i386.h (TARGET_ENQCMD): New.
14192         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
14193         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
14194         (movdir64b_<mode>): Parameterize to enable share expansion code
14195         with ENQCMD in function ix86_expand_builtin.
14196         * config/i386/i386.opt: Add -menqcmd.
14197         * config/i386/immintrin.h: Include enqcmdintrin.h.
14198         * config/i386/enqcmdintrin.h: New intrinsic file.
14199         * doc/invoke.texi: Add -menqcmd.
14201 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
14202             Steve Ellcey <sellcey@marvell.com>
14204         PR target/85711
14205         * recog.c (address_operand): Return false on wrong mode for address.
14206         (constrain_operands): Check for mode with 'p' constraint.
14208 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
14210         PR target/88998
14211         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
14212         Disparage MMX alternative.
14213         (sse2_cvtpd2pi): Ditto.
14214         (sse2_cvttpd2pi): Ditto.
14216 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
14218         PR driver/89014
14219         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
14220         use-after-free of the result of
14221         aarch64_get_extension_string_for_isa_flags.
14223 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
14225         PR c/44715
14226         * doc/extend.texi: Document break and continue behavior in
14227         statement expressions.
14229 2019-01-23  Richard Biener  <rguenther@suse.de>
14231         PR tree-optimization/89008
14232         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
14233         not leave another stray operand.
14235 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
14237         * BASE-VER: Bump to 9.0.1.
14239 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
14241         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
14242         thunk that returns by reference, use the type of the return object
14243         of the thunk instead of that of the alias to build the dereference.
14245 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
14247         * config/arc/atomic.md: Add operand to DMB instruction.
14249 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
14251         PR tree-optimization/88964
14252         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
14253         build_zero_cst instead of build_int_cst.  Return false for loop
14254         invariants which honor signed zeros.
14256 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
14258         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
14260 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
14262         PR target/88965
14263         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
14264         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
14265         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
14267         PR middle-end/88968
14268         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
14269         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
14271         PR target/87064
14272         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
14273         Disable for little endian.
14275 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
14277         PR target/88469
14278         * config/arm/arm.c (arm_needs_double_word_align): Check
14279         DECL_BIT_FIELD_TYPE.
14281 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
14282             H.J. Lu  <hongjiu.lu@intel.com>
14284         PR target/88909
14285         * config/i386/i386-builtin.def: Add mask2 to all builtin
14286         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
14287         SPECIAL_ARGS.
14288         * config/i386/i386.c (BDESC): Add mask2 to the definition.
14289         (BDESC_FIRST): Likewise.
14290         (define_builtin): Add an argument for mask2.  Updated to handle
14291         both ix86_isa_flags and ix86_isa_flags2.
14292         (define_builtin_const): Likewise.
14293         (define_builtin_pure): Likewise.
14294         (define_builtin2): Deleted.
14295         (define_builtin_const2): Likewise.
14296         (builtin_description): Add a member, mask2.
14297         (bdesc_*): Add mask2 to builtin initializations.
14298         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
14299         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
14300         support.
14301         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
14303 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14305         PR target/88954
14306         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
14307         noplt attribute.
14309 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
14311         PR target/88469
14312         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
14313         alignment is dominated by a bitfield with 64-bit aligned base type.
14314         (arm_function_arg): Emit a warning if the alignment has changed since
14315         earlier GCC releases.
14316         (arm_function_arg_boundary): Likewise.
14317         (arm_setup_incoming_varargs): Likewise.
14319 2019-01-22  Richard Biener  <rguenther@suse.de>
14321         PR tree-optimization/88862
14322         * graphite-scop-detection.c
14323         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
14325 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
14327         * doc/extend.tex (AMD GCN Function Attributes): New section.
14328         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
14329         * doc/invoke.texi (AMD GCN Options): New section.
14330         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
14332 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14334         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
14335         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
14337 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
14339         PR tree-optimization/88044
14340         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
14341         is false in the first iteration, but !every_iteration, return false
14342         instead of true with niter->niter zero.
14344         PR rtl-optimization/88904
14345         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
14346         any nonequal registers before processing BB_END (b).
14348         PR target/88905
14349         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
14350         GET_MODE (op0).
14351         (expand_binop_directly, expand_doubleword_clz,
14352         expand_doubleword_popcount, expand_ctz, expand_ffs,
14353         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
14355         PR rtl-optimization/49429
14356         PR target/49454
14357         PR rtl-optimization/86334
14358         PR target/88906
14359         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
14360         addressable from here...
14361         (emit_block_op_via_libcall): ... to here.
14363 2019-01-22  Richard Biener  <rguenther@suse.de>
14365         * tree-vect-loop.c (vect_analyze_loop_operations): Use
14366         auto_vec for cost vector to fix memleak.
14367         (vectorize_fold_left_reduction): Properly gather SLP defs.
14368         (vectorizable_comparison): Do not swap operands to properly
14369         gather SLP defs.
14371 2019-01-22  Alan Modra  <amodra@gmail.com>
14373         PR target/88614
14374         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
14375         stays a reg.  Allow a const_int.
14376         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
14377         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
14378         (IS_NOMARK_TLSGETADDR): Define.
14379         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
14380         (rs6000_output_tlsargs): New function.
14381         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
14382         __tls_get_addr call takes an arg.
14383         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
14384         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
14385         delete split..
14386         (call_value_nonlocal_sysv): ..or here, delete split.
14387         (tls_gdld_nomark): Delete.
14388         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
14389         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
14390         (call_value_nonlocal_sysv): Likewise.
14391         (call_value_nonlocal_sysv_secure): Likewise.
14392         (call_value_nonlocal_aix): Likewise.
14393         (call_value_indirect_aix): Likewise.
14394         (call_value_indirect_elfv2): Likewise.
14395         (call_value_local32, call_value_local64): Disable for no-mark tls.
14396         (call_value_local_aix): Likewise.
14398 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
14400         PR target/88938
14401         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
14402         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
14404 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
14406         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
14407         string contents as hash_map keys.
14409 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14411         PR c/88928
14412         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
14413         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
14414         instead of TYPE_ALIGN.
14415         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
14416         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
14417         pointer from TYPE_STUB_DECL.
14419 2019-01-21  Richard Biener  <rguenther@suse.de>
14421         PR tree-optimization/88934
14422         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
14423         at the possibly non-constant operand.
14424         (vect_get_constant_vectors): Adjust.
14426 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14428         PR target/71659
14429         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
14430         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
14431         instead of _X86INTRIN_H_INCLUDED.
14432         * onfig/i386/clwbintrin.h: Likewise.
14433         * config/i386/pkuintrin.h: Likewise.
14434         * config/i386/prfchwintrin.h: Likewise.
14435         * config/i386/rdseedintrin.h: Likewise.
14436         * config/i386/wbnoinvdintrin.h: Likewise.
14437         * config/i386/xsavecintrin.h: Likewise.
14438         * config/i386/xsavesintrin.h: Likewise.
14439         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
14440         * config/i386/xsaveintrin.h: Likewise.
14441         * config/i386/xsaveoptintrin.h: Likewise.
14442         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
14443         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
14444         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
14445         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
14446         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
14447         * config/i386/immintrin.h: Here.
14449 2019-01-20  Martin Jambor  <mjambor@suse.cz>
14451         PR ipa/87615
14452         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
14453         with aa_walk_budget.
14454         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
14455         aa_walk_budget_p parameter.
14456         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
14457         walk.  Updated all callers.
14458         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
14459         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
14460         unmodified_parm.
14461         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
14462         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
14463         and to unmodified_parm.
14464         (phi_result_unknown_predicate): New parameter fbi, removed parameter
14465         info, updated call to will_be_nonconstant_expr_predicate.
14466         (param_change_prob): New parameter fbi, limit AA walking.
14467         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
14468         calls to various above functions.
14469         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
14470         parameter.  Use it to limit AA walking.
14471         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
14472         fbi, limit AA walk.
14473         (detect_type_change): New parameter fbi, pass it on to
14474         detect_type_change_from_memory_writes.
14475         (detect_type_change_ssa): Likewise.
14476         (aa_overwalked): Removed.
14477         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
14478         accordingly, adjust to the neew AA limiting scheme.
14479         (parm_ref_data_preserved_p): Likewise.
14480         (ipa_compute_jump_functions_for_edge): Adjust call to
14481         get_dynamic_type.
14482         (ipa_analyze_call_uses): Likewise.
14483         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
14484         (ipa_analyze_node): Initialize aa_walk_budget.
14485         (ipcp_transform_function): Likewise.
14486         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
14487         to get_dynamic_type.
14489 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
14491         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
14492         outside of #if CHECKING_P code.
14494 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
14496         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
14497         New function, split out from...
14498         (loop_versioning::analyze_stride): ...here.
14499         (loop_versioning::find_per_loop_multiplication): Use gassign.
14500         (loop_versioning::analyze_term_using_scevs): Return a success code.
14501         (loop_versioning::analyze_arbitrary_term): New function.
14502         (loop_versioning::analyze_address_fragment): Use
14503         analyze_arbitrary_term if all else fails.
14505 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
14507         PR target/88892
14508         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
14509         operands.
14511 2019-01-18  Richard Biener  <rguenther@suse.de>
14513         PR tree-optimization/88903
14514         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
14515         scalar stmts a SLP shift amount is composed of when detecting
14516         shifts by scalars.
14518 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
14520         PR target/88799
14521         * config/arm/arm-cpus.in (mp): New feature.
14522         (sec): New feature.
14523         (fgroup ARMv7ve): Add mp and sec features.
14524         (arch armv7-a): Add options to allow mp and sec extensions.
14525         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
14526         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
14527         extenstions to the base architecture.
14528         (cpu cortex-a8): Add sec extension to the base architecture.
14529         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
14530         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
14531         variants down to the base v7-a varaint.
14532         * config/arm/t-multilib (v7_a_arch_variants): New variable.
14533         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
14534         of permitted extensions for -march=armv7-a and for
14535         -mcpu=generic-armv7-a.
14537 2019-01-18  Martin Liska  <mliska@suse.cz>
14539         * params.def: Fix comment.
14540         * tree-profile.c (gimple_init_gcov_profiler): Bump function
14541         name.
14542         (gimple_gen_ic_func_profiler): Likewise.
14544 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14546         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
14547         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
14548         and put in error checks for stack protector guard options.
14549         (aarch64_stack_protect_guard): New.
14550         (TARGET_STACK_PROTECT_GUARD): Define.
14551         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
14552         (reg_stack_protect_address<mode>): New.
14553         (stack_protect_set): Adjust for SSP_GLOBAL.
14554         (stack_protect_test): Likewise.
14555         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
14556         (-mstack-protector-guard): Likewise.
14557         (-mstack-protector-guard-offset): Likewise.
14559 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
14561         PR tree-optimization/86214
14562         * tree-inline.h (struct copy_body_data): Add
14563         add_clobbers_to_eh_landing_pads member.
14564         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
14565         (copy_edges_for_bb): Call it if EH edge destination is <
14566         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
14567         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
14568         if flag_stack_reuse != SR_NONE and clear it afterwards.
14570 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
14572         PR target/85596
14573         * doc/install.texi (with-multilib-list): Document for aarch64.
14575 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
14577         PR target/88734
14578         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
14579         (("..."))) with ("...").
14581 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14583         * doc/extend.texi (Built-in Functions for Memory Model Aware
14584         Atomic Operations): Document atomic fetch and nand.
14586 2019-01-18  Martin Liska  <mliska@suse.cz>
14587             Richard Biener  <rguenther@suse.de>
14589         PR middle-end/88587
14590         * cgraph.h (create_version_clone_with_body): Add new argument
14591         with attributes.
14592         * cgraphclones.c (cgraph_node::create_version_clone): Add
14593         DECL_ATTRIBUTES to a newly created decl.  And call
14594         valid_attribute_p so that proper cl_target_optimization_node
14595         is set for the newly created declaration.
14596         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
14597         for declaration.
14598         (expand_target_clones): Do not call valid_attribute_p, it must
14599         be already done.
14600         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
14601         vector types.
14603 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
14605         PR target/88734
14606         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
14607         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
14608         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
14610 2019-01-17  Martin Sebor  <msebor@redhat.com>
14612         PR middle-end/88273
14613         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
14614         Handle anti-ranges the same as no range at all.
14616 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
14618         * config/aarch64/aarch64.c (cgraph.h): New include.
14619         (intl.h): New include.
14620         (supported_simd_type): New function.
14621         (currently_supported_simd_type): Ditto.
14622         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
14623         (aarch64_simd_clone_adjust): Ditto.
14624         (aarch64_simd_clone_usable): Ditto.
14625         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
14626         (TARGET_SIMD_CLONE_ADJUST): Ditto.
14627         (TARGET_SIMD_CLONE_USABLE): Ditto.
14628         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
14629         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
14630         call.
14632 2019-01-17  Martin Sebor  <msebor@redhat.com>
14634         PR tree-optimization/88800
14635         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
14636         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
14637         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
14638         redundant argument.  Add new argument and issue diagnostics under
14639         its control.  Detect out-of-bounds access even with warnings
14640         disabled.
14641         (check_bounds_or_overlap): Change return type.  Add argument.
14642         (wrestrict_dom_walker::check_call): Adjust.
14643         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
14644         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
14645         check_bounds_or_overlap's return value.
14646         (handle_builtin_stxncpy): Same.
14647         (handle_builtin_strcat): Same.
14649 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14650             Kwok Cheung Yeung  <kcy@codesourcery.com>
14651             Julian Brown  <julian@codesourcery.com>
14652             Tom de Vries  <tom@codesourcery.com>
14654         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
14656 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14658         * doc/sourcebuild.texi: Document dg-require-effective-target
14659         llvm_binutils and offload_gcn.
14661 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14662             Kwok Cheung Yeung  <kcy@codesourcery.com>
14663             Julian Brown  <julian@codesourcery.com>
14664             Tom de Vries  <tom@codesourcery.com>
14666         * doc/sourcebuild.texi: Document dg-required-effective-target
14667         exceptions.
14669 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14670             Kwok Cheung Yeung  <kcy@codesourcery.com>
14671             Julian Brown  <julian@codesourcery.com>
14672             Tom de Vries  <tom@codesourcery.com>
14673             Jan Hubicka  <hubicka@ucw.cz>
14674             Martin Jambor  <mjambor@suse.cz>
14676         * config.gcc: Add amdgcn*-*-amdhsa configuration.
14677         * configure.ac: Check for dlopen.
14678         * configure: Regenerate.
14680 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14681             Kwok Cheung Yeung  <kcy@codesourcery.com>
14682             Julian Brown  <julian@codesourcery.com>
14683             Tom de Vries  <tom@codesourcery.com>
14684             Jan Hubicka  <hubicka@ucw.cz>
14685             Martin Jambor  <mjambor@suse.cz>
14687         * common/config/gcn/gcn-common.c: New file.
14688         * config/gcn/driver-gcn.c: New file.
14689         * config/gcn/gcn-builtins.def: New file.
14690         * config/gcn/gcn-hsa.h: New file.
14691         * config/gcn/gcn-modes.def: New file.
14692         * config/gcn/gcn-opts.h: New file.
14693         * config/gcn/gcn-passes.def: New file.
14694         * config/gcn/gcn-protos.h: New file.
14695         * config/gcn/gcn-run.c: New file.
14696         * config/gcn/gcn-tree.c: New file.
14697         * config/gcn/gcn.c: New file.
14698         * config/gcn/gcn.h: New file.
14699         * config/gcn/gcn.opt: New file.
14700         * config/gcn/t-gcn-hsa: New file.
14702 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14703             Kwok Cheung Yeung  <kcy@codesourcery.com>
14704             Julian Brown  <julian@codesourcery.com>
14705             Tom de Vries  <tom@codesourcery.com>
14706             Jan Hubicka  <hubicka@ucw.cz>
14707             Martin Jambor  <mjambor@suse.cz>
14709         * config/gcn/constraints.md: New file.
14710         * config/gcn/gcn-valu.md: New file.
14711         * config/gcn/gcn.md: New file.
14712         * config/gcn/predicates.md: New file.
14714 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14716         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
14717         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
14718         (stmt_uses_0_or_null_in_undefined_way): Likewise.
14719         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
14721 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
14723         PR target/88851
14724         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
14725         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
14726         it and document registers.
14728 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14730         * config/aarch64/aarch64.c (ares_tunings): Define.
14731         * config/aarch64/aarch64-cores.def (ares): Use the above.
14733 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14735         PR target/88794
14736         Revert:
14737         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
14739         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
14740         (_mm512_fixupimm_round_pd): Update parameters and builtin.
14741         (_mm512_maskz_fixupimm_round_pd): Ditto.
14742         (_mm512_fixupimm_round_ps): Ditto.
14743         (_mm512_maskz_fixupimm_round_ps): Ditto.
14744         (_mm_fixupimm_round_sd): Ditto.
14745         (_mm_maskz_fixupimm_round_sd): Ditto.
14746         (_mm_fixupimm_round_ss): Ditto.
14747         (_mm_maskz_fixupimm_round_ss): Ditto.
14748         (_mm512_fixupimm_pd): Ditto.
14749         (_mm512_maskz_fixupimm_pd): Ditto.
14750         (_mm512_fixupimm_ps): Ditto.
14751         (_mm512_maskz_fixupimm_ps): Ditto.
14752         (_mm_fixupimm_sd): Ditto.
14753         (_mm_maskz_fixupimm_sd): Ditto.
14754         (_mm_fixupimm_ss): Ditto.
14755         (_mm_maskz_fixupimm_ss): Ditto.
14756         (_mm512_mask_fixupimm_round_pd): Update builtin.
14757         (_mm512_mask_fixupimm_round_ps): Ditto.
14758         (_mm_mask_fixupimm_round_sd): Ditto.
14759         (_mm_mask_fixupimm_round_ss): Ditto.
14760         (_mm512_mask_fixupimm_pd): Ditto.
14761         (_mm512_mask_fixupimm_ps): Ditto.
14762         (_mm_mask_fixupimm_sd): Ditto.
14763         (_mm_mask_fixupimm_ss): Ditto.
14764         * config/i386/avx512vlintrin.h:
14765         (_mm256_fixupimm_pd): Update parameters and builtin.
14766         (_mm256_maskz_fixupimm_pd): Ditto.
14767         (_mm256_fixupimm_ps): Ditto.
14768         (_mm256_maskz_fixupimm_ps): Ditto.
14769         (_mm_fixupimm_pd): Ditto.
14770         (_mm_maskz_fixupimm_pd): Ditto.
14771         (_mm_fixupimm_ps): Ditto.
14772         (_mm_maskz_fixupimm_ps): Ditto.
14773         (_mm256_mask_fixupimm_pd): Update builtin.
14774         (_mm256_mask_fixupimm_ps): Ditto.
14775         (_mm_mask_fixupimm_pd): Ditto.
14776         (_mm_mask_fixupimm_ps): Ditto.
14777         * config/i386/i386-builtin-types.def: Add new types and remove
14778         useless ones.
14779         * config/i386/i386-builtin.def: Update builtin definitions.
14780         * config/i386/i386.c: Handle new builtin types and remove useless ones.
14781         * config/i386/sse.md: Update VFIXUPIMM* patterns.
14782         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14783         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14784         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
14785         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14786         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14787         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
14788         * config/i386/subst.md:
14789         (round_saeonly_sd_mask_operand4): Add new subst_attr.
14790         (round_saeonly_sd_mask_op4): Ditto.
14791         (round_saeonly_expand_operand5): Ditto.
14792         (round_saeonly_expand): Update.
14794 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14796         PR target/88794
14797         Revert:
14798         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
14800         * config/i386/sse.md: Combine VFIXUPIMM* patterns
14801         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14802         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14803         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
14804         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14805         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14806         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
14808 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14810         PR target/88794
14811         Revert:
14812         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
14814         PR target/88489
14815         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
14816         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
14817         instead of UNSPEC_FIXUPIMM.
14819 2019-01-17  Richard Biener  <rguenther@suse.de>
14821         PR lto/86736
14822         * dwarf2out.c (want_pubnames): Never generate pubnames sections
14823         and friends for the LTO part of debug info.
14825 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
14827         PR tree-optimization/86214
14828         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14829         if x == y.
14831         PR rtl-optimization/88870
14832         * dce.c (deletable_insn_p): Never delete const/pure calls that can
14833         throw if we can't alter the cfg or delete dead exceptions.
14834         (mark_insn): Don't call find_call_stack_args for such calls.
14836 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
14838         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
14839         prototypes for vec_st.
14840         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
14841         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
14842         mainly on signed/unsigned long long and double.
14844 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
14846         PR target/88861
14847         * combine.c (delete_noop_moves): Convert to "bool" return,
14848         returning true if any edges are eliminated.
14849         (combine_instructions): Also return true if delete_noop_moves
14850         returns true.
14852 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14854         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
14855         correct max nunits for endian swap.
14856         (aarch64_expand_fcmla_builtin): Correct subreg code.
14857         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14858         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
14859         lane endianness.
14861 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
14863         * config/alpha/alpha.c (alpha_gimplify_va_arg):
14864         Handle split indirect COMPLEX_TYPE arguments.
14866 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
14868         PR target/86891
14869         * config/aarch64/aarch64-modes.def: Add comment about how the carry
14870         bit is set by add and compare.
14871         (CC_ADC): New CC_MODE.
14872         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
14873         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
14874         comparison.  Add detection for CC_ADCmode.
14875         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
14876         CC_ADCmode.
14877         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
14878         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
14879         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
14880         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
14881         to eliminate the need for zero-extending the operands.
14882         (add<mode>3_compareC_imm): Delete.  Merge into ...
14883         (add<mode>3_compareC): ... this.  Restructure the comparison to
14884         eliminate the need for zero-extending the operands.
14885         (add<mode>3_carryin): Use LTU for the overflow detection.
14886         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
14887         Reexpress comparison for overflow.
14888         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
14889         (add<mode>3_carryinC): Likewise.
14890         (add<mode>3_carryinV): Use LTU for carry between partials.
14891         * config/aarch64/predicates.md (aarch64_carry_operation): Update
14892         handling of CC_Cmode and add CC_ADCmode.
14893         (aarch64_borrow_operation): Likewise.
14895 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14897         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
14898         Remove patternmode.
14899         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
14900         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14901         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
14902         Remove endianness conversion.
14904 2019-01-16  Martin Liska  <mliska@suse.cz>
14906         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14907         for GCC driver.
14908         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14909         a new argument.
14910         * gcc.c (add_sysrooted_hdrs_prefix): New function.
14911         (path_prefix_reset): Move up in the source file.
14912         (find_fortran_preinclude_file): Make complex search for the
14913         fortran header files.
14915 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
14917         * godump.c (go_output_typedef): When outputting a typedef, refer
14918         to the underlying type by its name and not its structure.
14920 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
14922         PR c++/88795
14923         * tree.c (build_function_type): Assert that arg_types is not
14924         error_mark_node.
14926 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14928         PR inline-asm/52813
14929         * doc/extend.texi: Document that listing the stack pointer in the
14930         clobber list of an asm is a deprecated feature.
14931         * common.opt (Wdeprecated): Moved from c-family/c.opt.
14932         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
14933         warning instead of an error for clobbers of the stack pointer.
14934         Add a note explaining why.
14936 2019-01-15  Richard Biener  <rguenther@suse.de>
14938         PR debug/88046
14939         * dwarf2out.c (gen_member_die): Do not generate inheritance
14940         DIEs late.
14942 2019-01-15  Richard Biener  <rguenther@suse.de>
14944         PR tree-optimization/88855
14945         * tree-if-conv.c (combine_blocks): Collect
14946         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14948 2019-01-15  Tom de Vries  <tdevries@suse.de>
14950         PR target/80547
14951         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14952         lhs == NULL_TREE for gang-level reduction.
14954 2019-01-15  Richard Biener  <rguenther@suse.de>
14955             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14957         PR ipa/88788
14958         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
14959         return true if SSA_NAME is already marked in visited bitmap.
14960         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
14962 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
14964         PR tree-optimization/88775
14965         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
14966         equal == 0 equality pointer comparisons some more if compared in
14967         integral types and either one points to an automatic var and the
14968         other to a global, or we can prove at least one points to the middle
14969         or both point to start or both point to end.
14971 2019-01-14  Andi Kleen  <ak@linux.intel.com>
14973         * Makefile.in: Lower autofdo sampling rate by 10x.
14974         * Makefile.tpl: Dito.
14976 2019-01-14  Tom Honermann  <tom@honermann.net>
14978         * defaults.h: Define CHAR8_TYPE.
14980 2019-01-14  Martin Sebor  <msebor@redhat.com>
14982         PR target/88638
14983         * doc/extend.texi (Darwin Format Checks): Clarify.
14985 2019-01-14  Richard Biener  <rguenther@suse.de>
14987         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14988         whether we are in (simplify ...) or (match ...) context.
14990 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
14992         PR rtl-optimization/88796
14993         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
14994         * cfgexpand.c (stack_protect_prologue): Initialize
14995         crtl->stack_protect_guard_decl.
14996         * function.c (stack_protect_epilogue): Use it instead of calling
14997         targetm.stack_protect_guard again.
14998         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
14999         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
15000         crtl->stack_protect_guard_decl.
15001         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
15002         on the returned MEM_EXPR.
15004 2019-01-12  Tom de Vries  <tdevries@suse.de>
15006         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
15007         vector length using -fopenacc-dim.
15009 2019-01-12  Tom de Vries  <tdevries@suse.de>
15011         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
15012         lengths into account.
15014 2019-01-12  Svante Signell  <svante.signell@gmail.com>
15016         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
15017         (TARGET_CAN_SPLIT_STACK): Define.
15018         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
15020 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15022         * params.def (inline-unit-growth): Set to 40.
15024 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
15026         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
15028 2019-01-12  Tom de Vries  <tdevries@suse.de>
15030         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
15031         region calling vector-partitionable routine, set default_vector_length
15032         to WARP_SIZE.
15034 2019-01-12  Tom de Vries  <tdevries@suse.de>
15036         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
15037         variable default_vector_length.
15039 2019-01-12  Tom de Vries  <tdevries@suse.de>
15041         PR middle-end/88703
15042         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
15043         from oacc_default_dims, as oacc_validate_dims would do it, and apply
15044         dimensions limits.
15046 2019-01-12  Tom de Vries  <tdevries@suse.de>
15048         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
15049         (nvptx_goacc_validate_dims): Add used parameter.
15050         * doc/tm.texi: Regenerate.
15051         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
15052         argument to call to targetm.goacc.validate_dims.
15053         (default_goacc_validate_dims): Add used
15054         parameter.
15055         * target.def (validate_dims): Add used parameter in DEFHOOK.
15056         * targhooks.h (default_goacc_validate_dims): Add used parameter.
15058 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
15060         PR middle-end/85956
15061         PR lto/88733
15062         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
15063         field.
15064         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
15065         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
15066         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
15067         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
15069 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
15071         PR rtl-optimization/87305
15072         * lra-assigns.c
15073         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
15074         for little endian pseudos used as paradoxical subreg.
15076 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
15078         PR tree-optimization/88693
15079         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
15080         for STRING_CSTs that don't contain any NUL characters in the first
15081         TREE_STRING_LENGTH bytes.
15083 2019-01-11  Alan Modra  <amodra@gmail.com>
15085         PR 88777
15086         PR 88614
15087         * genattrtab.c (min_fn): Don't translate values.
15088         (min_attr_value): Return INT_MAX when the value can't be calculated.
15089         Return minimum among any values that can be calculated.
15090         (max_attr_value): Adjust.
15092 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
15094         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
15096 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
15098         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
15099         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
15100         (aarch64_return_call_with_max_clobbers): New function.
15101         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
15102         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
15103         argument.
15104         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
15105         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
15106         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
15107         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
15108         * cselib.c (cselib_process_insn): Add argument to
15109         targetm.hard_regno_call_part_clobbered call.
15110         * ira-conflicts.c (ira_build_conflicts): Ditto.
15111         * ira-costs.c (ira_tune_allocno_costs): Ditto.
15112         * lra-constraints.c (inherit_reload_reg): Ditto.
15113         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
15114         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
15115         argument.  Call targetm.return_call_with_max_clobbers.
15116         Add argument to targetm.hard_regno_call_part_clobbered call.
15117         (calls_have_same_clobbers_p): New function.
15118         (process_bb_lives): Add call_insn and last_call_insn variables.
15119         Pass call_insn to check_pseudos_live_through_calls.
15120         Modify if stmt to check targetm.return_call_with_max_clobbers.
15121         Update setting of flush variable.
15122         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
15123         to false.
15124         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
15125         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
15126         targetm.hard_regno_call_part_clobbered call.
15127         * reginfo.c (choose_hard_reg_mode): Ditto.
15128         * regrename.c (check_new_reg_p): Ditto.
15129         * reload.c (find_equiv_reg): Ditto.
15130         * reload1.c (emit_reload_insns): Ditto.
15131         * sched-deps.c (deps_analyze_insn): Ditto.
15132         * sel-sched.c (init_regs_for_mode): Ditto.
15133         (mark_unavailable_hard_regs): Ditto.
15134         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
15135         * target.def (hard_regno_call_part_clobbered): Add insn argument.
15136         (return_call_with_max_clobbers): New target function.
15137         * doc/tm.texi: Regenerate.
15138         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
15139         * hooks.c (hook_bool_uint_mode_false): Change to
15140         hook_bool_insn_uint_mode_false.
15141         * hooks.h (hook_bool_uint_mode_false): Ditto.
15143 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
15145         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
15146         (aarch64_remove_extra_call_preserved_regs): New function.
15147         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
15148         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
15149         * doc/tm.texi: Regenerate.
15150         * final.c (get_call_reg_set_usage): Call new hook.
15151         * target.def (remove_extra_call_preserved_regs): New hook.
15152         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
15153         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
15155 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
15157         PR bootstrap/88714
15158         * passes.c (finish_optimization_passes): Call print_combine_total_stats
15159         inside of pass_combine_1 dump rather than pass_profile_1.
15161 2019-01-11  Tom de Vries  <tdevries@suse.de>
15163         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
15164         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
15165         (PTX_NUM_PER_WORKER_BARRIERS): Define.
15166         (nvptx_apply_dim_limits): Prevent vector_length 64 and
15167         num_workers 16.
15169 2019-01-11  Tom de Vries  <tdevries@suse.de>
15171         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
15173 2019-01-11  Jan Beulich  <jbeulich@suse.com>
15175         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
15176         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
15177         sse2_cvtsi2sd): Add {l}.
15178         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
15179         syntax.
15181 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
15183         PR target/88785
15184         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
15185         define_expand.
15186         (*float<floatunssuffix>v2div2sf2): New define_insn.
15187         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
15188         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
15189         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
15190         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
15191         match_operands with "const0_operand" "C".
15193 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
15195         * config/aarch64/aarch64-builtins.c
15196         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
15197         (aarch64_init_simd_builtins): ...Here
15199 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
15201         PR rtl-optimization/87305
15202         * lra-assigns.c
15203         (setup_live_pseudos_and_spill_after_risky_transforms): Check
15204         allocation for big endian pseudos used as paradoxical subregs and
15205         spill them if it is wrong.
15206         * lra-constraints.c (lra_constraints): Add a comment.
15208 2019-01-10  Richard Biener  <rguenther@suse.de>
15210         PR tree-optimization/88792
15211         * tree-ssa-pre.c (get_representative_for): Do not return a
15212         value-number here.
15214 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
15216         PR middle-end/84877
15217         PR bootstrap/88450
15218         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
15219         (assign_parm_setup_block): Do the argument slot realignment here
15220         instead.
15222 2019-01-10  Stefan Agner  <stefan@agner.ch>
15224         PR target/88648
15225         * config/arm/arm.c (arm_option_override_internal): Force
15226         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
15228 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
15230         PR c/88568
15231         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
15232         DECL_EXTERNAL.
15234 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
15236         * config/arm/arm-builtins.c
15237         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
15238         (MAC_LANE_PAIR_QUALIFIERS): New.
15239         (arm_expand_builtin_args): Use it.
15240         (arm_expand_builtin_1): Likewise.
15241         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
15242         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
15243         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
15244         * config/arm/arm_neon.h:
15245         (vcadd_rot90_f16): New.
15246         (vcaddq_rot90_f16): New.
15247         (vcadd_rot270_f16): New.
15248         (vcaddq_rot270_f16): New.
15249         (vcmla_f16): New.
15250         (vcmlaq_f16): New.
15251         (vcmla_lane_f16): New.
15252         (vcmla_laneq_f16): New.
15253         (vcmlaq_lane_f16): New.
15254         (vcmlaq_laneq_f16): New.
15255         (vcmla_rot90_f16): New.
15256         (vcmlaq_rot90_f16): New.
15257         (vcmla_rot90_lane_f16): New.
15258         (vcmla_rot90_laneq_f16): New.
15259         (vcmlaq_rot90_lane_f16): New.
15260         (vcmlaq_rot90_laneq_f16): New.
15261         (vcmla_rot180_f16): New.
15262         (vcmlaq_rot180_f16): New.
15263         (vcmla_rot180_lane_f16): New.
15264         (vcmla_rot180_laneq_f16): New.
15265         (vcmlaq_rot180_lane_f16): New.
15266         (vcmlaq_rot180_laneq_f16): New.
15267         (vcmla_rot270_f16): New.
15268         (vcmlaq_rot270_f16): New.
15269         (vcmla_rot270_lane_f16): New.
15270         (vcmla_rot270_laneq_f16): New.
15271         (vcmlaq_rot270_lane_f16): New.
15272         (vcmlaq_rot270_laneq_f16): New.
15273         (vcadd_rot90_f32): New.
15274         (vcaddq_rot90_f32): New.
15275         (vcadd_rot270_f32): New.
15276         (vcaddq_rot270_f32): New.
15277         (vcmla_f32): New.
15278         (vcmlaq_f32): New.
15279         (vcmla_lane_f32): New.
15280         (vcmla_laneq_f32): New.
15281         (vcmlaq_lane_f32): New.
15282         (vcmlaq_laneq_f32): New.
15283         (vcmla_rot90_f32): New.
15284         (vcmlaq_rot90_f32): New.
15285         (vcmla_rot90_lane_f32): New.
15286         (vcmla_rot90_laneq_f32): New.
15287         (vcmlaq_rot90_lane_f32): New.
15288         (vcmlaq_rot90_laneq_f32): New.
15289         (vcmla_rot180_f32): New.
15290         (vcmlaq_rot180_f32): New.
15291         (vcmla_rot180_lane_f32): New.
15292         (vcmla_rot180_laneq_f32): New.
15293         (vcmlaq_rot180_lane_f32): New.
15294         (vcmlaq_rot180_laneq_f32): New.
15295         (vcmla_rot270_f32): New.
15296         (vcmlaq_rot270_f32): New.
15297         (vcmla_rot270_lane_f32): New.
15298         (vcmla_rot270_laneq_f32): New.
15299         (vcmlaq_rot270_lane_f32): New.
15300         (vcmlaq_rot270_laneq_f32): New.
15301         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
15302         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
15303         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
15304         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
15305         vcmlaq_lane270): New.
15306         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
15307         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
15308         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
15309         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
15310         (arm_option_reconfigure_globals): Use them.
15311         * config/arm/iterators.md (VDF, VQ_HSF): New.
15312         (VCADD, VCMLA): New.
15313         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
15314         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
15315         New.
15316         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
15317         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
15319 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
15321         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15322         Add qualifier_lane_pair_index.
15323         (emit-rtl.h): Include.
15324         (TYPES_QUADOP_LANE_PAIR): New.
15325         (aarch64_simd_expand_args): Use it.
15326         (aarch64_simd_expand_builtin): Likewise.
15327         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
15328         New.
15329         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
15330         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
15331         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
15332         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
15333         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
15334         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
15335         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
15336         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
15337         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
15338         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
15339         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
15340         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
15341         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
15342         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
15343         Add __ARM_FEATURE_COMPLEX.
15344         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
15345         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
15346         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
15347         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
15348         fcmlaq_lane270): New.
15349         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
15350         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
15351         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
15352         * config/aarch64/arm_neon.h:
15353         (vcadd_rot90_f16): New.
15354         (vcaddq_rot90_f16): New.
15355         (vcadd_rot270_f16): New.
15356         (vcaddq_rot270_f16): New.
15357         (vcmla_f16): New.
15358         (vcmlaq_f16): New.
15359         (vcmla_lane_f16): New.
15360         (vcmla_laneq_f16): New.
15361         (vcmlaq_lane_f16): New.
15362         (vcmlaq_rot90_lane_f16): New.
15363         (vcmla_rot90_laneq_f16): New.
15364         (vcmla_rot90_lane_f16): New.
15365         (vcmlaq_rot90_f16): New.
15366         (vcmla_rot90_f16): New.
15367         (vcmlaq_laneq_f16): New.
15368         (vcmla_rot180_laneq_f16): New.
15369         (vcmla_rot180_lane_f16): New.
15370         (vcmlaq_rot180_f16): New.
15371         (vcmla_rot180_f16): New.
15372         (vcmlaq_rot90_laneq_f16): New.
15373         (vcmlaq_rot270_laneq_f16): New.
15374         (vcmlaq_rot270_lane_f16): New.
15375         (vcmla_rot270_laneq_f16): New.
15376         (vcmlaq_rot270_f16): New.
15377         (vcmla_rot270_f16): New.
15378         (vcmlaq_rot180_laneq_f16): New.
15379         (vcmlaq_rot180_lane_f16): New.
15380         (vcmla_rot270_lane_f16): New.
15381         (vcadd_rot90_f32): New.
15382         (vcaddq_rot90_f32): New.
15383         (vcaddq_rot90_f64): New.
15384         (vcadd_rot270_f32): New.
15385         (vcaddq_rot270_f32): New.
15386         (vcaddq_rot270_f64): New.
15387         (vcmla_f32): New.
15388         (vcmlaq_f32): New.
15389         (vcmlaq_f64): New.
15390         (vcmla_lane_f32): New.
15391         (vcmla_laneq_f32): New.
15392         (vcmlaq_lane_f32): New.
15393         (vcmlaq_laneq_f32): New.
15394         (vcmla_rot90_f32): New.
15395         (vcmlaq_rot90_f32): New.
15396         (vcmlaq_rot90_f64): New.
15397         (vcmla_rot90_lane_f32): New.
15398         (vcmla_rot90_laneq_f32): New.
15399         (vcmlaq_rot90_lane_f32): New.
15400         (vcmlaq_rot90_laneq_f32): New.
15401         (vcmla_rot180_f32): New.
15402         (vcmlaq_rot180_f32): New.
15403         (vcmlaq_rot180_f64): New.
15404         (vcmla_rot180_lane_f32): New.
15405         (vcmla_rot180_laneq_f32): New.
15406         (vcmlaq_rot180_lane_f32): New.
15407         (vcmlaq_rot180_laneq_f32): New.
15408         (vcmla_rot270_f32): New.
15409         (vcmlaq_rot270_f32): New.
15410         (vcmlaq_rot270_f64): New.
15411         (vcmla_rot270_lane_f32): New.
15412         (vcmla_rot270_laneq_f32): New.
15413         (vcmlaq_rot270_lane_f32): New.
15414         (vcmlaq_rot270_laneq_f32): New.
15415         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
15416         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
15417         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
15418         (FCADD, FCMLA): New.
15419         (rot): New.
15420         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
15422 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
15424         PR other/16615
15426         * config/pa/pa.c: Change "can not" to "cannot".
15427         * gimple-ssa-evrp-analyze.c: Likewise.
15428         * ipa-icf.c: Likewise.
15429         * ipa-polymorphic-call.c: Likewise.
15430         * ipa-pure-const.c: Likewise.
15431         * lra-constraints.c: Likewise.
15432         * lra-remat.c: Likewise.
15433         * reload1.c: Likewise.
15434         * reorg.c: Likewise.
15435         * tree-ssa-uninit.c: Likewise.
15437 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
15439         PR other/16615
15441         * Makefile.in: Mechanically replace "can not" with "cannot".
15442         * alias.c: Likewise.
15443         * builtins.c: Likewise.
15444         * calls.c: Likewise.
15445         * cgraph.c: Likewise.
15446         * cgraph.h: Likewise.
15447         * cgraphclones.c: Likewise.
15448         * cgraphunit.c: Likewise.
15449         * combine-stack-adj.c: Likewise.
15450         * combine.c: Likewise.
15451         * common/config/i386/i386-common.c: Likewise.
15452         * config/aarch64/aarch64.c: Likewise.
15453         * config/alpha/sync.md: Likewise.
15454         * config/arc/arc.c: Likewise.
15455         * config/arc/predicates.md: Likewise.
15456         * config/arm/arm-c.c: Likewise.
15457         * config/arm/arm.c: Likewise.
15458         * config/arm/arm.h: Likewise.
15459         * config/arm/arm.md: Likewise.
15460         * config/arm/cortex-r4f.md: Likewise.
15461         * config/csky/csky.c: Likewise.
15462         * config/csky/csky.h: Likewise.
15463         * config/darwin-f.c: Likewise.
15464         * config/epiphany/epiphany.md: Likewise.
15465         * config/i386/i386.c: Likewise.
15466         * config/i386/sol2.h: Likewise.
15467         * config/m68k/m68k.c: Likewise.
15468         * config/mcore/mcore.h: Likewise.
15469         * config/microblaze/microblaze.md: Likewise.
15470         * config/mips/20kc.md: Likewise.
15471         * config/mips/sb1.md: Likewise.
15472         * config/nds32/nds32.c: Likewise.
15473         * config/nds32/predicates.md: Likewise.
15474         * config/pa/pa.c: Likewise.
15475         * config/rs6000/e300c2c3.md: Likewise.
15476         * config/rs6000/rs6000.c: Likewise.
15477         * config/s390/s390.h: Likewise.
15478         * config/sh/sh.c: Likewise.
15479         * config/sh/sh.md: Likewise.
15480         * config/spu/vmx2spu.h: Likewise.
15481         * cprop.c: Likewise.
15482         * dbxout.c: Likewise.
15483         * df-scan.c: Likewise.
15484         * doc/cfg.texi: Likewise.
15485         * doc/extend.texi: Likewise.
15486         * doc/fragments.texi: Likewise.
15487         * doc/gty.texi: Likewise.
15488         * doc/invoke.texi: Likewise.
15489         * doc/lto.texi: Likewise.
15490         * doc/md.texi: Likewise.
15491         * doc/objc.texi: Likewise.
15492         * doc/rtl.texi: Likewise.
15493         * doc/tm.texi: Likewise.
15494         * dse.c: Likewise.
15495         * emit-rtl.c: Likewise.
15496         * emit-rtl.h: Likewise.
15497         * except.c: Likewise.
15498         * expmed.c: Likewise.
15499         * expr.c: Likewise.
15500         * fold-const.c: Likewise.
15501         * genautomata.c: Likewise.
15502         * gimple-fold.c: Likewise.
15503         * hard-reg-set.h: Likewise.
15504         * ifcvt.c: Likewise.
15505         * ipa-comdats.c: Likewise.
15506         * ipa-cp.c: Likewise.
15507         * ipa-devirt.c: Likewise.
15508         * ipa-fnsummary.c: Likewise.
15509         * ipa-icf.c: Likewise.
15510         * ipa-inline-transform.c: Likewise.
15511         * ipa-inline.c: Likewise.
15512         * ipa-polymorphic-call.c: Likewise.
15513         * ipa-profile.c: Likewise.
15514         * ipa-prop.c: Likewise.
15515         * ipa-pure-const.c: Likewise.
15516         * ipa-reference.c: Likewise.
15517         * ipa-split.c: Likewise.
15518         * ipa-visibility.c: Likewise.
15519         * ipa.c: Likewise.
15520         * ira-build.c: Likewise.
15521         * ira-color.c: Likewise.
15522         * ira-conflicts.c: Likewise.
15523         * ira-costs.c: Likewise.
15524         * ira-int.h: Likewise.
15525         * ira-lives.c: Likewise.
15526         * ira.c: Likewise.
15527         * ira.h: Likewise.
15528         * loop-invariant.c: Likewise.
15529         * loop-unroll.c: Likewise.
15530         * lower-subreg.c: Likewise.
15531         * lra-assigns.c: Likewise.
15532         * lra-constraints.c: Likewise.
15533         * lra-eliminations.c: Likewise.
15534         * lra-lives.c: Likewise.
15535         * lra-remat.c: Likewise.
15536         * lra-spills.c: Likewise.
15537         * lra.c: Likewise.
15538         * lto-cgraph.c: Likewise.
15539         * lto-streamer-out.c: Likewise.
15540         * postreload-gcse.c: Likewise.
15541         * predict.c: Likewise.
15542         * profile-count.h: Likewise.
15543         * profile.c: Likewise.
15544         * recog.c: Likewise.
15545         * ree.c: Likewise.
15546         * reload.c: Likewise.
15547         * reload1.c: Likewise.
15548         * reorg.c: Likewise.
15549         * resource.c: Likewise.
15550         * rtl.def: Likewise.
15551         * rtl.h: Likewise.
15552         * rtlanal.c: Likewise.
15553         * sched-deps.c: Likewise.
15554         * sched-ebb.c: Likewise.
15555         * sched-rgn.c: Likewise.
15556         * sel-sched-ir.c: Likewise.
15557         * sel-sched.c: Likewise.
15558         * shrink-wrap.c: Likewise.
15559         * simplify-rtx.c: Likewise.
15560         * symtab.c: Likewise.
15561         * target.def: Likewise.
15562         * toplev.c: Likewise.
15563         * tree-call-cdce.c: Likewise.
15564         * tree-cfg.c: Likewise.
15565         * tree-complex.c: Likewise.
15566         * tree-core.h: Likewise.
15567         * tree-eh.c: Likewise.
15568         * tree-inline.c: Likewise.
15569         * tree-loop-distribution.c: Likewise.
15570         * tree-nrv.c: Likewise.
15571         * tree-profile.c: Likewise.
15572         * tree-sra.c: Likewise.
15573         * tree-ssa-alias.c: Likewise.
15574         * tree-ssa-dce.c: Likewise.
15575         * tree-ssa-dom.c: Likewise.
15576         * tree-ssa-forwprop.c: Likewise.
15577         * tree-ssa-loop-im.c: Likewise.
15578         * tree-ssa-loop-ivcanon.c: Likewise.
15579         * tree-ssa-loop-ivopts.c: Likewise.
15580         * tree-ssa-loop-niter.c: Likewise.
15581         * tree-ssa-phionlycprop.c: Likewise.
15582         * tree-ssa-phiopt.c: Likewise.
15583         * tree-ssa-propagate.c: Likewise.
15584         * tree-ssa-threadedge.c: Likewise.
15585         * tree-ssa-threadupdate.c: Likewise.
15586         * tree-ssa-uninit.c: Likewise.
15587         * tree-ssanames.c: Likewise.
15588         * tree-streamer-out.c: Likewise.
15589         * tree.c: Likewise.
15590         * tree.h: Likewise.
15591         * vr-values.c: Likewise.
15593 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
15595         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
15596         (ix86_split_xorsign): Ditto.
15597         * config/i386/i386.c (ix86_expand_xorsign): New function.
15598         (ix86_split_xorsign): Ditto.
15599         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
15600         (xorsign<mode>3): New expander.
15601         (xorsign<mode>3_1): New insn_and_split pattern.
15602         * config/i386/sse.md (xorsign<mode>3): New expander.
15604 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15606         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
15607         (*tablejump_sp64): Likewise.
15608         (*tablejump<P:mode>): ...this.
15609         (*call_address_sp32): Merge into...
15610         (*call_address_sp64): Likewise.
15611         (*call_address<P:mode>): ...this.
15612         (*call_symbolic_sp32): Merge into...
15613         (*call_symbolic_sp64): Likewise.
15614         (*call_symbolic<P:mode>): ...this.
15615         (call_value): Remove constraint and add predicate.
15616         (*call_value_address_sp32): Merge into...
15617         (*call_value_address_sp64): Likewise.
15618         (*call_value_address<P:mode>): ...this.
15619         (*call_value_symbolic_sp32): Merge into...
15620         (*call_value_symbolic_sp64): Likewise.
15621         (*call_value_symbolic<P:mode>): ...this.
15622         (*sibcall_symbolic_sp32): Merge into...
15623         (*sibcall_symbolic_sp64): Likewise.
15624         (*sibcall_symbolic<P:mode>): ...this.
15625         (sibcall_value): Remove constraint and add predicate.
15626         (*sibcall_value_symbolic_sp32): Merge into...
15627         (*sibcall_value_symbolic_sp64): Likewise.
15628         (*sibcall_value_symbolic<P:mode>): ...this.
15629         (window_save): Minor tweak.
15630         (*branch_sp32): Merge into...
15631         (*branch_sp64): Likewise.
15632         (*branch<P:mode>): ...this.
15634 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15635             James Clarke  <jrtc27@jrtc27.com>
15637         PR target/84010
15638         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
15639         consistently in TLS address generation and adjust code to the renaming
15640         of patterns.  Mark calls to __tls_get_addr as const.
15641         * config/sparc/sparc.md (tgd_hi22): Turn into...
15642         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
15643         (tgd_lo10): Turn into...
15644         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
15645         (tgd_add32): Merge into...
15646         (tgd_add64): Likewise.
15647         (tgd_add<P:mode>): ...this and use Pmode throughout.
15648         (tldm_hi22): Turn into...
15649         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
15650         (tldm_lo10): Turn into...
15651         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
15652         (tldm_add32): Merge into...
15653         (tldm_add64): Likewise.
15654         (tldm_add<P:mode>): ...this and use Pmode throughout.
15655         (tldm_call32): Merge into...
15656         (tldm_call64): Likewise.
15657         (tldm_call<P:mode>): ...this and use Pmode throughout.
15658         (tldo_hix22): Turn into...
15659         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
15660         (tldo_lox10): Turn into...
15661         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
15662         (tldo_add32): Merge into...
15663         (tldo_add64): Likewise.
15664         (tldo_add<P:mode>): ...this and use Pmode throughout.
15665         (tie_hi22): Turn into...
15666         (tie_hi22<P:mode>): ...this and use Pmode throughout.
15667         (tie_lo10): Turn into...
15668         (tie_lo10<P:mode>): ...this and use Pmode throughout.
15669         (tie_ld64): Use DImode throughout.
15670         (tie_add32): Merge into...
15671         (tie_add64): Likewise.
15672         (tie_add<P:mode>): ...this and use Pmode throughout.
15673         (tle_hix22_sp32): Merge into...
15674         (tle_hix22_sp64): Likewise.
15675         (tle_hix22<P:mode>): ...this and use Pmode throughout.
15676         (tle_lox22_sp32): Merge into...
15677         (tle_lox22_sp64): Likewise.
15678         (tle_lox22<P:mode>): ...this and use Pmode throughout.
15679         (*tldo_ldub_sp32): Merge into...
15680         (*tldo_ldub_sp64): Likewise.
15681         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
15682         (*tldo_ldub1_sp32): Merge into...
15683         (*tldo_ldub1_sp64): Likewise.
15684         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
15685         (*tldo_ldub2_sp32): Merge into...
15686         (*tldo_ldub2_sp64): Likewise.
15687         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
15688         (*tldo_ldsb1_sp32): Merge into...
15689         (*tldo_ldsb1_sp64): Likewise.
15690         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
15691         (*tldo_ldsb2_sp32): Merge into...
15692         (*tldo_ldsb2_sp64): Likewise.
15693         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
15694         (*tldo_ldub3_sp64): Use DImode throughout.
15695         (*tldo_ldsb3_sp64): Likewise.
15696         (*tldo_lduh_sp32): Merge into...
15697         (*tldo_lduh_sp64): Likewise.
15698         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
15699         (*tldo_lduh1_sp32): Merge into...
15700         (*tldo_lduh1_sp64): Likewise.
15701         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
15702         (*tldo_ldsh1_sp32): Merge into...
15703         (*tldo_ldsh1_sp64): Likewise.
15704         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
15705         (*tldo_lduh2_sp64): Use DImode throughout.
15706         (*tldo_ldsh2_sp64): Likewise.
15707         (*tldo_lduw_sp32): Merge into...
15708         (*tldo_lduw_sp64): Likewise.
15709         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
15710         (*tldo_lduw1_sp64): Use DImode throughout.
15711         (*tldo_ldsw1_sp64): Likewise.
15712         (*tldo_ldx_sp64): Likewise.
15713         (*tldo_stb_sp32): Merge into...
15714         (*tldo_stb_sp64): Likewise.
15715         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
15716         (*tldo_sth_sp32): Merge into...
15717         (*tldo_sth_sp64): Likewise.
15718         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
15719         (*tldo_stw_sp32): Merge into...
15720         (*tldo_stw_sp64): Likewise.
15721         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
15722         (*tldo_stx_sp64): Use DImode throughout.
15724 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15726         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
15727         check configure option to set BTI and Return Address Signing.
15728         * configure.ac: Add --enable-standard-branch-protection and
15729         --disable-standard-branch-protection.
15730         * configure: Regenerated.
15731         * doc/install.texi: Document the same.
15733 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15734             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15736         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
15737         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
15738         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
15739         if bti is enabled.
15740         * config/aarch64/aarch64-bti-insert.c: New file.
15741         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15742         pass.
15743         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15744         new bti pass.
15745         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
15746         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
15747         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
15748         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
15750 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15752         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
15753         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
15754         Disable bti for -mbranch-protection=none.
15755         (aarch64_handle_standard_branch_protection): Enable bti for
15756         -mbranch-protection=standard.
15757         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
15758         -mbranch-protection.
15759         (aarch64_bti_enabled): Check if bti is enabled.
15760         * config/aarch64/aarch64.opt: Declare target variable.
15761         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
15763 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15765         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
15766         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
15767         (aarch64_expand_epilogue): Likewise.
15768         (aarch64_output_mi_thunk): Likewise
15769         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
15770         TAILCALL_ADDR_REGS to x16 and x17.
15771         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
15773 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15775         * config/aarch64/aarch64-option-extensions.def: Define
15776         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
15777         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
15778         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
15779         (AARCH64_FL_PREDRES): New.
15780         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
15781         AARCH64_FL_PREDRES by default.
15782         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
15784 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15786         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15787         ARMv8.5-A.
15788         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
15789         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
15790         * doc/invoke.texi: Document ARMv8.5-A.
15792 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15794         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15795         (xorsign<mode>3): Likewise.
15797 2019-01-09  Jelinek  <jakub@redhat.com>
15799         PR middle-end/88758
15800         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
15801         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
15803         PR rtl-optimization/88331
15804         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
15805         not currently_expanding_to_rtl.
15807 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15809         * doc/invoke.texi (-Os): Remove trailing spaces.
15810         (-finline-functions): Remove reference to -O2.
15812 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
15814         PR rtl-optimization/79593
15815         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15817         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15818         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
15820 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
15822         PR bootstrap/88721
15823         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15824         to -1 on entry.
15826         PR debug/88723
15827         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15828         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15830 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
15832         PR target/88717
15833         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15834         ix86_avx_u128_mode_entry.
15836 2019-01-08  Martin Liska  <mliska@suse.cz>
15838         PR tree-optimization/88753
15839         * tree-switch-conversion.c (switch_conversion::build_one_array):
15840         Come up with local variable constructor.  Convert first to
15841         type of constructor values.
15843 2019-01-08  Richard Biener  <rguenther@suse.de>
15845         PR tree-optimization/86554
15846         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
15847         rpo_avail): Move earlier.
15848         (visit_nary_op): When value-numbering to expressions
15849         with different overflow behavior make sure there's an
15850         available expression on the path.
15852 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
15854         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
15855         aarch64_parse_branch_protection,
15856         struct aarch64_branch_protect_type,
15857         aarch64_handle_no_branch_protection,
15858         aarch64_handle_standard_branch_protection,
15859         aarch64_validate_mbranch_protection,
15860         aarch64_handle_pac_ret_protection,
15861         aarch64_handle_attr_branch_protection,
15862         accepted_branch_protection_string,
15863         aarch64_pac_ret_subtypes,
15864         aarch64_branch_protect_types,
15865         aarch64_handle_pac_ret_leaf): Define.
15866         (aarch64_override_options_after_change_1, aarch64_override_options):
15867         Add check for accepted_branch_protection_string.
15868         (aarch64_option_save): Save accepted_branch_protection_string.
15869         (aarch64_option_restore): Save accepted_branch_protection_string.
15870         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
15871         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
15872         msign-return-address.
15873         * doc/invoke.texi: Add mbranch-protection.
15875 2019-01-08  Alan Modra  <amodra@gmail.com>
15877         PR target/88614
15878         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
15879         Delete "unknownp" parameter.  Adjust callers.  Handle
15880         CONST_INT, PLUS, MINUS, and MULT.
15881         (attr_value_aligned): Renamed from or_attr_value.
15882         (min_attr_value): Return INT_MIN for unhandled rtl case..
15883         (min_fn): ..and translate to INT_MAX here.
15884         (write_length_unit_log): Modify to cope without "unknown".
15885         (write_attr_value): Handle IF_THEN_ELSE.
15887 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15889         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15890         optimization for masked stores.
15892 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15894         PR middle-end/88567
15895         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
15896         output vector directly to duplicate_and_interleave instead of
15897         going through a temporary.  Postpone insertion of ctor_seq to
15898         the end of the loop.
15900 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
15902         PR target/86891
15903         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15904         unsigned_p.  Handle signed and unsigned overflow correction as
15905         required.
15906         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15907         prototype.
15908         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15909         for operand 2.
15910         (add<mode>3_compareV_imm): Make this callable for expanding.
15911         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
15912         aarch64_plus_operand for operand 2.
15913         (subv<GPI:mode>_insn): New insn pattern.
15914         (subv<GPI:mode>_imm): Likewise.
15915         (negv<GPI:mode>3): New expand pattern.
15916         (negv<GPI:mode>_insn): New insn pattern.
15917         (negv<GPI:mode>_cmp_only): Likewise.
15918         (cmpv<GPI:mode>_insn): Likewise.
15919         (subvti4): Use register_operand for operand 1.  Update call to
15920         aarch64_expand_subvti.
15921         (usubvti4): Likewise.
15922         (negvti3): New expand pattern.
15923         (negdi_carryout): New insn pattern.
15924         (negvdi_carryinV): New insn pattern.
15925         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
15926         version the named version.
15927         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
15928         operands.
15929         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15930         patterns.
15931         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15932         patterns.
15933         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
15934         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
15935         (sub<mode>3_carryinCV): Delete.
15936         (sub<GPI:mode>3_carryinV): New expand pattern.
15937         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
15939 2019-01-07  Richard Biener  <rguenther@suse.de>
15941         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15942         of tree_operand_hash.
15944 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15946         PR tree-optimization/88598
15947         * tree.h (single_nonzero_element): Declare.
15948         * tree.c (single_nonzero_element): New function.
15949         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
15950         if I is the only nonzero element of CST.
15952 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15954         PR tree-optimization/88598
15955         * tree.h (initializer_each_zero_or_onep): Declare.
15956         * tree.c (initializer_each_zero_or_onep): New function.
15957         (signed_or_unsigned_type_for): Handle float types too.
15958         (unsigned_type_for, signed_type_for): Update comments accordingly.
15959         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
15960         x & { 0 or -1, 0 or -1, ... }.
15962 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
15964         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15965         with x86_64-pc-linux-gnu.
15967 2019-01-07  Tom de Vries  <tdevries@suse.de>
15969         PR target/85486
15970         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15971         function.
15972         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15973         routines.
15975 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
15977         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
15978         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
15979         TARGET_AVX512F as condition.
15981         PR debug/88723
15982         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
15983         const_not_ok_for_debug_p target hook.
15984         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
15985         on UNSPEC and subexpressions thereof if all subexpressions of the
15986         UNSPEC are CONSTANT_P.
15988         PR tree-optimization/88676
15989         * tree-ssa-phiopt.c (two_value_replacement): New function.
15990         (tree_ssa_phiopt_worker): Call it.
15992         PR sanitizer/88619
15993         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15994         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15996         PR c++/85052
15997         * tree-vect-generic.c: Include insn-config.h and recog.h.
15998         (expand_vector_piecewise): Add defaulted ret_type argument,
15999         if non-NULL, use that in preference to type for the result type.
16000         (expand_vector_parallel): Formatting fix.
16001         (do_vec_conversion, do_vec_narrowing_conversion,
16002         expand_vector_conversion): New functions.
16003         (expand_vector_operations_1): Call expand_vector_conversion
16004         for VEC_CONVERT ifn calls.
16005         * internal-fn.def (VEC_CONVERT): New internal function.
16006         * internal-fn.c (expand_VEC_CONVERT): New function.
16007         * fold-const-call.c (fold_const_vec_convert): New function.
16008         (fold_const_call): Use it for CFN_VEC_CONVERT.
16009         * doc/extend.texi (__builtin_convertvector): Document.
16011 2019-01-07  Tom de Vries  <tdevries@suse.de>
16013         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
16014         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
16015         vector_red_partition, vector_red_sym): New global variables.
16016         (nvptx_option_override): Initialize vector_red_sym.
16017         (nvptx_declare_function_name): Restore red_partition register.
16018         (nvptx_file_end): Emit code to declare the vector reduction variables.
16019         (nvptx_output_red_partition): New function.
16020         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
16021         large vector reductions.
16022         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
16023         (nvptx_init_builtins): Add VECTOR_ADDR.
16024         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
16025         Handle nvptx_expand_shared_addr.
16026         (nvptx_get_shared_red_addr): Add vector argument and handle large
16027         vectors.
16028         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
16029         large vectors.
16030         (nvptx_goacc_reduction_init): Likewise.
16031         (nvptx_goacc_reduction_fini): Likewise.
16032         (nvptx_goacc_reduction_teardown): Likewise.
16033         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
16034         init,fini,teardown}.
16035         (nvptx_init_axis_predicate): Initialize vector_red_partition.
16036         (nvptx_set_current_function): Init vector_red_partition.
16037         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
16038         (nvptx_red_partition): New insn.
16039         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
16041 2019-01-07  Tom de Vries  <tdevries@suse.de>
16043         PR target/85381
16044         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
16045         empty loops.
16047 2019-01-07  Tom de Vries  <tdevries@suse.de>
16049         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
16050         (nvptx_option_override): Init oacc_bcast_partition.
16051         (nvptx_init_oacc_workers): New function.
16052         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
16053         (nvptx_needs_shared_bcast): New function.
16054         (nvptx_find_par): Generalize to enable vectors to use shared-memory
16055         to propagate state.
16056         (nvptx_shared_propagate): Initialize vector bcast partition and
16057         synchronization state.
16058         (nvptx_single):  Generalize to enable vectors to use shared-memory
16059         to propagate state.
16060         (nvptx_process_pars): Likewise.
16061         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
16062         * config/nvptx/nvptx.h (struct machine_function): Add
16063         bcast_partition and sync_bar members.
16065 2019-01-07  Tom de Vries  <tdevries@suse.de>
16067         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
16068         (nvptx_apply_dim_limits): New function.
16069         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
16070         PTX_WARP_SIZE.
16072 2019-01-07  Tom de Vries  <tdevries@suse.de>
16074         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
16075         as late as possible.
16077 2019-01-07  Tom de Vries  <tdevries@suse.de>
16079         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
16080         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
16081         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
16082         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
16083         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
16085 2019-01-07  Tom de Vries  <tdevries@suse.de>
16087         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
16089 2019-01-07  Tom de Vries  <tdevries@suse.de>
16091         * omp-offload.c (oacc_get_min_dim): New function.
16092         * omp-offload.h (oacc_get_min_dim): Declare.
16094 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
16096         PR target/88521
16097         * config/i386/i386.c (function_value_ms_64): Return small sturct in
16098         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
16100 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16102         PR tree-opt/86020
16103         Revert:
16104         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
16106         * ipa-inline.c (edge_badness): Use inlined_time instead of
16107         inline_summaries->get.
16109 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16111         * opts.c (enable_fdo_optimizations): Enable
16112         version-loops-for-strides, loop-interchange, unrol-and-jam
16113         and tree-loop-distribution.
16114         * invoke.texi: Document newly enabled options.
16116 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16118         * doc/invoke.texi (max-inline-insns-small): New parameters.
16119         * ipa-inline.c (want_early_inline_function_p): simplify.
16120         (want_inline_small_function_p): Fix pasto from previous patch;
16121         use max-inline-insns-small bound.
16122         * params.def (max-inline-insns-small): New param.
16123         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
16124         variables correctly.
16126 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16128         * doc/invoke.texi: Document max-inline-insns-size,
16129         uninlined-function-insns, uninlined-function-time,
16130         uninlined-thunk-insns and uninlined-thunk-time.
16131         * params.def: Add max-inline-insns-size,
16132         uninlined-function-insns, uninlined-function-time,
16133         uninlined-thunk-insns and uninlined-thunk-time.
16134         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
16135         new parameters.
16136         * ipa-inline.c (can_inline_edge_by_limits_p,
16137         want_inline_small_function_p): Use new parameters.
16139 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16141         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
16143 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
16145         PR middle-end/82564
16146         PR target/88620
16147         * expr.c (expand_assignment): For calls returning VLA structures
16148         if to_rtx is not a MEM, force it into a stack temporary.
16150         PR debug/88635
16151         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
16152         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
16153         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
16154         subexpressions of both operands.
16155         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
16156         subrtxes are CONSTANT_P.
16157         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
16158         2018-11-09 changes.
16160 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
16162         * params.def (hot-bb-count-ws-permille): Set to 990.
16164 2019-01-04  Martin Sebor  <msebor@redhat.com>
16166         PR c/88546
16167         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
16168         leaf.
16170 2019-01-04  Martin Sebor  <msebor@redhat.com>
16172         PR c/88363
16173         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
16175 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
16177         * gdbinit.in: Turn off pagination for the skip commands, restore
16178         it to previous state afterwards.
16180 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
16182         PR target/88594
16183         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
16184         of GET_MODE (opN) as modes of the libcall arguments.
16186 2019-01-04  Jan Beulich  <jbeulich@suse.com>
16188         * config/i386/sse.md
16189         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
16190         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
16191         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
16192         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
16193         avx512f_vmcmp<mode>3<round_saeonly_name>,
16194         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
16195         avx512f_maskcmp<mode>3,
16196         <avx512>_cvt<ssemodesuffix>2mask<mode>,
16197         <avx512>_cvt<ssemodesuffix>2mask<mode>,
16198         *<avx512>_cvtmask2<ssemodesuffix><mode>,
16199         *<avx512>_cvtmask2<ssemodesuffix><mode>,
16200         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
16201         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
16202         <avx512>_gt<mode>3<mask_scalar_merge_name>,
16203         <avx512>_gt<mode>3<mask_scalar_merge_name>,
16204         <avx512>_testm<mode>3<mask_scalar_merge_name>,
16205         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
16206         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
16207         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
16208         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
16209         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
16210         avx512cd_maskb_vec_dup<mode>,
16211         avx512cd_maskw_vec_dup<mode>,
16212         avx512dq_fpclass<mode><mask_scalar_merge_name>,
16213         avx512dq_vmfpclass<mode>,
16214         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
16215         instead of =Yk.
16217 2019-01-03  Martin Sebor  <msebor@redhat.com>
16219         PR tree-optimization/88659
16220         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
16222 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
16224         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
16225         unaligned vsx and avoid lxvd2x/stxvd2x.
16226         (gen_lvx_v4si_move): New function.
16228 2019-01-03  Tom de Vries  <tdevries@suse.de>
16230         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
16231         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
16232         function.
16233         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
16235 2019-01-03  Tom de Vries  <tdevries@suse.de>
16237         * config/nvptx/nvptx.c (struct offload_attrs): New.
16238         (populate_offload_attrs): New function.  Factor mask extraction out of
16239         nvptx_reorg.  Add extraction of dimensions.
16240         (nvptx_reorg): Use populate_offload_attrs.
16242 2019-01-03  Tom de Vries  <tdevries@suse.de>
16244         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
16245         cases for oacc_min_dims_p and routine_p.  Add asserts for
16246         oacc_default_dims_p and offload_region_p.
16248 2019-01-03  Tom de Vries  <tdevries@suse.de>
16250         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
16251         factored out of ...
16252         (nvptx_goacc_validate_dims): ... here.
16254 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
16256         PR tree-optimization/85574
16257         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
16258         structure.
16259         (struct ssa_equip_hash_traits): Declare.
16260         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
16262 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
16264         PR debug/88644
16265         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
16266         change it to qualified_type.
16268 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
16270         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
16271         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
16273 2019-01-02  Martin Sebor  <msebor@redhat.com>
16274             Jeff Law  <law@redhat.com>
16276         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
16277         (get_range_strlen_tree): Update appropriately.
16278         (get_range_strlen)
16279         * gimple-fold.h (get_range_strlen): Drop unused last argument.
16281         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
16282         rather than set_range_info.
16283         * tree-ssa-strlen.c (set_strlen_range): Extracted from
16284         maybe_set_strlen_range.  Handle potentially boundary crossing
16285         cases more conservatively.
16286         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
16287         Call set_strlen_range.
16288         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
16290         PR middle-end/88663
16291         * gimple-fold.c (get_range_strlen): Update prototype to no longer
16292         need the flexp argument.
16293         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
16294         from calls to get_range_strlen.  Update comments.  Just update
16295         VAL for an unterminated const char array and let the reset of the
16296         code handle it normally.  No longer try to set *flexp.  Adjust
16297         return value.
16298         (get_range_strlen): Update for the new get_range_strlen API.
16299         (get_maxval_strlen): Similarly.
16300         (gimple_fold_builtin_strlen): Handle update meaning of return value
16301         from get_range_strlen.
16302         * gimple-ssa-sprintf.c (get_string_length): Update for the new
16303         get_range_strlen API.
16305 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
16307         PR lto/88130
16308         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
16309         false at WPA time when body was removed.
16311 2019-01-02  Martin Liska  <mliska@suse.cz>
16313         PR tree-optimization/88650
16314         * predict.c (set_even_probabilities): Calculate probability
16315         remainer only when really used.
16317 2019-01-02  Richard Biener  <rguenther@suse.de>
16319         PR middle-end/88651
16320         * tree-data-ref.c (analyze_subscript_affine_affine): Use
16321         widest_ints when mangling max_stmt_execution results.
16323 2019-01-02  Richard Biener  <rguenther@suse.de>
16325         PR tree-optimization/88621
16326         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
16327         bitfields when canoncalizing.
16329 2019-01-02  Richard Biener  <rguenther@suse.de>
16331         PR target/87545
16332         * config/i386/x86-tune-costs.h (intel_cost): Adjust
16333         cost of cheap SSE instruction.
16335 2019-01-02  Richard Biener  <rguenther@suse.de>
16337         PR ipa/85574
16338         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
16339         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
16340         function.
16341         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
16342         set after UIDs before splitting them.
16344 2019-01-01  Martin Sebor  <msebor@redhat.com>
16345             Jeff Law  <law@redhat.com>
16347         * gimple-fold.c (get_range_strlen_tree): Record if the computed
16348         length is optimistic.  If it is, then arrange to compute the
16349         conservative length as well.
16351         * gimple-fold.h (get_range_strlen): Update prototype.
16352         * builtins.c (check_access): Update call to get_range_strlen to use
16353         c_strlen_data pointer.   Change various variable accesses to instead
16354         pull data from the c_strlen_data structure.
16355         (check_strncat_sizes, expand_builtin_strncat): Likewise.
16356         * calls.c (maybe_warn_nonstring_arg): Likewise.
16357         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
16358         minimum length if maximum lengh is unknown.
16359         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
16360         that used c_strlen, it's no longer needed.  Restructure slightly.
16361         (format_string): Set unlikely range appropriately.
16362         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
16363         formatting issues.
16364         (get_range_strlen):  Accept c_strlen_data pointer for external
16365         call sites as well.  Pass through to call to internal get_range_strlen.
16366         Adjust minlen, maxlen and maxbound as needed.
16367         (get_maxval_strlen): Update comments.
16368         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
16369         to use c_strlen_data pointer.  Change variable accesses to instead
16370         use c_strlen_data data members.
16372         * gimple-fold.c (get_range_strlen): Update prototype.
16373         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
16374         local variables.  Use pdata to return information to caller.
16375         Update calls to get_range_strlen.  Update pdata->maxbound.
16376         (get_range_strlen -- static version): Similarly.
16377         (get_range_strlen -- extern version): Update for internal
16378         get_range_strlen API change.  Convert to external data format.
16379         (get_maxval_strlen): Similarly.
16381 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
16383         * coverage.c (get_coverage_counts): Use current_function_decl.
16384         * profile.c (read_thunk_profile): New function.
16385         (branch_prob): Add THUNK parameter.
16386         * tree-profile.c (tree_profiling): Handle thunks.
16387         * value-prof.c (init_node_map): Handle thunks.
16388         * value-prof.h (branch_prob): Upate prototype.
16389         (read_thunk_profile): Declare.
16391 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
16393         Update copyright years.
16395         * gcc.c (process_command): Update copyright notice dates.
16396         * gcov-dump.c (print_version): Ditto.
16397         * gcov.c (print_version): Ditto.
16398         * gcov-tool.c (print_version): Ditto.
16399         * gengtype.c (create_file): Ditto.
16400         * doc/cpp.texi: Bump @copying's copyright year.
16401         * doc/cppinternals.texi: Ditto.
16402         * doc/gcc.texi: Ditto.
16403         * doc/gccint.texi: Ditto.
16404         * doc/gcov.texi: Ditto.
16405         * doc/install.texi: Ditto.
16406         * doc/invoke.texi: Ditto.
16408 Copyright (C) 2019 Free Software Foundation, Inc.
16410 Copying and distribution of this file, with or without modification,
16411 are permitted in any medium without royalty provided the copyright
16412 notice and this notice are preserved.