Fix comment about use of @pcrel@got.
[official-gcc.git] / gcc / ChangeLog
blob41089251f5a62e35fac7954cf8602ea3f59416b8
1 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
3         * config/rs6000/predicates.md (pcrel_external_address): Update
4         comment.
6 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
8         PR target/85693
9         * config/i386/mmx.md (usadv8qi): New expander.
11 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
13         PR c++/90590
14         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15         with reserved names that are in a system header.
17 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
19         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
20         (*vec_extractv2si_0_zext_sse4): New insn pattern.
21         (*vec_extractv2si_0_zext): Ditto.
22         (*vec_extractv2si_1): Add (rm,x) alternative.
23         (*vec_extractv2si_1_zext): New insn pattern.
24         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
25         insn constraint.
27 2019-08-01  Richard Biener  <rguenther@suse.de>
29         * domwalk.c (bb_postorder): Remove static variable.
30         (cmp_bb_postorder): Adjust.
31         (sort_bbs_postorder): Adjust and use gcc_sort_r.
32         (dom_walker::walk): Adjust.
34 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
36         * sort.cc (sort_r_ctx): New struct.
37         (reorder23): Make templated on context type.
38         (reorder45): Ditto.
39         (cmp1): Ditto.  Adjust signature.
40         (netsort): Ditto.
41         (mergesort): Ditto.
42         [CHECKING_P] (cmp2to3): New static function.  Use it...
43         (gcc_qsort) [CHECKING_P]: ...here.
44         (gcc_sort_r): New function.
45         * system.h (sort_r_cmp_fn): New function typedef.
46         (qsort_chk): Adjust signature.
47         (gcc_sort_r): Declare.
48         * vec.c (qsort_chk_error): Adjust.
49         (qsort_chk): Adjust.
51 2019-08-01  Richard Biener  <rguenther@suse.de>
53         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
54         (compute_antic): Localize it here.
56 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
58         * common/config/riscv/riscv-common.c: Check -march string ends
59         with null.
61 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
63         * ipa-devirt.c (type_warning_cmp): Make static.
64         (decl_warning_cmp): Ditto.
66 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
68         PR target/91050
69         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
70         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
71         use of deleted rs6000_dejagnu_cpu_index variable.
72         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
73         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
74         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
75         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
76         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
77         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
79 2019-07-31  Richard Biener  <rguenther@suse.de>
81         PR tree-optimization/91280
82         * tree-ssa-structalias.c (get_constraint_for_component_ref):
83         Decompose MEM_REF manually for offset handling.
85 2019-07-31  Richard Biener  <rguenther@suse.de>
87         PR tree-optimization/91293
88         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
89         of reduction stmts.
91 2019-07-31  Matt Thomas  <matt@3am-software.com>
92             Nick Hudson <nick@nthcliff.demon.co.uk>
93             Matthew Green <mrg@eterna.com.au>
94             Maya Rashish <coypu@sdf.org>
96         * config.gcc (hppa*-*-netbsd*): New target.
97         * config/pa/pa-netbsd.h: New file.
98         * config/pa/pa32-netbsd.h: New file.
100 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
102         PR tree-optimization/91201
103         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
105 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
107         * config/gcn/gcn-valu.md
108         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
109         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
110         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
111         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
112         struct ilist. Add nops for delayeduse insns.
113         * config/gcn/gcn.md (delayeduse): New attribute.
114         (*movbi): Remove s_waitcnt from stores.
115         (*mov<mode>_insn): Likewise.
116         (*movti_insn): Likewise. Add delayeduse attribute.
117         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
118         (atomic_store<mode>): Remove or adjust s_waitcnt.
120 2019-07-31  Richard Biener  <rguenther@suse.de>
122         * vr-values.h (vr_values::swap_vr_value): New.
123         (vr_values::free_value_range): likewise.
124         * vr-values.c (vr_values::swap_vr_value): Implement.
125         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
126         Do not return a range or take a var.
127         (evrp_range_analyzer::stack): Change back to recording a non-const
128         value_range *.
129         * gimple-ssa-evrp-analyze.c
130         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
131         value-range.
132         (evrp_range_analyzer::pop_to_marker): Adjust.
133         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
134         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
135         no longer needed value-range.
137 2019-07-31  Martin Liska  <mliska@suse.cz>
139         * tree-ssa-dce.c (propagate_necessity): Delete operator can
140         have size and (or) alignment as 2nd and later arguments.
141         Mark all of them as necessary.
143 2019-07-31  Richard Biener  <rguenther@suse.de>
145         PR tree-optimization/91178
146         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
147         Use tail-recursion.
149 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
151         PR tree-optimization/91201
152         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
153         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
154         TARGET_AVX512F.
155         (reduc_plus_scal_<mode>): Improve formatting by introducing
156         a temporary.
158 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
160         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
161         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
162         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
163         (aarch64_init_tme_builtins): New.
164         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
165         (aarch64_expand_builtin_tme): New.
166         (aarch64_expand_builtin): Handle TME builtins.
167         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
168         __ARM_FEATURE_TME when enabled.
169         * config/aarch64/aarch64-option-extensions.def: Add "tme".
170         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
171         (TARGET_TME): New.
172         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
173         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
174         UNSPECV_TCANCEL.
175         (tstart, ttest, tcommit, tcancel): New instructions.
176         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
177         (__tcancel, __ttest): New.
178         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
179         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
180         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
181         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
182         * config/arm/types.md: Add new tme type attr.
183         * doc/invoke.texi: Document "tme".
185 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
187         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
188         warn_unused_result attribute.
189         (cmse_check_address_range): Add warn_unused_result attribute.
191 2019-07-31  Richard Biener  <rguenther@suse.de>
193         PR tree-optimization/91257
194         * tree-vrp.c (union_ranges): Unify equality and less tests
195         by using compare_values.  Re-order cheap tests first.
197 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
199         PR middle-end/91301
200         * gimplify.c (gimplify_omp_for): If for class iterator on
201         distribute parallel for there is no data sharing clause
202         on inner_for_stmt, look for private clause on combined
203         parallel too and if found, move it to inner_for_stmt.
205 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
207         * lra-int.h (lra_operand_data): Remove early_clobber field.
208         (lra_insn_reg): Likewise.
209         * lra.c (debug_operand_data): Update accordingly.
210         (setup_operand_alternative): Likewise.
211         (new_insn_reg): Likewise.  Remove early_clobber parameter.
212         (collect_non_operand_hard_regs): Update call accordingly.
213         Don't assign to lra_insn_reg::early_clobber.
214         (add_regs_to_insn_regno_info): Remove early_clobber parameter
215         and update calls to new_insn_reg.
216         (lra_update_insn_regno_info): Update calls accordingly.
217         * lra-constraints.c (update_and_check_small_class_inputs): Take the
218         alternative number as a parameter and test whether the operand
219         is earlyclobbered in that particular alternative.
220         (process_alt_operands): Update call accordingly.  Use per-alternative
221         checks for earyclobber here too.
222         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
223         against zero for IRA_UNKNOWN_ALT.
225 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
227         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
229 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
231         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
232         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
234 2019-07-30  Martin Liska  <mliska@suse.cz>
236         PR ipa/89330
237         * cgraph.c (cgraph_edge::make_direct): Use
238         edge->indirect_unknown_callee as edge->resolve_speculation can
239         deallocate edge which is this pointer.
241 2019-07-30  Richard Biener  <rguenther@suse.de>
243         PR tree-optimization/91257
244         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
246 2019-07-30  Martin Liska  <mliska@suse.cz>
248         * doc/invoke.texi: Document new behavior.
249         * lto-wrapper.c (cpuset_popcount): New function
250         is a copy of libgomp/config/linux/proc.c.
251         (init_num_threads): Likewise.
252         (run_gcc): Automatically detect core count for -flto.
253         (jobserver_active_p): New function.
255 2019-07-30  Richard Biener  <rguenther@suse.de>
257         PR tree-optimization/91257
258         * bitmap.h (bitmap_ior_into_and_free): Declare.
259         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
260         whether to add the unliked element to the freelist.
261         (bitmap_list_insert_element_after): Add defaulted param for
262         an already allocated element.
263         (bitmap_ior_into_and_free): New function.
264         * tree-ssa-structalias.c (condense_visit): Reduce the
265         ponts-to and edge bitmaps of the SCC members in a
266         logarithmic fashion rather than all to one.
268 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
270         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
271         parameter.  When nonnull, make sure that the addition or subtraction
272         has the same condition.
273         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
274         for CFN_COND_MUL too.
276 2019-07-30  Richard Biener  <rguenther@suse.de>
278         PR tree-optimization/91291
279         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
280         constant values.
282 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
284         PR middle-end/91216
285         * omp-low.c (global_nonaddressable_vars): New variable.
286         (use_pointer_for_field): For global decls, if they are non-addressable,
287         remember it in the global_nonaddressable_vars bitmap, if they are
288         addressable and in the global_nonaddressable_vars bitmap, ignore their
289         TREE_ADDRESSABLE bit.
290         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
291         vars in global_nonaddressable_vars bitmap.
292         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
294         PR target/91150
295         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
296         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
297         comparison to unsigned HOST_WIDE_INT before shifting it left.
299 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
301         * config/i386/i386.md (movstrict<mode>): Use register_operand
302         predicate for operand 0.  Add expander condition.  Assert that
303         operand 0 is a SUBREG RTX.
304         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
305         Update operand constraints and insn condition.
306         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
307         (zero_extendqihi2_and): Do not call gen_movstrictqi.
308         (*setcc_qi_slp): Use register_operand predicate for operand 0.
309         Update operand 0 constraints.
310         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
312 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
314         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
315         when -m{code,data}-region are used without -mlarge.
316         * config/msp430/msp430.c (msp430_option_override): Error when a
317         non-default code or data region is used without -mlarge.
318         (msp430_section_attr): Emit a warning and do not add upper/lower/either
319         attributes when they are used without -mlarge.
321 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
323         PR target/70320
324         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
326 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
328         PR middle-end/91242
329         * wide-int.h (generic_wide_int::sext_elt): New function.
330         * inchash.h (hash::add_wide_int): Use it instead of elt.
332 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
334         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
335         CODE_FOR_arm_##.
336         * config/arm/arm.md (<crc_variant>): Rename to...
337         (arm_<crc_variant>): ... This.
338         (<cdp>): Rename to...
339         (arm_<cdp>): ... This.
340         (<ldc>): Rename to...
341         (arm_<ldc>): ... This.
342         (<stc>): Rename to...
343         (arm_<stc>): ... This.
344         (<mcr>): Rename to...
345         (arm_<mcr>): ... This.
346         (<mrc>): Rename to...
347         (arm_<mrc>): ... This.
348         (<mcrr>): Rename to...
349         (arm_<mcrr>): ... This.
350         (<mrrc>): Rename to...
351         (arm_<mrrc>): ... This.
353 2019-07-29  Richard Biener  <rguenther@suse.de>
355         PR tree-optimization/91257
356         * tree-ssa-sccvn.h (struct vn_avail): New.
357         (struct vn_ssa_aux): Add avail member.
358         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
359         member, add m_avail_freelist one.
360         (rpo_elim::~rpo_elim): Remove.
361         (rpo_elim::eliminate_avail): Adjust to new avail tracking
362         data structure.
363         (rpo_elim::eliminate_push_avail): Likewise.
364         (do_unwind): Likewise.
365         (do_rpo_vn): Likewise.
367 2019-07-29  Richard Biener  <rguenther@suse.de>
369         PR tree-optimization/91257
370         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
371         most cases, instead call compare_values which handles the
372         symbolic ranges we handle specially.
373         (compare_values_warnv): Do not call operand_less_p but open-code
374         the effective fold calls.  Avoid converting so much.
376 2019-07-29  Martin Liska  <mliska@suse.cz>
378         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
379         remove LHS of operator new call.  It's handled latter.
381 2019-07-29  Richard Biener  <rguenther@suse.de>
383         PR tree-optimization/91267
384         * vr-values.c (vr_values::update_value_range): Add early return
385         for effectively VARYING lattice entry.
387 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
389         PR debug/86638
390         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
391         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
392         necessary if keep_all_vdefs_p is true.
393         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
394         that keep_all_vdefs_p is false.
395         (mark_all_reaching_defs_necessary): Likewise.
396         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
398 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
400         * common.opt (Og): Change the initial value of flag_dse to 0.
401         * opts.c (default_options_table): Move OPT_ftree_dse from
402         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
403         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
404         entry before the OPT_ftree_sra entry.
405         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
406         of flags disabled by Og.
408 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
410         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
411         variables for -Og.
413 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
415         * doc/sourcebuild.texi (check-function-bodies): Document.
417 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
419         * simplify-rtx.c (simplify_const_unary_operation): Fold a
420         VEC_DUPLICATE of a fixed-length vector even if the result
421         is variable-length.  Likewise fold a duplicate of a
422         variable-length vector if the variable-length vector is
423         itself a duplicate of a fixed-length sequence.
424         (test_vector_ops_duplicate): Test more cases.
426 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
428         * vector-builder.h (vector_builder): Add a shape template parameter.
429         (vector_builder::new_unary_operation): New function, generalizing
430         the old tree_vector_builder function.
431         (vector_builder::new_binary_operation): Likewise.
432         (vector_builder::binary_encoded_nelts): Likewise.
433         * int-vector-builder.h (int_vector_builder): Update template
434         parameters to vector_builder.
435         (int_vector_builder::shape_nelts): New function.
436         * rtx-vector-builder.h (rtx_vector_builder): Update template
437         parameters to vector_builder.
438         (rtx_vector_builder::shape_nelts): New function.
439         (rtx_vector_builder::nelts_of): Likewise.
440         (rtx_vector_builder::npatterns_of): Likewise.
441         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
442         * tree-vector-builder.h (tree_vector_builder): Update template
443         parameters to vector_builder.
444         (tree_vector_builder::shape_nelts): New function.
445         (tree_vector_builder::nelts_of): Likewise.
446         (tree_vector_builder::npatterns_of): Likewise.
447         (tree_vector_builder::nelts_per_pattern_of): Likewise.
448         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
449         (tree_vector_builder::new_binary_operation): Delete.
450         (tree_vector_builder::binary_encoded_nelts): Likewise.
451         * simplify-rtx.c: Include rtx-vector-builder.h.
452         (distributes_over_addition_p): New function.
453         (simplify_const_unary_operation)
454         (simplify_const_binary_operation): Generalize handling of vector
455         constants to include variable-length vectors.
456         (test_vector_ops_series): Add more tests.
458 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
460         PR lto/91222
461         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
462         than INDENTIFIER_POINTER.
464 2019-07-28  Martin Liska  <mliska@suse.cz>
466         PR ipa/89330
467         * cgraph.c (symbol_table::create_edge): Always allocate
468         a cgraph_edge.
469         (symbol_table::free_edge): Store summary_id to
470         edge_released_summary_ids if != -1;
471         * cgraph.h (NEXT_FREE_NODE): Remove.
472         (SET_NEXT_FREE_NODE): Likewise.
473         (NEXT_FREE_EDGE): Likewise.
474         (symbol_table::release_symbol): Store summary_id to
475         cgraph_released_summary_ids if != -1;
476         (symbol_table::allocate_cgraph_symbol): Always allocate
477         a cgraph_node.
479 2019-07-28  Alan Modra  <amodra@gmail.com>
481         * gcc/config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
482         gen_sibcall.
484 2019-07-28  Alan Modra  <amodra@gmail.com>
486         PR target/91135
487         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
488         define.
489         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
490         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
491         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
493 2019-07-28  Alan Modra  <amodra@gmail.com>
495         PR target/91050
496         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
497         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
498         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
499         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
500         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
501         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
502         in asm_default spec.
503         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
504         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
506 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
508         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
510 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
512         PR target/89517
513         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
514         * config/aarch64/aarch64-option-extensions.def: Add new comments
515         and restore easier to read options.
517 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
519         * convert.c (convert_to_real_1): Move part of conversion code...
520         * match.pd: ...To here.
522 2019-07-26  Martin Jambor  <mjambor@suse.cz>
524         PR ipa/89330
525         * ipa-inline-transform.c (check_speculations_1): New function.
526         (push_all_edges_in_set_to_vec): Likewise.
527         (check_speculations): Use check_speculations_1, new parameter
528         new_edges.
529         (inline_call): Pass new_edges to check_speculations.
530         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
531         NULL.
532         (speculation_useful_p): Early return true if edge is inlined, remove
533         later checks for inline_failed.
535 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
537         PR rtl-optimization/91223
538         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
539         matching with INOUT operand.
541 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
543         * stmt.c (expand_case): Try to narrow the index type if it's larger
544         than a word.  Tidy up.
546 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
548         * cif-code.def (NEVER_CALL): New code.
549         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
550         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
552 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
554         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
555         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
557 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
559         * ipa-devirt.c (add_type_duplicate): Fix return value.
561 2019-07-25  Richard Biener  <rguenther@suse.de>
563         * tree-vrp.c (extract_range_from_multiplicative_op): Add
564         type parameter and use it instead of guessing expression
565         type from the first operand.
566         (extract_range_from_binary_expr): Pass expr_type down.
568 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
570         * config/arm/arm.md (SATrev): Change to code attribute.
571         (*satsi_<SAT:code>): Adjust for the above.
572         (*satsi_<SAT:code>_shift): Likewise.
574 2019-07-25  Richard Biener  <rguenther@suse.de>
576         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
577         Make value_range * temporary const.
578         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
579         Likewise.
580         (evrp_range_analyzer::record_ranges_from_): Likewise.
581         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
582         deal with having recorded a const one.
583         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
584         Return a const value_range *.
585         (evrp_range_analyzer::pop_value_range): Likewise.
586         (evrp_range_analyzer::stack): Record const value_range *s.
587         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
588         Adjust.
589         * gimple-ssa-sprintf.c (get_int_range): Likewise.
590         (format_integer): Likewise.
591         (sprintf_dom_walker::handle_gimple_call): Likewise.
592         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
593         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
594         (vrp_prop::get_value_range): Adjust.
595         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
596         modifying the lattice in-place.
597         (vrp_prop::visit_stmt): Likewise.
598         * vr-values.c (vr_values::get_lattice_entry): New private method.
599         (vr_values::get_value_range): Wrap it and return a const
600         value_range *.
601         (vr_values::set_def_to_varying): New.
602         (vr_values::set_defs_to_varying): Use it.
603         (vr_values::update_value_range): Likewise.
604         (vr_values::vrp_stmt_computes_nonzero): Adjust.
605         (values::op_with_constant_singleton_va): Likewise.
606         (vr_values::extract_range_for_var_from_co): Likewise.
607         (vr_values::extract_range_from_ssa_name): Likewise.
608         (vr_values::extract_range_from_cond_expr): Likewise.
609         (vr_values::extract_range_basic): Likewise.
610         (compare_ranges): Take const value_range *, adjust.
611         (compare_range_with_value): Likewise.
612         (vrp_valueize): Adjust.
613         (vrp_valueize_1): Likewise.
614         (vr_values::get_vr_for_comparison): Return a const value_range *.
615         (vr_values::compare_name_with_value): Adjust.
616         (vr_values::compare_names): Likewise.
617         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
618         Likewise.
619         (vr_values::vrp_evaluate_conditional): Likewise.
620         (find_case_label_ranges): Take a const value_range *.
621         (vr_values::vrp_visit_switch_stmt): Adjust.
622         (vr_values::extract_range_from_phi_node): Likewise.
623         (vr_values::simplify_div_or_mod_using_ran): Likewise.
624         (vr_values::simplify_abs_using_ranges): Likewise.
625         (test_for_singularity): Take a const value_range *.
626         (range_fits_type_p): Likewise.
627         (vr_values::simplify_cond_using_ranges_1): Adjust.
628         (vr_values::simplify_cond_using_ranges_2): Likewise.
629         (vr_values::simplify_switch_using_ranges): Likewise.
630         (vr_values::simplify_float_conversion_usi): Likewise.
631         (vr_values::two_valued_val_range_p): Likewise.
632         * vr-values.h (vr_values::get_value_range): Return a const
633         value_range *.
634         (vr_values::set_def_to_varying): New.
635         (vr_values::get_lattice_entry): New private method.
636         (vr_values::get_vr_for_comparison): Return a const value_range *.
638 2019-07-25  Martin Liska  <mliska@suse.cz>
639             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
641         PR c++/23383
642         * common.opt: Add -fallocation-dce
643         * gimple.c (gimple_call_operator_delete_p): New.
644         * gimple.h (gimple_call_operator_delete_p): Likewise.
645         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
646         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
647         DECL_IS_OPERATOR_DELETE_P.
648         (mark_all_reaching_defs_necessary_1): Likewise.
649         (propagate_necessity): Likewise.
650         (eliminate_unnecessary_stmts): Handle
651         gimple_call_operator_delete_p.
652         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
653         Add packing of OPERATOR_DELETE.
654         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
655         Similarly here.
656         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
657         (DECL_SET_IS_OPERATOR_DELETE): New.
658         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
660 2019-07-25  Martin Liska  <mliska@suse.cz>
662         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
663         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
664         * coverage.c (coverage_begin_function): Likewise.
665         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
666         * gimple.c (gimple_call_nonnull_result_p): Likewise.
667         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
668         (sem_item::hash_referenced_symbol_properties): Likewise.
669         * lto-streamer-out.c (hash_tree): Likewise.
670         * predict.c (expr_expected_value_1): Likewise.
671         * tree-inline.c (expand_call_inline): Likewise.
672         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
673         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
674         * tree-core.h (enum function_decl_type): New enum.
675         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
676         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
677         (set_function_decl_type): Likewise.
678         (DECL_IS_OPERATOR_NEW_P): New.
679         (DECL_SET_IS_OPERATOR_NEW): Likewise.
680         (DECL_LAMBDA_FUNCTION): Likewise.
681         (DECL_LAMBDA_FUNCTION_P): Likewise.
682         (DECL_IS_OPERATOR_NEW): Remove.
683         (DECL_SET_LAMBDA_FUNCTION): Likewise.
685 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
687         * ipa-profile.c (get_most_common_single_value): Use
688         get_nth_most_common_value.
689         * profile.c (sort_hist_value): New function.
690         (compute_value_histograms): Call sort_hist_value to sort the
691         values after loading from disk.
692         * value-prof.c (get_most_common_single_value): Rename to ...
693         get_nth_most_common_value.  Add input params n, return
694         the n_th value and count.
695         (gimple_divmod_fixed_value_transform): Use
696         get_nth_most_common_value.
697         (gimple_ic_transform): Likewise.
698         (gimple_stringops_transform): Likewise.
699         * value-prof.h (get_most_common_single_value): Add input params
700         n, default to 0.
702 2019-07-25  Richard Biener  <rguenther@suse.de>
704         PR tree-optimization/91236
705         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
706         size of CONSTRUCTOR write.  Fix buffer size we pass to
707         native_encode_expr.
709 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
711         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
712         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
713         r273773.
715 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
717         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
718         explicitly disabled with --disable-initfini-array.
720 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
722         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
723         if-exists.
725 2019-07-24  Martin Sebor  <msebor@redhat.com>
727         PR tree-optimization/91183
728         PR tree-optimization/86688
729         * builtins.c (compute_objsize): Handle MEM_REF.
730         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
731         (get_min_string_length): Remove.
732         (count_nonzero_bytes): New function.
733         (handle_char_store): Rename...
734         (handle_store): to this.  Handle multibyte stores via integer types.
735         (strlen_check_and_optimize_stmt): Adjust conditional and the called
736         function name.
738 2019-07-24  Martin Sebor  <msebor@redhat.com>
740         PR driver/80545
741         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
742         (diagnostic_report_diagnostic): Same.
743         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
744         (diagnostic_context::lang_mask): New data member.
745         * ipa-pure-const.c (suggest_attribute): Use
746         lang_hooks.option_lang_mask ().
747         * opts-common.c (option_enabled): Handle new argument.
748         (get_option_state): Pass an additional argument.
749         * opts.c (print_filtered_help): Print supported languages for
750         unsupported options.  Adjust printing of current state.
751         * opts.h (option_enabled): Add argument.
752         * toplev.c (print_switch_values): Use lang_mask.
753         (general_init): Set global_dc->lang_mask.
755 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
757         PR bootstrap/87030
758         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
760 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
762         * cgraphunit.c (symbol_table::compile): Start and stop 
763         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
764         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
766 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
768         * gimplify.c (flag_instrument_functions_exclude_p): Include
769         namespace/class information in the printable name.
770         * opts.c (add_comma_separated_to_vector): Add NUL terminator
771         to tokens entered into the vector.
773 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
775         * tree-nested.c (build_simple_mem_ref_notrap): New function.
776         (get_static_chain): Call it instead of build_simple_mem_ref.
777         (get_frame_field): Likewise.
778         (get_nonlocal_debug_decl): Likewise.
779         (convert_nonlocal_reference_op): Likewise.
781 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
783         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
784         declaration.
785         (arc_compute_frame_size): Millicode is disabled when compiling
786         ISR.
787         (arc_return_address_register): Likewise.
788         (arc_compute_function_type): Likewise.
789         (arc_compute_frame_size): Likewise.
790         (secondary_reload_info): Likewise.
791         (arc_get_unalign): Likewise.
792         (arc_can_use_return_insn): Declare.
793         * config/arc/arc.c (AUX_LP_START): Define
794         (AUX_LP_END): Likewise.
795         (arc_frame_info): Update gmask member to 64-bit datum.
796         (GMASK_LEN): Update.
797         (arc_compute_function_type): Make it static, move it forward.
798         (arc_must_save_register): Update, consider the extra regs.
799         (arc_compute_millicode_save_restore_regs): Update to use the 64
800         bit gmask.
801         (arc_compute_frame_size): Likewise.
802         (arc_enter_leave_p): Likewise.
803         (arc_save_callee_saves): Likewise.
804         (arc_restore_callee_saves): Likewise.
805         (arc_save_callee_enter): Likewise.
806         (arc_restore_callee_leave): Likewise.
807         (arc_save_callee_milli): Likewise.
808         (arc_restore_callee_milli): Likewise.
809         (arc_expand_prologue): Add new interrupt handling.
810         (arc_return_address_register): Make it static, move it forward.
811         (arc_expand_epilogue): Add new interrupt handling.
812         (arc_get_unalign): Delete.
813         (arc_epilogue_uses): Make sure we do not remove the extra
814         saved/restored registers when interrupt.
815         (arc_can_use_return_insn): New function.
816         (push_reg): Likewise.
817         (pop_reg): Likewise.
818         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
819         procedures.
820         (arc_restore_callee_saves): Likewise, but restoring.
821         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
822         (R33_REG): Likewise.
823         (R34_REG): Likewise.
824         (R35_REG): Likewise.
825         (R36_REG): Likewise.
826         (R37_REG): Likewise.
827         (R38_REG): Likewise.
828         (R39_REG): Likewise.
829         (R45_REG): Likewise.
830         (R46_REG): Likewise.
831         (R47_REG): Likewise.
832         (R48_REG): Likewise.
833         (R49_REG): Likewise.
834         (R50_REG): Likewise.
835         (R51_REG): Likewise.
836         (R52_REG): Likewise.
837         (R53_REG): Likewise.
838         (R54_REG): Likewise.
839         (R55_REG): Likewise.
840         (R56_REG): Likewise.
841         (R58_REG): Likewise.
842         (type): Add rtie attribute.
843         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
844         (movsi_insn): Accept moves to lp_count.
845         (rtie): Update pattern.
846         (simple_return): Simplify it, don't use this pattern as a return
847         from an interrupt.
848         (arc600_rtie): New pattern.
849         (p_return_i): Clean up.
850         (return): Likewise.
851         * config/arc/builtins.def (rtie): Only available for non ARC6xx
852         family CPUs.
853         * config/arc/predicates.md (move_src_operand): Consider lp_count
854         as a register.
856 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
858         * config/s390/predicates.md (addv_const_operand): New predicate.
859         * config/s390/s390-modes.def (CCO): New condition code mode.
860         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
861         (s390_branch_condition_mask): Likewise.
862         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
863         ("mulv<mode>4"): New expanders.
864         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
865         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
866         pattern definitions.
868 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
870         PR middle-end/91166
871         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
872         (define_predicates): Add entry for uniform_vector_p.
873         (vec_same_elem_p): New match pattern.
875 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
877         PR bootstrap/87030
878         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
879         * config/i386/darwin32-biarch.h .. to here.
880         * config/i386/darwin64-biarch.h: Adjust comments.
881         * config/rs6000/darwin32-biarch.h: Likewise.
882         * config/rs6000/darwin64-biarch.h: Likewise.
883         * config.gcc: Missed commit from r273746
884         (*-*-darwin*): Don't include CPU t-darwin here.
885         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
886         an error message if i686-darwin configuration is attempted for
887         Darwin >= 18.
889 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
891         PR bootstrap/87030
892         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
893         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
894         an error message if i686-darwin configuration is attempted for
895         Darwin >= 18.
896         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
897         (powerpc-*-darwin*): Use biarch files where needed.
898         (powerpc64-*-darwin*): Likewise.
899         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
900         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
901         arch case.
902         * config/i386/darwin32-biarch.h: New.
903         * config/i386/darwin64.h: Rename.
904         * gcc/config/i386/darwin64-biarch.h: To this.
905         * config/i386/t-darwin: Rename.
906         * gcc/config/i386/t-darwin32-biarch: To this.
907         * config/i386/t-darwin64: Rename.
908         * gcc/config/i386/t-darwin64-biarch: To this.
909         * config/rs6000/darwin32-biarch.h: New.
910         * config/rs6000/darwin64.h: Rename.
911         * config/rs6000/darwin64-biarch.h: To this.
912         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
913         arch case.
914         * config/rs6000/t-darwin8: Rename.
915         * config/rs6000/t-darwin32-biarch: To this.
916         * config/rs6000/t-darwin64 Rename.
917         * config/rs6000/t-darwin64-biarch: To this.
919 2019-07-23  Martin Sebor  <msebor@redhat.com>
921         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
923 2019-07-23  Vladislav Ivanishin <vlad@ispras.ru>
925         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
926         (rh): New alias for it.
928 2019-07-23  Vladislav Ivanishin <vlad@ispras.ru>
930         * gdbhooks.py: Pass replace=True to
931         gdb.printing.register_pretty_printer.
933 2019-07-23  Richard Biener  <rguenther@suse.de>
935         PR debug/91231
936         * lto-streamer-in.c (input_function): Drop inline-entry markers
937         that ended up with an unknown location block.
939 2019-07-23  Richard Biener  <rguenther@suse.de>
941         PR tree-optimization/83518
942         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
943         init from a constant even when partial defs are already recorded.
945 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
947         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
948         * config/i386/znver1.md: Enable patterns for znver2 and add store
949         variants which use extra AGU unit.
951 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
953         * config/i386/i386-options.c (ix86_option_override_internal): Default
954         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
955         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
956         for ZNVER2.
958 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
960         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
961         (znver2_costs): Update 256 bit SSE costs and multiplication.
963 2019-07-23  Jan Beulich  <jbeulich@suse.com>
965         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
966         Require only AVX512F.
967         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
968         alternative expanding to vpternlog.
970 2019-07-23  Martin Liska  <mliska@suse.cz>
972         * dwarf2out.c (gen_producer_string): Canonize -flto=N
973         to -flto in dwarf producer string.
975 2019-07-23  Richard Biener  <rguenther@suse.de>
977         * tree-cfg.c (label_for_bb): Remove global var.
978         (main_block_label): Take label_for_bb as argument.
979         (cleanup_dead_labels_eh): Likewise, adjust.
980         (cleanup_dead_labels): Adjust.
982 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
984         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
985         Configurations): Add documentation for __builtin_mtfsf.
987 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
989         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
990         * config/riscv/riscv.c (riscv_constant_alignment): Use
991         riscv_align_data_type.
992         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
993         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
994         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
995         * config/riscv/riscv.opt (malign-data): New.
996         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
998 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
1000         * cgraph.c (dump_graphviz): New function.
1001         * cgraph.h (dump_graphviz): New function.
1002         * symtab.c (dump_graphviz): New function.
1004 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
1006         * config/aarch64/aarch64-simd.md
1007         (*aarch64_simd_sra<mode>): New.
1008         * config/aarch64/iterators.md
1009         (SHIFTRT): New iterator.
1010         (sra_op): New attribute.
1012 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1014         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
1015         callee-saved regs R4->R10 in an interrupt function that calls another
1016         function.
1018 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
1020         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
1021         (_mm_blendv_epi8): New.
1023 2019-07-22  Richard Biener  <rguenther@suse.de>
1025         PR tree-optimization/91221
1026         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
1027         restrict partial-def handling of empty constructors and
1028         memset to refs with known offset.
1030 2019-07-22  Jan Beulich  <jbeulich@suse.com>
1032         * config/i386/sse.md (ternlogsuffix): New.
1033         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
1034         AVX512F is in use.
1035         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
1037 2019-07-22  Martin Liska  <mliska@suse.cz>
1039         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
1040         comment.
1041         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
1043 2019-07-22  Martin Liska  <mliska@suse.cz>
1045         * lto-section-in.c (lto_get_section_data):
1046         Use new function get_compression.
1047         * lto-streamer-out.c (produce_lto_section): Use
1048         set_compression to encode compression algorithm.
1049         * lto-streamer.h (struct lto_section): Do not
1050         use bitfields in the format.
1052 2019-07-22  Martin Liska  <mliska@suse.cz>
1054         PR driver/91172
1055         * opts-common.c (decode_cmdline_option): Decode
1056         argument of -Werror and check it for a wrong language.
1057         * opts-global.c (complain_wrong_lang): Remove such case.
1059 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
1061         * config/arc/arc.c (prepare_move_operands): Always use an
1062         intermediate register when storing a TLS symbols.
1064 2019-07-22  Stafford Horne  <shorne@gmail.com>
1066         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
1067         force_reg.
1069 2019-07-22  Stafford Horne  <shorne@gmail.com>
1071         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
1072         and munordered-float validations.
1073         * config/or1k/constraints.md (d): New register constraint.
1074         * config/or1k/predicates.md (fp_comparison_operator): New.
1075         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
1076         operands.
1077         (or1k_expand_compare): Normalize unordered comparisons.
1078         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
1079         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
1080         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
1081         * config/or1k/or1k.md (type): Add fpu.
1082         (fpu): New instruction reservation.
1083         (F, f, fr, fi, FI, FOP, fop): New.
1084         (<fop><F:mode>3): New ALU instruction definition.
1085         (float<fi><F:mode>2): New conversion instruction definition.
1086         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
1087         (fpcmpcc): New code iterator.
1088         (*sf_fp_insn): New instruction definition.
1089         (cstore<F:mode>4): New expand definition.
1090         (cbranch<F:mode>4): New expand definition.
1091         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
1092         munordered-float): New options.
1093         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
1094         munordered-float.
1096 2019-07-22  Stafford Horne  <shorne@gmail.com>
1098         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
1099         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
1100         documenation to be more clear.
1101         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
1102         more clear.
1103         * config/or1k/or1k.opt (mrori): New option.
1104         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
1105         msfimm, mshftimm): Rewrite documentation to be more clear.
1106         * config/or1k/or1k.md (insn_support): Add ror and rori.
1107         (enabled): Add conditions for ror and rori.
1108         (rotrsi3): Replace condition for shftimm with ror and rori.
1110 2019-07-22  Stafford Horne  <shorne@gmail.com>
1112         PR target/90363
1113         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
1114         (extend<mode>si2): Update predicate.
1115         * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
1116         (reg_or_mem_operand): New.
1118 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
1120         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
1121         * config/rs6000/rs6000-call.c: ... to here.
1123 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1125         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
1126         memory.
1128 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1130         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
1132 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1134         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
1136 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1138         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
1139         (any_memory_operand): New predicate.
1140         (reg_or_mem_operand): Use it.
1142 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1144         PR target/91204
1145         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
1147 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
1149         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
1150         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
1152 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1154         * tree.def (OMP_LOOP): New tree code.
1155         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
1156         (enum omp_clause_bind_kind): New enum.
1157         (struct tree_omp_clause): Add subcode.bind_kind.
1158         * tree.h (OMP_LOOP_CHECK): Rename to ...
1159         (OMP_LOOPING_CHECK): ... this.
1160         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
1161         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
1162         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
1163         (OMP_CLAUSE_BIND_KIND): Define.
1164         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1165         bind clause entries.
1166         (walk_tree_1): Handle OMP_CLAUSE_BIND.
1167         * tree-pretty-print.c (dump_omp_clause): Likewise.
1168         (dump_generic_node): Handle OMP_LOOP.
1169         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
1170         (in_omp_construct): New variable.
1171         (is_gimple_stmt): Handle OMP_LOOP.
1172         (gimplify_scan_omp_clauses): For lastprivate don't set
1173         check_non_private if code == OMP_LOOP.  For reduction clause
1174         on OMP_LOOP combined with parallel or teams propagate as shared
1175         on the combined construct.  Handle OMP_CLAUSE_BIND.
1176         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
1177         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
1178         for constructs from a loop construct to gimplify_scan_omp_clauses.
1179         Don't predetermine iterator linear on OMP_SIMD from loop construct.
1180         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
1181         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
1182         to match the implicit ORT_TARGET construct around whole body.
1183         Temporarily clear in_omp_construct when processing body.
1184         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
1185         etc. temporarily set in_omp_construct when processing body.
1186         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
1187         * omp-low.c (struct omp_context): Add loop_p.
1188         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
1189         in that the original var might be private.
1190         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
1191         (check_omp_nesting_restrictions): Adjust nesting restrictions for
1192         addition of loop construct.
1193         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
1195         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
1196         lastprivate non-addressable iterator of a collapse(1) simd.
1198 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
1200         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
1201         as in rs6000.c.
1203 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
1205         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
1206         refer to default conditions.  Warn for the 'y' spec which is ignored
1207         by current linkers.
1209 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
1211         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
1212         cpu_supports_info, builtin_hash_struct, builtin_hasher,
1213         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1214         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1215         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1216         init_cumulative_args, rs6000_promote_function_mode,
1217         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1218         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1219         rs6000_function_arg_boundary, rs6000_parm_offset,
1220         rs6000_parm_start, rs6000_arg_size,
1221         rs6000_darwin64_record_arg_advance_flush,
1222         rs6000_darwin64_record_arg_advance_recurse,
1223         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1224         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1225         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1226         rs6000_mixed_function_arg, rs6000_psave_function_arg,
1227         rs6000_finish_function_arg, rs6000_function_arg,
1228         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1229         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1230         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1231         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1232         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1233         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1234         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1235         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1236         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1237         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1238         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1239         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1240         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1241         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1242         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1243         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1244         get_element_number, altivec_expand_vec_set_builtin,
1245         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1246         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1247         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1248         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1249         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1250         rs6000_expand_builtin, rs6000_vector_type,
1251         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1252         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1253         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
1254         to rs6000-call.c.
1255         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
1256         cpu_supports_info, builtin_hash_struct, builtin_hasher,
1257         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1258         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1259         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1260         init_cumulative_args, rs6000_promote_function_mode,
1261         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1262         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1263         rs6000_function_arg_boundary, rs6000_parm_offset,
1264         rs6000_parm_start, rs6000_arg_size,
1265         rs6000_darwin64_record_arg_advance_flush,
1266         rs6000_darwin64_record_arg_advance_recurse,
1267         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1268         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1269         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1270         rs6000_mixed_function_arg, rs6000_psave_function_arg,
1271         rs6000_finish_function_arg, rs6000_function_arg,
1272         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1273         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1274         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1275         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1276         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1277         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1278         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1279         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1280         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1281         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1282         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1283         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1284         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1285         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1286         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1287         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1288         get_element_number, altivec_expand_vec_set_builtin,
1289         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1290         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1291         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1292         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1293         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1294         rs6000_expand_builtin, rs6000_vector_type,
1295         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1296         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1297         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
1298         to here from rs6000.c.
1299         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
1300         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
1301         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
1302         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
1303         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
1304         rs6000_return_in_memory, rs6000_return_in_msb,
1305         rs6000_pass_by_reference, setup_incoming_varargs,
1306         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
1307         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
1308         rs6000_function_arg_padding, rs6000_function_arg,
1309         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
1310         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
1311         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
1312         rs6000_passes_long_double, rs6000_passes_vector,
1313         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
1314         altivec_builtin_mask_for_load) Add declarations.
1315         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
1316         * config/config.gcc: Add new source file rs6000-call.c to garbage
1317         collector and extra_objs.
1319 2019-07-19  Jeff Law  <law@redhat.com>
1321         PR tree-optimization/86061
1322         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
1323         strncpy.  Drop some trivial dead code.
1324         (maybe_trim_memstar_call): Handle strncpy.
1326 2019-07-19  Richard Biener  <rguenther@suse.de>
1328         PR tree-optimization/91211
1329         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
1330         memset encoding size.
1332 2019-07-19  Uroš Bizjak  <ubizjak@gmail.com>
1334         PR target/91204
1335         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
1337 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
1339         PR ipa/91194
1340         * ipa-inline.c (recursive_inlining): Fix limits check.
1342 2019-07-19  Richard Biener  <rguenther@suse.de>
1344         PR tree-optimization/91200
1345         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
1346         no PHI nodes in middle-bb.
1348 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
1350         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
1351         to +sve-bitperm.
1352         * config/aarch64/aarch64-option-extensions.def: Likewise.
1354 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
1356         PR middle-end/91190
1357         * function.c (insert_temp_slot_address): Store into the hash table
1358         a copy of address to avoid RTL sharing issues.
1360 2019-07-19  Richard Biener  <rguenther@suse.de>
1362         PR tree-optimization/91207
1363         Revert
1364         2019-07-17  Richard Biener  <rguenther@suse.de>
1366         PR tree-optimization/91178
1367         * tree-vect-stmts.c (get_group_load_store_type): For SLP
1368         loads with a gap larger than the vector size always use
1369         VMAT_STRIDED_SLP.
1370         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1371         avoid loading vectors that are only contained in the gap
1372         and thus are not needed.
1374 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
1376         * config/i386/i386.md (*addqi_2_slp): Remove.
1377         (*<code>qi_2_slp): Ditto.
1379 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
1381         * config/rs6000/predicates.md (prefixed_mem_operand): Call
1382         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
1383         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
1384         Rename function from rs6000_prefixed_address.
1385         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1386         TARGET_HAS_TOC.
1387         (TARGET_TOC): Likewise.
1388         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1389         rs6000.h.
1390         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1391         TARGET_HAS_TOC.
1392         (TARGET_TOC): Likewise.
1393         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1394         rs6000.h.
1395         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1396         TARGET_HAS_TOC.
1397         (TARGET_TOC): Likewise.
1398         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1399         check to require -mcmodel=medium for pc-relative addressing.
1400         (create_TOC_reference): Add assertion for TARGET_TOC.
1401         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
1402         TARGET_NO_TOC.
1403         (rs6000_emit_move): Likewise.
1404         (TOC_alias_set): Rename TOC alias set static variable from 'set'
1405         to 'TOC_alias_set'.
1406         (get_TOC_alias_set): Likewise.
1407         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
1408         TARGET_NO_TOC.
1409         (rs6000_can_eliminate): Likewise.
1410         (rs6000_prefixed_address_mode_p): Rename function from
1411         rs6000_prefixed_address.
1412         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
1413         TARGET_HAS_TOC and not pc-relative.
1414         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
1415         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1416         TARGET_HAS_TOC.
1417         (TARGET_TOC): Likewise.
1418         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1419         rs6000.h.
1421 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
1423         PR target/91188
1424         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
1425         for operand 0.  Do not use (match_dup) to match operand 1 with
1426         operand 0.  Add check in insn constraint that either input operand
1427         matches operand 0.  Use SWI12 mode iterator to also handle
1428         HImode operands.
1429         (*and<mode>_1_slp): Ditto.
1430         (*<code>qi_1_slp): Ditto.
1431         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
1432         Do not use (match_dup) to match operand 1 with operand 0.  Add
1433         check in insn constraint that operand 1 matches operand 0.
1434         Use SWI12 mode iterator to also handle HImode operands.
1435         (*ashl<mode>3_1_slp): Ditto.
1436         (*<shift_insn><mode>3_1_slp): Ditto.
1437         (*<rotate_insn><mode>3_1_slp): Ditto.
1439 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
1441         * config/arm/arm-builtins.c
1442         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
1443         (arm_expand_unop_builtin): Likewise.
1444         * config/arm/crypto.md
1445         (crypto_sha1h): Convert from define_insn to define_expand.
1446         (crypto_<crypto_pattern>): Likewise.
1447         (crypto_sha1h_lb): New define_insn.
1448         (crypto_<crypto_pattern>_lb): Likewise.
1450 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
1452         PR target/90317
1453         * config/arm/arm_neon.h
1454         (vsha1h_u32): Refactor.
1455         (vsha1cq_u32): Likewise.
1456         (vsha1pq_u32): Likewise.
1457         (vsha1mq_u32): Likewise.
1458         * config/arm/crypto.md:
1459         (crypto_sha1h): Remove zero extend, correct vec select.
1460         (crypto_sha1c): Correct vec select.
1461         (crypto_sha1m): Likewise.
1462         (crypto_sha1p): Likewise.
1464 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
1466         * config/arm/predicates.md (arm_borrow_operation): New predicate.
1467         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
1468         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
1469         (subdi_zesidi_zesidi): Likewise.
1470         (negdi2_compare, negdi2_insn): Likewise.
1471         (negdi_extensidi): Likewise.
1472         (negdi_zero_extendsidi): Likewise.
1473         (arm_cmpdi_insn): Likewise.
1474         (subsi3_carryin): Use arm_borrow_operation.
1475         (subsi3_carryin_const): Likewise.
1476         (subsi3_carryin_const0): Likewise.
1477         (subsi3_carryin_compare): Likewise.
1478         (subsi3_carryin_compare_const): Likewise.
1479         (subsi3_carryin_compare_const0): Likewise.
1480         (subsi3_carryin_shift): Likewise.
1481         (rsbsi3_carryin_shift): Likewise.
1482         (negsi2_carryin_compare): Likewise.
1484 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
1486         PR tree-optimization/91137
1487         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
1488         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
1489         Init, use and fini the above new field.
1490         (determine_base_object_1): New function.
1491         (determine_base_object): Reimplement using walk_tree.
1493 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
1495         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
1496         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
1497         CLEANUP_FORCE_FAST_DCE is set.
1498         * ifcvt.c (rest_of_handle_if_conversion): Pass
1499         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
1500         if-conversion succeeded.
1502 2019-07-18  Richard Biener  <rguenther@suse.de>
1504         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
1505         branches to make code less indented.
1507 2019-07-17  Alexandre Oliva <oliva@adacore.com>
1509         PR middle-end/81824
1510         * attribs.c (decls_mismatched_attributes): Simplify the logic
1511         that avoids duplicates and false positives.
1513 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
1515         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
1516         data into data section when generating PIC code.
1517         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
1518         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
1519         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
1520         return 2 for SOM and 0 for other targets.
1521          
1522 2019-07-17  Jeff Law  <law@redhat.com>
1524         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
1525         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
1526         avoid unexpected switch statement fallthru.
1528 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
1530         * config/i386/i386.md (*add<dwi>3_doubleword):
1531         Remove redundant constraints.
1532         (*add<mode>_1): Ditto.
1533         (*addhi_1): Ditto.
1534         (*addqi_1): Ditto.
1535         (*addqi_1_slp): Ditto.
1536         (*add<mode>_2): Ditto.
1537         (*addv<mode>4): Ditto.
1538         (*sub<dwi>3_doubleword): Ditto.
1539         (*sub<mode>_1): Ditto.
1540         (*subqi_1_slp): Ditto.
1541         (*sub<mode>_2): Ditto.
1542         (*subv<mode>4): Ditto.
1543         (*sub<mode>_3): Ditto.
1544         (@add<mode>3_carry): Ditto.
1545         (@sub<mode>3_carry): Ditto.
1546         (*add<mode>3_cc_overflow_1): Ditto.
1547         (*add<mode>3_zext_cc_overflow_2): Ditto.
1548         (*anddi_1): Ditto.
1549         (*and<mode>_1): Ditto.
1550         (*andqi_1): Ditto.
1551         (*andqi_1_slp): Ditto.
1552         (*anddi_2): Ditto.
1553         (*andqi_2_maybe_si): Ditto.
1554         (*and<mode>_2): Ditto.
1555         (*andqi_2_slp): Ditto.
1556         (*<code><mode>_1): Ditto.
1557         (*<code>qi_1): Ditto.
1558         (*<code>qi_1_slp): Ditto.
1559         (*<code><mode>_2): Ditto.
1560         (*<code>qi_2_slp): Ditto.
1562 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
1564         * alias.c (record_component_aliases): Do not simplify pointed-to
1565         types of ODR types.
1567 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
1569         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
1570         partial reg stall on alternative 2.
1572 2019-07-17  Richard Biener  <rguenther@suse.de>
1574         PR tree-optimization/91178
1575         * tree-ssa.c (release_defs_bitset): Iterate from higher to
1576         lower SSA names to avoid quadratic behavior in the common case.
1577         * tree-data-ref.c (split_constant_offset): Add limit argument
1578         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1579         (split_constant_offset_1): Add limit argument and use it to
1580         limit SSA def walking.  Optimize the common plus/minus case.
1582 2019-07-17  Richard Biener  <rguenther@suse.de>
1584         PR tree-optimization/91178
1585         * tree-vect-stmts.c (get_group_load_store_type): For SLP
1586         loads with a gap larger than the vector size always use
1587         VMAT_STRIDED_SLP.
1588         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1589         avoid loading vectors that are only contained in the gap
1590         and thus are not needed.
1592 2019-07-17  Richard Biener  <rguenther@suse.de>
1594         PR tree-optimization/91180
1595         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
1596         computation for memset partial defs.
1598 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
1600         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
1601         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
1602         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
1603         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
1604         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
1605         * omp-grid.c (grid_process_grid_body,
1606         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
1607         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
1608         == GF_OMP_FOR_KIND_SIMD.
1609         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
1610         check_omp_nesting_restrictions, scan_omp_1_stmt,
1611         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
1612         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
1613         omp_find_scan): Likewise.
1614         * omp-expand.c (expand_omp_for): Likewise.
1615         * omp-general.c (omp_extract_for_data): Likewise.
1617         PR tree-optimization/91157
1618         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
1619         a vector boolean with scalar mode.
1620         (expand_vector_condition): Handle first operand being a vector boolean
1621         with scalar mode.
1622         (expand_vector_operations_1): For comparisons, don't bail out early
1623         if the return type is vector boolean with scalar mode, but comparison
1624         operand type is not.
1626 2019-07-17  Richard Biener  <rguenther@suse.de>
1628         PR tree-optimization/91181
1629         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
1630         IFN_LOADs as calls.
1632 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
1634         * config/i386/i386.md (*testdi_1): Match CCZmode for
1635         constants that might have the SImode sign bit set.
1636         (*testqi_1_maybe_si): Remove "!" constraint modifier.
1637         Use correct constraints for pentium pairing.
1638         (*test<mode>_1): Ditto.
1640 2019-07-16  Jeff Law  <law@redhat.com>
1642         PR rtl-optimization/91173
1643         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
1644         SSA_NAME with a constant value, fold its value into the offset
1645         and clear the base before calling gen_addr_rtx.
1647 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
1649         PR rtl-optimization/91164
1650         * dse.c (rest_of_handle_dse): If dead edges have been purged,
1651         invalidate dominance info.
1653 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1655         * read-md.h (md_reader::record_potential_iterator_use): Add a
1656         file_location parameter.
1657         * read-rtl.c (attribute_use::loc): New field.
1658         (map_attr_string): Take a file_location parameter.  Report cases
1659         in which attributes map to multiple distinct values.
1660         (apply_attribute_uses): Update call accordingly.
1661         (md_reader::handle_overloaded_name): Likewise.
1662         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
1663         nonnull strings.
1664         (record_attribute_use): Take a file_location parameter.
1665         Initialize attribute_use::loc.
1666         (md_reader::record_potential_iterator_use): Take a file_location
1667         parameter.  Update call to record_attribute_use.
1668         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
1669         (rtx_reader::read_rtx_code): Likewise.
1670         (rtx_reader::read_rtx_operand): Likewise.  Record a location
1671         for implicitly-expanded empty strings.
1673 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1675         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
1676         Use file_location instead of separate fields.
1677         (md_reader::set_md_ptr_loc): Take a file_location instead of a
1678         separate filename and line number.
1679         * read-md.c (ptr_loc): As above.
1680         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
1681         (md_reader::fprint_md_ptr_loc): Likewise.
1682         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
1683         instead of a separate filename and line number.
1684         (md_reader::read_string): Update call accordingly.
1686 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1688         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1689         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1690         leaving the choice between SFDF and P implicit.
1691         (*mov<mode>_update2): Likewise.
1692         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1693         rather than leaving the choice betweem IBM128 and GPR implicit.
1694         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1695         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1696         QHSI implicit.
1697         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1698         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1699         * config/rs6000/vsx.md
1700         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1701         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1702         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1703         and VSX_EXTRACT_I implicit.
1705 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1707         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1708         Explicitly use <MOVEP1:MODE> for the mode attribute.
1710 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
1712         PR bootstrap/91176
1713         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1715 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
1717         PR target/91050
1718         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1719         .machine directive.
1721 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
1723         * config/i386/i386.md (@test<mode>_ccno_1):
1724         Rename from test<mode>_ccno_1.
1725         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
1726         (*testqi_1_maybe_si): Remove modrm attribute.
1727         (*test<mode>_1): Ditto.
1728         * config/i386/i386-expand.c (ix86_split_idivmod): Use
1729         gen_test_ccno_1 and gen_extend_insn.
1731 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
1733         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1734         to 0.
1736 2019-07-15  Richard Biener  <rguenther@suse.de>
1738         PR middle-end/91162
1739         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1740         node make sure to replace all uses with something valid.
1742 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
1744         PR tree-optimization/88497
1745         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1746         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1747         function undistribute_bitref_for_vector.
1748         (undistribute_bitref_for_vector): New function.
1749         (cleanup_vinfo_map): Likewise.
1750         (sort_by_mach_mode): Likewise.
1752 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
1754         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1755         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1756         and testdi_ccno_1 using SWI48 mode attribute.
1757         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1758         x86_64_szext_general_operand.
1759         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1760         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1761         instead of genera_operand mode attribute.
1763 2019-07-14  Vladislav Ivanishin <vlad@ispras.ru>
1765         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1766         fopen and fclose to their respective types.
1767         (DotFn.invoke): Ditto.
1769 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
1771         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1772         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1773         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1774         (array_index_predicate): Remove.
1775         (analyze_function_body): Account cost for variable ofsetted array
1776         indexing.
1777         (estimate_node_size_and_time): Do not compute array index hint.
1778         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1779         (inline_read_section): Do not read array index hint.
1780         (ipa_fn_summary_write): Do not write array index hint.
1781         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1782         * ipa-cp.c (hint_time_bonus): Remove.
1783         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1784         (ipa_fnsummary): Remove array_index.
1785         * ipa-inline.c (want_inline_small_function_p): Do not use
1786         array_index.
1787         (edge_badness): Likewise.
1788         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1790 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
1792         PR target/91148
1793         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1794         superfluous "builtin function" phrasing.
1796 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
1798         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1799         Break out from ...
1800         (aliasing_component_refs_walk): Break out from ...
1801         (aliasing_component_refs_p): ... here.
1803 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
1805         PR target/91148
1806         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1807         "builtin function" phrasing.
1809 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1811         PR target/90723
1812         * recog.h (temporary_volatile_ok): New class.
1813         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1814         volatile_ok temporarily to true using temporary_volatile_ok.
1815         * expr.c (emit_block_move_via_cpymem): Likewise.
1816         * optabs.c (maybe_legitimize_operand): Likewise.
1818 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
1820         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1821         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1822         uses inside of order(concurrent) constructs.
1823         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1824         OMP_CLAUSE_ORDER is seen.
1825         * omp-low.c (struct omp_context): Add order_concurrent member.
1826         (scan_sharing_clauses): Set ctx->order_concurrent if
1827         OMP_CLAUSE_ORDER is seen.
1828         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1829         of simd order(concurrent).  Diagnose constructs not allowed inside of
1830         for order(concurrent).
1831         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1832         complaining about static double setjmp (double); or class static
1833         methods or non-global namespace setjmps.
1834         (omp_runtime_api_call): New function.
1835         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1836         order(concurrent) loops.
1838 2019-07-12  Martin Sebor  <msebor@redhat.com>
1840         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1841         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1842         * tree-vrp.c (vrp_prop::check_mem_ref): Use
1843         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1845 2019-07-12  Jan Hubicka  <jh@suse.cz>
1847         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1848         (indirect_refs_may_alias_p): ... here.
1849         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1850         mem refs in the access paths.
1852 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
1854         PR tree-optimization/89430
1855         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1856         store elimination for local variable without address escape.
1858 2019-07-12  Jeff Law  <law@redhat.com>
1860         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1861         for the ".far" section.
1863 2019-07-12  Richard Biener  <rguenther@suse.de>
1865         PR tree-optimization/91145
1866         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1867         chain check.
1869 2019-07-12  Alexandre Oliva <oliva@adacore.com>
1871         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1872         rather than this_state as the lowering context for the ELSE
1873         seq in a GIMPLE_EH_ELSE.
1875 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
1877         * vector-builder.h (vector_builder::elt): Allow already-supplied
1878         elements to be read back before building is complete.
1880 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1882         PR rtl-optimization/91136
1883         * df-core.c (ACCESSING REFS): Fix typos in comment.
1884         * resource.c (mark_target_live_reg): Add artificial defs that occur at
1885         the beginning of the block to the initial set of live registers.
1887 2019-07-12  Richard Biener  <rguenther@suse.de>
1889         * fold-const.h (get_array_ctor_element_at_index): Adjust.
1890         * fold-const.c (get_array_ctor_element_at_index): Add
1891         ctor_idx output parameter informing the caller where in
1892         the constructor the element was (not) found.  Add early exit
1893         for when the ctor is sorted.
1894         * gimple-fold.c (fold_array_ctor_reference): Support constant
1895         folding across multiple array elements.
1897 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1899         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
1900         doesn't have location, set the current location to the function's end.
1902 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
1904         * config/aarch64/aarch64.md (*compare_condjump<mode>)
1905         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
1906         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
1907         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
1908         * config/aarch64/aarch64-simd.md
1909         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1910         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
1911         * config/aarch64/aarch64-sve.md
1912         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
1913         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
1915 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
1917         * doc/md.texi: Document that @ patterns can have different
1918         numbers of operands.
1919         * genemit.c (handle_overloaded_gen): Handle this case.
1920         * genopinit.c (handle_overloaded_gen): Likewise.
1921         * gensupport.c (replace_operands_with_dups): Iterate over
1922         the new rtx's format rather than the old one's.
1924 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
1926         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
1927         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1928         order clause entries.
1929         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
1930         * tree-pretty-print.c (dump_omp_clause): Likewise.
1931         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1932         Likewise.
1933         * omp-low.c (scan_sharing_clauses): Likewise.
1934         * tree-nested.c (convert_nonlocal_omp_clauses,
1935         convert_local_omp_clauses): Likewise.
1937 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
1939         * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
1940         fallthrough target of current basic block isn't the placed
1941         right next.
1943 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
1945         PR target/90980
1946         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
1947         (_mm512_storeu_epi64): Likewise.
1948         (_mm512_loadu_epi32): Likewise.
1949         (_mm512_storeu_epi32): Likewise.
1950         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
1951         (_mm_storeu_epi64): Likewise.
1952         (_mm256_storeu_epi32): Likewise.
1953         (_mm_storeu_epi32): Likewise.
1955 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
1957         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
1959 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
1961         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
1962         Handle Modula-2.
1964 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
1966         PR target/91124
1967         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
1968         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
1969         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
1970         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
1971         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
1972         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
1973         define_insns.
1974         (ufix_truncv2dfv2si2<mask_name>): Change into ...
1975         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
1976         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
1977         define_insns.
1978         (sse2_cvttpd2dq<mask_name>): Change into ...
1979         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
1980         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
1981         (*sse2_cvtpd2dq<mask_name>): Change into ...
1982         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
1983         Add "C" constraint to const0_operand.
1984         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
1985         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
1986         changes.
1988         PR target/91124
1989         * config/i386/i386-builtin-types.def
1990         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
1991         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
1992         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1993         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1994         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
1995         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
1996         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
1997         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
1998         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
1999         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
2000         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
2001         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
2002         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
2003         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
2004         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
2005         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
2006         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
2007         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
2008         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
2009         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
2010         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
2011         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
2012         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
2013         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
2014         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
2015         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
2016         __builtin_ia32_vpdpbusd_v4si_maskz,
2017         __builtin_ia32_vpdpbusds_v16si_mask,
2018         __builtin_ia32_vpdpbusds_v16si_maskz,
2019         __builtin_ia32_vpdpbusds_v8si_mask,
2020         __builtin_ia32_vpdpbusds_v8si_maskz,
2021         __builtin_ia32_vpdpbusds_v4si_mask,
2022         __builtin_ia32_vpdpbusds_v4si_maskz,
2023         __builtin_ia32_vpdpwssd_v16si_mask,
2024         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
2025         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
2026         __builtin_ia32_vpdpwssd_v4si_maskz,
2027         __builtin_ia32_vpdpwssds_v16si_mask,
2028         __builtin_ia32_vpdpwssds_v16si_maskz,
2029         __builtin_ia32_vpdpwssds_v8si_mask,
2030         __builtin_ia32_vpdpwssds_v8si_maskz,
2031         __builtin_ia32_vpdpwssds_v4si_mask,
2032         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
2033         suffixed types rather than *_INT.
2034         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
2035         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
2036         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
2037         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
2038         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
2039         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
2041 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
2043         * tree-vrp.c (intersect_ranges): If we know the intersection is
2044         empty, there is no need to conservatively add anything else to
2045         the set.
2047 2019-07-11  Richard Biener  <rguenther@suse.de>
2049         PR middle-end/91131
2050         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
2051         when the object is volatile and we have not cleared it even though
2052         there are no nonzero elements.
2054 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
2056         * config/rs6000/predicates.md (cint34_operand): Update
2057         SIGNED_34BIT_OFFSET_P call.
2058         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
2059         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
2060         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
2061         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
2062         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
2063         argument.
2064         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
2065         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
2066         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
2067         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
2068         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
2070 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
2072         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
2073         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
2074         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
2075         (DEF_MIN_OSX_VERSION): New.
2077 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
2079         * fold-const.c (fold_relational_const): Fix folding of
2080         vector-to-scalar NE_EXPRs.
2081         (test_vector_folding): Add more tests.
2083 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
2085         PR target/91060
2086         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
2087         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
2088         (vec_setv2di_internal): Reexpress as...
2089         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
2090         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
2091         rather than gen_neon_vset_lane<mode>.
2093 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
2095         PR target/91102
2096         * lra-constraints.c (process_alt_operands): Don't match user
2097         defined regs only if they are early clobbers.
2099 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
2101         * wide-int.h (wi::lshift): Reject negative values for the fast path.
2103 2019-07-10  Richard Biener  <rguenther@suse.de>
2105         PR tree-optimization/91126
2106         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
2107         native encoding offset for BYTES_BIG_ENDIAN.
2108         (vn_reference_lookup_3): Likewise.
2110 2019-07-10  Richard Biener  <rguenther@suse.de>
2112         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
2113         LHS whenever possible.
2115 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
2117         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
2118         from ...; work also on duplicated types.
2119         (nonoverlapping_component_refs_since_match): ... here
2120         (ncr_type_uid): Break out from ...
2121         (ncr_compar): ... here; look for TYPE_UID of canonical type if
2122         available.
2123         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
2124         the types and nonoverlapping_component_refs_p_1 to disambiguate.
2126 2019-07-09  Martin Sebor  <msebor@redhat.com>
2128         PR tree-optimization/90989
2129         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
2130         optimization to just single character stores.
2132 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2134         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
2135         Swap operands only once.
2137 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
2139         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
2140         for both call instructions.
2142 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
2144         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
2145         rather than GET_MODE_BITSIZE to better handle partial integer modes.
2147 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
2149         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
2150         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
2151         function from rs6000-logue.c back to rs6000.c.
2152         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
2154 2019-07-09  Martin Sebor  <msebor@redhat.com>
2156         PR c++/61339
2157         * auto-profile.c: Change class-key of PODs to struct and others
2158         to class.
2159         * basic-block.h: Same.
2160         * bitmap.c (bitmap_alloc): Same.
2161         * bitmap.h: Same.
2162         * builtins.c (expand_builtin_prefetch): Same.
2163         (expand_builtin_interclass_mathfn): Same.
2164         (expand_builtin_strlen): Same.
2165         (expand_builtin_mempcpy_args): Same.
2166         (expand_cmpstr): Same.
2167         (expand_builtin___clear_cache): Same.
2168         (expand_ifn_atomic_bit_test_and): Same.
2169         (expand_builtin_thread_pointer): Same.
2170         (expand_builtin_set_thread_pointer): Same.
2171         * caller-save.c (setup_save_areas): Same.
2172         (replace_reg_with_saved_mem): Same.
2173         (insert_restore): Same.
2174         (insert_save): Same.
2175         (add_used_regs): Same.
2176         * cfg.c (get_bb_copy): Same.
2177         (set_loop_copy): Same.
2178         * cfg.h: Same.
2179         * cfganal.h: Same.
2180         * cfgexpand.c (alloc_stack_frame_space): Same.
2181         (add_stack_var): Same.
2182         (add_stack_var_conflict): Same.
2183         (add_scope_conflicts_1): Same.
2184         (update_alias_info_with_stack_vars): Same.
2185         (expand_used_vars): Same.
2186         * cfghooks.c (redirect_edge_and_branch_force): Same.
2187         (delete_basic_block): Same.
2188         (split_edge): Same.
2189         (make_forwarder_block): Same.
2190         (force_nonfallthru): Same.
2191         (duplicate_block): Same.
2192         (lv_flush_pending_stmts): Same.
2193         * cfghooks.h: Same.
2194         * cfgloop.c (flow_loops_cfg_dump): Same.
2195         (flow_loop_nested_p): Same.
2196         (superloop_at_depth): Same.
2197         (get_loop_latch_edges): Same.
2198         (flow_loop_dump): Same.
2199         (flow_loops_dump): Same.
2200         (flow_loops_free): Same.
2201         (flow_loop_nodes_find): Same.
2202         (establish_preds): Same.
2203         (flow_loop_tree_node_add): Same.
2204         (flow_loop_tree_node_remove): Same.
2205         (flow_loops_find): Same.
2206         (find_subloop_latch_edge_by_profile): Same.
2207         (find_subloop_latch_edge_by_ivs): Same.
2208         (mfb_redirect_edges_in_set): Same.
2209         (form_subloop): Same.
2210         (merge_latch_edges): Same.
2211         (disambiguate_multiple_latches): Same.
2212         (disambiguate_loops_with_multiple_latches): Same.
2213         (flow_bb_inside_loop_p): Same.
2214         (glb_enum_p): Same.
2215         (get_loop_body_with_size): Same.
2216         (get_loop_body): Same.
2217         (fill_sons_in_loop): Same.
2218         (get_loop_body_in_dom_order): Same.
2219         (get_loop_body_in_custom_order): Same.
2220         (release_recorded_exits): Same.
2221         (get_loop_exit_edges): Same.
2222         (num_loop_branches): Same.
2223         (remove_bb_from_loops): Same.
2224         (find_common_loop): Same.
2225         (delete_loop): Same.
2226         (cancel_loop): Same.
2227         (verify_loop_structure): Same.
2228         (loop_preheader_edge): Same.
2229         (loop_exit_edge_p): Same.
2230         (single_exit): Same.
2231         (loop_exits_to_bb_p): Same.
2232         (loop_exits_from_bb_p): Same.
2233         (get_loop_location): Same.
2234         (record_niter_bound): Same.
2235         (get_estimated_loop_iterations_int): Same.
2236         (max_stmt_executions_int): Same.
2237         (likely_max_stmt_executions_int): Same.
2238         (get_estimated_loop_iterations): Same.
2239         (get_max_loop_iterations): Same.
2240         (get_max_loop_iterations_int): Same.
2241         (get_likely_max_loop_iterations): Same.
2242         * cfgloop.h (simple_loop_desc): Same.
2243         (get_loop): Same.
2244         (loop_depth): Same.
2245         (loop_outer): Same.
2246         (loop_iterator::next): Same.
2247         (loop_outermost): Same.
2248         * cfgloopanal.c (mark_irreducible_loops): Same.
2249         (num_loop_insns): Same.
2250         (average_num_loop_insns): Same.
2251         (expected_loop_iterations_unbounded): Same.
2252         (expected_loop_iterations): Same.
2253         (mark_loop_exit_edges): Same.
2254         (single_likely_exit): Same.
2255         * cfgloopmanip.c (fix_bb_placement): Same.
2256         (fix_bb_placements): Same.
2257         (remove_path): Same.
2258         (place_new_loop): Same.
2259         (add_loop): Same.
2260         (scale_loop_frequencies): Same.
2261         (scale_loop_profile): Same.
2262         (create_empty_if_region_on_edge): Same.
2263         (create_empty_loop_on_edge): Same.
2264         (loopify): Same.
2265         (unloop): Same.
2266         (fix_loop_placements): Same.
2267         (copy_loop_info): Same.
2268         (duplicate_loop): Same.
2269         (duplicate_subloops): Same.
2270         (loop_redirect_edge): Same.
2271         (can_duplicate_loop_p): Same.
2272         (duplicate_loop_to_header_edge): Same.
2273         (mfb_keep_just): Same.
2274         (has_preds_from_loop): Same.
2275         (create_preheader): Same.
2276         (create_preheaders): Same.
2277         (lv_adjust_loop_entry_edge): Same.
2278         (loop_version): Same.
2279         * cfgloopmanip.h: Same.
2280         * cgraph.h: Same.
2281         * cgraphbuild.c: Same.
2282         * combine.c (make_extraction): Same.
2283         * config/i386/i386-features.c: Same.
2284         * config/i386/i386-features.h: Same.
2285         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
2286         (ix86_emit_outlined_ms2sysv_restore): Same.
2287         (ix86_noce_conversion_profitable_p): Same.
2288         (ix86_init_cost): Same.
2289         (ix86_simd_clone_usable): Same.
2290         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
2291         Wstruct-not-pod.
2292         * coretypes.h: Same.
2293         * data-streamer-in.c (string_for_index): Change class-key of PODs
2294         to struct and others to class.
2295         (streamer_read_indexed_string): Same.
2296         (streamer_read_string): Same.
2297         (bp_unpack_indexed_string): Same.
2298         (bp_unpack_string): Same.
2299         (streamer_read_uhwi): Same.
2300         (streamer_read_hwi): Same.
2301         (streamer_read_gcov_count): Same.
2302         (streamer_read_wide_int): Same.
2303         * data-streamer.h (streamer_write_bitpack): Same.
2304         (bp_unpack_value): Same.
2305         (streamer_write_char_stream): Same.
2306         (streamer_write_hwi_in_range): Same.
2307         (streamer_write_record_start): Same.
2308         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
2309         (add_cross_iteration_register_deps): Same.
2310         (build_intra_loop_deps): Same.
2311         * df-core.c (df_analyze): Same.
2312         (loop_post_order_compute): Same.
2313         (loop_inverted_post_order_compute): Same.
2314         * df-problems.c (df_rd_alloc): Same.
2315         (df_rd_simulate_one_insn): Same.
2316         (df_rd_local_compute): Same.
2317         (df_rd_init_solution): Same.
2318         (df_rd_confluence_n): Same.
2319         (df_rd_transfer_function): Same.
2320         (df_rd_free): Same.
2321         (df_rd_dump_defs_set): Same.
2322         (df_rd_top_dump): Same.
2323         (df_lr_alloc): Same.
2324         (df_lr_reset): Same.
2325         (df_lr_local_compute): Same.
2326         (df_lr_init): Same.
2327         (df_lr_confluence_n): Same.
2328         (df_lr_free): Same.
2329         (df_lr_top_dump): Same.
2330         (df_lr_verify_transfer_functions): Same.
2331         (df_live_alloc): Same.
2332         (df_live_reset): Same.
2333         (df_live_init): Same.
2334         (df_live_confluence_n): Same.
2335         (df_live_finalize): Same.
2336         (df_live_free): Same.
2337         (df_live_top_dump): Same.
2338         (df_live_verify_transfer_functions): Same.
2339         (df_mir_alloc): Same.
2340         (df_mir_reset): Same.
2341         (df_mir_init): Same.
2342         (df_mir_confluence_n): Same.
2343         (df_mir_free): Same.
2344         (df_mir_top_dump): Same.
2345         (df_word_lr_alloc): Same.
2346         (df_word_lr_reset): Same.
2347         (df_word_lr_init): Same.
2348         (df_word_lr_confluence_n): Same.
2349         (df_word_lr_free): Same.
2350         (df_word_lr_top_dump): Same.
2351         (df_md_alloc): Same.
2352         (df_md_simulate_one_insn): Same.
2353         (df_md_reset): Same.
2354         (df_md_init): Same.
2355         (df_md_free): Same.
2356         (df_md_top_dump): Same.
2357         * df-scan.c (df_insn_delete): Same.
2358         (df_insn_rescan): Same.
2359         (df_notes_rescan): Same.
2360         (df_sort_and_compress_mws): Same.
2361         (df_install_mws): Same.
2362         (df_refs_add_to_chains): Same.
2363         (df_ref_create_structure): Same.
2364         (df_ref_record): Same.
2365         (df_def_record_1): Same.
2366         (df_find_hard_reg_defs): Same.
2367         (df_uses_record): Same.
2368         (df_get_conditional_uses): Same.
2369         (df_get_call_refs): Same.
2370         (df_recompute_luids): Same.
2371         (df_get_entry_block_def_set): Same.
2372         (df_entry_block_defs_collect): Same.
2373         (df_get_exit_block_use_set): Same.
2374         (df_exit_block_uses_collect): Same.
2375         (df_mws_verify): Same.
2376         (df_bb_verify): Same.
2377         * df.h (df_scan_get_bb_info): Same.
2378         * doc/tm.texi: Same.
2379         * dse.c (record_store): Same.
2380         * dumpfile.h: Same.
2381         * emit-rtl.c (const_fixed_hasher::equal): Same.
2382         (set_mem_attributes_minus_bitpos): Same.
2383         (change_address): Same.
2384         (adjust_address_1): Same.
2385         (offset_address): Same.
2386         * emit-rtl.h: Same.
2387         * except.c (dw2_build_landing_pads): Same.
2388         (sjlj_emit_dispatch_table): Same.
2389         * explow.c (allocate_dynamic_stack_space): Same.
2390         (emit_stack_probe): Same.
2391         (probe_stack_range): Same.
2392         * expmed.c (store_bit_field_using_insv): Same.
2393         (store_bit_field_1): Same.
2394         (store_integral_bit_field): Same.
2395         (extract_bit_field_using_extv): Same.
2396         (extract_bit_field_1): Same.
2397         (emit_cstore): Same.
2398         * expr.c (emit_block_move_via_cpymem): Same.
2399         (expand_cmpstrn_or_cmpmem): Same.
2400         (set_storage_via_setmem): Same.
2401         (emit_single_push_insn_1): Same.
2402         (expand_assignment): Same.
2403         (store_constructor): Same.
2404         (expand_expr_real_2): Same.
2405         (expand_expr_real_1): Same.
2406         (try_casesi): Same.
2407         * flags.h: Same.
2408         * function.c (try_fit_stack_local): Same.
2409         (assign_stack_local_1): Same.
2410         (assign_stack_local): Same.
2411         (cut_slot_from_list): Same.
2412         (insert_slot_to_list): Same.
2413         (max_slot_level): Same.
2414         (move_slot_to_level): Same.
2415         (temp_address_hasher::equal): Same.
2416         (remove_unused_temp_slot_addresses): Same.
2417         (assign_temp): Same.
2418         (combine_temp_slots): Same.
2419         (update_temp_slot_address): Same.
2420         (preserve_temp_slots): Same.
2421         * function.h: Same.
2422         * fwprop.c: Same.
2423         * gcc-rich-location.h: Same.
2424         * gcov.c: Same.
2425         * genattrtab.c (check_attr_test): Same.
2426         (check_attr_value): Same.
2427         (convert_set_attr_alternative): Same.
2428         (convert_set_attr): Same.
2429         (check_defs): Same.
2430         (copy_boolean): Same.
2431         (get_attr_value): Same.
2432         (expand_delays): Same.
2433         (make_length_attrs): Same.
2434         (min_fn): Same.
2435         (make_alternative_compare): Same.
2436         (simplify_test_exp): Same.
2437         (tests_attr_p): Same.
2438         (get_attr_order): Same.
2439         (clear_struct_flag): Same.
2440         (gen_attr): Same.
2441         (compares_alternatives_p): Same.
2442         (gen_insn): Same.
2443         (gen_delay): Same.
2444         (find_attrs_to_cache): Same.
2445         (write_test_expr): Same.
2446         (walk_attr_value): Same.
2447         (write_attr_get): Same.
2448         (eliminate_known_true): Same.
2449         (write_insn_cases): Same.
2450         (write_attr_case): Same.
2451         (write_attr_valueq): Same.
2452         (write_attr_value): Same.
2453         (write_dummy_eligible_delay): Same.
2454         (next_comma_elt): Same.
2455         (find_attr): Same.
2456         (make_internal_attr): Same.
2457         (copy_rtx_unchanging): Same.
2458         (gen_insn_reserv): Same.
2459         (check_tune_attr): Same.
2460         (make_automaton_attrs): Same.
2461         (handle_arg): Same.
2462         * genextract.c (gen_insn): Same.
2463         (VEC_char_to_string): Same.
2464         * genmatch.c (print_operand): Same.
2465         (lower): Same.
2466         (parser::parse_operation): Same.
2467         (parser::parse_capture): Same.
2468         (parser::parse_c_expr): Same.
2469         (parser::parse_simplify): Same.
2470         (main): Same.
2471         * genoutput.c (output_operand_data): Same.
2472         (output_get_insn_name): Same.
2473         (compare_operands): Same.
2474         (place_operands): Same.
2475         (process_template): Same.
2476         (validate_insn_alternatives): Same.
2477         (validate_insn_operands): Same.
2478         (gen_expand): Same.
2479         (note_constraint): Same.
2480         * genpreds.c (write_one_predicate_function): Same.
2481         (add_constraint): Same.
2482         (process_define_register_constraint): Same.
2483         (write_lookup_constraint_1): Same.
2484         (write_lookup_constraint_array): Same.
2485         (write_insn_constraint_len): Same.
2486         (write_reg_class_for_constraint_1): Same.
2487         (write_constraint_satisfied_p_array): Same.
2488         * genrecog.c (optimize_subroutine_group): Same.
2489         * gensupport.c (process_define_predicate): Same.
2490         (queue_pattern): Same.
2491         (remove_from_queue): Same.
2492         (process_rtx): Same.
2493         (is_predicable): Same.
2494         (change_subst_attribute): Same.
2495         (subst_pattern_match): Same.
2496         (alter_constraints): Same.
2497         (alter_attrs_for_insn): Same.
2498         (shift_output_template): Same.
2499         (alter_output_for_subst_insn): Same.
2500         (process_one_cond_exec): Same.
2501         (subst_dup): Same.
2502         (process_define_cond_exec): Same.
2503         (mnemonic_htab_callback): Same.
2504         (gen_mnemonic_attr): Same.
2505         (read_md_rtx): Same.
2506         * ggc-page.c: Same.
2507         * gimple-loop-interchange.cc (dump_reduction): Same.
2508         (dump_induction): Same.
2509         (loop_cand::~loop_cand): Same.
2510         (free_data_refs_with_aux): Same.
2511         (tree_loop_interchange::interchange_loops): Same.
2512         (tree_loop_interchange::map_inductions_to_loop): Same.
2513         (tree_loop_interchange::move_code_to_inner_loop): Same.
2514         (compute_access_stride): Same.
2515         (compute_access_strides): Same.
2516         (proper_loop_form_for_interchange): Same.
2517         (tree_loop_interchange_compute_ddrs): Same.
2518         (prune_datarefs_not_in_loop): Same.
2519         (prepare_data_references): Same.
2520         (pass_linterchange::execute): Same.
2521         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
2522         (unroll_jam_possible_p): Same.
2523         (fuse_loops): Same.
2524         (adjust_unroll_factor): Same.
2525         (tree_loop_unroll_and_jam): Same.
2526         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
2527         (loop_versioning::expensive_stmt_p): Same.
2528         (loop_versioning::version_for_unity): Same.
2529         (loop_versioning::dump_inner_likelihood): Same.
2530         (loop_versioning::find_per_loop_multiplication): Same.
2531         (loop_versioning::analyze_term_using_scevs): Same.
2532         (loop_versioning::record_address_fragment): Same.
2533         (loop_versioning::analyze_expr): Same.
2534         (loop_versioning::analyze_blocks): Same.
2535         (loop_versioning::prune_conditions): Same.
2536         (loop_versioning::merge_loop_info): Same.
2537         (loop_versioning::add_loop_to_queue): Same.
2538         (loop_versioning::decide_whether_loop_is_versionable): Same.
2539         (loop_versioning::make_versioning_decisions): Same.
2540         (loop_versioning::implement_versioning_decisions): Same.
2541         * gimple-ssa-evrp-analyze.c
2542         (evrp_range_analyzer::record_ranges_from_phis): Same.
2543         * gimple-ssa-store-merging.c (split_store::split_store): Same.
2544         (count_multiple_uses): Same.
2545         (split_group): Same.
2546         (imm_store_chain_info::output_merged_store): Same.
2547         (pass_store_merging::process_store): Same.
2548         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
2549         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
2550         (is_max): Same.
2551         (alloca_call_type): Same.
2552         (pass_walloca::execute): Same.
2553         * gimple-streamer-in.c (input_phi): Same.
2554         (input_gimple_stmt): Same.
2555         * gimple-streamer.h: Same.
2556         * godump.c (go_force_record_alignment): Same.
2557         (go_format_type): Same.
2558         (go_output_type): Same.
2559         (go_output_fndecl): Same.
2560         (go_output_typedef): Same.
2561         (keyword_hash_init): Same.
2562         (find_dummy_types): Same.
2563         * graph.c (draw_cfg_nodes_no_loops): Same.
2564         (draw_cfg_nodes_for_loop): Same.
2565         * hard-reg-set.h (hard_reg_set_iter_next): Same.
2566         * hsa-brig.c: Same.
2567         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
2568         * hsa-dump.c (dump_hsa_cfun): Same.
2569         * hsa-gen.c (gen_function_def_parameters): Same.
2570         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
2571         * input.c (dump_line_table_statistics): Same.
2572         (test_lexer): Same.
2573         * input.h: Same.
2574         * internal-fn.c (get_multi_vector_move): Same.
2575         (expand_load_lanes_optab_fn): Same.
2576         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
2577         (expand_GOMP_SIMT_EXIT): Same.
2578         (expand_GOMP_SIMT_LAST_LANE): Same.
2579         (expand_GOMP_SIMT_ORDERED_PRED): Same.
2580         (expand_GOMP_SIMT_VOTE_ANY): Same.
2581         (expand_GOMP_SIMT_XCHG_BFLY): Same.
2582         (expand_GOMP_SIMT_XCHG_IDX): Same.
2583         (expand_addsub_overflow): Same.
2584         (expand_neg_overflow): Same.
2585         (expand_mul_overflow): Same.
2586         (expand_call_mem_ref): Same.
2587         (expand_mask_load_optab_fn): Same.
2588         (expand_scatter_store_optab_fn): Same.
2589         (expand_gather_load_optab_fn): Same.
2590         * ipa-cp.c (ipa_get_parm_lattices): Same.
2591         (print_all_lattices): Same.
2592         (ignore_edge_p): Same.
2593         (build_toporder_info): Same.
2594         (free_toporder_info): Same.
2595         (push_node_to_stack): Same.
2596         (ipcp_lattice<valtype>::set_contains_variable): Same.
2597         (set_agg_lats_to_bottom): Same.
2598         (ipcp_bits_lattice::meet_with): Same.
2599         (set_single_call_flag): Same.
2600         (initialize_node_lattices): Same.
2601         (ipa_get_jf_ancestor_result): Same.
2602         (ipcp_verify_propagated_values): Same.
2603         (propagate_scalar_across_jump_function): Same.
2604         (propagate_context_across_jump_function): Same.
2605         (propagate_bits_across_jump_function): Same.
2606         (ipa_vr_operation_and_type_effects): Same.
2607         (propagate_vr_across_jump_function): Same.
2608         (set_check_aggs_by_ref): Same.
2609         (set_chain_of_aglats_contains_variable): Same.
2610         (merge_aggregate_lattices): Same.
2611         (agg_pass_through_permissible_p): Same.
2612         (propagate_aggs_across_jump_function): Same.
2613         (call_passes_through_thunk_p): Same.
2614         (propagate_constants_across_call): Same.
2615         (devirtualization_time_bonus): Same.
2616         (good_cloning_opportunity_p): Same.
2617         (context_independent_aggregate_values): Same.
2618         (gather_context_independent_values): Same.
2619         (perform_estimation_of_a_value): Same.
2620         (estimate_local_effects): Same.
2621         (value_topo_info<valtype>::add_val): Same.
2622         (add_all_node_vals_to_toposort): Same.
2623         (value_topo_info<valtype>::propagate_effects): Same.
2624         (ipcp_propagate_stage): Same.
2625         (ipcp_discover_new_direct_edges): Same.
2626         (same_node_or_its_all_contexts_clone_p): Same.
2627         (cgraph_edge_brings_value_p): Same.
2628         (gather_edges_for_value): Same.
2629         (create_specialized_node): Same.
2630         (find_more_scalar_values_for_callers_subset): Same.
2631         (find_more_contexts_for_caller_subset): Same.
2632         (copy_plats_to_inter): Same.
2633         (intersect_aggregates_with_edge): Same.
2634         (find_aggregate_values_for_callers_subset): Same.
2635         (cgraph_edge_brings_all_agg_vals_for_node): Same.
2636         (decide_about_value): Same.
2637         (decide_whether_version_node): Same.
2638         (spread_undeadness): Same.
2639         (identify_dead_nodes): Same.
2640         (ipcp_store_vr_results): Same.
2641         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
2642         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
2643         (redirect_to_unreachable): Same.
2644         (edge_set_predicate): Same.
2645         (evaluate_conditions_for_known_args): Same.
2646         (evaluate_properties_for_edge): Same.
2647         (ipa_fn_summary_t::duplicate): Same.
2648         (ipa_call_summary_t::duplicate): Same.
2649         (dump_ipa_call_summary): Same.
2650         (ipa_dump_fn_summary): Same.
2651         (eliminated_by_inlining_prob): Same.
2652         (set_cond_stmt_execution_predicate): Same.
2653         (set_switch_stmt_execution_predicate): Same.
2654         (compute_bb_predicates): Same.
2655         (will_be_nonconstant_expr_predicate): Same.
2656         (phi_result_unknown_predicate): Same.
2657         (analyze_function_body): Same.
2658         (compute_fn_summary): Same.
2659         (estimate_edge_devirt_benefit): Same.
2660         (estimate_edge_size_and_time): Same.
2661         (estimate_calls_size_and_time): Same.
2662         (estimate_node_size_and_time): Same.
2663         (remap_edge_change_prob): Same.
2664         (remap_edge_summaries): Same.
2665         (ipa_merge_fn_summary_after_inlining): Same.
2666         (ipa_fn_summary_generate): Same.
2667         (inline_read_section): Same.
2668         (ipa_fn_summary_read): Same.
2669         (ipa_fn_summary_write): Same.
2670         * ipa-fnsummary.h: Same.
2671         * ipa-hsa.c (ipa_hsa_read_section): Same.
2672         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
2673         * ipa-icf.c (sem_function::param_used_p): Same.
2674         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
2675         * ipa-inline.c (edge_badness): Same.
2676         (inline_small_functions): Same.
2677         * ipa-polymorphic-call.c
2678         (ipa_polymorphic_call_context::stream_out): Same.
2679         * ipa-predicate.c (predicate::remap_after_duplication): Same.
2680         (predicate::remap_after_inlining): Same.
2681         (predicate::stream_out): Same.
2682         * ipa-predicate.h: Same.
2683         * ipa-profile.c (ipa_profile_read_summary): Same.
2684         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2685         (count_formal_params): Same.
2686         (ipa_dump_param): Same.
2687         (ipa_alloc_node_params): Same.
2688         (ipa_print_node_jump_functions_for_edge): Same.
2689         (ipa_print_node_jump_functions): Same.
2690         (ipa_load_from_parm_agg): Same.
2691         (get_ancestor_addr_info): Same.
2692         (ipa_compute_jump_functions_for_edge): Same.
2693         (ipa_analyze_virtual_call_uses): Same.
2694         (ipa_analyze_stmt_uses): Same.
2695         (ipa_analyze_params_uses_in_bb): Same.
2696         (update_jump_functions_after_inlining): Same.
2697         (try_decrement_rdesc_refcount): Same.
2698         (ipa_impossible_devirt_target): Same.
2699         (update_indirect_edges_after_inlining): Same.
2700         (combine_controlled_uses_counters): Same.
2701         (ipa_edge_args_sum_t::duplicate): Same.
2702         (ipa_write_jump_function): Same.
2703         (ipa_write_indirect_edge_info): Same.
2704         (ipa_write_node_info): Same.
2705         (ipa_read_edge_info): Same.
2706         (ipa_prop_read_section): Same.
2707         (read_replacements_section): Same.
2708         * ipa-prop.h (ipa_get_param_count): Same.
2709         (ipa_get_param): Same.
2710         (ipa_get_type): Same.
2711         (ipa_get_param_move_cost): Same.
2712         (ipa_set_param_used): Same.
2713         (ipa_get_controlled_uses): Same.
2714         (ipa_set_controlled_uses): Same.
2715         (ipa_get_cs_argument_count): Same.
2716         * ipa-pure-const.c (analyze_function): Same.
2717         (pure_const_read_summary): Same.
2718         * ipa-ref.h: Same.
2719         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2720         * ipa-split.c (test_nonssa_use): Same.
2721         (dump_split_point): Same.
2722         (dominated_by_forbidden): Same.
2723         (split_part_set_ssa_name_p): Same.
2724         (find_split_points): Same.
2725         * ira-build.c (finish_loop_tree_nodes): Same.
2726         (low_pressure_loop_node_p): Same.
2727         * ira-color.c (ira_reuse_stack_slot): Same.
2728         * ira-int.h: Same.
2729         * ira.c (setup_reg_equiv): Same.
2730         (print_insn_chain): Same.
2731         (ira): Same.
2732         * loop-doloop.c (doloop_condition_get): Same.
2733         (add_test): Same.
2734         (record_reg_sets): Same.
2735         (doloop_optimize): Same.
2736         * loop-init.c (loop_optimizer_init): Same.
2737         (fix_loop_structure): Same.
2738         * loop-invariant.c (merge_identical_invariants): Same.
2739         (compute_always_reached): Same.
2740         (find_exits): Same.
2741         (may_assign_reg_p): Same.
2742         (find_invariants_bb): Same.
2743         (find_invariants_body): Same.
2744         (replace_uses): Same.
2745         (can_move_invariant_reg): Same.
2746         (free_inv_motion_data): Same.
2747         (move_single_loop_invariants): Same.
2748         (change_pressure): Same.
2749         (mark_ref_regs): Same.
2750         (calculate_loop_reg_pressure): Same.
2751         * loop-iv.c (biv_entry_hasher::equal): Same.
2752         (iv_extend_to_rtx_code): Same.
2753         (check_iv_ref_table_size): Same.
2754         (clear_iv_info): Same.
2755         (latch_dominating_def): Same.
2756         (iv_get_reaching_def): Same.
2757         (iv_constant): Same.
2758         (iv_subreg): Same.
2759         (iv_extend): Same.
2760         (iv_neg): Same.
2761         (iv_add): Same.
2762         (iv_mult): Same.
2763         (get_biv_step): Same.
2764         (record_iv): Same.
2765         (analyzed_for_bivness_p): Same.
2766         (record_biv): Same.
2767         (iv_analyze_biv): Same.
2768         (iv_analyze_expr): Same.
2769         (iv_analyze_def): Same.
2770         (iv_analyze_op): Same.
2771         (iv_analyze): Same.
2772         (iv_analyze_result): Same.
2773         (biv_p): Same.
2774         (eliminate_implied_conditions): Same.
2775         (simplify_using_initial_values): Same.
2776         (shorten_into_mode): Same.
2777         (canonicalize_iv_subregs): Same.
2778         (determine_max_iter): Same.
2779         (check_simple_exit): Same.
2780         (find_simple_exit): Same.
2781         (get_simple_loop_desc): Same.
2782         * loop-unroll.c (report_unroll): Same.
2783         (decide_unrolling): Same.
2784         (unroll_loops): Same.
2785         (loop_exit_at_end_p): Same.
2786         (decide_unroll_constant_iterations): Same.
2787         (unroll_loop_constant_iterations): Same.
2788         (compare_and_jump_seq): Same.
2789         (unroll_loop_runtime_iterations): Same.
2790         (decide_unroll_stupid): Same.
2791         (unroll_loop_stupid): Same.
2792         (referenced_in_one_insn_in_loop_p): Same.
2793         (reset_debug_uses_in_loop): Same.
2794         (analyze_iv_to_split_insn): Same.
2795         * lra-eliminations.c (lra_debug_elim_table): Same.
2796         (setup_can_eliminate): Same.
2797         (form_sum): Same.
2798         (lra_get_elimination_hard_regno): Same.
2799         (lra_eliminate_regs_1): Same.
2800         (eliminate_regs_in_insn): Same.
2801         (update_reg_eliminate): Same.
2802         (init_elimination): Same.
2803         (lra_eliminate): Same.
2804         * lra-int.h: Same.
2805         * lra-lives.c (initiate_live_solver): Same.
2806         * lra-remat.c (create_remat_bb_data): Same.
2807         * lra-spills.c (lra_spill): Same.
2808         * lra.c (lra_set_insn_recog_data): Same.
2809         (lra_set_used_insn_alternative_by_uid): Same.
2810         (init_reg_info): Same.
2811         (expand_reg_info): Same.
2812         * lto-cgraph.c (output_symtab): Same.
2813         (read_identifier): Same.
2814         (get_alias_symbol): Same.
2815         (input_node): Same.
2816         (input_varpool_node): Same.
2817         (input_ref): Same.
2818         (input_edge): Same.
2819         (input_cgraph_1): Same.
2820         (input_refs): Same.
2821         (input_symtab): Same.
2822         (input_offload_tables): Same.
2823         (output_cgraph_opt_summary): Same.
2824         (input_edge_opt_summary): Same.
2825         (input_cgraph_opt_section): Same.
2826         * lto-section-in.c (lto_free_raw_section_data): Same.
2827         (lto_create_simple_input_block): Same.
2828         (lto_free_function_in_decl_state_for_node): Same.
2829         * lto-streamer-in.c (lto_tag_check_set): Same.
2830         (lto_location_cache::revert_location_cache): Same.
2831         (lto_location_cache::input_location): Same.
2832         (lto_input_location): Same.
2833         (stream_input_location_now): Same.
2834         (lto_input_tree_ref): Same.
2835         (lto_input_eh_catch_list): Same.
2836         (input_eh_region): Same.
2837         (lto_init_eh): Same.
2838         (make_new_block): Same.
2839         (input_cfg): Same.
2840         (fixup_call_stmt_edges): Same.
2841         (input_struct_function_base): Same.
2842         (input_function): Same.
2843         (lto_read_body_or_constructor): Same.
2844         (lto_read_tree_1): Same.
2845         (lto_read_tree): Same.
2846         (lto_input_scc): Same.
2847         (lto_input_tree_1): Same.
2848         (lto_input_toplevel_asms): Same.
2849         (lto_input_mode_table): Same.
2850         (lto_reader_init): Same.
2851         (lto_data_in_create): Same.
2852         * lto-streamer-out.c (output_cfg): Same.
2853         * lto-streamer.h: Same.
2854         * modulo-sched.c (duplicate_insns_of_cycles): Same.
2855         (generate_prolog_epilog): Same.
2856         (mark_loop_unsched): Same.
2857         (dump_insn_location): Same.
2858         (loop_canon_p): Same.
2859         (sms_schedule): Same.
2860         * omp-expand.c (expand_omp_for_ordered_loops): Same.
2861         (expand_omp_for_generic): Same.
2862         (expand_omp_for_static_nochunk): Same.
2863         (expand_omp_for_static_chunk): Same.
2864         (expand_omp_simd): Same.
2865         (expand_omp_taskloop_for_inner): Same.
2866         (expand_oacc_for): Same.
2867         (expand_omp_atomic_pipeline): Same.
2868         (mark_loops_in_oacc_kernels_region): Same.
2869         * omp-offload.c (oacc_xform_loop): Same.
2870         * omp-simd-clone.c (simd_clone_adjust): Same.
2871         * optabs-query.c (get_traditional_extraction_insn): Same.
2872         * optabs.c (expand_vector_broadcast): Same.
2873         (expand_binop_directly): Same.
2874         (expand_twoval_unop): Same.
2875         (expand_twoval_binop): Same.
2876         (expand_unop_direct): Same.
2877         (emit_indirect_jump): Same.
2878         (emit_conditional_move): Same.
2879         (emit_conditional_neg_or_complement): Same.
2880         (emit_conditional_add): Same.
2881         (vector_compare_rtx): Same.
2882         (expand_vec_perm_1): Same.
2883         (expand_vec_perm_const): Same.
2884         (expand_vec_cond_expr): Same.
2885         (expand_vec_series_expr): Same.
2886         (maybe_emit_atomic_exchange): Same.
2887         (maybe_emit_sync_lock_test_and_set): Same.
2888         (expand_atomic_compare_and_swap): Same.
2889         (expand_atomic_load): Same.
2890         (expand_atomic_store): Same.
2891         (maybe_emit_op): Same.
2892         (valid_multiword_target_p): Same.
2893         (create_integer_operand): Same.
2894         (maybe_legitimize_operand_same_code): Same.
2895         (maybe_legitimize_operand): Same.
2896         (create_convert_operand_from_type): Same.
2897         (can_reuse_operands_p): Same.
2898         (maybe_legitimize_operands): Same.
2899         (maybe_gen_insn): Same.
2900         (maybe_expand_insn): Same.
2901         (maybe_expand_jump_insn): Same.
2902         (expand_insn): Same.
2903         * optabs.h (create_expand_operand): Same.
2904         (create_fixed_operand): Same.
2905         (create_output_operand): Same.
2906         (create_input_operand): Same.
2907         (create_convert_operand_to): Same.
2908         (create_convert_operand_from): Same.
2909         * optinfo.h: Same.
2910         * poly-int.h: Same.
2911         * predict.c (optimize_insn_for_speed_p): Same.
2912         (optimize_loop_for_size_p): Same.
2913         (optimize_loop_for_speed_p): Same.
2914         (optimize_loop_nest_for_speed_p): Same.
2915         (get_base_value): Same.
2916         (predicted_by_loop_heuristics_p): Same.
2917         (predict_extra_loop_exits): Same.
2918         (predict_loops): Same.
2919         (predict_paths_for_bb): Same.
2920         (predict_paths_leading_to): Same.
2921         (propagate_freq): Same.
2922         (pass_profile::execute): Same.
2923         * predict.h: Same.
2924         * profile-count.c (profile_count::differs_from_p): Same.
2925         (profile_probability::differs_lot_from_p): Same.
2926         * profile-count.h: Same.
2927         * profile.c (branch_prob): Same.
2928         * regrename.c (free_chain_data): Same.
2929         (mark_conflict): Same.
2930         (create_new_chain): Same.
2931         (merge_overlapping_regs): Same.
2932         (init_rename_info): Same.
2933         (merge_chains): Same.
2934         (regrename_analyze): Same.
2935         (regrename_do_replace): Same.
2936         (scan_rtx_reg): Same.
2937         (record_out_operands): Same.
2938         (build_def_use): Same.
2939         * regrename.h: Same.
2940         * reload.h: Same.
2941         * reload1.c (init_reload): Same.
2942         (maybe_fix_stack_asms): Same.
2943         (copy_reloads): Same.
2944         (count_pseudo): Same.
2945         (count_spilled_pseudo): Same.
2946         (find_reg): Same.
2947         (find_reload_regs): Same.
2948         (select_reload_regs): Same.
2949         (spill_hard_reg): Same.
2950         (fixup_eh_region_note): Same.
2951         (set_reload_reg): Same.
2952         (allocate_reload_reg): Same.
2953         (compute_reload_subreg_offset): Same.
2954         (reload_adjust_reg_for_icode): Same.
2955         (emit_input_reload_insns): Same.
2956         (emit_output_reload_insns): Same.
2957         (do_input_reload): Same.
2958         (inherit_piecemeal_p): Same.
2959         * rtl.h: Same.
2960         * sanopt.c (maybe_get_dominating_check): Same.
2961         (maybe_optimize_ubsan_ptr_ifn): Same.
2962         (can_remove_asan_check): Same.
2963         (maybe_optimize_asan_check_ifn): Same.
2964         (sanopt_optimize_walker): Same.
2965         * sched-deps.c (add_dependence_list): Same.
2966         (chain_to_prev_insn): Same.
2967         (add_insn_mem_dependence): Same.
2968         (create_insn_reg_set): Same.
2969         (maybe_extend_reg_info_p): Same.
2970         (sched_analyze_reg): Same.
2971         (sched_analyze_1): Same.
2972         (get_implicit_reg_pending_clobbers): Same.
2973         (chain_to_prev_insn_p): Same.
2974         (deps_analyze_insn): Same.
2975         (deps_start_bb): Same.
2976         (sched_free_deps): Same.
2977         (init_deps): Same.
2978         (init_deps_reg_last): Same.
2979         (free_deps): Same.
2980         * sched-ebb.c: Same.
2981         * sched-int.h: Same.
2982         * sched-rgn.c (add_branch_dependences): Same.
2983         (concat_insn_mem_list): Same.
2984         (deps_join): Same.
2985         (sched_rgn_compute_dependencies): Same.
2986         * sel-sched-ir.c (reset_target_context): Same.
2987         (copy_deps_context): Same.
2988         (init_id_from_df): Same.
2989         (has_dependence_p): Same.
2990         (change_loops_latches): Same.
2991         (bb_top_order_comparator): Same.
2992         (make_region_from_loop_preheader): Same.
2993         (sel_init_pipelining): Same.
2994         (get_loop_nest_for_rgn): Same.
2995         (make_regions_from_the_rest): Same.
2996         (sel_is_loop_preheader_p): Same.
2997         * sel-sched-ir.h (inner_loop_header_p): Same.
2998         (get_all_loop_exits): Same.
2999         * selftest.h: Same.
3000         * sese.c (sese_build_liveouts): Same.
3001         (sese_insert_phis_for_liveouts): Same.
3002         * sese.h (defined_in_sese_p): Same.
3003         * sreal.c (sreal::stream_out): Same.
3004         * sreal.h: Same.
3005         * streamer-hooks.h: Same.
3006         * target-globals.c (save_target_globals): Same.
3007         * target-globals.h: Same.
3008         * target.def: Same.
3009         * target.h: Same.
3010         * targhooks.c (default_has_ifunc_p): Same.
3011         (default_empty_mask_is_expensive): Same.
3012         (default_init_cost): Same.
3013         * targhooks.h: Same.
3014         * toplev.c: Same.
3015         * tree-affine.c (aff_combination_mult): Same.
3016         (aff_combination_expand): Same.
3017         (aff_combination_constant_multiple_p): Same.
3018         * tree-affine.h: Same.
3019         * tree-cfg.c (build_gimple_cfg): Same.
3020         (replace_loop_annotate_in_block): Same.
3021         (replace_uses_by): Same.
3022         (remove_bb): Same.
3023         (dump_cfg_stats): Same.
3024         (gimple_duplicate_sese_region): Same.
3025         (gimple_duplicate_sese_tail): Same.
3026         (move_block_to_fn): Same.
3027         (replace_block_vars_by_duplicates): Same.
3028         (move_sese_region_to_fn): Same.
3029         (print_loops_bb): Same.
3030         (print_loop): Same.
3031         (print_loops): Same.
3032         (debug): Same.
3033         (debug_loops): Same.
3034         * tree-cfg.h: Same.
3035         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
3036         (chrec_fold_multiply_poly_poly): Same.
3037         (chrec_evaluate): Same.
3038         (chrec_component_in_loop_num): Same.
3039         (reset_evolution_in_loop): Same.
3040         (is_multivariate_chrec): Same.
3041         (chrec_contains_symbols): Same.
3042         (nb_vars_in_chrec): Same.
3043         (chrec_convert_1): Same.
3044         (chrec_convert_aggressive): Same.
3045         * tree-chrec.h: Same.
3046         * tree-core.h: Same.
3047         * tree-data-ref.c (dump_data_dependence_relation): Same.
3048         (canonicalize_base_object_address): Same.
3049         (data_ref_compare_tree): Same.
3050         (prune_runtime_alias_test_list): Same.
3051         (get_segment_min_max): Same.
3052         (create_intersect_range_checks): Same.
3053         (conflict_fn_no_dependence): Same.
3054         (object_address_invariant_in_loop_p): Same.
3055         (analyze_ziv_subscript): Same.
3056         (analyze_siv_subscript_cst_affine): Same.
3057         (analyze_miv_subscript): Same.
3058         (analyze_overlapping_iterations): Same.
3059         (build_classic_dist_vector_1): Same.
3060         (add_other_self_distances): Same.
3061         (same_access_functions): Same.
3062         (build_classic_dir_vector): Same.
3063         (subscript_dependence_tester_1): Same.
3064         (subscript_dependence_tester): Same.
3065         (access_functions_are_affine_or_constant_p): Same.
3066         (get_references_in_stmt): Same.
3067         (loop_nest_has_data_refs): Same.
3068         (graphite_find_data_references_in_stmt): Same.
3069         (find_data_references_in_bb): Same.
3070         (get_base_for_alignment): Same.
3071         (find_loop_nest_1): Same.
3072         (find_loop_nest): Same.
3073         * tree-data-ref.h (dr_alignment): Same.
3074         (ddr_dependence_level): Same.
3075         * tree-if-conv.c (fold_build_cond_expr): Same.
3076         (add_to_predicate_list): Same.
3077         (add_to_dst_predicate_list): Same.
3078         (phi_convertible_by_degenerating_args): Same.
3079         (idx_within_array_bound): Same.
3080         (all_preds_critical_p): Same.
3081         (pred_blocks_visited_p): Same.
3082         (predicate_bbs): Same.
3083         (build_region): Same.
3084         (if_convertible_loop_p_1): Same.
3085         (is_cond_scalar_reduction): Same.
3086         (predicate_scalar_phi): Same.
3087         (remove_conditions_and_labels): Same.
3088         (combine_blocks): Same.
3089         (version_loop_for_if_conversion): Same.
3090         (versionable_outer_loop_p): Same.
3091         (ifcvt_local_dce): Same.
3092         (tree_if_conversion): Same.
3093         (pass_if_conversion::gate): Same.
3094         * tree-if-conv.h: Same.
3095         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
3096         * tree-loop-distribution.c (bb_top_order_cmp): Same.
3097         (free_rdg): Same.
3098         (stmt_has_scalar_dependences_outside_loop): Same.
3099         (copy_loop_before): Same.
3100         (create_bb_after_loop): Same.
3101         (const_with_all_bytes_same): Same.
3102         (generate_memset_builtin): Same.
3103         (generate_memcpy_builtin): Same.
3104         (destroy_loop): Same.
3105         (build_rdg_partition_for_vertex): Same.
3106         (compute_access_range): Same.
3107         (data_ref_segment_size): Same.
3108         (latch_dominated_by_data_ref): Same.
3109         (compute_alias_check_pairs): Same.
3110         (fuse_memset_builtins): Same.
3111         (finalize_partitions): Same.
3112         (find_seed_stmts_for_distribution): Same.
3113         (prepare_perfect_loop_nest): Same.
3114         * tree-parloops.c (lambda_transform_legal_p): Same.
3115         (loop_parallel_p): Same.
3116         (reduc_stmt_res): Same.
3117         (add_field_for_name): Same.
3118         (create_call_for_reduction_1): Same.
3119         (replace_uses_in_bb_by): Same.
3120         (transform_to_exit_first_loop_alt): Same.
3121         (try_transform_to_exit_first_loop_alt): Same.
3122         (transform_to_exit_first_loop): Same.
3123         (num_phis): Same.
3124         (gen_parallel_loop): Same.
3125         (gather_scalar_reductions): Same.
3126         (get_omp_data_i_param): Same.
3127         (try_create_reduction_list): Same.
3128         (oacc_entry_exit_single_gang): Same.
3129         (parallelize_loops): Same.
3130         * tree-pass.h: Same.
3131         * tree-predcom.c (determine_offset): Same.
3132         (last_always_executed_block): Same.
3133         (split_data_refs_to_components): Same.
3134         (suitable_component_p): Same.
3135         (valid_initializer_p): Same.
3136         (find_looparound_phi): Same.
3137         (insert_looparound_copy): Same.
3138         (add_looparound_copies): Same.
3139         (determine_roots_comp): Same.
3140         (predcom_tmp_var): Same.
3141         (initialize_root_vars): Same.
3142         (initialize_root_vars_store_elim_1): Same.
3143         (initialize_root_vars_store_elim_2): Same.
3144         (finalize_eliminated_stores): Same.
3145         (initialize_root_vars_lm): Same.
3146         (remove_stmt): Same.
3147         (determine_unroll_factor): Same.
3148         (execute_pred_commoning_cbck): Same.
3149         (base_names_in_chain_on): Same.
3150         (combine_chains): Same.
3151         (pcom_stmt_dominates_stmt_p): Same.
3152         (try_combine_chains): Same.
3153         (prepare_initializers_chain_store_elim): Same.
3154         (prepare_initializers_chain): Same.
3155         (prepare_initializers): Same.
3156         (prepare_finalizers_chain): Same.
3157         (prepare_finalizers): Same.
3158         (insert_init_seqs): Same.
3159         * tree-scalar-evolution.c (loop_phi_node_p): Same.
3160         (compute_overall_effect_of_inner_loop): Same.
3161         (add_to_evolution_1): Same.
3162         (add_to_evolution): Same.
3163         (follow_ssa_edge_binary): Same.
3164         (follow_ssa_edge_expr): Same.
3165         (backedge_phi_arg_p): Same.
3166         (follow_ssa_edge_in_condition_phi_branch): Same.
3167         (follow_ssa_edge_in_condition_phi): Same.
3168         (follow_ssa_edge_inner_loop_phi): Same.
3169         (follow_ssa_edge): Same.
3170         (analyze_evolution_in_loop): Same.
3171         (analyze_initial_condition): Same.
3172         (interpret_loop_phi): Same.
3173         (interpret_condition_phi): Same.
3174         (interpret_rhs_expr): Same.
3175         (interpret_expr): Same.
3176         (interpret_gimple_assign): Same.
3177         (analyze_scalar_evolution_1): Same.
3178         (analyze_scalar_evolution): Same.
3179         (analyze_scalar_evolution_for_address_of): Same.
3180         (get_instantiated_value_entry): Same.
3181         (loop_closed_phi_def): Same.
3182         (instantiate_scev_name): Same.
3183         (instantiate_scev_poly): Same.
3184         (instantiate_scev_binary): Same.
3185         (instantiate_scev_convert): Same.
3186         (instantiate_scev_not): Same.
3187         (instantiate_scev_r): Same.
3188         (instantiate_scev): Same.
3189         (resolve_mixers): Same.
3190         (initialize_scalar_evolutions_analyzer): Same.
3191         (scev_reset_htab): Same.
3192         (scev_reset): Same.
3193         (derive_simple_iv_with_niters): Same.
3194         (simple_iv_with_niters): Same.
3195         (expression_expensive_p): Same.
3196         (final_value_replacement_loop): Same.
3197         * tree-scalar-evolution.h (block_before_loop): Same.
3198         * tree-ssa-address.h: Same.
3199         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
3200         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
3201         (record_edge_info): Same.
3202         * tree-ssa-live.c (var_map_base_fini): Same.
3203         (remove_unused_locals): Same.
3204         * tree-ssa-live.h: Same.
3205         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
3206         (pass_ch_vect::execute): Same.
3207         (pass_ch::process_loop_p): Same.
3208         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
3209         (movement_possibility): Same.
3210         (outermost_invariant_loop): Same.
3211         (stmt_cost): Same.
3212         (determine_max_movement): Same.
3213         (invariantness_dom_walker::before_dom_children): Same.
3214         (move_computations): Same.
3215         (may_move_till): Same.
3216         (force_move_till_op): Same.
3217         (force_move_till): Same.
3218         (memref_free): Same.
3219         (record_mem_ref_loc): Same.
3220         (set_ref_stored_in_loop): Same.
3221         (mark_ref_stored): Same.
3222         (sort_bbs_in_loop_postorder_cmp): Same.
3223         (sort_locs_in_loop_postorder_cmp): Same.
3224         (analyze_memory_references): Same.
3225         (mem_refs_may_alias_p): Same.
3226         (find_ref_loc_in_loop_cmp): Same.
3227         (rewrite_mem_ref_loc::operator): Same.
3228         (first_mem_ref_loc_1::operator): Same.
3229         (sm_set_flag_if_changed::operator): Same.
3230         (execute_sm_if_changed_flag_set): Same.
3231         (execute_sm): Same.
3232         (hoist_memory_references): Same.
3233         (ref_always_accessed::operator): Same.
3234         (refs_independent_p): Same.
3235         (record_dep_loop): Same.
3236         (ref_indep_loop_p_1): Same.
3237         (ref_indep_loop_p): Same.
3238         (can_sm_ref_p): Same.
3239         (find_refs_for_sm): Same.
3240         (loop_suitable_for_sm): Same.
3241         (store_motion_loop): Same.
3242         (store_motion): Same.
3243         (fill_always_executed_in): Same.
3244         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
3245         (estimated_unrolled_size): Same.
3246         (loop_edge_to_cancel): Same.
3247         (remove_exits_and_undefined_stmts): Same.
3248         (remove_redundant_iv_tests): Same.
3249         (unloop_loops): Same.
3250         (estimated_peeled_sequence_size): Same.
3251         (try_peel_loop): Same.
3252         (canonicalize_loop_induction_variables): Same.
3253         (canonicalize_induction_variables): Same.
3254         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
3255         (name_info): Same.
3256         (stmt_after_inc_pos): Same.
3257         (contains_abnormal_ssa_name_p): Same.
3258         (niter_for_exit): Same.
3259         (find_bivs): Same.
3260         (mark_bivs): Same.
3261         (find_givs_in_bb): Same.
3262         (find_induction_variables): Same.
3263         (find_interesting_uses_cond): Same.
3264         (outermost_invariant_loop_for_expr): Same.
3265         (idx_find_step): Same.
3266         (add_candidate_1): Same.
3267         (add_iv_candidate_derived_from_uses): Same.
3268         (alloc_use_cost_map): Same.
3269         (prepare_decl_rtl): Same.
3270         (generic_predict_doloop_p): Same.
3271         (computation_cost): Same.
3272         (determine_common_wider_type): Same.
3273         (get_computation_aff_1): Same.
3274         (get_use_type): Same.
3275         (determine_group_iv_cost_address): Same.
3276         (iv_period): Same.
3277         (difference_cannot_overflow_p): Same.
3278         (may_eliminate_iv): Same.
3279         (determine_set_costs): Same.
3280         (cheaper_cost_pair): Same.
3281         (compare_cost_pair): Same.
3282         (iv_ca_cand_for_group): Same.
3283         (iv_ca_recount_cost): Same.
3284         (iv_ca_set_remove_invs): Same.
3285         (iv_ca_set_no_cp): Same.
3286         (iv_ca_set_add_invs): Same.
3287         (iv_ca_set_cp): Same.
3288         (iv_ca_add_group): Same.
3289         (iv_ca_cost): Same.
3290         (iv_ca_compare_deps): Same.
3291         (iv_ca_delta_reverse): Same.
3292         (iv_ca_delta_commit): Same.
3293         (iv_ca_cand_used_p): Same.
3294         (iv_ca_delta_free): Same.
3295         (iv_ca_new): Same.
3296         (iv_ca_free): Same.
3297         (iv_ca_dump): Same.
3298         (iv_ca_extend): Same.
3299         (iv_ca_narrow): Same.
3300         (iv_ca_prune): Same.
3301         (cheaper_cost_with_cand): Same.
3302         (iv_ca_replace): Same.
3303         (try_add_cand_for): Same.
3304         (get_initial_solution): Same.
3305         (try_improve_iv_set): Same.
3306         (find_optimal_iv_set_1): Same.
3307         (create_new_iv): Same.
3308         (rewrite_use_compare): Same.
3309         (remove_unused_ivs): Same.
3310         (determine_scaling_factor): Same.
3311         * tree-ssa-loop-ivopts.h: Same.
3312         * tree-ssa-loop-manip.c (create_iv): Same.
3313         (compute_live_loop_exits): Same.
3314         (add_exit_phi): Same.
3315         (add_exit_phis): Same.
3316         (find_uses_to_rename_use): Same.
3317         (find_uses_to_rename_def): Same.
3318         (find_uses_to_rename_in_loop): Same.
3319         (rewrite_into_loop_closed_ssa): Same.
3320         (check_loop_closed_ssa_bb): Same.
3321         (split_loop_exit_edge): Same.
3322         (ip_end_pos): Same.
3323         (ip_normal_pos): Same.
3324         (copy_phi_node_args): Same.
3325         (gimple_duplicate_loop_to_header_edge): Same.
3326         (can_unroll_loop_p): Same.
3327         (determine_exit_conditions): Same.
3328         (scale_dominated_blocks_in_loop): Same.
3329         (niter_for_unrolled_loop): Same.
3330         (tree_transform_and_unroll_loop): Same.
3331         (rewrite_all_phi_nodes_with_iv): Same.
3332         * tree-ssa-loop-manip.h: Same.
3333         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
3334         (number_of_iterations_ne): Same.
3335         (assert_no_overflow_lt): Same.
3336         (assert_loop_rolls_lt): Same.
3337         (number_of_iterations_lt): Same.
3338         (adjust_cond_for_loop_until_wrap): Same.
3339         (tree_simplify_using_condition): Same.
3340         (simplify_using_initial_conditions): Same.
3341         (simplify_using_outer_evolutions): Same.
3342         (loop_only_exit_p): Same.
3343         (ssa_defined_by_minus_one_stmt_p): Same.
3344         (number_of_iterations_popcount): Same.
3345         (number_of_iterations_exit): Same.
3346         (find_loop_niter): Same.
3347         (finite_loop_p): Same.
3348         (chain_of_csts_start): Same.
3349         (get_val_for): Same.
3350         (loop_niter_by_eval): Same.
3351         (derive_constant_upper_bound_ops): Same.
3352         (do_warn_aggressive_loop_optimizations): Same.
3353         (record_estimate): Same.
3354         (get_cst_init_from_scev): Same.
3355         (record_nonwrapping_iv): Same.
3356         (idx_infer_loop_bounds): Same.
3357         (infer_loop_bounds_from_ref): Same.
3358         (infer_loop_bounds_from_array): Same.
3359         (infer_loop_bounds_from_pointer_arith): Same.
3360         (infer_loop_bounds_from_signedness): Same.
3361         (bound_index): Same.
3362         (discover_iteration_bound_by_body_walk): Same.
3363         (maybe_lower_iteration_bound): Same.
3364         (estimate_numbers_of_iterations): Same.
3365         (estimated_loop_iterations): Same.
3366         (estimated_loop_iterations_int): Same.
3367         (max_loop_iterations): Same.
3368         (max_loop_iterations_int): Same.
3369         (likely_max_loop_iterations): Same.
3370         (likely_max_loop_iterations_int): Same.
3371         (estimated_stmt_executions_int): Same.
3372         (max_stmt_executions): Same.
3373         (likely_max_stmt_executions): Same.
3374         (estimated_stmt_executions): Same.
3375         (stmt_dominates_stmt_p): Same.
3376         (nowrap_type_p): Same.
3377         (loop_exits_before_overflow): Same.
3378         (scev_var_range_cant_overflow): Same.
3379         (scev_probably_wraps_p): Same.
3380         (free_numbers_of_iterations_estimates): Same.
3381         * tree-ssa-loop-niter.h: Same.
3382         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
3383         (idx_analyze_ref): Same.
3384         (analyze_ref): Same.
3385         (gather_memory_references_ref): Same.
3386         (mark_nontemporal_store): Same.
3387         (emit_mfence_after_loop): Same.
3388         (may_use_storent_in_loop_p): Same.
3389         (mark_nontemporal_stores): Same.
3390         (should_unroll_loop_p): Same.
3391         (volume_of_dist_vector): Same.
3392         (add_subscript_strides): Same.
3393         (self_reuse_distance): Same.
3394         (insn_to_prefetch_ratio_too_small_p): Same.
3395         * tree-ssa-loop-split.c (split_at_bb_p): Same.
3396         (patch_loop_exit): Same.
3397         (find_or_create_guard_phi): Same.
3398         (easy_exit_values): Same.
3399         (connect_loop_phis): Same.
3400         (connect_loops): Same.
3401         (compute_new_first_bound): Same.
3402         (split_loop): Same.
3403         (tree_ssa_split_loops): Same.
3404         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
3405         (is_maybe_undefined): Same.
3406         (tree_may_unswitch_on): Same.
3407         (simplify_using_entry_checks): Same.
3408         (tree_unswitch_single_loop): Same.
3409         (tree_unswitch_loop): Same.
3410         (tree_unswitch_outer_loop): Same.
3411         (empty_bb_without_guard_p): Same.
3412         (used_outside_loop_p): Same.
3413         (get_vop_from_header): Same.
3414         (hoist_guard): Same.
3415         * tree-ssa-loop.c (gate_oacc_kernels): Same.
3416         (get_lsm_tmp_name): Same.
3417         * tree-ssa-loop.h: Same.
3418         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
3419         (build_and_add_sum): Same.
3420         (no_side_effect_bb): Same.
3421         (get_ops): Same.
3422         (linearize_expr): Same.
3423         (should_break_up_subtract): Same.
3424         (linearize_expr_tree): Same.
3425         * tree-ssa-scopedtables.c: Same.
3426         * tree-ssa-scopedtables.h: Same.
3427         * tree-ssa-structalias.c (condense_visit): Same.
3428         (label_visit): Same.
3429         (dump_pred_graph): Same.
3430         (perform_var_substitution): Same.
3431         (move_complex_constraints): Same.
3432         (remove_preds_and_fake_succs): Same.
3433         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
3434         (determine_bb_domination_status): Same.
3435         (duplicate_thread_path): Same.
3436         (thread_through_all_blocks): Same.
3437         * tree-ssa-threadupdate.h: Same.
3438         * tree-streamer-in.c (streamer_read_string_cst): Same.
3439         (input_identifier): Same.
3440         (unpack_ts_type_common_value_fields): Same.
3441         (unpack_ts_block_value_fields): Same.
3442         (unpack_ts_translation_unit_decl_value_fields): Same.
3443         (unpack_ts_omp_clause_value_fields): Same.
3444         (streamer_read_tree_bitfields): Same.
3445         (streamer_alloc_tree): Same.
3446         (lto_input_ts_common_tree_pointers): Same.
3447         (lto_input_ts_vector_tree_pointers): Same.
3448         (lto_input_ts_poly_tree_pointers): Same.
3449         (lto_input_ts_complex_tree_pointers): Same.
3450         (lto_input_ts_decl_minimal_tree_pointers): Same.
3451         (lto_input_ts_decl_common_tree_pointers): Same.
3452         (lto_input_ts_decl_non_common_tree_pointers): Same.
3453         (lto_input_ts_decl_with_vis_tree_pointers): Same.
3454         (lto_input_ts_field_decl_tree_pointers): Same.
3455         (lto_input_ts_function_decl_tree_pointers): Same.
3456         (lto_input_ts_type_common_tree_pointers): Same.
3457         (lto_input_ts_type_non_common_tree_pointers): Same.
3458         (lto_input_ts_list_tree_pointers): Same.
3459         (lto_input_ts_vec_tree_pointers): Same.
3460         (lto_input_ts_exp_tree_pointers): Same.
3461         (lto_input_ts_block_tree_pointers): Same.
3462         (lto_input_ts_binfo_tree_pointers): Same.
3463         (lto_input_ts_constructor_tree_pointers): Same.
3464         (lto_input_ts_omp_clause_tree_pointers): Same.
3465         (streamer_read_tree_body): Same.
3466         * tree-streamer.h: Same.
3467         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
3468         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
3469         (vect_analyze_possibly_independent_ddr): Same.
3470         (vect_analyze_data_ref_dependence): Same.
3471         (vect_compute_data_ref_alignment): Same.
3472         (vect_enhance_data_refs_alignment): Same.
3473         (vect_analyze_data_ref_access): Same.
3474         (vect_check_gather_scatter): Same.
3475         (vect_find_stmt_data_reference): Same.
3476         (vect_create_addr_base_for_vector_ref): Same.
3477         (vect_setup_realignment): Same.
3478         (vect_supportable_dr_alignment): Same.
3479         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
3480         (adjust_phi_and_debug_stmts): Same.
3481         (vect_set_loop_mask): Same.
3482         (add_preheader_seq): Same.
3483         (vect_maybe_permute_loop_masks): Same.
3484         (vect_set_loop_masks_directly): Same.
3485         (vect_set_loop_condition_masked): Same.
3486         (vect_set_loop_condition_unmasked): Same.
3487         (slpeel_duplicate_current_defs_from_edges): Same.
3488         (slpeel_add_loop_guard): Same.
3489         (slpeel_can_duplicate_loop_p): Same.
3490         (create_lcssa_for_virtual_phi): Same.
3491         (iv_phi_p): Same.
3492         (vect_update_ivs_after_vectorizer): Same.
3493         (vect_gen_vector_loop_niters_mult_vf): Same.
3494         (slpeel_update_phi_nodes_for_loops): Same.
3495         (slpeel_update_phi_nodes_for_guard1): Same.
3496         (find_guard_arg): Same.
3497         (slpeel_update_phi_nodes_for_guard2): Same.
3498         (slpeel_update_phi_nodes_for_lcssa): Same.
3499         (vect_do_peeling): Same.
3500         (vect_create_cond_for_alias_checks): Same.
3501         (vect_loop_versioning): Same.
3502         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
3503         (vect_inner_phi_in_double_reduction_p): Same.
3504         (vect_analyze_scalar_cycles_1): Same.
3505         (vect_fixup_scalar_cycles_with_patterns): Same.
3506         (vect_get_loop_niters): Same.
3507         (bb_in_loop_p): Same.
3508         (vect_get_max_nscalars_per_iter): Same.
3509         (vect_verify_full_masking): Same.
3510         (vect_compute_single_scalar_iteration_cost): Same.
3511         (vect_analyze_loop_form_1): Same.
3512         (vect_analyze_loop_form): Same.
3513         (vect_active_double_reduction_p): Same.
3514         (vect_analyze_loop_operations): Same.
3515         (neutral_op_for_slp_reduction): Same.
3516         (vect_is_simple_reduction): Same.
3517         (vect_model_reduction_cost): Same.
3518         (get_initial_def_for_reduction): Same.
3519         (get_initial_defs_for_reduction): Same.
3520         (vect_create_epilog_for_reduction): Same.
3521         (vectorize_fold_left_reduction): Same.
3522         (vectorizable_reduction): Same.
3523         (vectorizable_induction): Same.
3524         (vectorizable_live_operation): Same.
3525         (loop_niters_no_overflow): Same.
3526         (vect_get_loop_mask): Same.
3527         (vect_transform_loop_stmt): Same.
3528         (vect_transform_loop): Same.
3529         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
3530         (vect_determine_precisions): Same.
3531         (vect_pattern_recog_1): Same.
3532         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3533         * tree-vect-stmts.c (stmt_vectype): Same.
3534         (process_use): Same.
3535         (vect_init_vector_1): Same.
3536         (vect_truncate_gather_scatter_offset): Same.
3537         (get_group_load_store_type): Same.
3538         (vect_build_gather_load_calls): Same.
3539         (vect_get_strided_load_store_ops): Same.
3540         (vectorizable_simd_clone_call): Same.
3541         (vectorizable_store): Same.
3542         (permute_vec_elements): Same.
3543         (vectorizable_load): Same.
3544         (vect_transform_stmt): Same.
3545         (supportable_widening_operation): Same.
3546         * tree-vectorizer.c (vec_info::replace_stmt): Same.
3547         (vec_info::free_stmt_vec_info): Same.
3548         (vect_free_loop_info_assumptions): Same.
3549         (vect_loop_vectorized_call): Same.
3550         (set_uid_loop_bbs): Same.
3551         (vectorize_loops): Same.
3552         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
3553         * tree.c (add_tree_to_fld_list): Same.
3554         (fld_type_variant_equal_p): Same.
3555         (fld_decl_context): Same.
3556         (fld_incomplete_type_of): Same.
3557         (free_lang_data_in_binfo): Same.
3558         (need_assembler_name_p): Same.
3559         (find_decls_types_r): Same.
3560         (get_eh_types_for_runtime): Same.
3561         (find_decls_types_in_eh_region): Same.
3562         (find_decls_types_in_node): Same.
3563         (assign_assembler_name_if_needed): Same.
3564         * value-prof.c (stream_out_histogram_value): Same.
3565         * value-prof.h: Same.
3566         * var-tracking.c (use_narrower_mode): Same.
3567         (prepare_call_arguments): Same.
3568         (vt_expand_loc_callback): Same.
3569         (resolve_expansions_pending_recursion): Same.
3570         (vt_expand_loc): Same.
3571         * varasm.c (const_hash_1): Same.
3572         (compare_constant): Same.
3573         (tree_output_constant_def): Same.
3574         (simplify_subtraction): Same.
3575         (get_pool_constant): Same.
3576         (output_constant_pool_2): Same.
3577         (output_constant_pool_1): Same.
3578         (mark_constants_in_pattern): Same.
3579         (mark_constant_pool): Same.
3580         (get_section_anchor): Same.
3581         * vr-values.c (compare_range_with_value): Same.
3582         (vr_values::extract_range_from_phi_node): Same.
3583         * vr-values.h: Same.
3584         * web.c (unionfind_union): Same.
3585         * wide-int.h: Same.
3587 2019-07-09  Martin Sebor  <msebor@redhat.com>
3589         PR c++/61339
3590         * align.h: Change class-key from class to struct and vice versa
3591         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
3592         * alloc-pool.h: Same.
3593         * asan.c (shadow_mem_size): Same.
3594         * auto-profile.c: Same.
3595         * basic-block.h: Same.
3596         * bitmap.h: Same.
3597         * cfgexpand.c (set_rtl): Same.
3598         (expand_one_stack_var_at): Same.
3599         * cfghooks.h: Same.
3600         * cfgloop.h: Same.
3601         * cgraph.h: Same.
3602         * config/i386/i386.h: Same.
3603         * df-problems.c (df_print_bb_index): Same.
3604         * df-scan.c: Same.
3605         * df.h (df_single_use): Same.
3606         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
3607         (layout::annotation_line_showed_range_p): Same.
3608         (get_printed_columns): Same.
3609         (correction::ensure_terminated): Same.
3610         (line_corrections::~line_corrections): Same.
3611         * dojump.h: Same.
3612         * dse.c: Same.
3613         * dump-context.h: Same.
3614         * dumpfile.h: Same.
3615         * dwarf2out.c: Same.
3616         * edit-context.c: Same.
3617         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
3618         * flags.h: Same.
3619         * function.c (assign_stack_local): Same.
3620         * function.h: Same.
3621         * gcc.c: Same.
3622         * gcov.c (block_info::block_info): Same.
3623         * genattrtab.c: Same.
3624         * genextract.c: Same.
3625         * genmatch.c (comparison_code_p): Same.
3626         (id_base::id_base): Same.
3627         (decision_tree::print): Same.
3628         * genoutput.c: Same.
3629         * genpreds.c (write_one_predicate_function): Same.
3630         * genrecog.c (validate_pattern): Same.
3631         (find_operand_positions): Same.
3632         (optimize_subroutine_group): Same.
3633         (merge_pattern_transition::merge_pattern_transition): Same.
3634         (merge_pattern_info::merge_pattern_info): Same.
3635         (merge_state_result::merge_state_result): Same.
3636         (merge_into_state): Same.
3637         * gensupport.c: Same.
3638         * gensupport.h: Same.
3639         * ggc-common.c (init_ggc_heuristics): Same.
3640         * ggc-tests.c (test_union): Same.
3641         * gimple-loop-interchange.cc (dump_induction): Same.
3642         * gimple-loop-versioning.cc: Same.
3643         * gimple-match.h (gimple_match_cond::any_else): Same.
3644         * gimple-ssa-backprop.c: Same.
3645         * gimple-ssa-sprintf.c: Same.
3646         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
3647         Same.
3648         (store_immediate_info::store_immediate_info): Same.
3649         (merged_store_group::apply_stores): Same.
3650         (get_location_for_stmts): Same.
3651         * gimple-ssa-strength-reduction.c: Same.
3652         * gimple-ssa-warn-alloca.c: Same.
3653         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
3654         * godump.c (go_type_decl): Same.
3655         * hash-map-tests.c (test_map_of_strings_to_int): Same.
3656         * hash-map.h: Same.
3657         * hash-set-tests.c (test_set_of_strings): Same.
3658         * hsa-brig.c: Same.
3659         * hsa-common.h: Same.
3660         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
3661         * input.c (assert_loceq): Same.
3662         * input.h: Same.
3663         * ipa-cp.c: Same.
3664         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
3665         * ipa-fnsummary.h: Same.
3666         * ipa-inline.h: Same.
3667         * ipa-prop.h: Same.
3668         * ipa-split.c (visit_bb): Same.
3669         * ira-int.h (minmax_set_iter_next): Same.
3670         * loop-invariant.c: Same.
3671         * loop-iv.c: Same.
3672         * lra-eliminations.c: Same.
3673         * lra-int.h: Same.
3674         * lra-lives.c (mark_regno_dead): Same.
3675         * lra-remat.c: Same.
3676         * lra-spills.c: Same.
3677         * lto-streamer.h: Same.
3678         * mem-stats.h: Same.
3679         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
3680         * omp-low.c (omp_clause_aligned_alignment): Same.
3681         * optabs-query.h (get_vcond_eq_icode): Same.
3682         * optabs.h: Same.
3683         * opts.c (wrap_help): Same.
3684         * poly-int.h: Same.
3685         * predict.c (predict_paths_leading_to_edge): Same.
3686         * pretty-print.h: Same.
3687         * profile-count.h: Same.
3688         * read-md.h: Same.
3689         * read-rtl-function.c: Same.
3690         * ree.c: Same.
3691         * reginfo.c: Same.
3692         * regrename.c: Same.
3693         * regrename.h: Same.
3694         * reload.h: Same.
3695         * rtl-iter.h: Same.
3696         * rtl.h (costs_add_n_insns): Same.
3697         * sanopt.c: Same.
3698         * sched-int.h: Same.
3699         * sel-sched-ir.h: Same.
3700         * selftest.h: Same.
3701         * sese.h (vec_find): Same.
3702         * stmt.c: Same.
3703         * target-globals.h: Same.
3704         * tree-affine.c (aff_combination_find_elt): Same.
3705         * tree-affine.h: Same.
3706         * tree-data-ref.h: Same.
3707         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3708         * tree-predcom.c: Same.
3709         * tree-scalar-evolution.c (find_var_scev_info): Same.
3710         * tree-ssa-alias.h: Same.
3711         * tree-ssa-ccp.c: Same.
3712         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3713         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3714         (rewrite_mem_refs): Same.
3715         (execute_sm_if_changed): Same.
3716         (hoist_memory_references): Same.
3717         * tree-ssa-loop-ivopts.c (operator<=): Same.
3718         * tree-ssa-loop.h: Same.
3719         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3720         * tree-ssa-structalias.c: Same.
3721         * tree-switch-conversion.h (cluster::cluster): Same.
3722         (simple_cluster::simple_cluster): Same.
3723         * tree-vect-patterns.c (type_conversion_p): Same.
3724         * tree-vectorizer.c (dump_stmt_cost): Same.
3725         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3726         * tree.c (protected_set_expr_location): Same.
3727         * tree.h (desired_pro_or_demotion_p): Same.
3728         (fndecl_built_in_p): Same.
3729         * unique-ptr-tests.cc: Same.
3730         * var-tracking.c (delete_variable_part): Same.
3731         * varasm.c (assemble_real): Same.
3732         (tree_output_constant_def): Same.
3733         * vec.c: Same.
3734         * wide-int-bitmask.h: Same.
3735         * wide-int.h (decompose): Same.
3737 2019-07-09  Richard Biener  <rguenther@suse.de>
3739         PR tree-optimization/91114
3740         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3741         find a vector type isn't fatal.
3743 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
3745         * config/aarch64/aarch64-simd.md
3746         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3747         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3748         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3749         (*aarch64_crypto_aese_fused,
3750         *aarch64_crypto_aesd_fused): Update to new definition.
3751         * config/aarch64/aarch64.c
3752         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3754 2019-07-09  Richard Biener  <rguenther@suse.de>
3756         * gimple-match.h (gimple_match_op::resimplify): New.
3757         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3758         gimple_resimplify4, gimple_resimplify5): Remove.
3759         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3760         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3761         Make static.
3762         (gimple_match_op::resimplify): New.
3763         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3764         according to availability.  Use gimple_match_op::resimplify.
3766 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
3768         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3770 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
3772         * config/arm/crypto.md:
3773         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3774         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3775         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3776         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3777         * config/arm/arm.c
3778         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3779         * config/arm/aarch-common-protos.h
3780         (aarch_crypto_can_dual_issue): Remove.
3781         * config/arm/aarch-common.c
3782         (aarch_crypto_can_dual_issue): Likewise.
3783         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3784         * config/arm/cortex-a53.md: Likewise.
3785         * config/arm/cortex-a57.md: Likewise.
3786         * config/arm/iterators.md:
3787         (CRYPTO_BINARY): Redefine.
3788         (CRYPTO_UNARY): Removed.
3789         (CRYPTO_AES, CRYPTO_AESMC): New.
3791 2019-07-09  Richard Biener  <rguenther@suse.de>
3793         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3794         (vn_reference_lookup_3): If the main ref has no access path recorded
3795         but orig_ref has use it to do access-path based disambiguation.
3796         (vn_reference_lookup_pieces): Adjust.
3797         (vn_reference_lookup): Pass down original ref if we valueized.
3799 2019-07-09  Martin Liska  <mliska@suse.cz>
3801         * doc/extend.texi: Document influence on loop
3802         optimizers.
3804 2019-07-09  Martin Liska  <mliska@suse.cz>
3806         * lto-compress.c (lto_normalized_zstd_level): Do not use
3807         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3808         of libzstd.  One can use 0 as a default compression level.
3810 2019-07-09  Martin Liska  <mliska@suse.cz>
3812         * doc/invoke.texi: Add link from -fprofile-dir option.
3813         Use better wording for 'gcno filename'.
3815 2019-07-08  Martin Sebor  <msebor@redhat.com>
3817         PR middle-end/71924
3818         PR middle-end/90549
3819         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
3820         comment.
3821         (args_loc_t): New type.
3822         (args_loc_t, locmap_t): same.
3823         (diag_returned_locals): New function.
3824         (is_addr_local): Same.
3825         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3826         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3827         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3829 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
3831         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3832         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
3833         and casts in offset when different, both through gimple stmts
3834         and through trees.  Rewritten using loops to minimize code duplication
3835         for each operand.
3837 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3839         * emit-rtl.c (set_insn_locations): New function moved from...
3840         * function.c (set_insn_locations): ...here.
3841         * ira-emit.c (emit_moves): Propagate location of the first instruction
3842         to the inserted move instructions.
3843         * reg-stack.c (compensate_edge): Set the location if the sequence is
3844         inserted on the edge.
3845         * rtl.h (set_insn_locations): Declare.
3847 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
3849         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3850         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3851         .machine string.
3853 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
3855         PR rtl-optimization/88233
3856         * common.opt (fsplit-wide-types-early): New option.
3857         * common/config/rs6000/rs6000-common.c
3858         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3859         OPT_LEVELS_ALL.
3860         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3861         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3862         flag_split_wide_types_early.
3863         (pass_data_lower_subreg3): New.
3864         (pass_lower_subreg3): New.
3865         (make_pass_lower_subreg3): New.
3866         * passes.def (pass_lower_subreg2): Move after the loop passes.
3867         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3868         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3869         the pass pipeline; its previous place is taken by ...
3870         (make_pass_lower_subreg3): ... this.
3872 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
3874         * config/s390/s390.c (s390_shift_truncation_mask): Define.
3875         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3877 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
3879         * config/s390/constraints.md: Add new jsc constraint.
3880         * config/s390/predicates.md: New predicates.
3881         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
3882         * config/s390/s390.c (s390_valid_shift_count): New function.
3883         (print_shift_count_operand): Use s390_valid_shift_count.
3884         (print_operand): Likewise.
3885         * config/s390/s390.md: Use new predicate.
3886         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
3887         * config/s390/vector.md: Use new predicate.
3889 2019-07-08  Joern Rennecke  <joern.rennecke@riscy-ip.com>
3891         Avoid clash with system header declaration.
3892         * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
3893         Remove unused declaration.
3895 2019-07-08  Andrew Waterman  <andrew@sifive.com>
3896             Jim Wilson  <jimw@sifive.com>
3898         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
3899         bitsize instead of BITS_PER_WORD.
3900         gcc/testsuite/
3902 2019-07-08  Martin Liska  <mliska@suse.cz>
3904         * collect2.c (defined): Revert to before r254460.
3905         (scan_prog_file): Revert to before r254460.
3907 2019-07-08  Richard Biener  <rguenther@suse.de>
3909         PR tree-optimization/83518
3910         * tree-ssa-sccvn.c: Include splay-tree.h.
3911         (struct pd_range, struct pd_data): New.
3912         (struct vn_walk_cb_data): Add data to track partial definitions.
3913         (vn_walk_cb_data::~vn_walk_cb_data): New.
3914         (vn_walk_cb_data::push_partial_def): New.
3915         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
3916         (vn_reference_lookup_2): When partial defs are registered give up.
3917         (vn_reference_lookup_3): Track partial defs for memset and
3918         constructor zeroing and for defs from constants.
3920 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
3922         * doc/install.texi (bootstrap-Og): Document.
3924 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
3926         * config/riscv/pic.md (*local_pic_load_s<mode>)
3927         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
3928         referenced by <mode>, giving...
3929         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
3930         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
3931         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
3932         use <X:MODE> for the mode attribute.
3934 2019-07-07  Jeff Law  <law@redhat.com>
3936         PR tree-optimization/91090
3937         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
3938         in handling of ranges to simplify switch statements.
3940 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
3942         * config/darwin.c (darwin_override_options): Make a final check on PIC
3943         options.
3945 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
3947         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
3948         on for kernel code.
3950 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
3952         PR target/91068
3953         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
3954         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
3955         instead of matching them to "l" output operands.
3957 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
3959         * config/mips/mips.c (mips_split_move): Zero-initialize addr
3960         and check whether addr.reg is nonnull before using it.
3962 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
3964         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
3965         ctx->for_simd_scan_phase simd copy the outer var to the privatized
3966         variable(s).  For conditional lastprivate look through outer
3967         GIMPLE_OMP_SCAN context.
3968         (lower_omp_1): For conditional lastprivate look through outer
3969         GIMPLE_OMP_SCAN context.
3971         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
3972         member to combined_into_simd_safelen1.
3973         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
3974         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
3975         clauses if ctx->combined_into_simd_safelen1 put statements after the
3976         predicate conditionalized block rather than into it.
3978 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
3980         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
3981         operand 1.
3982         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
3983         Make the choice of <mode> explicit, giving...
3984         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
3986 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
3988         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
3989         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
3990         of .md attributes.
3991         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
3992         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
3993         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
3994         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
3995         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
3996         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
3997         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
3998         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
3999         (*avx512f_scatterdi<mode>): Likewise.
4000         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
4002 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4004         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
4005         specify the mode iterator referenced by <mode>, giving...
4006         (*push1_h8300hs_<QHI:mode>): ...this.
4008 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4010         * config/gcn/gcn-valu.md
4011         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
4012         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
4013         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
4014         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
4015         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
4016         but using the _exec comparison patterns.
4017         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
4018         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
4019         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
4020         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
4021         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
4022         but using the _exec comparison patterns.
4024 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4026         * config/arm/sync.md
4027         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
4028         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
4029         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
4030         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
4031         <SIDI:cas_cmp_str>.
4033 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4035         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
4036         (maybe_lookup_ctx): Add forward declaration.
4037         (omp_find_scan): Likewise.  Walk into body of simd if composited
4038         with worksharing loop.
4039         (scan_omp_simd_scan): New function.
4040         (scan_omp_1_stmt): Call it.
4041         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
4042         ctx->for_simd_scan_phase.
4043         (lower_rec_input_clauses): Do much less work for inscan reductions
4044         in ctx->for_simd_scan_phase is_simd regions.
4045         (lower_omp_scan): Set is_simd also on simd constructs composited
4046         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
4047         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
4048         emit their body after in simd constructs composited with worksharing
4049         loop.
4050         (lower_omp_for_scan): Handle worksharing loop composited with simd.
4052         * omp-low.c (omp_find_scan): Make static.
4053         (lower_omp_for_scan): Fix order of merge arguments in input phase of
4054         the second loop, var2 represents the first partial sum and so needs
4055         to go before rprivb[ivar].
4057 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
4059         * config/rs6000/rs6000-logue.c: Remove unused code.
4061 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
4063         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
4065 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
4067         PR target/90712
4068         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
4069         check with a frame laid out check.
4071 2019-07-05  Richard Biener  <rguenther@suse.de>
4073         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
4074         when comparing against a store with possibly the same value.
4076 2019-07-05  Richard Biener  <rguenther@suse.de>
4078         PR tree-optimization/91091
4079         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
4080         (walk_non_aliased_vuses): Likewise.
4081         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
4082         (get_continuation_for_phi): New tbaa_p parameter and pass
4083         it down.
4084         (walk_non_aliased_vuses): Likewise.
4085         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
4086         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4087         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
4088         Likewise.
4089         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
4090         (adjust_offsets_for_equal_base_address): New function.
4091         (vn_reference_lookup_3): Use it to catch more base equivalences.
4092         Handle and pass down tbaa_p flag.
4093         (vn_reference_lookup_pieces): Adjust.
4094         (vn_reference_lookup): Remove alias-set altering, instead pass
4095         down false as tbaa_p.
4097 2019-07-05  Richard Biener  <rguenther@suse.de>
4099         PR tree-optimization/91091
4100         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
4101         accesses can happen with -fno-strict-aliasing.
4103 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
4105         * tree-ssa-alias.c (alias_stats): Add
4106         nonoverlapping_component_refs_since_match_p_must_overlap.
4107         (dump_alias_stats): Print it.
4108         (nonoverlapping_component_refs_since_match_p): Add early exit.
4109         (nonoverlapping_component_refs_p): Do not account early exit.
4111 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
4113         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
4114         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
4115         (emit_eh_dispatch): Delete.
4116         (lower_catch): Emit the eh_dispatch manually and set the location of
4117         the first catch statement onto it.
4118         (lower_eh_filter): Emit the eh_dispatch manually and set location.
4119         (lower_eh_dispatch): Propagate location.
4120         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
4121         (eliminate_build): Likewise.
4123 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
4125         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
4126         phi nodes if possible.
4127         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
4128         location info on the newly created statement.
4129         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
4130         newly created increment if needed.
4132 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4134         PR middle-end/78884
4135         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
4136         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
4137         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
4138         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
4139         ctx->add_safelen1 is set.
4141         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
4142         GOMP_loop_start at the start of second worksharing loop in a scan.
4143         For nowait, don't emit GOMP_loop_end_nowait at the end of first
4144         worksharing loop in a scan even if there are conditional lastprivates,
4145         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
4147 2019-07-04  Jan Hubicka  <jh@suse.cz>
4149         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
4150         Fix check for match in the ref walk.
4152 2019-07-04  Martin Liska  <mliska@suse.cz>
4154         * tree-ssa-loop-niter.c
4155         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
4156         (estimate_numbers_of_iterations):
4157         Support __builtin_expect_with_probability for analysis
4158         of # of loop iterations.
4160 2019-07-04  Alexandre Oliva <oliva@adacore.com>
4162         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
4163         * except.c: Likewise.
4164         * expr.c (expand_expr_real_1): Reject it.
4165         * gimplify.c (gimplify_expr): Gimplify it, within
4166         TRY_FINALLY_EXPR.
4167         * tree-dump.c (dequeue_and_dump): Dump it.
4168         * tree-pretty-print.c (dump_generic_node): Likewise.
4169         * tree.c (block_may_fallthru): Handle it.
4170         * tree.def (EH_ELSE_EXPR): Introduce it.
4171         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
4172         with GIMPLE_EH_ELSE as try/finally/else.
4174 2019-07-04  Richard Biener  <rguenther@suse.de>
4176         PR ipa/91062
4177         * tree-pass.h (execute_all_ipa_transforms): Add a flag
4178         parameter whether to disable GC collection.
4179         * passes.c (execute_one_ipa_transform_pass): Likewise, and
4180         honor it.
4181         (execute_all_ipa_transforms): Likewise and pass it down.
4182         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
4183         collection from applying IPA transforms.
4184         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
4185         from applying IPA transforms.
4187 2019-07-04  Richard Biener  <rguenther@suse.de>
4189         PR tree-optimization/90911
4190         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
4191         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
4192         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4193         scalar_loop_scaling.
4194         (vect_transform_loop): Scale scalar loop profile if needed.
4195         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
4196         the loop copy from if-conversion adjust edge probabilities
4197         and scale the vectorized loop body profile, queue the scalar
4198         profile for updating after peeling.
4200 2019-07-04  Jan Hubicka  <jh@suse.cz>
4202         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
4203         parameters; return early for must-alias.
4204         (indirect_ref_may_alias_decl_p): Likewise; when establishing
4205         outer types match, try nonoverlapping_component_refs
4206         if must-alias is not obvious.
4207         (indirect_refs_may_alias_p): Likewise.
4208         (refs_may_alias_p_2): Likewise.
4210 2019-07-04  Richard Biener  <rguenther@suse.de>
4212         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
4213         argument.
4214         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
4215         globals into...
4216         (struct vn_walk_cb_data): New callback data struct.
4217         (vn_reference_lookup_2): Adjust.
4218         (vn_reference_lookup_3): Likewise.
4219         (vn_reference_lookup_pieces): Likewise.
4220         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
4221         (visit_reference_op_load): Adjust.
4223 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4225         PR tree-optimization/91063
4226         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
4227         stmt from stmts sequence before calling vect_init_vector_1.
4228         Formatting fix.
4230 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4232         PR target/88833
4233         * fwprop.c (reg_single_def_p): New function.
4234         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
4235         (forward_propagate_into): New parameter reg_prop_only
4236         with default value false.
4237         Propagate def's src into loop only if SET_SRC and SET_DEST
4238         of def_set have single definitions.
4239         Likewise if reg_prop_only is set to true.
4240         (fwprop): New param fwprop_addr_p.
4241         Integrate fwprop_addr into fwprop.
4242         (fwprop_addr): Remove.
4243         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
4244         to true.
4245         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
4246         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
4247         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
4249 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4251         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
4252         in worksharing loop scans.
4254         PR tree-optimization/91074
4255         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
4256         temporary.
4258         PR rtl-optimization/90756
4259         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
4260         for VECTOR_TYPE_P.
4262 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
4264         * config/aarch64/aarch64.md: Remove redundant constraints from
4265         define_expand but keep some patterns untouched if they are
4266         specially selected by TARGET_SECONDARY_RELOAD hook.
4267         * config/aarch64/aarch64-sve.md: Likewise.
4268         * config/aarch64/atomics.md: Remove redundant constraints from
4269         define_expand.
4270         * config/aarch64/aarch64-simd.md: Likewise.
4272 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
4274         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
4275         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
4276         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
4277         clauses.
4278         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
4279         DARWIN_NOPIE_SPEC.
4281 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
4283         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
4284         (STARTFILE_SPEC): Split crt3 into a separate spec.
4285         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
4286         (DARWIN_CRT2_SPEC): New.
4287         (DARWIN_CRT3_SPEC): New.
4288         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
4289         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
4290         (DARWIN_CRT3_SPEC): New.
4292 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
4294         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
4295         Change the RTL attribute "length" from "4" to "*" to allow the
4296         length attribute to be adjusted automatically for prefixed load,
4297         store, and add immediate instructions.
4298         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
4299         Likewise.
4300         (extendsi<mode>2, EXTSI iterator): Likewise.
4301         (movsi_internal1): Likewise.
4302         (movsi_from_sf): Likewise.
4303         (movdi_from_sf_zero_ext): Likewise.
4304         (mov<mode>_internal): Likewise.
4305         (movcc_internal1, QHI iterator): Likewise.
4306         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
4307         (movsf_from_si): Likewise.
4308         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
4309         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
4310         (mov<mode>, FMOVE128 iterator): Likewise.
4311         (movdi_internal64): Likewise.
4312         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
4313         Likewise.
4314         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
4315         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
4316         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
4317         (vsx_splat_v4sf): Likewise.
4319 2019-07-03  Mark Wielaard  <mark@klomp.org>
4321         PR debug/90981
4322         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
4323         DW_AT_addr_base if there is actually a .debug_addr section with
4324         addresses.
4325         (output_addr_table): Add DWARF5 table header generation here after
4326         checking there are actually any addresses from...
4327         (dwarf2out_finish): ...here.
4328         * testsuite/g++.dg/pr90981.C: New test.
4330 2019-07-03  Richard Biener  <rguenther@suse.de>
4332         PR middle-end/91069
4333         * match.pd (vec_perm -> bit_insert): Fix element read from
4334         first vector.
4336 2019-07-03  Martin Liska  <mliska@suse.cz>
4338         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
4339         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
4340         condition.
4341         * generic-match-head.c: Include dbgcnt.h.
4342         * gimple-match-head.c: Likewise.
4344 2019-07-03  Martin Liska  <mliska@suse.cz>
4346         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
4347         (GCOV_COUNTER_V_TOPN): New.
4348         (GCOV_COUNTER_V_INDIR): Use _topn.
4349         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
4350         (GCOV_TOPN_VALUES): New.
4351         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
4352         (GCOV_TOPN_VALUES_COUNTERS): New.
4353         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
4354         * tree-profile.c:
4355         (gimple_init_gcov_profiler): Rename variables from one_value
4356         to topn_values.
4357         (gimple_gen_one_value_profiler): Remove.
4358         (gimple_gen_topn_values_profiler): New function.
4359         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
4360         names instead of SINGLE_VALUE.
4361         (stream_out_histogram_value): Likewise.
4362         (stream_in_histogram_value): Likewise.
4363         (get_most_common_single_value): Likewise.
4364         (gimple_divmod_fixed_value_transform): Likewise.
4365         (gimple_stringops_transform): Likewise.
4366         (gimple_divmod_values_to_profile): Likewise.
4367         (gimple_stringops_values_to_profile): Likewise.
4368         (gimple_find_values_to_profile): Likewise.
4369         * value-prof.h (enum hist_type): Rename to TOPN.
4370         (gimple_gen_one_value_profiler): Remove.
4371         (gimple_gen_topn_values_profiler): New.
4373 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4375         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
4376         if it has the DW_AT_data_member_location attribute.
4378 2019-07-03  Richard Biener  <rguenther@suse.de>
4380         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
4381         dumping.
4383 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
4385         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
4386         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
4387         (tlsdesc_small_sve_<mode>): Likewise.
4389 2019-07-03  Martin Liska  <mliska@suse.cz>
4391         * Makefile.in: Define ZSTD_LIB.
4392         * common.opt: Adjust compression level
4393         to support also zstd levels.
4394         * config.in: Regenerate.
4395         * configure: Likewise.
4396         * configure.ac: Add --with-zstd and --with-zstd-include options
4397         and detect ZSTD.
4398         * doc/install.texi: Mention zstd dependency.
4399         * gcc.c: Print supported LTO compression algorithms.
4400         * lto-compress.c (lto_normalized_zstd_level): Likewise.
4401         (lto_compression_zstd): Likewise.
4402         (lto_uncompression_zstd): Likewise.
4403         (lto_end_compression): Dispatch in between zlib and zstd.
4404         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
4405         (lto_uncompression_zlib): Make it static.
4406         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
4407         * lto-section-in.c (lto_get_section_data): Pass info
4408         about used compression.
4409         * lto-streamer-out.c: By default use zstd when possible.
4410         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
4411         (TV_IPA_LTO_COMPRESS): Likewise for compression.
4413 2019-07-03  Martin Liska  <mliska@suse.cz>
4415         * lto-section-in.c (lto_get_section_data): Add "lto" section.
4416         * lto-section-out.c (lto_destroy_simple_output_block): Never
4417         compress LTO_section_lto section.
4418         * lto-streamer-out.c (produce_asm): Do not set major_version
4419         and minor_version.
4420         (lto_output_toplevel_asms): Likewise.
4421         (produce_lto_section): New function.
4422         (lto_output): Call produce_lto_section.
4423         (lto_write_mode_table): Do not set major_version and
4424         minor_version.
4425         (produce_asm_for_decls): Likewise.
4426         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
4427         type.
4428         (struct lto_header): Remove.
4429         (struct lto_section): New struct.
4430         (struct lto_simple_header): Do not inherit from lto_header.
4431         (struct lto_file_decl_data): Add lto_section_header field.
4433 2019-07-03  Martin Liska  <mliska@suse.cz>
4435         * lra-eliminations.c (eliminate_regs_in_insn): Remove
4436         dead assignemts.
4437         * reg-stack.c (check_asm_stack_operands): Likewise.
4438         * tree-ssa-structalias.c (create_function_info_for): Likewise.
4439         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4440         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
4441         force_expand_binop.
4443 2019-07-03  Martin Liska  <mliska@suse.cz>
4445         PR tree-optimization/90892
4446         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
4447         in string constants.
4449 2019-07-03  Martin Liska  <mliska@suse.cz>
4451         PR middle-end/90899
4452         * multiple_target.c (create_dispatcher_calls): Add to comdat
4453         group only if set for ifunc.
4455 2019-07-03  Martin Liska  <mliska@suse.cz>
4457         PR target/88056
4458         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4459         Define local_object_name in outer scope in order to handle
4460         use-after-scope issue.
4462 2019-07-03  Martin Liska  <mliska@suse.cz>
4464         * common.opt: Add fprofile-note.
4465         * coverage.c (coverage_init): Append the option
4466         to bbg_file_name.
4467         * doc/invoke.texi: Document -fprofile-note.
4469 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4471         PR tree-optimization/91033
4472         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
4473         vect_analyze_data_refs): Add bool * arguments.
4474         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
4475         if failure is due to scatter/gather, set *fatal to false if non-NULL.
4476         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4477         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
4478         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
4479         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
4480         vect_analyze_data_refs caller.
4482         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
4483         clause.
4484         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
4485         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
4486         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
4487         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4488         OMP_CLAUSE__SCANTEMP_ entry.
4489         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
4490         * tree-pretty-print.c (dump_omp_clause): Likewise.
4491         * tree-nested.c (convert_nonlocal_omp_clauses,
4492         convert_local_omp_clauses): Likewise.
4493         * omp-general.h (struct omp_for_data): Add have_scantemp and
4494         have_nonctrl_scantemp members.
4495         * omp-general.c (omp_extract_for_data): Initialize them.
4496         * omp-low.c (struct omp_context): Add scan_exclusive member.
4497         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
4498         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
4499         ctx->scan_exclusive.
4500         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
4501         of !ctx->scan_inclusive.
4502         (lower_rec_input_clauses): Simplify gimplification of dtors using
4503         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
4504         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
4505         loops.  Don't add barrier for reduction_omp_orig_ref if
4506         ctx->scan_??xclusive.
4507         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
4508         (lower_omp_scan): Use ctx->scan_exclusive instead
4509         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
4510         reductions.  Use new_vard != new_var instead of repeated
4511         omp_is_reference calls.
4512         (omp_find_scan, lower_omp_for_scan): New functions.
4513         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
4514         inscan reductions.
4515         * omp-expand.c (expand_omp_scantemp_alloc): New function.
4516         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
4517         and fd->have_scantemp.
4519         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
4520         on worksharing loop propagate it as shared clause to containing
4521         combined parallel.
4523         * omp-expand.c (expand_omp_for_static_nochunk,
4524         expand_omp_for_static_chunk): For nowait worksharing loop with
4525         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
4526         at the end.
4528 2019-07-02  Joern Rennecke  <joern.rennecke@riscy-ip.com>
4530         PR testsuite/91065
4531         * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
4532         to reference fake_var.
4534 2019-07-02  qing zhao  <qing.zhao@oracle.com>
4536         PR preprocessor/90581
4537         * doc/cppopts.texi: Add document for -fmax-include-depth.
4538         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
4540 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
4542         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
4543         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
4544         (mmx_packssdw): Ditto.
4545         (mmx_punpckhbw): Ditto.
4546         (mmx_punpcklbw): Ditto.
4547         (mmx_punpckhwd): Ditto.
4548         (mmx_punpcklwd): Ditto.
4549         (mmx_punpckhdq): Ditto.
4550         (mmx_punpckldq): Ditto.
4551         (*vec_dupv4hi): Ditto.
4552         (*vec_dupv2si): Ditto.
4553         (mmx_pmovmskb): Ditto.
4554         * config/i386/sse.md (sse_cvtpi2ps): Use
4555         TARGET_SSE2 && SSE_REG_P in split condition.
4556         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
4557         TARGET_SSSE3 && SSE_REGNO_P in split condition.
4558         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
4559         (ssse3_pshufbv8qi3): Ditto.
4560         (ssse3_palignrdi): Ditto.
4562 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
4564         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
4565         with inlined save and restore.
4567 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4569         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
4570         to be inserted on single successor edge of the entry block.  Then call
4571         commit_edge_insertions instead of inserting the instructions manually.
4572         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
4573         RTL expansion and rebuild jump labels chain.
4575 2019-07-02  Richard Biener  <rguenther@suse.de>
4577         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
4578         TI_CHREC_KNOWN.
4579         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4580         Define here.
4581         * tree.c (build_common_tree_nodes): Initialize them.
4582         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4583         Make declarations comments.
4584         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
4585         chrec_known): Remove definitions.
4586         (initialize_scalar_evolutions_analyzer): Remove.
4587         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
4588         * tree-streamer.c (preload_common_nodes): Do not preload
4589         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
4591 2019-07-02  Jan Hubicka  <jh@suse.cz>
4593         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
4594         sanity check.
4596 2019-07-02  Jan Hubicka  <jh@suse.cz>
4598         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
4599         to ..
4600         (nonoverlapping_component_refs_since_match_p): ... this one;
4601         handle also non-decl bases; return -1 if search gave up.
4602         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
4603         nonoverlapping_component_refs_of_decl_p_no_alias to
4604         nonoverlapping_component_refs_since_match_p_may_alias,
4605         nonoverlapping_component_refs_since_match_p_no_alias.
4606         (dump_alias_stats): Update dumping.
4607         (aliasing_matching_component_refs_p):  Break out from ...;
4608         dispatch to nonoverlapping_component_refs_for_decl_p
4609         and nonoverlapping_component_refs_since_match_p.
4610         (aliasing_component_refs_p): ... here; call
4611         nonoverlapping_component_refs_p in scenarios where we can not
4612         precisely determine base match.
4613         (decl_refs_may_alias_p): Use
4614         nonoverlapping_component_refs_since_match_p.
4615         (indirect_ref_may_alias_decl_p): Do not call
4616         nonoverlapping_component_refs_p.
4617         (indirect_refs_may_alias_p): Likewise.
4619 2019-07-02  Jan Hubicka  <jh@suse.cz>
4621         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
4622         to clobber of return value.
4624 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4626         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
4627         for is_neon_type instructions that have not already been categorized.
4629 2019-07-02  Richard Biener  <rguenther@suse.de>
4631         PR tree-optimization/58483
4632         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
4633         for MEM_REF base hashing.
4634         (equal_mem_array_ref_p): Likewise for base comparison.
4636 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4638         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
4639         parameterized name.
4640         (signbit<mode>2): Use that name.  Simplify.
4642 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
4644         PR middle-end/66726
4645         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
4646         Tune heuristic from PR71016 to allow MIN / MAX.
4647         * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
4649 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4651         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
4652         parameterized name.
4653         (abs<mode>2): Use that name.  Simplify.
4655 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4657         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
4658         parameterized name.
4659         (neg<mode>2): Use that name.  Simplify.
4661 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4663         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
4664         name.
4665         (abs<mode>2): Use that name.  Simplify.
4667 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4669         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
4670         name.
4671         (neg<mode>2): Use that name.  Simplify.
4673 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
4675         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
4676         ("enabled" attribute): Handle sse_noavx isa attribute.
4677         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
4678         Use TARGET_SSE && SSE_REGNO_P in split condition.
4679         (*vec_dupv2sf): Ditto.
4681 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4683         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4684         name.
4685         (floatsi<mode>2): Use that name.  Simplify.
4687 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4689         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4690         parameterized name.
4691         (extenddf<mode>2_vsx): Make this a parameterized name.
4692         (extenddf<mode>2): Use those names.  Simplify.
4694 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4696         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4697         name.
4698         (eh_return): Use that name.  Simplify.
4700 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4702         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4703         (doloop_end): Use that name.  Simplify.
4705 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4707         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4708         parameterized name.
4709         (indirect_jump): Use that name.  Simplify.
4711 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4713         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4714         parameterized name.
4715         (abs<mode>2): Use that name.  Simplify.
4717 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4719         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4720         parameterized name.
4721         (fix_trunc<mode>si2): Use that name.  Simplify.
4723 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4725         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4726         (allocate_stack): Use that name.  Simplify.
4728 2019-07-01  Martin Sebor  <msebor@redhat.com>
4730         PR middle-end/90923
4731         * hash-map.h (hash_map::put): On insertion invoke element ctor.
4732         (hash_map::get_or_insert): Same.  Reformat comment.
4733         * hash-set.h (hash_set::add): On insertion invoke element ctor.
4734         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4735         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4736         * hash-table.h (hash_table::operator=): Prevent copy assignment.
4737          (hash_table::hash_table (const hash_table&)): Use copy ctor
4738          instead of assignment to copy elements.
4740 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
4741             John David Anglin  <danglin@gcc.gnu.org>
4743         PR target/90963
4744         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4745         using saved frame pointer.
4747 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4749         PR middle-end/64242
4750         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4751         Add frame clobber and schedule blockage.
4753 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
4755         * doc/invoke.texi (Link Options): Further editorial changes to
4756         -flinker-output docs.
4758 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
4760         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4761         Load both operands of a PLUS into registers separately.
4763 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
4765         * config/s390/vector.md: Fix shift count operand printing.
4767 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4769         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4771 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4773         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4774         Use recog_data to test for an output operand.
4776 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4778         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4779         exclude any others that are disparaged or that are bound to need
4780         a reload or spill.
4781         (ira_get_dup_out_num): Expand comment.
4783 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4785         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4786         constraint string for each operand/alternative combo.  Only handle
4787         '%' at the start of constraint strings, and look for it outside
4788         the main loop.
4790 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4792         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4793         alternative_mask instead of HARD_REG_SET to represent a
4794         bitmask of alternatives.
4795         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4796         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4798 2019-07-01  Martin Liska  <mliska@suse.cz>
4800         * edit-context.c (test_applying_fixits_unreadable_file): Do not
4801         use () for a constructor call.
4802         (test_applying_fixits_line_out_of_range): Likewise.
4803         * ggc-page.c (alloc_page): Use (void *) for %p printf format
4804         argument.
4805         (free_page): Likewise.
4807 2019-07-01  Vladislav Ivanishin <vlad@ispras.ru>
4809         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4810         parameter names to match usage (no functional change).
4811         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4813 2019-07-01  Richard Biener  <rguenther@suse.de>
4815         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4816         pass parameter.
4817         (pass_fre::execute): Honor it.
4818         * passes.def: Adjust pass_fre invocations to allow iterating,
4819         add non-iterating pass_fre before late threading/dom.
4821 2019-07-01  Richard Biener  <rguenther@suse.de>
4823         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4824         TARGET_MEM_REF handling to also handle address-taken ones.
4826 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
4828         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4829         hardware attributes): Document avx512vp2intersect.
4831 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
4833         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4834         (abs<mode>2): New expander.
4835         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4836         Use CODE_FOR_ssse3_absv8qi2.
4837         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4838         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4840 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
4842         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4843         to sse, sse_noavx and avx.  Update all uses.
4845 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
4847         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4848         (*mmx_<plusminus_insn><mode>3): Ditto.
4849         (*mmx_mulv4hi3"): Ditto.
4850         (*mmx_smulv4hi3_highpart): Ditto.
4851         (*mmx_umulv4hi3_highpart): Ditto.
4852         (*mmx_pmaddwd): Ditto.
4853         (*sse2_umulv1siv1di3): Ditto.
4854         (*mmx_<code>v4hi3): Ditto.
4855         (*mmx_<code>v8qi3): Ditto.
4856         (mmx_ashr<mode>3): Ditto.
4857         ("mmx_<shift_insn><mode>3): Ditto.
4858         (*mmx_eq<mode>3): Ditto.
4859         (mmx_gt<mode>3): Ditto.
4860         (mmx_andnot<mode>3): Ditto.
4861         (*mmx_<code><mode>3): Ditto.
4862         (*mmx_pinsrw): Ditto.
4863         (*mmx_pextrw): Ditto.
4864         (mmx_pshufw_1): Ditto.
4865         (*mmx_uavgv8qi3): Ditto.
4866         (*mmx_uavgv4hi3): Ditto.
4867         ("mmx_psadbw): Ditto.
4868         * config/i386/sse.md (sse_cvtps2pi): Ditto.
4869         (sse_cvttps2pi): Ditto.
4870         (ssse3_pmaddubsw): Ditto.
4871         (*ssse3_pmulhrswv4hi3): Ditto.
4872         (ssse3_psign<mode>3): Ditto.
4874 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
4876         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
4877         adjustment for bit-fields to all aggregate types.
4879 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
4881         * config/rs6000/predicates.md (pcrel_address):  Use
4882         SYMBOL_REF_LOCAL_P to determine if a label is local.
4883         (pcrel_external_address): New predicate.
4884         (non_prefixed_mem_operand): Delete, predicate not used.
4885         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
4886         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
4887         addressing.
4888         (SYMBOL_REF_PCREL_P): Likewise.
4890         PR target/91009
4891         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
4892         alternative.
4893         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
4894         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
4895         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
4897 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
4899         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
4900         override on extra_headers.
4902 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
4904         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
4905         * config/darwin-driver.c (darwin_default_min_version): Remove newline
4906         from warning.
4907         (darwin_driver_init): Likewise.
4909 2019-06-28  Jan Beulich  <jbeulich@suse.com>
4911         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4912         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
4913         Eliminate redundant alternative.
4915 2019-06-28  Jan Beulich  <jbeulich@suse.com>
4917         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4918         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
4919         Use vector_operand.
4921 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
4923         * config/arc/arc.c (arc_rtx_costs): All short instructions are
4924         having a lower cost regardless of the speed option.
4926 2019-06-28  Jan Beulich  <jbeulich@suse.com>
4928         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
4929         vector_operand plus, on both alternatives, "Bm" constraint.
4931 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
4933         * config/arm/arm.md: Remove redundant constraints from
4934         define_expand but leave reload_inm and reload_outm patterns
4935         untouched since they need special constraints to work.
4936         * config/arm/arm-fixed.md: Remove redundant constraints from
4937         define_expand.
4938         * config/arm/iwmmxt.md: Likewise.
4939         * config/arm/neon.md: Likewise.
4940         * config/arm/sync.md: Likewise.
4941         * config/arm/thumb1.md: Likewise.
4942         * config/arm/vec-common.md: Likewise.
4944 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
4946         * doc/install.texi: Document --disable-tm-clone-registry.
4948 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
4950         PR c++/91024
4951         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
4952         statements.
4954         PR tree-optimization/91010
4955         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
4956         return true.  Otherwise, don't call operand_equal_p if offset1 or
4957         offset2 is NULL and just return false.
4959 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
4961         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
4962         user-specified float mode choice for kernel mode code.
4964 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
4966         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
4967         spec.
4969 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
4971         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
4972         use longcall for 64b code.
4974 2019-06-27  Aaron Sawdey <acsawdey@linux.ibm.com>
4976         * builtins.c (get_memory_rtx): Fix comment.
4977         * optabs.def (movmem_optab): Change to cpymem_optab.
4978         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
4979         (emit_block_move_hints): Change movmem to cpymem.
4980         * defaults.h: Change movmem to cpymem.
4981         * targhooks.c (get_move_ratio): Change movmem to cpymem.
4982         (default_use_by_pieces_infrastructure_p): Ditto.
4983         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
4984         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
4985         to cpymem.
4986         * config/aarch64/aarch64.h: Change movmem to cpymem.
4987         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
4988         * config/alpha/alpha.h: Change movmem to cpymem in comment.
4989         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
4990         movmem to cpymem.
4991         * config/arc/arc-protos.h: Change movmem to cpymem.
4992         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
4993         * config/arc/arc.h: Change movmem to cpymem in comment.
4994         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
4995         * config/arm/arm-protos.h: Change movmem to cpymem in names.
4996         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
4997         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
4998         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
4999         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
5000         * config/avr/avr-protos.h: Change movmem to cpymem.
5001         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
5002         avr_out_movmem): Change movmem to cpymem.
5003         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
5004         Change movmem to cpymem.
5005         * config/bfin/bfin-protos.h: Change movmem to cpymem.
5006         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
5007         Change movmem to cpymem.
5008         * config/bfin/bfin.h: Change movmem to cpymem in comment.
5009         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
5010         * config/c6x/c6x-protos.h: Change movmem to cpymem.
5011         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
5012         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
5013         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
5014         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
5015         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
5016         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
5017         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
5018         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
5019         expand_small_cpymem_or_setmem,
5020         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
5021         expand_set_or_cpymem_constant_prologue,
5022         ix86_expand_set_or_cpymem): Change movmem to cpymem.
5023         * config/i386/i386-protos.h: Change movmem to cpymem.
5024         * config/i386/i386.h: Change movmem to cpymem in comment.
5025         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
5026         (setmem<mode>): Change expansion function name.
5027         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
5028         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
5029         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
5030         * config/m32c/m32c-protos.h: Change movmem to cpymem.
5031         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
5032         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
5033         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
5034         to cpymem.
5035         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
5036         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
5037         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
5038         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
5039         Change movmem to cpymem.
5040         * config/mips/mips.h: Change movmem to cpymem.
5041         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
5042         * config/nds32/nds32-memory-manipulation.c
5043         (nds32_expand_movmemsi_loop_unknown_size,
5044         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
5045         nds32_expand_movmemsi_unroll,
5046         nds32_expand_movmemsi): Change movmem to cpymem.
5047         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
5048         * config/nds32/nds32-protos.h: Change movmem to cpymem.
5049         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
5050         (pa_adjust_insn_length): Change call to compute_movmem_length.
5051         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
5052         movmemdi, movmemdi_prereload,
5053         movmemdi_postreload): Change movmem to cpymem.
5054         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
5055         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
5056         * config/riscv/riscv.c: Change movmem to cpymem in comment.
5057         * config/riscv/riscv.h: Change movmem to cpymem.
5058         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
5059         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
5060         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
5061         movmem to cpymem.
5062         * config/s390/s390-protos.h: Change movmem to cpymem.
5063         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
5064         s390_expand_insv): Change movmem to cpymem.
5065         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
5066         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
5067         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
5068         * config/sparc/sparc.h: Change movmem to cpymem in comment.
5069         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
5070         for nonexistent function.
5071         * config/vax/vax.h: Change movmem to cpymem in comment.
5072         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
5073         * config/visium/visium.h: Change movmem to cpymem in comment.
5074         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
5075         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
5076         * doc/md.texi: Change movmem to cpymem and update description to match.
5077         * doc/rtl.texi: Change movmem to cpymem.
5078         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
5079         * doc/tm.texi: Regenerate.
5081 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
5083         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5084         -fvariable-expansion-in-unroller by default.
5085         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
5086         default for Power.
5088 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
5090         Revert
5091         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
5092         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
5094         * config.gcc(rs6000-*-*): Define target_gtfiles.
5096 2019-06-27  Jan Hubicka  <jh@suse.cz>
5098         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
5099         (add_type_duplicate): When odr hash is not allocated, to nothing.
5100         (odr_based_tbaa_p): New function.
5101         (set_type_canonical_for_odr_type): New function.
5102         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
5103         set_type_canonical_for_odr_type): New.
5104         * tree.c (gimple_canonical_types_compatible_p): ODR types with
5105         ODR based TBAA are not equivalent to non-ODR types.
5107 2019-06-27  Martin Liska  <mliska@suse.cz>
5109         PR tree-optimization/90974
5110         PR rtl-optimization/90975
5111         PR rtl-optimization/90976
5112         PR target/91016
5113         PR tree-optimization/91017
5114         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
5115         unused tmp.
5116         * lra.c (lra_set_insn_recog_data): Remove a leftover from
5117         initial commit of IRA.
5118         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
5119         of op0 and op1.
5120         * tree-vect-loop.c (vect_create_epilog_for_reduction):
5121         Remove unused mode1.
5122         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
5123         to new_stmt_info.
5125 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
5127         PR target/90991
5128         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
5129         instead of register_operand for operands[1], add m to its constraints
5130         if operands[2] uses "C" constraint.  Ensure in condition that if
5131         operands[2] is not 0, then operands[1] is not a MEM.  For last two
5132         alternatives, use unaligned loads instead of aligned if operands[1] is
5133         misaligned_operand.
5135 2019-06-27  Martin Liska  <mliska@suse.cz>
5137         * asan.c (asan_emit_allocas_unpoison): Remove obviously
5138         dead assignments.
5139         * bt-load.c (move_btr_def): Likewise.
5140         * builtins.c (expand_builtin_apply_args_1): Likewise.
5141         (expand_builtin_apply): Likewise.
5142         * cfgexpand.c (expand_asm_stmt): Likewise.
5143         (construct_init_block): Likewise.
5144         * cfghooks.c (verify_flow_info): Likewise.
5145         * cfgloopmanip.c (remove_path): Likewise.
5146         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
5147         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
5148         * combine.c (simplify_if_then_else): Likewise.
5149         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5150         (choose_basereg): Likewise.
5151         (ix86_expand_prologue): Likewise.
5152         (ix86_preferred_output_reload_class): Likewise.
5153         * cselib.c (cselib_record_sets): Likewise.
5154         * df-scan.c (df_scan_alloc): Likewise.
5155         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
5156         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
5157         * emit-rtl.c (try_split): Likewise.
5158         * graphite-scop-detection.c (assign_parameter_index_in_region):
5159         Likewise.
5160         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
5161         * ira-color.c (setup_profitable_hard_regs): Likewise.
5162         * ira.c (rtx_moveable_p): Likewise.
5163         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5164         * read-rtl.c (read_subst_mapping): Likewise.
5165         * regrename.c (scan_rtx): Likewise.
5166         * reorg.c (fill_slots_from_thread): Likewise.
5167         * tree-inline.c (tree_function_versioning): Likewise.
5168         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
5169         * tree-ssa-sink.c (statement_sink_location): Likewise.
5170         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5171         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
5172         (vect_create_epilog_for_reduction): Likewise.
5173         * tree.c (build_nonstandard_integer_type): Likewise.
5175 2019-06-27  Richard Biener  <rguenther@suse.de>
5177         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
5179 2019-06-27  Jun Ma <JunMa@linux.alibaba.com>
5181         PR tree-optimization/89772
5182         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
5183         out-of-bound accesses checking.
5185 2019-06-27  Martin Liska  <mliska@suse.cz>
5187         PR tree-optimization/91014
5188         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
5189         when LHS is NULL_TREE.
5191 2019-06-27  Martin Liska  <mliska@suse.cz>
5193         * symbol-summary.h (traverse): Pass
5194         argument a to the call of callback.
5195         (gt_ggc_mx): Mark arguments as unused.
5196         (gt_pch_nx): Likewise.
5198 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
5200         PR target/62147
5201         * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
5202         finiteness.
5204 2019-06-26  Jeff Law  <law@redhat.com>
5206         PR tree-optimization/90883
5207         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
5208         (delete_dead_or_redundant_assignment): Likewise.
5210         PR tree-optimization/90883
5211         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
5212         * tree-ssa-dse.c: Update various comments to distinguish between
5213         dead and redundant stores.
5214         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
5215         (dse_optimize_redundant_stores): New function.
5216         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
5217         Distinguish between dead and redundant calls in dump output.  All
5218         callers updated.
5219         (delete_dead_or_redundant_assignment): Similarly for assignments.
5220         (dse_optimize_stmt): Handle _CHK variants.  For statements which
5221         store 0 into multiple memory locations, try to prove a subsequent
5222         store is redundant.
5224 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
5226         PR target/89021
5227         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
5228         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
5230 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
5232         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
5233         (branch_islands): New extern.
5234         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
5235         * config/rs6000/rs6000.c: .. here.
5237 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
5239         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
5240         (powerpc*-*-*) ... to here.
5242 2019-06-26  Jeff Law  <law@redhat.com>
5244         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
5245         memcpy, memmove and memset builtins.
5246         (maybe_trim_memstar_call): Likewise.
5248 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
5250         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
5252 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
5254         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
5256 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
5258         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
5259         declaration.
5260         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
5261         "static".
5262         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
5263         declaration.
5265 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
5267         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
5269 2019-06-26  Richard Biener  <rguenther@suse.de>
5271         PR ipa/90982
5272         * tree-inline.c (remap_ssa_name): Copy SSA range info.
5274 2019-06-26  Richard Biener  <rguenther@suse.de>
5276         * lto-streamer.h (lto_bitmap_alloc): Remove.
5277         (lto_bitmap_free): Likewise.
5278         * lto-streamer.c (lto_bitmap_alloc): Remove.
5279         (lto_bitmap_free): Likewise.
5280         (lto_obstack): Likewise.
5281         (lto_obstack_initialized): Likewise.
5282         * lto-streamer-out.c (lto_output): Use own obstack for local
5283         bitmap, free it consistently.
5285 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
5287         PR target/90991
5288         * config/i386/sse.md
5289         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
5290         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
5291         insns if operands[2] is misaligned_operand.
5293 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
5295         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
5296         TARGET_POWERPC64.
5297         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
5298         to GPR.
5300 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
5302         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
5304 2019-06-26  Martin Liska  <mliska@suse.cz>
5306         PR tree-optimization/90973
5307         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
5308         epilogue_cost_vec instead of prologue_cost_vec for
5309         a epilogue cost.
5311 2019-06-26  Martin Liska  <mliska@suse.cz>
5313         * bb-reorder.c (connect_better_edge_p): Add missing else
5314         statement in the middle of if-else statements.
5316 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
5317             H.J. Lu  <hongjiu.lu@intel.com>
5318             Olga Makhotina  <olga.makhotina@intel.com>
5320         * common/config/i386/i386-common.c
5321         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
5322         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
5323         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
5324         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
5325         (ix86_handle_option): Handle -mavx512vp2intersect.
5326         * config/i386/avx512vp2intersectintrin.h: New.
5327         * config/i386/avx512vp2intersectvlintrin.h: New.
5328         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
5329         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5330         AVX512VP2INTERSECT.
5331         * config/i386/i386-builtin-types.def: Add new types.
5332         * config/i386/i386-builtin.def: Add new builtins.
5333         * config/i386/i386-builtins.c: (enum processor_features): Add
5334         F_AVX512VP2INTERSECT.
5335         (static const _isa_names_table isa_names_table): Ditto.
5336         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5337         __AVX512VP2INTERSECT__.
5338         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
5339         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
5340         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
5341         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
5342         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
5343         * config/i386/i386-options.c (ix86_target_string): Add
5344         -mavx512vp2intersect.
5345         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
5346         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
5347         P2HImode and P2QImode.
5348         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
5349         number for P2QImode and P2HImode.
5350         (ix86_regmode_natural_size): New function.
5351         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
5352         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
5353         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
5354         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
5355         * config/i386/i386.opt: Add -mavx512vp2intersect.
5356         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
5357         avx512vp2intersectvlintrin.h.
5358         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
5359         (define_mode_iterator VI48_AVX512VP2VL): New.
5360         (avx512vp2intersect_2intersect<mode>,
5361         avx512vp2intersect_2intersectv16si): New define_insn patterns.
5362         * config.gcc: Add avx512vp2intersectvlintrin.h and
5363         avx512vp2intersectintrin.h to extra_headers.
5364         * doc/invoke.texi: Document -mavx512vp2intersect.
5366 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
5368         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
5370 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5372         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
5373         savres_routine_syms, savres_routine_name, morestack_ref,
5374         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5375         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5376         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5377         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5378         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5379         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5380         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5381         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5382         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5383         get_stack_clash_protection_probe_interval,
5384         get_stack_clash_protection_guard_size,
5385         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5386         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5387         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5388         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5389         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5390         gen_frame_mem_offset, rs6000_savres_routine_name,
5391         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5392         ptr_regno_for_savres, rs6000_emit_savres_rtx,
5393         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5394         rs6000_global_entry_point_prologue_needed_p,
5395         rs6000_get_separate_components, rs6000_components_for_bb,
5396         rs6000_disqualify_components, rs6000_emit_prologue_components,
5397         rs6000_emit_epilogue_components, rs6000_set_handled_components,
5398         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5399         rs6000_output_savres_externs, rs6000_output_function_prologue,
5400         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5401         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5402         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5403         rs6000_output_function_epilogue, gen_add3_const,
5404         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5405         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5406         to rs6000-logue.c.
5407         (machine_function): Moved to rs6000.h.
5408         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
5409         rs6000-internal.h.
5410         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
5411         savres_routine_syms, savres_routine_name, morestack_ref,
5412         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5413         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5414         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5415         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5416         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5417         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5418         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5419         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5420         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5421         get_stack_clash_protection_probe_interval,
5422         get_stack_clash_protection_guard_size,
5423         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5424         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5425         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5426         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5427         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5428         gen_frame_mem_offset, rs6000_savres_routine_name,
5429         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5430         ptr_regno_for_savres, rs6000_emit_savres_rtx,
5431         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5432         rs6000_global_entry_point_prologue_needed_p,
5433         rs6000_get_separate_components, rs6000_components_for_bb,
5434         rs6000_disqualify_components, rs6000_emit_prologue_components,
5435         rs6000_emit_epilogue_components, rs6000_set_handled_components,
5436         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5437         rs6000_output_savres_externs, rs6000_output_function_prologue,
5438         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5439         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5440         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5441         rs6000_output_function_epilogue, gen_add3_const,
5442         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5443         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5444         to here from rs6000.c.
5445         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
5446         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
5447         quad_address_offset_p) Moved to here from rs6000.c.
5448         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
5449         * config/config.gcc: Add new source file rs6000-logue.c to garbage
5450         collector.
5452 2019-06-25  Martin Liska  <mliska@suse.cz>
5454         * hash-table.c (hashtab_chk_error): Move here from ...
5455         * hash-table.h (hashtab_chk_error): ... here.
5457 2019-06-25  Martin Liska  <mliska@suse.cz>
5459         PR tree-optimization/90978
5460         * df-scan.c (df_update_entry_block_defs): Remove dead else
5461         branch.
5462         (df_update_exit_block_uses): Likewise.
5464 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5465             Andrew Stubbs  <ams@codesourcery.com>
5467         * config.gcc (thread_file): Set to gcn for AMD GCN.
5468         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
5469         (TARGET_EMUTLS_VAR_INIT): New hook.
5471 2019-06-25  Martin Jambor  <mjambor@suse.cz>
5473         PR ipa/90939
5474         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
5476 2019-06-25  Richard Biener  <rguenther@suse.de>
5478         PR tree-optimization/90930
5479         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
5480         into parallel form in the last pass instance.
5482 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
5484         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
5485         (arc_legitimize_pic_address): Simplify and cleanup the function.
5486         (SYMBOLIC_CONST): Remove.
5487         (prepare_pic_move): Likewise.
5488         (prepare_move_operands): Handle complex mov cases here.
5489         (arc_legitimize_address_0): Remove call to
5490         arc_legitimize_pic_address.
5491         (arc_legitimize_address): Remove call to
5492         arc_legitimize_tls_address.
5493         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
5494         (movhi_insn): Likewise.
5496 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5498         * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
5499         alternate "__intN__" name for "__intN" types.
5500         * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
5501         * gcc/cp/lex.c (init_reswords): Likewise.
5502         * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
5503         PTRDIFF_TYPE.
5504         * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
5505         * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
5506         C incompatibility if alternate "__intN__" form is used.
5507         * gcc/cp/decl.c (grokdeclarator): Likewise.
5508         * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
5509         decl_specs->int_n_alt if "__intN__" form is used.
5510         * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
5511         format of "__intN" types for UINTMAX_TYPE.
5512         * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
5513         format of "__intN" types for SIZE_TYPE.
5514         * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
5515         * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
5516         format of "__intN" types for SIZETYPE.
5517         * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
5518         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
5519         * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
5520         warnings.
5522 2019-06-25  Jan Hubicka  <jh@suse.cz>
5524         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
5525         base2_alias_set is non-zero before doing TBAA based disambiguation.
5527 2019-06-25  Martin Liska  <mliska@suse.cz>
5529         PR tree-optimization/90973
5530         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
5531         of prologue and epilogue.
5533 2019-06-24  Jan Hubicka  <jh@suse.cz>
5535         * ipa-utils.h (type_with_linkage_p): Verify that type is
5536         CXX_ODR_P.
5537         (odr_type_p): Remove extra return.
5538         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
5539         hash STRING_FLAG only for arrays and integers.
5540         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
5541         Update analogously.
5542         * tree-streamer-out.c (pack_ts_type_common_value_fields):
5543         Likewise.
5544         * print-tree.c (print_node): Print cxx-odr-p
5545         and string-flag.
5546         * tree.c (need_assembler_name_p): Also check that type
5547         is CXX_ODR_TYPE_P
5548         (verify_type_variant): Update verification of SRING_FLAG;
5549         also check CXX_ODR_P.
5550         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
5551         (TYPE_STRING_FLAG): Use it.
5552         (TYPE_CXX_ODR_P): New macro.
5553         * dwarf2out.c (gen_array_type_die): First check that type
5554         is an array and then test string flag.
5556 2019-06-24  Richard Biener  <rguenther@suse.de>
5558         PR tree-optimization/90972
5559         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
5560         in common code, dealing with STRING_CST properly.
5562 2019-06-24  Richard Biener  <rguenther@suse.de>
5564         PR tree-optimization/90930
5565         PR tree-optimization/90316
5566         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
5567         decrement of limit.
5569 2019-06-24  Martin Sebor  <msebor@redhat.com>
5571         * tree-pretty-print.h: Remove unnecessary punctuation characters
5572         from a diagnostic.
5573         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
5575 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
5577         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
5578         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
5579         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
5581 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
5583         * config/rs6000/darwin.h: Handle GCC target pragma.
5585 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
5587         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
5589 2019-06-22  Jeff Law  <law@redhat.com>
5591         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5593 2019-06-22  Jan Hubicka  <jh@suse.cz>
5595         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
5596         give up on bitfields; continue searching for different refs
5597         appearing later.
5599 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
5601         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5602         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
5603         containing the offset as possible simd lane access.  Look through
5604         widening conversion.  Move the
5605         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
5607 2019-06-21  Richard Biener  <rguenther@suse.de>
5609         PR tree-optimization/90930
5610         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
5611         flag on new stmts to avoid re-processing them.
5613 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
5615         PR c++/90875 - added -Wswitch-outside-range option
5616         * doc/invoke.texi (Wswitch-outside-range): Document.
5618 2019-06-21  Jeff Law  <law@redhat.com>
5620         PR tree-optimization/90949
5621         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
5622         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
5624 2019-06-21  Richard Biener  <rguenther@suse.de>
5626         PR debug/90914
5627         * dwarf2out.c (prune_unused_types_walk): Always consider
5628         function-local extern declarations as used.
5630 2019-06-21  Richard Biener  <rguenther@suse.de>
5632         PR tree-optimization/90913
5633         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
5634         the scalar variant of if-conversion versioning.
5636 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
5638         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
5639         create another "omp scan inscan exclusive" array if
5640         !ctx->scan_inclusive.
5641         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
5642         (lower_omp_scan): Likewise.
5643         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
5644         2-bit bitfield for simd_lane_access_p member.
5645         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
5646         aux == (void *)-4 as simd lane access.
5647         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
5648         comment with permutations to show the canonical permutation order.
5649         (vectorizable_scan_store): Handle exclusive scan.
5650         (vectorizable_store): Call vectorizable_scan_store even for
5651         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
5653         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5654         "omp simd array" arrays with one byte elements.
5656 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
5658         * config/alpha/alpha.md (@unaligned_store<mode>):
5659         Rename from unaligned_store<mode>.
5660         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
5661         * config/alpha/sync.md (@load_locked_<mode>): Rename
5662         from load_locked_<mode>.
5663         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
5664         (@atomic_compare_and_swap<mode>_1): Rename
5665         from atomic_compare_and_swap<mode>_1.
5666         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
5667         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
5668         Use gen_reload_in_aligned and gen_unaligned_store.
5669         (emit_load_locked): Remove.
5670         (emit_store_conditional): Ditto.
5671         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
5672         (alpha_split_compare_and_swap): Ditto.
5673         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
5674         (alpha_split_compare_and_swap_12): Use gen_load_locked
5675         and gen_store_conditional.
5676         (alpha_split_atomic_exchange): Ditto.
5677         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
5678         (alpha_split_atomic_exchange_12): Use gen_load_locked
5679         and gen_store_conditional.
5681 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
5683         * config/aarch64/aarch64-errata.h: New file.
5684         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5685         (CA53_ERR_843419_SPEC): Delete.
5686         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5687         * config/aarch64/aarch64-linux.h: Likewise.
5688         * config/aarch64/aarch64-netbsd.h: Likewise.
5689         * config/aarch64/aarch64-freebsd.h: Likewise.
5691 2019-06-20  Marek Polacek  <polacek@redhat.com>
5693         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5695 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
5697         * config/rs6000/rs6000.md (isa attribute): Add support for
5698         for a future processor.
5700 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
5702         PR target/54855
5703         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5704         standard scalar operation pattern for V2DF.
5705         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5706         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5707         (*ieee_<ieee_maxmin><mode>3): Likewise.
5708         (vec_setv2df_0): Likewise.
5710 2019-06-20  Jan Hubicka  <jh@suse.cz>
5712         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5713         parameter; it has no use in gimple memory model.
5714         (indirect_ref_may_alias_decl_p): Update.
5716 2019-06-20  Martin Liska  <mliska@suse.cz>
5718         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5719         to 10.
5721 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
5723         * tree-vect-stmts.c (enum scan_store_kind): New type.
5724         (scan_store_can_perm_p): Change last argument from int * to
5725         vec<enum scan_store_kind> *, record precisely which permutations
5726         need whole vector left shift or that plus VEC_COND_EXPR.
5727         (vectorizable_scan_store): Adjust caller, use whole vector left shift
5728         and additional VEC_COND_EXPR only for those iterations that need it.
5730 2019-06-20  Alexandre Oliva <oliva@adacore.com>
5732         * config.gcc: Fix ARM --with-fpu checking and error message.
5734 2019-06-19  Marek Polacek  <polacek@redhat.com>
5736         PR c++/60364 - noreturn after first decl not diagnosed.
5737         * attribs.c (get_attribute_namespace): No longer static.
5738         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
5739         attributes.
5740         (attr_noreturn_exclusions): Make it extern.
5741         * attribs.h (get_attribute_namespace): Declare.
5742         * tree-inline.c (function_attribute_inlinable_p): Use
5743         get_attribute_name.
5745 2019-06-19  Martin Sebor  <msebor@redhat.com>
5747         PR tree-optimization/90626
5748         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5750         PR tree-optimization/90626
5751         * tree-ssa-strlen.c (strxcmp_unequal): New function.
5752         (handle_builtin_string_cmp): Call it.
5754 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
5756         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5757         and DARWIN_NOPIE_SPEC.
5758         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5759         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5760         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5761         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5762         (DARWIN_EXPORT_DYNAMIC): Delete.
5763         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5764         and pie options processing to  darwin.h.
5765         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5767 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
5769         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5770         in computing the number of options to be moved.
5772 2019-06-19  Maya Rashish  <coypu@sdf.org>
5774         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5775         (CLEAR_INSN_CACHE) Use it.
5777 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
5779         * config/i386/i386.md (cmpstrnsi): Remove dead code.
5781 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
5783         PR middle-end/84521
5784         * builtins.c (expand_builtin_setjmp_setup): Save
5785         hard_frame_pointer_rtx.
5786         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5787         restore fp.
5788         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5789         non-local goto.
5790         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5791         elimination code.
5792         (remove_reg_equal_offset_note): Remove unused function.
5793         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5794         code.
5795         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5796         (arc_builtin_setjmp_frame_value): Remove function.
5797         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5798         (avr_builtin_setjmp_frame_value): Remove function.
5799         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5800         (ix86_builtin_setjmp_frame_value): Remove function.
5801         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5802         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5803         (sparc_builtin_setjmp_frame_value): Remove function.
5804         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5805         (vax_builtin_setjmp_frame_value): Remove function.
5806         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5807         pointer if has_nonlocal_label.
5809 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
5811         * doc/md.texi: Document vec_shl_<mode> pattern.
5812         * optabs.def (vec_shl_optab): New optab.
5813         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5814         argument, if == vec_shl_optab, check for left whole vector shift
5815         pattern rather than right shift.
5816         (expand_vec_perm_const): Add vec_shl_optab support.
5817         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5818         in the comment.
5819         * tree-vect-generic.c (lower_vec_perm): Support permutations which
5820         can be handled by vec_shl_optab.
5821         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5822         (check_scan_store): Use it.
5823         (vectorizable_scan_store): If target can't do normal permutations,
5824         try to use whole vector left shifts and if needed a VEC_COND_EXPR
5825         after it.
5826         * config/i386/sse.md (vec_shl_<mode>): New expander.
5828         * omp-low.c (lower_rec_input_clauses): Handle references properly
5829         in inscan clauses.
5830         (lower_omp_scan): Likewise.
5832 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5834         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5835         mem_mode is BLKmode.
5837 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
5839         PR target/90922
5840         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5841         pointer adjustment for the case of no callee-saved registers and
5842         stack frame bigger than 128 bytes.
5844 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
5846         PR middle-end/90862
5847         * omp-low.c (check_omp_nesting_restrictions): Handle
5848         GF_OMP_TARGET_KIND_OACC_DECLARE.
5850 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
5852         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5853         (@add<mode>3_carry): Rename from add<mode>3_carry.
5854         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5855         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5856         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5857         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5858         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5859         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5860         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5861         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5862         (cmpstrnsi): Use gen_cmp_1.
5863         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5864         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5865         (@umonitor_<mode>): Rename from umonitor_<mode>.
5866         * config/i386/i386-expand.c (ix86_expand_copysign):
5867         Use gen_copysign3_const and gen_copysign3_var.
5868         (ix86_expand_xorsign): Use gen_xorsign3_1.
5869         (ix86_expand_branch): Use gen_sub3_carry_ccc,
5870         gen_sub3_carry_ccgz and gen_cmp1.
5871         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5872         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5873         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5874         (ix86_split_lshr): Ditto.
5875         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
5877 2019-06-18  Jason Merrill  <jason@redhat.com>
5879         * tree.c (build_constructor): Add MEM_STAT_DECL.
5881 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5883         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
5884         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
5885         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
5886         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
5887         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
5888         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
5889         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
5890         Use CC_NZC instead of CC.
5891         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
5892         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
5893         (aarch64_print_operand): Handle E_CC_NZCmode.
5894         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
5895         of gen_set_clobber_cc.
5897 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5899         * config/aarch64/aarch64-sve.md: Tabify file.
5901 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5903         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
5904         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
5905         * config/aarch64/aarch64-sve.md: Use it.
5907 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5909         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
5910         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
5911         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
5912         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
5913         (aarch64_expand_sve_vec_cmp_int): Use it.
5914         (aarch64_expand_sve_vec_cmp_float): Likewise.
5915         * config/aarch64/aarch64-sve.md: Likewise throughout.
5917 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5918             Kugan Vivekanandarajah  <kuganv@linaro.org>
5920         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
5921         (*cond_<optab><mode>_z): Fold into...
5922         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
5923         operand 4 can be tied to operand 0 (either inherently or via RA).
5925 2019-06-18  Richard Biener  <rguenther@suse.de>
5927         PR debug/90900
5928         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
5929         as if optimized away.
5931 2019-06-18  Tom de Vries  <tdevries@suse.de>
5933         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
5934         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
5935         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
5936         Rename to ...
5937         (define_insn "@set_softstack_<mode>"): ... this.
5938         (define_insn "omp_simt_enter_<mode>"): Rename to ...
5939         (define_insn "@omp_simt_enter_<mode>"): ... this.
5940         (define_insn "omp_simt_exit_<mode>"): Rename to ...
5941         (define_insn "@omp_simt_exit_<mode>"): ... this.
5943 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
5945         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
5946         vf parameter.  Restore the previous iv step of nscalars_step,
5947         but give it iv_type rather than compare_type.  Tweak code order
5948         to match the comments.
5949         (vect_set_loop_condition_masked): Update accordingly.
5950         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
5951         for iv_precision.  Tweak comment formatting.
5953 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
5955         * config/darwin.c: Strip trailing whitespace.
5957 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
5959         * config/darwin.c (darwin_emit_unwind_label): New default to false.
5960         (darwin_override_options): Set darwin_emit_unwind_label as needed.
5962 2019-06-18  Martin Jambor  <mjambor@suse.cz>
5964         PR ipa/90889
5965         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
5966         caller does not have flag_ipa_cp set.
5968 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5970         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
5971         from "*fold_left_plus_<mode>", updated operands order.
5972         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
5973         * internal-fn.c (mask_fold_left_direct): New define.
5974         (expand_mask_fold_left_optab_fn): Likewise.
5975         (direct_mask_fold_left_optab_supported_p): Likewise.
5976         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
5977         * optabs.def (mask_fold_left_plus_optab): New optab.
5978         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
5979         masked internal_fn for a reduction ifn.
5980         (vectorize_fold_left_reduction): Add support for masking reductions.
5982 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
5984         PR middle-end/80791
5985         * target.def (predict_doloop_p): New hook.
5986         * targhooks.h (default_predict_doloop_p): New declaration.
5987         * targhooks.c (default_predict_doloop_p): New function.
5988         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
5989         * doc/tm.texi: Regenerate.
5990         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
5991         (TARGET_PREDICT_DOLOOP_P): New macro.
5992         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
5994 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
5996         * omp-low.c (struct omp_context): Add scan_inclusive field.
5997         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
5998         if inclusive scan.
5999         (struct omplow_simd_context): Add lastlane member.
6000         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
6001         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
6002         1 or 2 argument.
6003         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
6004         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
6005         (lower_omp_scan): New function.
6006         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
6007         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
6008         check 3rd argument if present rather than 2nd.
6009         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
6010         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
6011         2-bit bitfield.
6012         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6013         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
6014         than 2nd.
6015         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
6016         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
6017         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
6018         init.
6019         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
6020         IFN_GOMP_SIMD_LANE argument.
6021         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
6022         encoded ->aux value.
6023         * tree-vect-stmts.c: Include attribs.h.
6024         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
6025         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
6026         functions.
6027         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
6028         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
6030 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
6032         PR target/62055
6033         * config/i386/i386.md (*nabstf2_1): New insn pattern.
6034         (*nabs<mode>2_1): Ditto.
6035         (nabs sse-reg splitter): New splitter.
6036         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
6038 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
6040         PR bootstrap/90873.
6041         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6042         TMR index check.
6044 2019-06-17  Tom de Vries  <tdevries@suse.de>
6046         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
6047         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
6048         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
6049         ...
6050         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
6051         match_operand 0.
6052         (define_insn "omp_simt_enter_insn"): Rename to ...
6053         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
6054         match_operand 0, 1 and 2, as well as the unspec_volatile result.
6055         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
6056         gen_omp_simt_enter_si.
6057         (define_expand "omp_simt_exit"): New.
6058         (define_insn "omp_simt_exit"): Rename to ...
6059         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
6060         match_operand 0.
6062 2019-06-17  Matthew Green  <mrg@eterna.com.au>
6063             Maya Rashish  <coypu@sdf.org>
6065         * config.gcc (aarch64*-*-netbsd*): New target.
6066         * config/aarch64/aarch64-netbsd.h: New file.
6067         * config/aarch64/t-aarch64-netbsd: Likewise.
6069 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
6071         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
6072         the access path from base to first VIEW_CONVERT_EXPR or
6073         BIT_FIELD_REF.
6075 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
6077         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
6078         access path on BIT_FIELD_REFs.
6080 2019-06-17  Martin Liska  <mliska@suse.cz>
6082         PR ipa/90874
6083         * ipa-utils.h (odr_type_p): Remove dead code.
6085 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6087         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
6088         alternative Solaris 11.4 format.
6089         * configure: Regenerate.
6091 2019-06-17  Tom de Vries  <tdevries@suse.de>
6093         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
6094         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
6095         match_operand 0.
6096         (define_insn "call_value_insn"): Rename to ...
6097         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
6098         match_operand 0.
6099         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
6100         DI.
6102 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
6104         PR middle-end/64242
6105         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
6106         frame clobbers and schedule block.
6107         (builtin_longjmp): Likewise.
6109 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6111         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
6112         describe how to perform MSPABI compliant 64-bit shift.
6113         * config/msp430/msp430.md (ashldi3): New define_expand.
6114         (ashrdi3): New define_expand.
6115         (lshrdi3): New define_expand.
6117 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6119         * doc/sourcebuild.texi: Document new effective target keyword
6120         longlong64.
6122 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
6124         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
6125         indirect_refs_may_alias_p): Revert accidental commits.
6127         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
6128         at the end of structures.
6130 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
6132         * config/darwin.c (machopic_indirect_call_target): Use renamed
6133         darwin_picsymbol_stubs to decide on output.
6134         (darwin_override_options): Handle darwin_picsymbol_stubs.
6135         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
6136         (LD64_VERSION): Revise default.
6137         * config/darwin.opt: (mpic-symbol-stubs): New option.
6138         (darwin_picsymbol_stubs): New variable.
6139         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
6140         rename to TARGET_MACHO_PICSYM_STUBS.
6141         * config/i386/i386.c (output_pic_addr_const): Likewise.
6142         * config/i386/i386.h Likewise.
6143         * config/rs6000/darwin.h: Likewise.
6144         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
6145         darwin_picsymbol_stubs.
6147 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
6149         * config/darwin.opt (prebind, noprebind, seglinkedit,
6150         noseglinkedit): Add RejectNegative.
6152 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
6154         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
6155         in my previous patch.
6157 2019-06-16  Tom de Vries  <tdevries@suse.de>
6159         PR tree-optimization/89376
6160         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
6162 2019-06-15  Maya Rashish  <coypu@sdf.org>
6164         * doc/invoke.texi (Spec Files): Update location of the
6165         Fortran spec file.
6167 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
6169         * doc/extend.texi (Common Function Attributes): Clarify
6170         no_sanitize.  Fix grammar.
6172 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
6174         * tree-ssa-alias.c (alias_stats): Add
6175         nonoverlapping_component_refs_p_may_alias,
6176         nonoverlapping_component_refs_p_no_alias,
6177         nonoverlapping_component_refs_of_decl_p_may_alias,
6178         nonoverlapping_component_refs_of_decl_p_no_alias.
6179         (dump_alias_stats): Dump them.
6180         (nonoverlapping_component_refs_of_decl_p): Add stats.
6181         (nonoverlapping_component_refs_p): Add stats; do not stop on first
6182         ARRAY_REF.
6184 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
6186         * config/i386/i386.md (and<mode>3): Generate zero-extends for
6187         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
6188         only.
6189         (*anddi3_doubleword): Split before reload. Merge with
6190         anddi->zext pre-reload splitter.
6191         (*andndi3_doubleword): Split before reload.
6192         (*<code>di3_doubleword): Ditto.
6193         (*one_cmpldi2_doubleword): Ditto.
6195 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
6197         PR middle-end/90779
6198         * gimplify.c: Include omp-offload.h and context.h.
6199         (gimplify_bind_expr): Add "omp declare target" attributes
6200         to static block scope variables inside of target region or target
6201         functions.
6203 2019-06-15  Tom de Vries  <tdevries@suse.de>
6205         PR tree-optimization/90009
6206         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
6207         Return NULL if bb contains IFN_UNIQUE.
6209 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
6211         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
6212         (un): New define_mode_attr.
6213         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
6214         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
6215         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
6216         merge into ...
6217         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
6219 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
6221         * config/darwin.opt: Add RejectNegative where needed, reorder
6222         and add minimal functional descriptions.
6224 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6226         PR rtl-optimization/90765
6227         * calls.c (update_stack_alignment_for_call): New function.
6228         (expand_call): Call update_stack_alignment_for_call when
6229         outgoing parameter is passed in the stack.
6230         (emit_library_call_value_1): Likewise.
6231         * function.c (locate_and_pad_parm): Don't update
6232         stack_alignment_needed and preferred_stack_boundary.
6234 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6236         PR target/90877
6237         * config/i386/i386-features.c
6238         (dimode_scalar_chain::compute_convert_gain): Replace
6239         mmxsse_to_integer with sse_to_integer.
6240         * config/i386/i386.c (ix86_register_move_cost): Verify that
6241         moves between MMX and non-MMX units require secondary memory.
6242         Correct costs of moves between SSE and integer units.
6243         * config/i386/i386.h (processor_costs): Rename cost of moving
6244         SSE register to integer to sse_to_integer.  Rename cost of
6246 2019-06-14  Matt Thomas  <matt@3am-software.com>
6247             Matthew Green  <mrg@eterna.com.au>
6248             Nick Hudson  <skrll@netbsd.org>
6249             Maya Rashish  <coypu@sdf.org>
6250             Richard Earnshaw  <rearnsha@arm.com>
6252         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
6253         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
6254         * config/arm/netbsd-eabi.h: New file.
6255         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
6256         redefining.
6257         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
6258         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
6259         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
6260         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
6262 2019-06-14  Richard Biener  <rguenther@suse.de>
6264         * tree-loop-distribution.c (classify_partition): Return
6265         whether a reduction appeared in all partitions and do not
6266         stop builtin detection because of this.
6267         (distribute_loop): Sort a non-builtin partition last if
6268         there's a reduction in all partitions and make sure the
6269         partition prevailing as last is not a builtin.
6271 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
6273         PR ipa/90401
6274         * ipa-prop.c (add_to_agg_contents_list): New function.
6275         (clobber_by_agg_contents_list_p): Likewise.
6276         (extract_mem_content): Likewise.
6277         (get_place_in_agg_contents_list): Delete.
6278         (determine_known_aggregate_parts): Renamed from
6279         determine_locally_known_aggregate_parts.  New parameter
6280         aa_walk_budget_p.
6282 2019-06-13  Martin Sebor  <msebor@redhat.com>
6284         PR tree-optimization/90662
6285         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
6286         to the same type.
6288 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
6290         PR bootstrap/90873
6291         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
6292         dbase is not TARGET_MEM_REF.
6294 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
6296         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
6297         Update all uses.
6298         (and<mode>3): Use gen_extend_insn instead of indirect functions.
6299         Do not generate DImode extends for 32bit targets.
6300         (and->zext post-reload splitter): Use gen_extend_insn
6301         instead of indirect functions.
6302         (anddi->zext pre-reload splitter): New.
6303         (*zext<mode>_doubleword_and): Remove.
6304         (*zext<mode>_doubleword): Ditto.
6305         (*zextsi_doubleword): Dittto.
6307 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
6309         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
6310         Use gen_sub3_insn instead of indirect function.
6311         (ix86_expand_ashl_const): Use gen_add2_insn instead of
6312         indirect function.
6313         (ix86_adjust_counter): Ditto.
6315 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
6316             Lijia He  <helijia@linux.ibm.com>
6318         PR tree-optimization/77820
6319         * tree-ssa-threadedge.c
6320         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
6321         function.
6322         (thread_across_edge): Add call to
6323         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
6325 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
6327         * config/darwin-driver.c (validate_macosx_version_min): New.
6328         (darwin_default_min_version): Cleanup and validate supplied version.
6329         (darwin_driver_init): Likewise and push cleaned version into opts.
6331 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
6333         PR tree-optimization/90869
6334         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
6335         converts in MEM_REF referencing decl rather than view converts
6336         from decl type to MEM_REF type.
6338 2019-06-13  Richard Biener  <rguenther@suse.de>
6340         PR tree-optimization/90856
6341         * tree-sra.c (build_ref_for_model): Only use
6342         build_reconstructed_reference when address-spaces are the same.
6344 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
6346         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
6347         wrap ei variable name in the declaration in ()s.
6348         (nvptx_single): Actually use mode_label variable.  Formatting fix.
6350 2019-06-13  Richard Biener  <rguenther@suse.de>
6352         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
6353         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
6354         also return the condition stmt.
6355         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
6356         loop we can version and version that, reusing the loop version
6357         created by if-conversion instead of versioning again.
6359 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
6361         * gimple-loop-versioning.cc (prune_loop_conditions): Use
6362         may_contain_p.
6363         * tree-vrp (value_range_base::may_contain_p): Call into
6364         value_inside_range.
6365         (value_inside_range): Make private inside value_range_base class.
6366         Take min/max from *this.
6367         (range_includes_p): Remove.
6368         * tree-vrp.h (value_range_base): Add value_inside_range.
6369         (range_includes_p): Remove.
6370         (range_includes_zero_p): Call may_contain_p.
6371         * vr-values.c (compare_range_with_value): Same.
6373 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
6375         * doc/extend.texi (ARC Function Attributes): Update info.
6377 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
6379         PR tree-optimization/89713
6380         * doc/invoke.texi (-ffinite-loops): Document new option.
6381         * common.opt (-ffinite-loops): New option.
6382         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
6383         IFN_GOACC_LOOP calls as necessary.
6384         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
6385         is finite.
6386         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
6387         IFN_GOACC_LOOP call is not used.
6388         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
6390 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6392         PR target/88838
6393         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
6394         compare_type is not with Pmode size, we will create an IV with
6395         Pmode size with truncated use (i.e. converted to the correct type).
6396         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
6397         (vect_iv_limit_for_full_masking): New. Factored out of
6398         vect_set_loop_condition_masked.
6399         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
6400         (vect_iv_limit_for_full_masking): Declare.
6402 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6404         PR target/88834
6405         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
6406         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
6407         (get_alias_ptr_type_for_ptr_address): Likewise.
6408         (add_iv_candidate_for_use): Add scaled index candidate if useful.
6409         * tree-ssa-address.c (preferred_mem_scale_factor): New.
6410         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
6411         allow_reg_index_p.
6413 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6415         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
6417 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
6419         * common/config/pru/pru-common.c: New file.
6420         * config.gcc: Add PRU target.
6421         * config/pru/alu-zext.md: New file.
6422         * config/pru/constraints.md: New file.
6423         * config/pru/predicates.md: New file.
6424         * config/pru/pru-opts.h: New file.
6425         * config/pru/pru-passes.c: New file.
6426         * config/pru/pru-pragma.c: New file.
6427         * config/pru/pru-protos.h: New file.
6428         * config/pru/pru.c: New file.
6429         * config/pru/pru.h: New file.
6430         * config/pru/pru.md: New file.
6431         * config/pru/pru.opt: New file.
6432         * config/pru/t-pru: New file.
6433         * doc/extend.texi: Document PRU pragmas.
6434         * doc/invoke.texi: Document PRU-specific options.
6435         * doc/md.texi: Document PRU asm constraints.
6437 2019-06-12  Martin Sebor  <msebor@redhat.com>
6439         PR middle-end/90676
6440         * tree-pretty-print.c (dump_mem_ref): New function.  Include
6441         MEM_REF type in output when different size than operand.
6442         (dump_generic_node): Move code to dump_mem_ref and call it.
6444 2019-06-12  Martin Sebor  <msebor@redhat.com>
6446         PR tree-optimization/90662
6447         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
6448         to arrays.
6450 2019-06-12  Tom de Vries  <tdevries@suse.de>
6452         PR tree-optimization/90009
6453         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
6455 2019-06-12  Martin Liska  <mliska@suse.cz>
6457         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
6458         the created map.
6459         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
6460         * mem-stats.h (mem_alloc_description::mem_alloc_description):
6461         Do not sanitize created maps.
6463 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
6465         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
6466         value_range::singleton_p.
6467         * tree-vrp.c (value_range_constant_singleton): Remove.
6468         * tree-vrp.h (value_range_constant_singleton): Remove.
6469         * vr-values.c (vr_values::singleton): Use
6470         value_range::singleton_p.
6472 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
6474         PR target/90811
6475         * cfgexpand.c (align_local_variable): Add really_expand argument,
6476         don't SET_DECL_ALIGN if it is false.
6477         (add_stack_var): Add really_expand argument, pass it through to
6478         align_local_variable.
6479         (expand_one_stack_var_1): Pass true as really_expand to
6480         align_local_variable.
6481         (expand_one_ssa_partition): Pass true as really_expand to
6482         add_stack_var.
6483         (expand_one_var): Pass really_expand through to add_stack_var.
6485 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6487         * config/arm/iterators.md (VABAL): New int iterator.
6488         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
6489         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
6490         UNSPEC_VABAL_U values.
6492 2019-06-12  Martin Liska  <mliska@suse.cz>
6494         * value-prof.c (stream_out_histogram_value): Only first value
6495         can't be negative.
6497 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
6499         PR c/90760
6500         * symtab.c (symtab_node::set_section): Allow being called on aliases
6501         as long as they aren't analyzed yet.
6503 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
6505         * config/mips/mips.c (mips_final_postscan_insn): Modify call
6506         to `mips_set_text_contents_type' to indicate whether a
6507         non-debug insn follows.
6509 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
6511         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
6512         enabling -mpcrel by default.
6513         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
6514         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
6515         that the test against -mcpu=future is done first.  Then test if
6516         -mprefixed-addr is on for -mpcrel.
6517         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
6519 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
6521         PR target/90811
6522         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
6523         instead of and.u%d.
6525 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
6527         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
6529 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
6531         PR c++/90449 - add -Winaccessible-base option.
6532         * doc/invoke.texi (Winaccessible-base): Document.
6534 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
6536         PR tree-optimization/62041
6537         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
6539 2019-06-11  Jason Merrill  <jason@redhat.com>
6541         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
6542         * tree.c (get_tree_code_name): Likewise.
6543         * print-tree.c (print_node): Only briefly print a node with an
6544         invalid code.
6546 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
6548         PR bootstrap/90819
6549         * trans-mem.c (tm_memopt_compute_available): Add assertion
6550         that blocks is not empty.  Formatting fix.
6552 2019-06-11  Martin Liska  <mliska@suse.cz>
6554         PR c++/87847
6555         * hash-table.h: Extend create_gcc, add one parameter
6556         that is passed into hash_table::hash_table.
6558 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
6560         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
6561         New prototype.
6562         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6563         Emit clobber also for non-sse operations.
6564         (ix86_split_fp_absneg_operator): New function.
6565         * config/i386/i386.md (SSEMODEF): New mode iterator.
6566         (ssevecmodef): New mode attribute.
6567         (<code>tf2): Use absneg code iterator.
6568         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
6569         Add three-operand AVX alternatives.
6570         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
6571         Use absneg code iterator and X87MODEF mode iterator.
6572         (absneg fp_reg non-sse splitter): Call absneg code iterator
6573         and X87MODEF mode iterator.
6574         (absneg general_reg non-sse splitter): Use absneg code iterator
6575         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
6576         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
6577         code iterator.  Add three-operand AVX alternative.
6578         (absneg sse_reg splitter): Use absneg code iterator
6579         and SSEMODEF mode iterator.  Handle AVX operands.
6580         (absneg fp_reg splitter): Use absneg code iterator
6581         and MODEF mode iterator.
6582         (absneg general_reg splitter): Merge splitters using MODEF mode
6583         iterator.  Use absneg code iterator.  Call
6584         ix86_split_fp_absneg_operator.
6585         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
6586         Do not enable for non-sse modes before reload.
6587         (CSGNMODE): Remove.
6588         (CSGNVMODE): Ditto.
6589         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
6590         ssevecmodef mode attribute instaed of CSGNVMODE.
6591         (copysign<mode>3_const): Ditto.
6592         (copysign<mode>3_var): Ditto.
6593         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
6594         Use absneg code iterator.  Simplify code using std::swap.
6595         * config/i386/predicates.md (absneg_operator): Remove.
6597 2019-06-10  Martin Sebor  <msebor@redhat.com>
6599         * gimple-fold.c (get_range_strlen): Update comment that didn't
6600         make it into r267503 or related commits.
6602 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
6604         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
6605         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
6607 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
6609         * tree.def (OMP_SCAN): New tree code.
6610         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
6611         OMP_CLAUSE_EXCLUSIVE.
6612         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
6613         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
6614         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
6615         OMP_CLAUSE_{IN,EX}CLUSIVE.
6616         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6617         * tree-nested.c (convert_nonlocal_reference_stmt,
6618         convert_local_reference_stmt, convert_gimple_call): Handle
6619         GIMPLE_OMP_SCAN.
6620         * tree-pretty-print.c (dump_omp_clause): Handle
6621         OMP_CLAUSE_{IN,EX}CLUSIVE.
6622         (dump_generic_node): Handle OMP_SCAN.
6623         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
6624         * gimple.h (gomp_scan): New type.
6625         (is_a_helper <gomp_scan *>::test,
6626         is_a_helper <const gomp_scan *>::test): New templates.
6627         (gimple_build_omp_scan): Declare.
6628         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
6629         gimple_omp_scan_set_clauses): New inline functions.
6630         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
6631         * gimple.c (gimple_build_omp_scan): New function.
6632         (gimple_copy): Handle GIMPLE_OMP_SCAN.
6633         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
6634         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
6635         GIMPLE_OMP_TASKGROUP.
6636         (dump_gimple_omp_scan): New function.
6637         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
6638         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
6639         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
6640         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
6641         (is_gimple_stmt): Handle OMP_SCAN.
6642         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
6643         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6644         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
6645         mentioned in nested #pragma omp scan.  Handle
6646         OMP_CLAUSE_{IN,EX}CLUSIVE.
6647         (gimplify_expr): Handle OMP_SCAN.
6648         * omp-low.c (check_omp_nesting_restrictions): For parent context,
6649         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
6650         simd constructs.
6651         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
6652         GIMPLE_OMP_SCAN.
6654 2019-06-10  Martin Liska  <mliska@suse.cz>
6656         * ipa-cp.c (ignore_edge_p): New function.
6657         (build_toporder_info): Use it.
6658         * ipa-inline.c (ignore_edge_p): New function.
6659         (inline_small_functions): Use it.
6660         * ipa-pure-const.c (ignore_edge_for_nothrow):
6661         Verify opt_for_fn for caller and callee.
6662         (ignore_edge_for_pure_const): Likewise.
6663         * ipa-reference.c (ignore_edge_p): Extend to check
6664         for opt_for_fn.
6665         * ipa-utils.c (searchc): Refactor.
6666         * ipa-utils.h: Fix coding style.
6668 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
6670         * config/arc/arc.c (arc_rtx_costs): Update costs.
6672 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
6674         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
6675         (arc_split_ior): Likewise.
6676         (arc_check_mov_const): Likewise.
6677         (arc_split_mov_const): Likewise.
6678         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
6679         (arc_rtx_costs): Replace check Crr with Cax constraint.
6680         (prepare_move_operands): Cleanup, remove unused code.
6681         (arc_split_ior): New function.
6682         (arc_check_ior_const): Likewise.
6683         (arc_split_mov_const): Likewise.
6684         (arc_check_mov_const): Likewise.
6685         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6686         in define_insn_and_split pattern.
6687         (iorsi3): Likewise.
6688         (mulsi3_v2): Add new matching variant.
6689         (andsi3_i): Cleanup pattern.
6690         (rotrsi3_cnt1): Update pattern.
6691         (rotrsi3_cnt8): New pattern.
6692         (ashlsi2_cnt8): Likewise.
6693         (ashlsi2_cnt16): Likewise.
6694         * config/arc/constraints.md (C0p): Update constraint.
6695         (Crr): Remove it.
6696         (C0x): New pattern.
6697         (Cax): New pattern.
6699 2019-06-10  Martin Liska  <mliska@suse.cz>
6701         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6702         Update coding style.
6703         (sem_item_optimizer::dump_cong_classes):
6704         Print how many items are in a non-singular class.  Improve
6705         coding style.
6707 2019-06-10  Martin Liska  <mliska@suse.cz>
6709         * value-prof.c (dump_histogram_value): Change dump format.
6710         (gimple_mod_subtract_transform): Remove legacy comment.
6712 2019-06-10  Martin Liska  <mliska@suse.cz>
6714         * value-prof.c (dump_histogram_value): Print histogram values
6715         only if present.
6717 2019-06-10  Martin Liska  <mliska@suse.cz>
6719         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6720         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6721         * ipa-profile.c (ipa_profile_generate_summary):
6722         Use get_most_common_single_value.
6723         * tree-profile.c (gimple_init_gcov_profiler):
6724         Instrument with __gcov_one_value_profiler_v2
6725         and __gcov_indirect_call_profiler_v4.
6726         * value-prof.c (dump_histogram_value):
6727         Print all values for HIST_TYPE_SINGLE_VALUE.
6728         (stream_out_histogram_value): Update assert for
6729         N values.
6730         (stream_in_histogram_value): Set number of
6731         counters for HIST_TYPE_SINGLE_VALUE.
6732         (get_most_common_single_value): New.
6733         (gimple_divmod_fixed_value_transform):
6734         Use get_most_common_single_value.
6735         (gimple_ic_transform): Likewise.
6736         (gimple_stringops_transform): Likewise.
6737         (gimple_find_values_to_profile): Set number
6738         of counters for HIST_TYPE_SINGLE_VALUE.
6739         * value-prof.h (get_most_common_single_value): New.
6741 2019-06-10  Martin Liska  <mliska@suse.cz>
6743         * hash-map.h: Pass default value to hash_table ctor.
6744         * hash-table.h: Add default value to call of a ctor.
6746 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
6748         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6749         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6751 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
6753         PR target/90751
6754         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6755         Call pa_output_function_label.
6756         (TARGET_ASM_FUNCTION_PROLOGUE): define.
6757         * config/pa/pa-protos.h (pa_output_function_label): Declare.
6758         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6759         to declaration.
6760         (pa_linux_output_function_prologue): Declare.
6761         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6762         (pa_output_function_label): New.
6763         (pa_output_function_prologue): Revise to use pa_output_function_label.
6764         (pa_linux_output_function_prologue): New.
6765         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6767 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
6769         * tree-vrp.h (value_range_base::intersect): New.
6770         (value_range::intersect_helper): Move from here...
6771         (value_range_base::intersect_helper): ...to here.
6772         * tree-vrp.c (value_range::intersect_helper): Rename to...
6773         (value_range_base::intersect_helper): ...this, and rewrite to
6774         return a value instead of modifying THIS in place.
6775         Also, move equivalence handling...
6776         (value_range::intersect): ...here, while calling intersect_helper.
6777         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6778         calling intersect.
6779         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6780         Same.
6781         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6783 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
6785         * Makefile.in (genprogerr): Add condmd.
6786         (genprog): Remove it here.
6788 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
6790         * doc/invoke.texi (AMD GCN Options): Add gfx906.
6792 2019-06-07  Richard Biener  <rguenther@suse.de>
6794         PR debug/90574
6795         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6796         that appear after user labels.
6798 2019-06-07  Martin Liska  <mliska@suse.cz>
6800         * cselib.c (cselib_init): Disable hash table
6801         sanitization.
6802         * hash-set.h: Pass new default argument to m_table.
6803         * hash-table.c: Add global variable with hash table
6804         sanitization limit.
6805         * hash-table.h (Allocator>::hash_table): Add new argument
6806         to ctor.
6807         (hashtab_chk_error): New.
6808         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6809         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6810         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6812 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
6814         * common.opt (flto-odr-type-merging): Ignore.
6815         * invoke.texi (-flto-odr-type-merging): Remove.
6816         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6817         (can_be_vtable_hashed_p): Remove.
6818         (hash_odr_vtable): Remove.
6819         (odr_vtable_hasher::hash): Remove.
6820         (types_same_for_odr): Remove.
6821         (types_odr_comparable): Remove.
6822         (odr_vtable_hasher::equal): Remove.
6823         (odr_vtable_hash_type, odr_vtable_hash): Remove.
6824         (add_type_duplicate): Do not synchronize vtable and name hashtables.
6825         (get_odr_type): Do not use vtable hash.
6826         (dump_odr_type): Remove commented out code.
6827         (build_type_inheritance_graph): Do not allocate vtable hash.
6828         (rebuild_type_inheritance_graph): Do not delete vtable hash.
6829         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6830         (odr_type_p): Likewise.
6831         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6832         test.
6834 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
6836         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6837         immediately after same_types_for_tbaa_p returns -1 and continue
6838         looking for possible exact match; if matching types are arrays
6839         watch for partial overlaps.
6840         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6841         (indirect_refs_may_alias_p): Do type based disambiguation first;
6842         update comment.
6844 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
6846         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6848 2019-06-07  Martin Liska  <mliska@suse.cz>
6850         * doc/invoke.texi: Remove param.
6851         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6852         Remove.
6853         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6854         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6855         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6856         * profile.c (instrument_values): Remove
6857         HIST_TYPE_INDIR_CALL_TOPN.
6858         * tree-profile.c (init_ic_make_global_vars):
6859         Always build __gcov_indirect_call only.
6860         (gimple_init_gcov_profiler): Remove usage
6861         of PARAM_INDIR_CALL_TOPN_PROFILE.
6862         (gimple_gen_ic_profiler): Likewise.
6863         * value-prof.c (dump_histogram_value): Likewise.
6864         (stream_in_histogram_value): Likewise.
6865         (gimple_indirect_call_to_profile): Likewise.
6866         (gimple_find_values_to_profile): Likewise.
6867         * value-prof.h (enum hist_type): Likewise.
6869 2019-06-07  Martin Liska  <mliska@suse.cz>
6871         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6872         function.
6874 2019-06-07  Martin Liska  <mliska@suse.cz>
6876         PR tree-optimization/78902
6877         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
6878         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
6879         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6880         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6881         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
6882         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6883         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
6884         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
6885         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6886         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6887         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6888         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST):  Remove.
6889         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
6890         New.
6891         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
6892         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
6893         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
6894         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6895         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6896         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
6897         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6898         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6899         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
6900         warn_unused_result attribute.
6901         (BUILT_IN_STRDUP): Likewise.
6902         (BUILT_IN_STRNDUP): Likewise.
6903         (BUILT_IN_ALLOCA): Likewise.
6904         (BUILT_IN_CALLOC): Likewise.
6905         (BUILT_IN_MALLOC): Likewise.
6906         (BUILT_IN_REALLOC): Likewise.
6908 2019-06-06  Jim Wilson  <jimw@sifive.com>
6910         PR target/89955
6911         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
6912         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6913         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
6915 2019-06-06  Martin Sebor  <msebor@redhat.com>
6917         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
6918         (handle_builtin_malloc): Remove trailing spaces.
6919         (handle_builtin_memset): Same.
6920         (handle_builtin_memcmp): Same.
6921         (compute_string_length): Same.
6922         (determine_min_objsize): Same.
6923         (handle_builtin_string_cmp): Same.
6924         (handle_char_store): Same.  Break up excessively long line.
6926 2019-06-06  Martin Jambor  <mjambor@suse.cz>
6928         * tree-sra.c (build_reconstructed_reference): Drop the alignment
6929         check.
6931 2019-06-06  Martin Jambor  <mjambor@suse.cz>
6933         * tree-sra.c (struct access): New field grp_same_access_path.
6934         (dump_access): Dump it.
6935         (build_reconstructed_reference): New function.
6936         (build_ref_for_model): Use it if possible.
6937         (path_comparable_for_same_access): New function.
6938         (same_access_path_p): Likewise.
6939         (sort_and_splice_var_accesses): Set the new flag.
6940         (analyze_access_subtree): Likewise.
6941         (propagate_subaccesses_across_link): Propagate zero value of the new
6942         flag down the access tree.
6944 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
6946         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
6947         * config/gcn/gcn.opt (gpu_type): Add gfx906.
6948         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
6949         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
6950         Add gfx906.
6952 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6954         PR tree-optimization/90332
6955         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
6956         Handle VALS containing two vectors.
6957         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
6958         to...
6959         (@aarch64_combinez<mode>): ... This.
6960         (*aarch64_combinez_be<mode>): Rename to...
6961         (@aarch64_combinez_be<mode>): ... This.
6962         (vec_init<mode><Vhalf>): New define_expand.
6963         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
6965 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6967         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
6968         library functions only when not optimizing for size.
6969         (ashlsi3): Likewise.
6970         (ashrhi3): Likewise.
6971         (ashrsi3): Likewise.
6972         (lshrhi3): Likewise.
6973         (lshrsi3): Likewise.
6975 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
6977         PR rtl-optimization/88751
6978         * ira.c (ira): Use the number of the actually referenced registers
6979         when calculating the threshold.
6981 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
6983         * configure: Regenerate.
6985 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6987         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
6988         register if it is in memory, so the shift can be emulated with a rotate
6989         instruction.
6990         (ashrhi3): Likewise.
6991         (lshrhi3): Likewise.
6993 2019-06-06  Martin Liska  <mliska@suse.cz>
6995         PR tree-optimization/87954
6996         * match.pd: Simplify mult where both arguments are 0 or 1.
6998 2019-06-06  Richard Biener  <rguenther@suse.de>
7000         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
7001         put equivalences on UNDEFINED ranges.
7002         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7003         Make sure to drop defs of stmts added during simplification
7004         to VARYING.
7006 2019-06-06  Richard Biener  <rguenther@suse.de>
7008         * tree-ssa-structalias.c: Include tree-cfg.h.
7009         (make_heapvar): Do not make heap vars artificial.
7010         (find_func_aliases_for_builtin_call): Handle stack allocation
7011         functions.
7012         (find_func_aliases): Delay processing of simple enough returns
7013         in non-IPA mode.
7014         (set_uids_in_ptset): Adjust.
7015         (find_what_var_points_to): Likewise.
7016         (solve_constraints): Do not dump points-to sets here.
7017         (compute_points_to_sets): Post-process return statements,
7018         amending the escaped solution.  Dump points-to sets afterwards.
7019         (ipa_pta_execute): Dump points-to sets.
7021 2019-06-06  Martin Liska  <mliska@suse.cz>
7023         PR web/87933
7024         * doc/install.texi: Fix HTML headers and
7025         titles for 'Installing GCC' pages.
7027 2019-06-06  Martin Liska  <mliska@suse.cz>
7029         * ipa-icf-gimple.h (dump_message_1): Remove.
7030         (dump_message): Likewise.
7031         (return_false_with_message_1): Print also file.
7032         (return_false_with_msg): Likewise.
7033         (return_with_result): Likewise.
7034         (return_with_debug): Likewise.
7035         * ipa-icf.c (sem_function::equals_private): Remove call
7036         to dump_message.
7038 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
7040         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
7041         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
7042         memory operand for it.
7043         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
7045 2019-06-05  Martin Sebor  <msebor@redhat.com>
7047         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
7048         Adjust quoting and hyphenation.
7049         * convert.c (convert_to_real_1): Same.
7050         * gcc.c (driver_wrong_lang_callback): Same.
7051         (driver::handle_unrecognized_options): Same.
7052         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
7053         * opts-common.c (cmdline_handle_error): Same.
7054         (read_cmdline_option): Same.
7055         * opts-global.c (complain_wrong_lang): Same.
7056         (print_ignored_options): Same.
7057         (handle_common_deferred_options): Same.
7058         * pretty-print.h: Same.
7059         * print-rtl.c (debug_bb_n_slim): Same.
7060         * sched-rgn.c (make_pass_sched_fusion): Same.
7061         * tree-cfg.c (verify_gimple_assign_unary): Same.
7062         (verify_gimple_label): Same.
7063         * tree-ssa-operands.c (verify_ssa_operands): Same.
7064         * varasm.c (do_assemble_alias): Same.
7065         (assemble_alias): Same.
7067 2019-06-05  Richard Henderson  <rth@twiddle.net>
7069         * config/alpha/alpha.c (direct_return): Move down after
7070         struct machine_function definition; use saved frame_size;
7071         return bool.
7072         (struct machine_function): Add sa_mask, sa_size, frame_size.
7073         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
7074         (alpha_compute_frame_layout): ... new function.
7075         (TARGET_COMPUTE_FRAME_LAYOUT): New.
7076         (alpha_initial_elimination_offset): Use saved sa_size.
7077         (alpha_vms_initial_elimination_offset): Likewise.
7078         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
7079         (alpha_expand_prologue): Use saved frame data.  Merge integer
7080         and fp register save loops.
7081         (alpha_expand_epilogue): Likewise.
7082         (alpha_start_function): Use saved frame data.
7083         * config/alpha/alpha-protos.h (direct_return): Update.
7084         (alpha_sa_size): Remove.
7086 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
7088         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
7089         multiplication by a power-of-two value.
7090         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
7091         and turn the modulo operation into a masking operation.
7093 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
7095         PR debug/90733
7096         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
7097         with VOIDmode inner operands.
7099 2019-06-05  Richard Biener  <rguenther@suse.de>
7101         PR middle-end/90726
7102         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7103         turn an expression graph into a tree.
7105 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
7107         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
7108         member.
7109         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
7110         treat it like explicit monotonic schedule modifier.
7111         (expand_omp_for): Initialize has_lastprivate_conditional.
7112         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
7113         schedule modifier.
7115         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
7116         references, lookup in in hash map MEM_REF operand instead of the
7117         MEM_REF itself.
7118         (lower_omp_1): When looking for lastprivate conditional assignments,
7119         handle MEM_REFs with REFERENCE_TYPE operands.
7121         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
7122         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
7123         and references a VLA.  Handle references to non-VLAs if is_simd
7124         all privatization clauses like reductions.
7125         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
7126         If omp_is_reference, use always omp simd arrays and set
7127         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
7128         fails, emit reference initialization.
7130 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
7132         PR target/89803
7133         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
7134         _mm_mask_fpclass_sd_mask): New intrinsics.
7135         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
7136         * config/i386/i386-builtin.def
7137         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
7138         New builtins.
7139         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
7140         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
7141         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
7142         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
7143         case QI_FTYPE_V2SF_INT): Ditto.
7144         * config/i386/sse.md
7145         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
7146         Extended to insnstructions with mask operands.
7148 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7150         * config/rs6000/constraints.md (define_register_constraint "wp"):
7151         Delete.
7152         (define_register_constraint "wq"): Delete.
7153         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7154         (rs6000_init_hard_regno_mode_ok): Adjust.
7155         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7156         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
7157         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
7158         (define_mode_attr VSa): Delete.
7159         (define_mode_attr VSisa): New.
7160         (rest of file): Adjust.
7161         * doc/md.texi (Machine Constraints): Adjust.
7163 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7165         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
7166         (define_attr "enabled"): Handle those new isa values.
7168 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7170         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
7171         (define_mode_attr VSr5): Delete.
7172         (define_mode_attr VStype_sqrt): Delete.
7173         (define_mode_iterator VSX_SPDP): Delete.
7174         (define_mode_attr VS_spdp_res): Delete.
7175         (define_mode_attr VS_spdp_insn): Delete.
7176         (define_mode_attr VS_spdp_type): Delete.
7177         (*vsx_sqrt<mode>2): Adjust.
7178         (vsx_<VS_spdp_insn>): Delete, split to...
7179         (vsx_xscvdpsp): ... this.  New.  And...
7180         (vsx_xvcvspdp): ... this.  New.  And...
7181         (vsx_xvcvdpsp): ... this.  New.
7183 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7185         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
7186         and V2DF.
7187         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
7188         (rest of file): Adjust.
7190 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7192         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
7193         (vsx_extract_<mode>_var): Ditto.
7195 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7197         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
7198         with just "wa".
7200 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7202         * config/rs6000/constraints.md (define_register_constraint "ww"):
7203         Delete.
7204         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7205         (rs6000_init_hard_regno_mode_ok): Adjust.
7206         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7207         RS6000_CONSTRAINT_ww.
7208         * config/rs6000/rs6000.md: Adjust.
7209         * config/rs6000/vsx.md: Adjust.
7210         * doc/md.texi (Machine Constraints): Adjust.
7212 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7214         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
7215         (define_mode_attr sd): New.
7216         (define_mode_attr s): New.
7217         (define_mode_attr Ftrad): Delete.
7218         (define_mode_attr Fvsx): Delete.
7219         (define_mode_attr Fs): Delete.
7220         (rest of file): Use the new mode attributes.
7221         * config.rs6000/vsx.md: Use the new mode attributes.
7223 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7225         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
7226         with just "wa".
7228 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7230         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
7231         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
7232         used with VSX_B, VSX_D, or VSX_F, with just "wa".
7234 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
7236         PR target/78263
7237         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
7238         C++ with strict ANSI requirements.
7240 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
7242         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
7243         computations when step is 1.
7245 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7247         * config/rs6000/constraints.md (define_register_constraint "wf"):
7248         Delete.
7249         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7250         (rs6000_init_hard_regno_mode_ok): Adjust.
7251         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7252         RS6000_CONSTRAINT_wf.
7253         * config/rs6000/rs6000.md: Adjust.
7254         * config/rs6000/vsx.md: Adjust.
7255         * doc/md.texi (Machine Constraints): Adjust.
7257 2019-06-04  Andrew Pinski  <apinski@marvell.com>
7259         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
7260         Fix ILP32 value.
7262 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7264         * config/rs6000/constraints.md (define_register_constraint "wd"):
7265         Delete.
7266         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7267         (rs6000_init_hard_regno_mode_ok): Adjust.
7268         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7269         RS6000_CONSTRAINT_wd.
7270         * config/rs6000/rs6000.md: Adjust.
7271         * config/rs6000/vsx.md: Adjust.
7272         * doc/md.texi (Machine Constraints): Adjust.
7274 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7276         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
7277         (rest of file): Adjust.
7279 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7281         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
7282         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
7283         (vsx_splat_<mode>_reg): Adjust.
7285 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7287         * config/rs6000/constraints.md (define_register_constraint "ws"):
7288         Delete.
7289         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7290         (rs6000_init_hard_regno_mode_ok): Adjust.
7291         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7292         RS6000_CONSTRAINT_ws.
7293         * config/rs6000/rs6000.md: Adjust.
7294         * config/rs6000/vsx.md: Adjust.
7295         * doc/md.texi (Machine Constraints): Adjust.
7297 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7299         * config/rs6000/constraints.md (define_register_constraint "wv"):
7300         Delete.
7301         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7302         (rs6000_init_hard_regno_mode_ok): Adjust.
7303         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7304         RS6000_CONSTRAINT_wv.
7305         * config/rs6000/rs6000.md: Adjust.
7306         * config/rs6000/vsx.md: Adjust.
7307         * doc/md.texi (Machine Constraints): Adjust.
7309 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
7311         * config/rs6000/constraints.md (define_register_constraint "wi"):
7312         Delete.
7313         (define_register_constraint "wt"): Delete.
7314         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7315         (rs6000_init_hard_regno_mode_ok): Adjust.
7316         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7317         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
7318         * config/rs6000/rs6000.md: Adjust.
7319         * config/rs6000/vsx.md: Adjust.
7320         * doc/md.texi (Machine Constraints): Adjust.
7322 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7324         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
7325         const.
7326         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
7327         default_elf_asm_output_external.
7329 2019-06-04  Martin Liska  <mliska@suse.cz>
7331         * ipa-icf.c (INCLUDE_LIST): Remove.
7332         (sem_item_optimizer::execute): Remove call to init_wpa.
7333         * ipa-icf.h (init_wpa): Remove.
7335 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
7337         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
7338         conditional on combined for simd.
7339         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
7340         member.
7341         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
7342         constructs, don't remove lastprivate_conditional_map, but instead set
7343         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
7344         to parent construct temporaries.
7345         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
7346         like !ctx->lastprivate_conditional_map.
7347         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
7348         use up->outer context instead of up.
7349         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
7350         gimple_omp_for_combined_p.
7351         (expand_omp_for_static_nochunk): Likewise.
7352         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
7353         probably moved over into expand_omp_for_generic rather than being copied
7354         there.
7356 2019-06-04  Martin Liska  <mliska@suse.cz>
7358         * value-prof.c (dump_histogram_value): Fix typo.
7359         (gimple_mod_subtract_transform): Likewise.
7361 2019-06-04  Richard Biener  <rguenther@suse.de>
7363         PR middle-end/90726
7364         * tree-chrec.c (chrec_contains_symbols): Add to visited.
7365         (tree_contains_chrecs): Likewise.
7366         (chrec_contains_symbols_defined_in_loop): Move here and avoid
7367         exponential behaivor from ...
7368         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7369         ... here.
7370         (expression_expensive_p): Avoid exponential behavior and compute
7371         expanded size, rejecting any expansion.
7372         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
7373         (idx_contains_abnormal_ssa_name_p): Likewise.
7374         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
7375         (contains_abnormal_ssa_name_p): Simplify and use
7376         walk_tree_without_duplicates.
7378 2019-06-04  Richard Biener  <rguenther@suse.de>
7380         PR tree-optimization/90738
7381         Revert
7382         2019-06-03  Richard Biener  <rguenther@suse.de>
7384         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7385         full reference tree and record in ref->ref.
7386         (vn_reference_lookup_3): Pass in original ref to
7387         ao_ref_init_from_vn_reference.
7388         (vn_reference_lookup): Likewise.
7389         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7390         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7391         Handle non-decl bases in the original reference.
7393 2019-06-04  Martin Liska  <mliska@suse.cz>
7395         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
7396         number of references.
7397         (sem_item_optimizer::do_congruence_step):
7398         (sem_item_optimizer::worklist_push): Dump how references
7399         a class has.
7400         (sem_item_optimizer::worklist_pop): Use heap.
7401         (sem_item_optimizer::process_cong_reduction): Likewise.
7402         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
7404 2019-06-04  Martin Liska  <mliska@suse.cz>
7406         * ipa-icf.h (struct sem_usage_pair_hash): New.
7407         (sem_usage_pair_hash::hash): Likewise.
7408         (sem_usage_pair_hash::equal): Likewise.
7409         (struct sem_usage_hash): Likewise.
7410         * ipa-icf.c (sem_item::sem_item): Initialize
7411         referenced_by_count.
7412         (sem_item::add_reference): Register a reference
7413         in ref_map and not in target->usages.
7414         (sem_item::setup): Remove initialization of
7415         dead vectors.
7416         (sem_item::~sem_item): Remove usage of dead vectors.
7417         (sem_item::dump): Remove dump of references.
7418         (sem_item_optimizer::sem_item_optimizer): Initialize
7419         m_references.
7420         (sem_item_optimizer::read_section): Remove useless
7421         dump.
7422         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
7423         (sem_item_optimizer::build_graph): Pass m_references
7424         to ::add_reference.
7425         (sem_item_optimizer::verify_classes): Remove usage of dead
7426         vectors.
7427         (sem_item_optimizer::traverse_congruence_split): Return true
7428         when a class is split.
7429         (sem_item_optimizer::do_congruence_step_for_index): Use
7430         hash_map for look up of (sem_item *, index). That brings
7431         significant speed up.
7432         (sem_item_optimizer::do_congruence_step): Return true
7433         when a split is done.
7434         (congruence_class::is_class_used): Use referenced_by_count.
7436 2019-06-04  Alan Modra  <amodra@gmail.com>
7438         PR target/90689
7439         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
7440         error.
7442 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
7444         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
7445         * config/rs6000/rs6000.c (direct_move_p): Adjust.
7446         (rs6000_secondary_reload_simple_move): Adjust.
7447         (rs6000_opt_masks): Neuter the "mfpgpr" option.
7448         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
7449         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
7450         comment.
7451         (power6x): Adjust.
7452         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
7453         (floatunssi<mode>2_lfiwzx): Adjust.
7454         (fix_trunc<mode>si2_stfiwx): Adjust.
7455         (fixuns_trunc<mode>si2_stfiwx): Adjust.
7456         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
7457         (mfpgpr): Mark as deprecated.
7458         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
7459         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
7460         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
7462 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
7464         * config/rs6000/constraints.md (define_register_constraint "wg"):
7465         Delete.
7466         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7467         RS6000_CONSTRAINT_wg.
7468         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7469         (rs6000_init_hard_regno_mode_ok): Adjust.
7470         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
7471         Delete "wg" alternatives.
7472         * doc/md.texi (Machine Constraints): Adjust.
7474 2019-06-03  Alan Modra  <amodra@gmail.com>
7476         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
7477         (get_uncond_jump_length): Assert length less than INT_MAX and
7478         non-negative.
7480 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
7482         PR middle-end/64242
7483         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
7484         block.
7485         (expand_builtin_nonlocal_goto): Likewise.
7487 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7489         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
7490         (aarch64_asm_output_external): Declare.
7491         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
7492         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
7493         (aarch64_asm_output_alias): New.
7494         (aarch64_asm_output_external): New.
7495         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7496         (ASM_OUTPUT_EXTERNAL): Define.
7498 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
7499         * tree-vrp.h (value_range_base::nonzero_p): New.
7500         (value_range_base::set_nonnull): Rename to...
7501         (value_range_base::set_nonzero): ...this.
7502         (value_range_base::set_null): Rename to...
7503         (value_range_base::set_zero): ...this.
7504         (value_range::set_nonnull): Remove.
7505         (value_range::set_null): Remove.
7506         * tree-vrp.c (range_is_null): Remove.
7507         (range_is_nonnull): Remove.
7508         (extract_range_from_binary_expr): Use value_range_base::*zero_p
7509         instead of range_is_*null.
7510         (extract_range_from_unary_expr): Same.
7511         (value_range_base::set_nonnull): Rename to...
7512         (value_range_base::set_nonzero): ...this.
7513         (value_range::set_nonnull): Remove.
7514         (value_range_base::set_null): Rename to...
7515         (value_range_base::set_zero): ...this.
7516         (value_range::set_null): Remove.
7517         (extract_range_from_binary_expr): Rename set_*null uses to
7518         set_*zero.
7519         (extract_range_from_unary_expr): Same.
7520         (union_helper): Same.
7521         * vr-values.c (get_value_range): Use set_*zero instead of
7522         set_*null.
7523         (vr_values::extract_range_from_binary_expr): Same.
7524         (vr_values::extract_range_basic): Same.
7526 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
7528         PR driver/90684
7529         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
7531 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7533         * config/aarch64/iterators.md (MAX_OPP): New code attr.
7534         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
7535         Rename to...
7536         (aarch64_<su>abd<mode>_3): ... This.
7537         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
7539 2019-06-03  Richard Biener  <rguenther@suse.de>
7541         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7542         full reference tree and record in ref->ref.
7543         (vn_reference_lookup_3): Pass in original ref to
7544         ao_ref_init_from_vn_reference.
7545         (vn_reference_lookup): Likewise.
7546         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7547         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7548         Handle non-decl bases in the original reference.
7550 2019-06-03  Martin Liska  <mliska@suse.cz>
7552         * doc/generic.texi: Remove Java Trees.
7554 2019-06-03  Martin Liska  <mliska@suse.cz>
7556         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
7557         returns 0 when operands are equal.
7559 2019-06-03  Richard Biener  <rguenther@suse.de>
7561         PR tree-optimization/90716
7562         * tree-loop-distribution.c (destroy_loop): Process blocks in
7563         correct order.
7565 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7567         PR target/88837
7568         * vector-builder.h (vector_builder::count_dups): New method.
7569         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
7570         Declare prototype.
7571         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
7572         (vec_init<mode><Vel>): New pattern.
7573         * config/aarch64/aarch64.c (emit_insr): New function.
7574         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
7575         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
7576         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
7577         (aarch64_sve_expand_vector_init): Define two overloaded functions.
7579 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
7581         PR tree-optimization/90681
7582         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
7583         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
7584         special case for SLP, but fail on non-groupped loads.
7586 2019-06-03  Martin Liska  <mliska@suse.cz>
7588         * cfg.c (debug): Use TDF_DETAILS for debug and
7589         print edge info only once.
7591 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
7593         PR fortran/90539
7594         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
7596 2019-06-01  Martin Sebor  <msebor@redhat.com>
7598         PR middle-end/90694
7599         * tree-pretty-print.c (dump_generic_node): Add parentheses.
7601 2019-05-31  Jan Hubicka  <jh@suse.cz>
7603         * alias.c: Include ipa-utils.h.
7604         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
7605         * ipa-devirt.c (prevailing_odr_type): New.
7606         * ipa-utils.h (previaling_odr_type): Declare.
7608 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
7609             Hongtao Liu  <hongtao.liu@intel.com>
7611         PR target/89355
7612         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
7613         NOTE_INSN_DELETED_LABEL check.
7615 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
7616             Robert Suchanek  <robert.suchanek@mips.com>
7618         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
7619         and 3rd operands of the fmadd/fmsub/maddv builtin.
7621 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
7623         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
7624         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7625         on OMP_SIMD if not nested inside of worksharing loop that also has
7626         lastprivate conditional clause for the same decl.
7627         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
7628         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
7629         on simd.
7630         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
7631         on simd construct.
7632         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
7633         on simd construct.
7634         (lower_lastprivate_clauses): Likewise.
7635         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
7636         calling lower_rec_input_clauses.
7637         (lower_omp_for): Likewise.
7638         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
7639         clause on simd construct.
7640         * omp-expand.c (expand_omp_simd): Initialize cond_var if
7641         OMP_CLAUSE__CONDTEMP_ clause is present.
7643         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
7644         ivar and lvar.
7646 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
7648         PR c/43673
7649         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
7650         TEX_D32, TEX_D64 or TEX_D128.
7652 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
7654         * match.pd (~(vec?cst1:cst2)): New transformation.
7656 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
7658         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
7659         ((size_t)(A /[ex] B) CMP C): New transformation.
7661 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
7663         * doc/md.texi: Document define_insn_and_rewrite.
7664         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
7665         * gensupport.c (queue_elem): Update comment.
7666         (replace_operands_with_dups): New function.
7667         (gen_rewrite_sequence): Likewise.
7668         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
7669         * read-rtl.c (apply_subst_iterator): Likewise.
7670         (add_condition_to_rtx, named_rtx_p): Likewise.
7671         (rtx_reader::read_rtx_operand): Likewise.
7672         * config/aarch64/aarch64-sve.md
7673         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
7674         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
7675         define_insn_and_rewrite.
7676         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
7677         Remove separate define_split.
7679 2019-05-31  Jan Hubicka  <jh@suse.cz>
7681         * tree-ssa-alias.c (type_has_components_p): New function.
7682         (aliasing_component_refs_p): Use it.
7684 2019-05-31  Martin Liska  <mliska@suse.cz>
7686         * gdbhooks.py: Add const_tree to TreePrinter.
7688 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
7690         PR debug/86964
7691         * common.opt (feliminate-unused-debug-symbols): Enable by default.
7692         * doc/invoke.texi (Debugging Options): Document new default of
7693         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7695 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
7697         PR tree-optimization/90671
7698         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7699         template_block used to be empty on the first call, don't use
7700         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7701         seq with bb_seq and set it with set_bb_seq.
7703 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
7705         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7707 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
7708             Michael Meissner  <meissner@linux.ibm.com>
7710         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7711         (prefixed_mem_operand): Likewise.
7712         (non_prefixed_mem_operand): Likewise.
7713         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7714         prototype.
7715         * config/rs6000/rs6000.c (print_operand_address): Handle
7716         PC-relative addresses.
7717         (mode_supports_prefixed_address_p): New function.
7718         (rs6000_prefixed_address): New function.
7719         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7720         (SYMBOL_REF_PCREL_P): Likewise.
7722 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
7724         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7725         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7726         (gimplify_omp_for): If worksharing loop with lastprivate conditional
7727         is nested inside of parallel region, add _condtemp_ clause to both.
7728         * tree-nested.c (convert_nonlocal_omp_clauses,
7729         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7730         assertion failure.
7731         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7732         member.
7733         * omp-general.c (omp_extract_for_data): Compute it.
7734         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7735         (lower_rec_input_clauses): Likewise.
7736         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7737         clause is already present, just add one further one after it.
7738         (lower_lastprivate_clauses): Handle cond_ptr with array type.
7739         (lower_send_shared_vars): Clear _condtemp_ vars.
7740         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7741         or section or taskgroup.
7742         * omp-expand.c (determine_parallel_type): Disallow combining only if
7743         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
7744         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7745         (expand_omp_for_generic, expand_omp_for_static_nochunk,
7746         expand_omp_for_static_chunk, expand_omp_for): Use
7747         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7748         determine if a special set of API routines are needed and if condtemp
7749         needs to be initialized, while always initialize cond_var if
7750         fd->lastprivate_conditional is non-zero.
7752 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
7753             Michael Meissner  <meissner@linux.ibm.com>
7755         * config/rs6000/constraints.md (eI): New constraint.
7756         * config/rs6000/predicates.md (cint34_operand): New predicate.
7757         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7758         (SIGNED_34BIT_OFFSET_P): Likewise.
7759         * doc/md.texi (eI): Document constraint.
7761 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
7763         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7765 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
7766             Michael Meissner  <meissner@linux.ibm.com>
7768         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7769         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7770         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7771         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7772         (OTHER_FUTURE_MASKS): Likewise.
7773         (POWERPC_MASKS): Likewise.
7774         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7775         specified without -mprefixed-addr or -mcpu=future.  Error if
7776         -mprefixed-addr is specified without -mcpu=future.
7777         (rs6000_opt_masks): Add entry for prefixed-addr.
7778         * rs6000.opt (mprefixed-addr): New option.
7780 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
7782         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7783         cfun->is_thunk check.
7785 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
7787         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7788         to length.
7790 2019-05-30  Martin Liska  <mliska@suse.cz>
7792         * gdbinit.in: Fix 'ptc' command.  Add trt
7793         that prints TREE_TYPE($).
7795 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
7796             Alan Modra  <amodra@gmail.com>
7798         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7799         calls here...
7800         (rs6000_indirect_call_template_1): ...and here.
7801         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
7802         plt16_ha, plt16_lo, mtctr indirect calls.  Use
7803         rs6000_pltseq_enum.
7804         (rs6000_decl_ok_for_sibcall): New function.
7805         (rs6000_function_ok_for_sibcall): Refactor.
7806         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7807         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7808         when pcrel.  Reorganize.
7809         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7810         * rs6000.h (rs6000_pltseq_enum): New enum.
7811         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7812         (*pltseq_tocsave): Use rs6000_pltseq_enum.
7813         (*pltseq_plt16_ha): Likewise.
7814         (*pltseq_plt16_lo): Likewise.
7815         (*pltseq_mtctr): Likewise.
7816         (*pltseq_plt_pcrel): New insn.
7817         (*call_local_aix): Handle @notoc calls.
7818         (*call_value_local_aix): Likewise.
7819         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7820         (*call_value_nonlocal_aix): Likewise.
7821         (*call_indirect_pcrel): New insn.
7822         (*call_value_indirect_pcrel): Likewise.
7824 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
7826         * config/i386/sse.md (*save_multiple<mode>): Rename from
7827         save_multiple<mode>.
7828         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7829         (*restore_multiple_and_return<mode>): Rename from
7830         restore_multiple_and_return<mode>.
7831         (*restore_multiple_leave_return<mode>): Rename from
7832         restore_multiple_leave_return<mode>.
7834 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
7836         * config.gcc (rx-*-linux*): New target.
7837         * config/rx/elf.opt: New file.
7838         * config/rx/linux.h: Likewise.
7839         * config/rx/t-linux: Likewise.
7840         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7841         make it zero.
7842         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7843         (ASM_APP_OFF): Likewise.
7844         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7845         moved elsewhere.
7847 2019-05-29  Jan Hubicka  <jh@suse.cz>
7849         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7850         variants are pointer equivalent.
7852 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
7854         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7855         * config/aarch64/aarch64-sve2.md: New file.
7856         (<u>avg<mode>3_floor): New pattern.
7857         (<u>avg<mode>3_ceil): Likewise.
7858         (*<sur>h<addsub><mode>): Likewise.
7859         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7860         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7862 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
7864         PR bootstrap/90543
7865         * optc-save-gen.awk: In cl_optimization_print, use correct condition
7866         for var_opt_string printing.  In cl_optimization_print_diff, print
7867         (null) instead of invoking undefined behavior if one of the
7868         var_opt_string pointers is NULL and use && instead of first || in the
7869         guarding condition.  For var_target_other options, handle const char *
7870         target variables similarly to const char * optimize node variables.
7872 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
7874         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7875         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
7876         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
7877         Add autib1716 and pacib1716 initialisation.
7878         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
7879         for autib1716 and pacib1716.
7880         * config/aarch64/aarch64-protos.h (aarch64_key_type,
7881         aarch64_post_cfi_startproc): Define.
7882         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
7883         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
7884         aarch64_handle_pac_ret_protection): Set default sign key to A.
7885         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
7886         aarch64_expand_prologue): Add check for b-key.
7887         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
7888         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
7889         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
7890         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
7891         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
7892         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
7893         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7894         * config/aarch64/aarch64.md (do_return): Add check for b-key.
7895         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
7896         pauth_hint_num_a with pauth_hint_num.
7897         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
7898         pauth_hint_num_a with pauth_hint_num.
7899         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
7900         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
7901         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7902         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
7903         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
7904         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
7905         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
7906         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7907         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
7908         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
7909         UNSPEC_AUTIA1716 respectively.
7910         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
7911         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
7912         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
7913         * doc/invoke.texi (-mbranch-protection): Add b-key type.
7914         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
7915         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
7917 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
7919         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
7920         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
7921         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
7922         explicit clause on combined parallel into implicit shared clause.
7923         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
7924         and firstprivate if the decl has one too from combined parallel to
7925         the worksharing construct.
7927 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
7928             Michael Meissner  <meissner@linux.ibm.com>
7930         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
7932 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
7934         * rtl.h (LABEL_REF_P): New #define.
7936 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
7938         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
7940 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
7942         * internal-fn.c: Marked mask_load_direct as vectorizable.
7943         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
7944         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
7945         combined even if masks different with allow_slp_p param.
7946         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
7947         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
7948         dissolve SLP-only vectorizable groups when SLP has been discarded.
7949         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
7950         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
7951         masks.
7952         (vect_build_slp_tree_1): Fixed comment typo.
7953         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
7954         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
7955         loads for SLP only.
7956         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
7957         vectorizable.
7958         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
7960 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7962         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
7963         Remove obsolete use_thunk reference.
7964         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7965         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7966         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7967         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7968         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7969         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7970         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7971         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7972         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7974 2019-05-28  Nathan Sidwell  <nathan@acm.org>
7976         * tree.h (IDENTIFIER_ANON_P): New.
7977         (anon_aggrname_format, anon_aggname_p): Don't declare.
7978         (make_anon_name): Declare.
7979         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
7980         (hash_tree): Likewise.
7981         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
7982         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
7983         (anon_cnt, make_anon_name): New.
7985 2019-05-28  Martin Liska  <mliska@suse.cz>
7987         PR other/90315
7988         * opts-global.c (decode_options): Print help for all
7989         help_option_arguments.
7990         * opts.c (print_help): Add new argument.
7991         (common_handle_option): Remember all values into
7992         help_option_arguments.
7993         * opts.h (print_help): Add new argument.
7995 2019-05-28  Martin Liska  <mliska@suse.cz>
7997         PR ipa/90555
7998         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
7999         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
8000         (func_checker::compare_bb): Call compare_loops.
8002 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8004         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
8005         on sections construct.
8006         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
8007         construct.
8008         (lower_omp_sections): Handle lastprivate conditional.
8009         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
8010         lastprivate_conditional_map.
8011         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
8013         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
8014         critical, taskgroup and section regions when looking for a region
8015         with non-NULL lastprivate_conditional_map.
8017 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
8019         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
8020         (*ix86_gen_sub3): Ditto.
8021         (*ix86_gen_sub3_carry): Ditto.
8022         (*ix86_gen_one_cmpl2): Ditto.
8023         (*ix86_gen_andsp): Ditto.
8024         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
8025         (gen_and2_insn): New static function.
8026         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
8027         Use gen_add3_insn instead of ix86_gen_add3.
8028         (ix86_expand_split_stack_prologue): Use gen_add2_insn
8029         instead of ix86_gen_add3.
8030         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
8031         Use gen_sub3_insn instead of ix86_gen_sub3.
8032         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
8033         instead of ix86_gen_add3.
8034         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
8035         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
8036         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
8037         * config/i386/i386-options.c (ix86_option_override_internal):
8038         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
8039         ix86_gen_one_cmpl2 and ix86_gen_andsp.
8041 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8043         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
8044         and DW_OP_GNU_const_index opcodes.
8046 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
8048         * config/i386/i386.h (STACK_SIZE_MODE): Define.
8050 2019-05-27  Richard Biener  <rguenther@suse.de>
8052         PR tree-optimization/90637
8053         * tree-ssa-sink.c (statement_sink_location): Honor the
8054         computed sink location for single-uses.
8056 2019-05-27  Richard Biener  <rguenther@suse.de>
8058         PR middle-end/90610
8059         * match.pd (vec_perm): Avoid clobbering op0 when not generating
8060         a bit-insert.
8062 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
8064         * config/i386/i386.md (@sub<mode>3_carry): Rename
8065         from sub<mode>3_carry.
8066         (@leave_<mode>): New expander.
8067         (*leave): Rename from leave.
8068         (*leave_rex64): Rename from leave_rex64.
8069         (@monitorx_<mode>): Rename from monitorx_<mode>.
8070         (@clzero_<mode>): Rename from clzero_<mode>.
8071         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
8072         from sse3_monitor_<mode>.
8073         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
8074         (*ix86_gen_leave): Ditto.
8075         (*ix86_gen_monitor): Ditto.
8076         (*ix86_gen_monitorx): Ditto.
8077         (*ix86_gen_clzero): Ditto.
8078         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
8079         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
8080         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
8081         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
8082         Use gen_sse3_monitor instead of ix86_gen_monitor.
8083         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
8084         instead of ix86_gen_monitorx.
8085         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
8086         instead of ix86_gen_clzero.
8087         * config/i386/i386-options.c (ix86_option_override_internal):
8088         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
8089         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
8091 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
8093         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
8094         Rename from tls_global_dynamic_64_<mode>.
8095         (@tls_local_dynamic_base_64_<mode>): Rename from
8096         tls_local_dynamic_base_64_<mode>.
8097         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
8098         Remove indirect function.
8099         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
8100         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
8101         instead of ix86_gen_tls_global_dynamic_64.
8102         Use gen_tls_local_dynamic_base_64 instead of
8103         ix86_gen_tls_local_dynamic_base_64.
8104         * config/i386/i386-options.c (ix86_option_override_internal):
8105         Do not initialize ix86_gen_tls_global_dynamic_64 and
8106         ix86_gen_tls_local_dynamic_base_64.
8108 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
8110         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
8111         Rename from pro_epilogue_adjust_stack_<mode>_add.
8112         (@pro_epilogue_adjust_stack_sub_<mode>)
8113         Rename from pro_epilogue_adjust_stack_<mode>_sub.
8114         (@allocate_stack_worker_probe_<mode>):
8115         Rename from allocate_stack_worker_probe_<mode>.
8116         (allocate_stack): Use gen_allocate_stack_worker_probe.
8117         (probe_stack): Use gen_probe_stack_1.
8118         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
8119         (@adjust_stack_and_probe_<mode>): Rename from
8120         adjust_stack_and_probe<mode>.
8121         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
8122         (stack_protect_set): Use gen_stack_protect_set_1.
8123         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
8124         (stack_protect_test): Use gen_stack_protect_test_1.
8125         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
8126         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
8127         Remove indirect function.
8128         (*ix86_gen_adjust_stack_and_probe): Ditto.
8129         (*ix86_gen_probe_stack_range): Ditto.
8130         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
8131         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
8132         (ix86_adjust_stack_and_probe_stack_clash): Use
8133         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
8134         (ix86_adjust_stack_and_probe): Ditto.
8135         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
8136         of ix86_gen_probe_stack_range.
8137         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
8138         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
8139         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
8140         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
8141         CODE_FOR_stack_protect_test_{si,di}.
8142         * config/i386/i386-options.c (ix86_option_override_internal):
8143         Do not initialize ix86_gen_allocate_stack_worker,
8144         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
8146 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
8148         * doc/invoke.texi (Link Options): Many editorial changes around
8149         -flinker-output.
8151 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8153         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
8154         pre-Solaris 11 referene and most Studio compiler details.
8156 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
8158         PR target/90530
8159         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
8160         DImode to SImode in floating-point registers on 64-bit target.
8161         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
8162         register_operand in xmpyu patterns.
8164 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8166         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
8167         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
8168         OMP_CLAUSE__REDUCTEMP_.
8169         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8170         OMP_CLAUSE__CONDTEMP_.
8171         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
8172         * tree-pretty-print.c (dump_omp_clause): Likewise.
8173         * tree-nested.c (convert_nonlocal_omp_clauses,
8174         convert_local_omp_clauses): Likewise.
8175         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
8176         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
8177         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
8178         on OMP_FOR.
8179         (gimplify_omp_for): Warn and disable conditional modifier from
8180         lastprivate on loop iterators.
8181         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
8182         member.
8183         * omp-general.c (omp_extract_for_data): Initialize it.
8184         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
8185         member.
8186         (delete_omp_context): Delete it.
8187         (lower_lastprivate_conditional_clauses): New function.
8188         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
8189         handle lastprivate conditional clauses.
8190         (lower_reduction_clauses): Add CLIST argument, emit it into
8191         the critical section if any.
8192         (lower_omp_sections): Adjust lower_lastprivate_clauses and
8193         lower_reduction_clauses callers.
8194         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
8195         to lower_lastprivate_clauses.
8196         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
8197         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
8198         clist into a critical section if not emitted there already by
8199         lower_reduction_clauses.
8200         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
8201         callers.
8202         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
8203         conditional variables.
8204         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
8205         clause is present.
8206         (expand_omp_for_generic, expand_omp_for_static_nochunk,
8207         expand_omp_for_static_chunk): Handle lastprivate conditional.
8208         (expand_omp_for): Handle fd.lastprivate_conditional like
8209         fd.have_reductemp.
8211 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
8213         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
8214         kernel does not exit cleanly.
8215         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
8217 2019-05-24  Jason Merrill  <jason@redhat.com>
8219         Revert:
8220         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8222 2019-05-24  Richard Biener  <rguenther@suse.de>
8224         PR testsuite/90607
8225         * tree-loop-distribution.c (struct partition): Add location
8226         member.
8227         (partition_alloc): Initialize all fields.
8228         (generate_memset_builtin): Use the location recorded in the
8229         partition for the generated call.
8230         (generate_memcpy_builtin): Likewise.
8231         (classify_partition): Record the location of a single store
8232         as location for the partition.
8234 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
8236         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
8237         for lo-part.
8239 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
8241         PR target/90588
8242         * common/config/aarch64/aarch64-common.c
8243         (aarch64_rewrite_selected_cpu): Change local temporary variable
8244         type from unsigned long to uint64_t.
8245         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
8246         aarch64_get_extension_string_for_isa_flags): Change declaration to
8247         match new definition by replacing unsigned long with uint64_t.
8249 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8251         PR target/90568
8252         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
8253         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
8254         Handle stack_protect_test_<mode> codegen similarly to corresponding
8255         sub instruction.
8257 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
8259         * config/i386/darwin.h: Reject -mfentry*.
8260         * doc/sourcebuild.texi: Document mfentry target support.
8262 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
8264         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
8265         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
8266         false for PC-relative functions.
8267         (rs6000_output_function_prologue): Change called function name to
8268         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
8269         name,1" for PC-relative functions.
8270         (rs6000_elf_declare_function_name): Change called function name to
8271         rs6000_global_entry_point_prologue_needed_p.
8273 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
8275         PR target/90552
8276         * config/i386/i386.c (gen_rtx_cost):
8277         Use ix86_tune_cost instead of ix86_cost.
8279 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
8280             Michael Meissner  <meissner@linux.ibm.com>
8281             Segher Boessenkool  <segher@kernel.crashing.org>
8283         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
8284         OPTION_MASK_PCREL.
8285         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
8286         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
8287         (rs6000_fndecl_pcrel_p): Likewise.
8288         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
8289         error if -mpcrel is requested without -mcpu=future.
8290         (rs6000_opt_masks): Add entry for pcrel.
8291         (rs6000_fndecl_pcrel_p): New function.
8292         (rs6000_pcrel_p): Likewise.
8293         * config/rs6000/rs6000.opt (mpcrel): New option.
8294         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
8296 2019-05-23  Jan Hubicka  <jh@suse.cz>
8297             Martin Liska  <mliska@suse.cz>
8299         PR tree-optimization/90576
8300         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
8301         poly_int_tree_p.
8302         (aliasing_component_refs_p): Fix three way size compare conditional;
8303         give up earlier in case we can not decide on equivalence.
8305 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
8306             Michael Meissner  <meissner@linux.ibm.com>
8307             Segher Boessenkool  <segher@kernel.crashing.org>
8309         * config.gcc: Add future cpu.
8310         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
8311         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
8312         #define.
8313         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
8314         (RS6000_CPU): New instantiation for future cpu.
8315         * config/rs6000/rs6000-opts.h (enum processor_type): Add
8316         PROCESSOR_FUTURE.
8317         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
8318         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
8319         * config/rs6000/rs6000-tables.opt: Regenerate.
8320         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
8321         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
8322         (rs6000_machine_from_flags): Handle future cpu.
8323         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
8324         PROCESSOR_POWER9 for now.
8325         (rs6000_adjust_cost): Likewise.
8326         (rs6000_issue_rate): Likewise.
8327         (rs6000_register_move_cost): Likewise.
8328         (rs6000_opt_masks): Add entry for future.
8329         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
8330         (MASK_FUTURE): New #define.
8331         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
8332         * config/rs6000/rs6000.opt (mfuture): New target option.
8333         * doc/invoke.texi (mcpu): Add future cpu.
8335 2019-05-23  Martin Liska  <mliska@suse.cz>
8337         PR c++/90587
8338         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
8339         operation points to a temporary (pointed via tree_to_wide_ref)
8340         that is out of scope after the &.
8342 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
8344         PR c++/90592
8345         * doc/extend.texi (Function Names): Add missing word.
8347 2019-05-23  Richard Biener  <rguenther@suse.de>
8349         PR tree-optimization/88440
8350         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
8351         at -O[2s]+.
8352         * tree-loop-distribution.c (generate_memset_builtin): Fold the
8353         generated call.
8354         (generate_memcpy_builtin): Likewise.
8355         (distribute_loop): Pass in whether to only distribute patterns.
8356         (prepare_perfect_loop_nest): Also allow size optimization.
8357         (pass_loop_distribution::execute): When optimizing a loop
8358         nest for size allow pattern replacement.
8360 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
8362         PR target/90568
8363         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
8364         of xor.
8366 2019-05-23  Martin Liska  <mliska@suse.cz>
8368         PR sanitizer/90570
8369         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
8370         expression similarly to gimplify_decl_expr.
8372 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8374         * cse.c (cse_dump_path): s/dump_file/f.
8376 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
8378         PR c++/90462
8379         * diagnostic-format-json.cc: Include "selftest.h".
8380         (json_from_expanded_location): Only add "file" key for non-NULL
8381         file strings.
8382         (json_from_location_range): Don't add "start" and "finish"
8383         children if they are UNKNOWN_LOCATION.
8384         (selftest::test_unknown_location): New selftest.
8385         (selftest::test_bad_endpoints): New selftest.
8386         (selftest::diagnostic_format_json_cc_tests): New function.
8387         * json.cc (json::object::get): New function.
8388         (selftest::test_object_get): New selftest.
8389         (selftest::json_cc_tests): Call it.
8390         * json.h (json::object::get): New decl.
8391         * selftest-run-tests.c (selftest::run_tests): Call
8392         selftest::diagnostic_format_json_cc_tests.
8393         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
8394         decl.
8396 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
8397             Andrew Stubbs  <amd@codesourcery.com>
8399         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
8400         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
8401         (kernel): Rename to...
8402         (main_kernel): ... this.
8403         (load_image): Load _init_array and _fini_array kernels.
8404         (run): Add argument for kernel to run.
8405         (main): Run init_array_kernel before main_kernel, and
8406         fini_array_kernel after.
8407         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
8408         amdgpu_hsa_kernel attribute on functions.
8409         (gcn_disable_constructors): Delete.
8410         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
8411         * config/gcn/crt0.c (size_t): Define.
8412         (_init_array, _fini_array): New.
8413         (__preinit_array_start, __preinit_array_end,
8414         __init_array_start, __init_array_end,
8415         __fini_array_start, __fini_array_end): Declare weak references.
8417 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
8419         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
8421 2019-05-22  Jason Merrill  <jason@redhat.com>
8423         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8425 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8427         PR target/88483
8428         * config/i386/i386-options.c (ix86_init_machine_status): Set
8429         stack_frame_required to true.
8430         * config/i386/i386.c (ix86_get_frame_size): New function.
8431         (ix86_frame_pointer_required): Replace get_frame_size with
8432         ix86_get_frame_size.
8433         (ix86_compute_frame_layout): Likewise.
8434         (ix86_find_max_used_stack_alignment): Changed to void.  Set
8435         stack_frame_required.
8436         (ix86_finalize_stack_frame_flags): Always call
8437         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
8438         ix86_get_frame_size.
8439         * config/i386/i386.h (machine_function): Add stack_frame_required.
8441 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
8443         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
8445 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
8447         * common/config/aarch64/aarch64-common.c
8448         (struct aarch64_option_extension, struct processor_name_to_arch,
8449         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
8450         aarch64_contains_opt,
8451         aarch64_get_extension_string_for_isa_flags): Change type of
8452         variables storing flags to uint64_t.
8453         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
8454         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
8455         * config/aarch64/aarch64.c (struct processor,
8456         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
8457         aarch64_validate_march, aarch64_override_options,
8458         aarch64_option_print, aarch64_handle_attr_isa_flags,
8459         aarch64_declare_function_name, aarch64_start_file): Make flag
8460         variables uint64_t.
8461         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
8462         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
8463         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
8464         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
8465         * config/aarch64/driver-aarch64.c
8466         (struct aarch64_arch_extension, struct aarch64_core_data,
8467         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
8468         flag variables uint64_t.
8469         * doc/invoke.texi: Add documentation for new arguments.
8471 2019-05-22  Richard Biener  <rguenther@suse.de>
8473         * alias.c (ao_ref_from_mem): Move stack-slot sharing
8474         rewrite ...
8475         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
8477 2019-05-22  Martin Liska  <mliska@suse.cz>
8479         PR lto/90500
8480         * doc/extend.texi: Document the change.
8482 2019-05-22  Richard Biener  <rguenther@suse.de>
8484         PR tree-optimization/90450
8485         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
8486         (mem_ref_hasher::equal): Check it.
8487         (mem_ref_alloc): Initialize it.
8488         (gather_mem_refs_stmt): Set it.
8490 2019-05-22  Richard Biener  <rguenther@suse.de>
8492         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
8493         Add ABS_EXPR.
8494         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
8495         as ABSU_EXPR.
8497 2019-05-22  Alan Modra  <amodra@gmail.com>
8499         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
8500         (ASM_CPU_SPEC): Conditionally add -many.
8501         * config/rs6000/rs6000.c (rs6000_machine): New static var.
8502         (rs6000_machine_from_flags, emit_asm_machine): New functions..
8503         (rs6000_file_start): ..extracted from here, and modified to
8504         test all ISA bits.
8505         (rs6000_output_function_prologue): Emit .machine as necessary.
8506         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
8507         power mnemonics.
8508         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
8509         added by check_vect_support_and_set_flags.
8510         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
8511         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
8513 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
8515         PR middle-end/90553
8516         * ira-lives.c (process_bb_node_lives): Consider defs
8517         for a call insn to be die before the call, not after.
8519         * function.c (assign_parm_setup_block): Raise alignment of
8520         stacked parameter only for STRICT_ALIGNMENT targets.
8522 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8524         * config/rs6000/constraints.md (define_register_constraint "wz"):
8525         Delete.
8526         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8527         RS6000_CONSTRAINT_wz.
8528         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8529         (rs6000_init_hard_regno_mode_ok): Adjust.
8530         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
8531         * doc/md.texi (Machine Constraints): Adjust.
8533 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8535         * config/rs6000/constraints.md (define_register_constraint "wl"):
8536         Delete.
8537         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8538         RS6000_CONSTRAINT_wl.
8539         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8540         (rs6000_init_hard_regno_mode_ok): Adjust.
8541         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
8542         * doc/md.texi (Machine Constraints): Adjust.
8544 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8546         * config/rs6000/constraints.md (define_register_constraint "wm"):
8547         Delete.
8548         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8549         RS6000_CONSTRAINT_wm.
8550         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8551         (rs6000_init_hard_regno_mode_ok): Adjust.
8552         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
8553         * doc/md.texi (Machine Constraints): Adjust.
8555 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8557         * config/rs6000/constraints.md (define_register_constraint "wk"):
8558         Delete.
8559         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8560         RS6000_CONSTRAINT_wk.
8561         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8562         (rs6000_init_hard_regno_mode_ok): Adjust.
8563         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
8564         * doc/md.texi (Machine Constraints): Adjust.
8566 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8568         * config/rs6000/constraints.md (define_register_constraint "wj"):
8569         Delete.
8570         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8571         RS6000_CONSTRAINT_wj.
8572         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8573         (rs6000_init_hard_regno_mode_ok): Adjust.
8574         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
8575         (VS_64dm): Delete.
8576         * config/rs6000/vsx.md: Ditto.
8577         * doc/md.texi (Machine Constraints): Adjust.
8579 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8581         * config/rs6000/constraints.md (define_register_constraint "wh"):
8582         Delete.
8583         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8584         RS6000_CONSTRAINT_wh.
8585         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8586         (rs6000_init_hard_regno_mode_ok): Adjust.
8587         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
8588         * doc/md.texi (Machine Constraints): Adjust.
8590 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
8592         PR target/90547
8593         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
8594         Avoid calling gen_lowpart with CONST operand.
8596 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
8598         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
8599         field template_last_to_copy.
8600         (ssa_create_duplicates): Set it, and use it.  Attempt to
8601         preserve more debug stmts.
8603 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
8605         * config/i386/sse.md (VF1_AVX2): New mode iterator.
8606         (signbit<mode>2): New expander
8608 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
8610         PR bootstrap/87338
8611         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
8612         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
8614 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
8616         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
8617         %ebx and %ecx bafore calling cpuid with leaf 1 or
8618         non-constant leaf argument.
8620 2019-05-21  Alan Modra  <amodra@gmail.com>
8622         PR target/90545
8623         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
8624         power9 direct move cost.
8625         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
8626         Correct comments and rename functions to suit parameters.
8628 2019-05-21  Richard Biener  <rguenther@suse.de>
8630         PR middle-end/90510
8631         * fold-const.c (fold_read_from_vector): New function.
8632         * fold-const.h (fold_read_from_vector): Declare.
8633         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
8634         single-element insert permutations.  Canonicalize selector
8635         further and fix issue with last commit.
8637 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
8639         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
8640         parameter with default value false to declaration.
8641         (split_edges_for_insertion): New inline function.  Wrapper for
8642         split_critical_edges with for_edge_insertion_p = true.
8643         * tree-cfg.c (split_critical_edges): Don't split non-critical
8644         edges if for_edge_insertion_p is false.  Fix whitespace.
8645         * tree-ssa-pre.c (pass_pre::execute): Call
8646         split_edges_for_insertion instead of split_critical_edges.
8647         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
8648         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
8649         (pass_data_sink_code): Update function name in the comment.
8651 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
8653         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
8654         around is_value_included_in that knows how to handle BIT_AND_EXPR.
8655         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
8656         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
8657         positives.
8659 2019-05-21  Martin Liska  <mliska@suse.cz>
8661         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
8662         an extra newline.
8663         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
8664         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
8665         vec_lvsr.
8666         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8667         Quote a C type.
8668         (rs6000_function_arg): Likewise.
8669         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
8670         (rs6000_expand_ternop_builtin): Use interval syntax.
8671         (get_element_number): Likewise.
8672         (altivec_expand_builtin): Likewise.
8673         (rs6000_get_function_versions_dispatcher): Quote target_clones.
8675 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8677         PR c++/59813
8678         PR target/90418
8679         * function.h (struct function): Add calls_eh_return member.
8680         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
8681         gimplifying __builtin_eh_return call.
8682         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
8683         to cfun.
8684         (expand_call_inline): Or in src_cfun->calls_eh_return into
8685         dst_cfun->calls_eh_return.
8686         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8687         cfun->calls_eh_return.
8688         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8689         * lto-streamer-out.c (output_struct_function_base): Write
8690         calls_eh_return.
8692 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
8694         PR rtl-optimization/43147
8695         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8696         IX86_BUILTIN_SHUFPD.
8698 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
8700         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8701         (refs_may_alias_p_1): ... here; update stats.
8702         (refs_may_alias_p): Do not update stats here.
8704 2019-05-20  Richard Biener  <rguenther@suse.de>
8706         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8707         doesn't produce pointers.
8708         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8709         the first operand points to.
8711 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
8713         * tree-ssa-alias.c (compare_sizes): New function.
8714         (sompare_type_sizes): New function
8715         (aliasing_component_refs_p): Use it.
8716         (indirect_ref_may_alias_decl_p): Likewise.
8718 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8720         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8722 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8724         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8725         (LIBLSAN_EARLY_SPEC): Likewise.
8726         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8728 2019-05-20  Martin Liska  <mliska@suse.cz>
8730         * config/i386/i386.c (ix86_libc_has_fast_function):
8731         Add ATTRIBUTE_UNUSED for the argument.
8733 2019-05-20  Richard Biener  <rguenther@suse.de>
8735         * gimple-match-head.c: Include vec-perm-indices.h.
8736         * generic-match-head.c: Likewise.
8737         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8738         is included.
8739         * fold-const.c (fold_vec_perm): Export.
8740         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8741         (match.pd): ...here.
8743 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8745         * cfgloop.h (struct loop): Add simdlen member.
8746         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8747         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8748         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8749         as new argument to autovectorize_vector_sizes target hook.  If
8750         loop->simdlen, pick up vector size where the vectorization factor
8751         is equal to loop->simd, and if there is none, fall back to the first
8752         successful one.
8753         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8754         caller.
8755         * omp-low.c (omp_clause_aligned_alignment): Likewise.
8756         * omp-general.c (omp_max_vf): Likewise.
8757         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8758         * tree-vect-slp.c (vect_slp_bb): Likewise.
8759         * target.def (autovectorize_vector_sizes): Add ALL argument and
8760         document it.
8761         * doc/tm.texi: Adjust documentation.
8762         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8763         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8764         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8765         bool argument.
8766         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8767         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8768         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8769         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
8770         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8771         preferred vector size is not 512-bit or 256-bit, just put those
8772         unpreferred ones last.
8774 2019-05-20  Martin Liska  <mliska@suse.cz>
8776         * targhooks.c (default_libc_has_fast_function): New function.
8777         * targhooks.h (default_libc_has_fast_function): Likewise.
8779 2019-05-20  Martin Liska  <mliska@suse.cz>
8781         PR middle-end/90263
8782         * builtins.c (expand_builtin_memory_copy_args): When having a
8783         target with fast mempcpy implementation do now use memcpy.
8784         * config/i386/i386.c (ix86_libc_has_fast_function): New.
8785         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8786         * doc/tm.texi: Likewise.
8787         * doc/tm.texi.in: Likewise.
8788         * target.def:
8789         * expr.c (emit_block_move_hints): Add 2 new arguments.
8790         * expr.h (emit_block_move_hints): Bail out when libcall
8791         to memcpy would be used.
8793 2019-05-20  Martin Liska  <mliska@suse.cz>
8795         * profile-count.c: Add vertical spacing in order
8796         to separate functions.
8797         * profile-count.h: Likewise.
8799 2019-05-20  Martin Liska  <mliska@suse.cz>
8801         * profile-count.h: Do not use full qualified
8802         names if possible.
8803         * profile-count.c (profile_count::to_frequency): Likewise.
8805 2019-05-20  Martin Liska  <mliska@suse.cz>
8807         * profile-count.h (enum profile_quality): Use capital letters
8808         for enum value names.  Use the adjusted names.
8809         * profile-count.c: Use the adjusted names.
8811 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8813         * config/rs6000/constraints.md (define_register_constraint "wH"):
8814         Delete.
8815         (define_register_constraint "wI"): Delete.
8816         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8817         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8818         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8819         (rs6000_init_hard_regno_mode_ok): Adjust.
8820         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8821         resp. "d", or with "wa" as appropriate, all with "p8v".
8822         * config/rs6000/vsx.md: Ditto.
8823         * doc/md.texi (Machine Constraints): Adjust.
8825 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8827         * config/rs6000/constraints.md (define_register_constraint "wy"):
8828         Delete.
8829         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8830         RS6000_CONSTRAINT_wy.
8831         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8832         (rs6000_init_hard_regno_mode_ok): Adjust.
8833         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8834         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8835         (define_mode_attr Fisa): New.
8836         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8837         * doc/md.texi (Machine Constraints): Adjust.
8839 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8841         * config/rs6000/constraints.md (define_register_constraint "wu"):
8842         Delete.
8843         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8844         RS6000_CONSTRAINT_wu.
8845         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8846         (rs6000_init_hard_regno_mode_ok): Adjust.
8847         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8848         both with "p8v".
8849         (define_mode_attr Fa): Delete.
8850         * config/rs6000/vsx.md: Ditto.
8851         * doc/md.texi (Machine Constraints): Adjust.
8853 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8855         * config/rs6000/constraints.md (define_register_constraint "wJ"):
8856         Delete.
8857         (define_register_constraint "wK"): Delete.
8858         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8859         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8860         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8861         (rs6000_init_hard_regno_mode_ok): Adjust.
8862         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8863         Replace "wK" constraint by "wH" with "p9v".
8864         * config/rs6000/vsx.md: Ditto.
8865         * doc/md.texi (Machine Constraints): Adjust.
8867 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8869         * config/rs6000/constraints.md (define_register_constraint "wb"):
8870         Delete.
8871         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8872         RS6000_CONSTRAINT_wb.
8873         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8874         (rs6000_init_hard_regno_mode_ok): Adjust.
8875         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
8876         * config/rs6000/vsx.md: Ditto.
8877         * doc/md.texi (Machine Constraints): Adjust.
8879 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
8881         * config/rs6000/constraints.md (define_register_constraint "wo"):
8882         Delete.
8883         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8884         RS6000_CONSTRAINT_wo.
8885         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8886         (rs6000_init_hard_regno_mode_ok): Adjust.
8887         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
8888         * config/rs6000/altivec.md: Ditto.
8889         * doc/md.texi (Machine Constraints): Adjust.
8891 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
8893         * config/darwin-c.c (darwin_register_objc_includes): Do not
8894         prepend the sysroot when building gnu-runtime header search
8895         paths.
8897 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
8899         * config/darwin.c (darwin_file_end): Use switch_to_section ()
8900         instead of direct output of the asm.
8902 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
8904         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
8905         argument to be type bool (was int before).
8906         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
8907         at first use.  Use type bool for some variables.  Fix a theoretical
8908         eh_return bug for svr4.
8910 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
8912         * config/rs6000/rs6000.md (isa): New attribute.
8913         (enabled): New attribute.
8915 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
8917         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
8918         assemble_start_function and assemble_end_function.
8920 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
8922         PR middle-end/89433
8923         * omp-general.c (oacc_verify_routine_clauses): Change formal
8924         parameters.  Add checking if already marked with an OpenACC
8925         'routine' directive.  Adjust all users.
8927         PR middle-end/89433
8928         * omp-general.c (oacc_build_routine_dims): Move some of its
8929         processing into...
8930         (oacc_verify_routine_clauses): ... this new function.
8931         * omp-general.h (oacc_verify_routine_clauses): New prototype.
8933 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
8935         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
8936         formating of picbase labels to match other ports.
8938 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
8940         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
8941         in the generated code.
8943 2019-05-16  Martin Sebor  <msebor@redhat.com>
8945         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
8946         identifiers, keywords, operators, and types in diagnostics.  Correct
8947         quoting, spelling, and sentence capitalization issues.
8948         (expand_builtin_atomic_is_lock_free): Same.
8949         (fold_builtin_next_arg): Same.
8950         * cfgexpand.c (expand_one_var): Same.
8951         (tree_conflicts_with_clobbers_p): Same.
8952         (expand_asm_stmt): Same.
8953         (verify_loop_structure): Same.
8954         * cgraphunit.c (process_function_and_variable_attributes): Same.
8955         * collect-utils.c (collect_execute): Same.
8956         * collect2.c (maybe_run_lto_and_relink): Same.
8957         (is_lto_object_file): Same.
8958         (scan_prog_file): Same.
8959         * convert.c (convert_to_real_1): Same.
8960         * dwarf2out.c (dwarf2out_begin_prologue): Same.
8961         * except.c (verify_eh_tree): Same.
8962         * gcc.c (execute): Same.
8963         (eval_spec_function): Same.
8964         (run_attempt): Same.
8965         (driver::set_up_specs): Same.
8966         (compare_debug_auxbase_opt_spec_function): Same.
8967         * gcov-tool.c (unlink_gcda_file): Same.
8968         (do_merge): Same.
8969         (do_rewrite): Same.
8970         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
8971         * gimplify.c (gimplify_asm_expr): Same.
8972         (gimplify_adjust_omp_clauses): Same.
8973         * hsa-gen.c (gen_hsa_addr_insns): Same.
8974         (gen_hsa_insns_for_load): Same.
8975         (gen_hsa_cmp_insn_from_gimple): Same.
8976         (gen_hsa_insns_for_operation_assignment): Same.
8977         (gen_get_level): Same.
8978         (gen_hsa_alloca): Same.
8979         (omp_simple_builtin::generate): Same.
8980         (gen_hsa_atomic_for_builtin): Same.
8981         (gen_hsa_insns_for_call): Same.
8982         * input.c (dump_location_info): Same.
8983         * ipa-devirt.c (compare_virtual_tables): Same.
8984         * ira.c (ira_setup_eliminable_regset): Same.
8985         * lra-assigns.c (lra_assign): Same.
8986         * lra-constraints.c (lra_constraints): Same.
8987         * lto-streamer-in.c (lto_input_mode_table): Same.
8988         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
8989         (merge_and_complain): Same.
8990         (compile_offload_image): Same.
8991         (compile_images_for_offload_targets): Same.
8992         (debug_objcopy): Same.
8993         (run_gcc): Same.
8994         (main): Same.
8995         * opts.c (print_specific_help): Same.
8996         (parse_no_sanitize_attribute): Same.
8997         (print_help): Same.
8998         (handle_param): Same.
8999         * plugin.c (add_new_plugin): Same.
9000         (parse_plugin_arg_opt): Same.
9001         (try_init_one_plugin): Same.
9002         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
9003         operators, and types in diagnostics.  Correct quoting and spelling
9004         issues.
9005         * read-rtl-function.c (parse_edge_flag_token): Same.
9006         (function_reader::parse_enum_value): Same.
9007         * reg-stack.c (check_asm_stack_operands): Same.
9008         * regcprop.c (validate_value_data): Same.
9009         * sched-rgn.c (make_pass_sched_fusion): Same.
9010         * stmt.c (check_unique_operand_names): Same.
9011         * targhooks.c (default_target_option_pragma_parse): Same.
9012         * tlink.c (recompile_files): Same.
9013         * toplev.c (process_options): Same.
9014         (do_compile): Same.
9015         * trans-mem.c (diagnose_tm_1): Same.
9016         (ipa_tm_scan_irr_block): Same.
9017         (ipa_tm_diagnose_transaction): Same.
9018         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
9019         format a tree code name in a diagnostic.
9020         (verify_types_in_gimple_min_lval): Same.
9021         (verify_types_in_gimple_reference): Same.
9022         (verify_gimple_call): Same.
9023         (verify_gimple_assign_unary): Same.
9024         (verify_gimple_assign_binary): Same.
9025         (verify_gimple_assign_ternary): Same.
9026         (verify_gimple_assign_single): Same.
9027         (verify_gimple_switch): Same.
9028         (verify_gimple_label): Same.
9029         (verify_gimple_phi): Same.
9030         (verify_gimple_in_seq): Same.
9031         (verify_eh_throw_stmt_node): Same.
9032         (collect_subblocks): Same.
9033         (gimple_verify_flow_info): Same.
9034         (do_warn_unused_result): Same.
9035         * tree-inline.c (expand_call_inline): Same.
9036         * tree-into-ssa.c (update_ssa): Same.
9037         * tree.c (tree_int_cst_elt_check_failed): Same.
9038         (tree_vec_elt_check_failed): Same.
9039         (omp_clause_operand_check_failed): Same.
9040         (verify_type_variant): Same.
9041         (verify_type): Same.
9042         * value-prof.c (verify_histograms): Same.
9043         * varasm.c (assemble_start_function): Same.
9045 2019-05-16  Martin Sebor  <msebor@redhat.com>
9047         * config/i386/i386-expand.c (get_element_number): Quote keywords
9048         and other internal names in diagnostics.  Adjust other diagnostic
9049         formatting issues noted by -Wformat-diag.
9050         * config/i386/i386-features.c
9051         (ix86_mangle_function_version_assembler_name): Same.
9052         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
9053         * config/i386/i386.c (ix86_function_type_abi): Same.
9054         (ix86_function_ms_hook_prologue): Same.
9055         (classify_argument): Same.
9056         (ix86_expand_prologue): Same.
9057         (ix86_md_asm_adjust): Same.
9058         (ix86_memmodel_check): Same.
9060 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
9062         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
9063         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
9064         and fpxx modes.
9066 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9068         PR target/90497
9069         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
9070         intrinsics without SSE/SSE2/SSSE3.
9071         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
9072         check.
9073         (*mmx_uavgv8qi3): Likewise.
9075 2019-05-17  Richard Biener  <rguenther@suse.de>
9077         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
9078         VEC_PERM_EXPR as __VEC_PERM with -gimple.
9080 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
9082         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
9083         vec_sldw insn pattern.
9085 2019-05-17  Richard Biener  <rguenther@suse.de>
9087         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
9089 2019-05-17  Martin Liska  <mliska@suse.cz>
9091         PR driver/90496
9092         * toplev.c (output_stack_usage): With LTO and sanitizer it
9093         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
9094         has no file location.
9096 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
9098         PR c++/90484
9099         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
9100         sz0 is equal to sz1, instead return false in that case.
9102         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
9103         has non-constant expression, force sctx.lane and use two
9104         argument IFN_GOMP_SIMD_LANE instead of single argument.
9105         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
9106         two argument IFN_GOMP_SIMD_LANE without lhs.
9107         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
9108         member.
9109         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
9110         Define.
9111         (LOOP_REQUIRES_VERSIONING): Or in
9112         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
9113         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9114         simd_if_cond.
9115         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
9116         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
9117         from simd if clause if needed.
9119 2019-05-16  Richard Biener  <rguenther@suse.de>
9121         * tree-affine.c (expr_to_aff_combination): New function split
9122         out from...
9123         (tree_to_aff_combination): ... here.
9124         (aff_combination_expand): Avoid building a GENERIC tree.
9126 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
9128         * cgraphunit.c (cgraph_node::expand_thunk): Remove
9129         assemble_start_function and assemble_end_function calls.
9130         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
9131         assemble_start_function and assemble_end_function.
9132         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
9133         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
9134         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
9135         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
9136         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
9137         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
9138         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
9139         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
9140         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9141         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9142         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9143         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
9144         Likewise.
9145         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9146         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
9147         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
9148         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
9149         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9150         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9151         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
9152         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
9153         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9154         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9155         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9156         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9157         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
9158         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
9159         Likewise.
9160         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9161         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9162         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
9164 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
9166         * tree-ssa-alias.c (alias_stats): Add
9167         aliasing_component_refs_p_may_alias and
9168         aliasing_component_refs_p_no_alias.
9169         (dump_alias_stats): Print aliasing_component_refs_p stats.
9170         (aliasing_component_refs_p): Update stats.
9172 2019-05-16  Martin Liska  <mliska@suse.cz>
9174         PR lto/90500
9175         * multiple_target.c (expand_target_clones): Do not allow
9176         target_clones being used with a symbol that is an alias.
9178 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
9180         PR tree-optimization/90394
9181         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
9182         positives rather than ICE for cases where (code2 == NE_EXPR
9183         && code1 == BIT_AND_EXPR).
9185 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
9187         PR fortran/90329
9188         * tree-core.h (struct tree_decl_common): Document
9189         decl_nonshareable_flag for PARM_DECLs.
9190         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
9191         * calls.c (expand_call): Don't try tail call if caller
9192         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
9193         passed on the stack and callee needs to pass any arguments on the
9194         stack.
9195         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9196         else if instead of series of mutually exclusive ifs.  Handle
9197         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
9198         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9200         * lto-streamer.h (LTO_major_version): Bump to 9.
9202 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
9204         PR tree-optimization/90106
9205         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
9206         new parameter as new internal function call, also move it to new
9207         basic block.
9208         (use_internal_fn): Pass internal function call to
9209         shrink_wrap_one_built_in_call_with_conds.
9211 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
9213         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
9214         max_vf to 1.
9215         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
9216         safelen_int and set loop->dont_vectorize.
9218 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9220         PR target/89021
9221         * config/i386/i386-builtin.def: Enable MMX intrinsics with
9222         SSE/SSE2/SSSE3.
9223         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
9224         Likewise.
9225         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
9226         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
9227         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
9228         is defined.
9230 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9232         PR target/89021
9233         * config/i386/mmx.md (*vec_dupv2sf): Changed to
9234         define_insn_and_split to support SSE emulation.
9235         (*vec_extractv2sf_0): Likewise.
9236         (*vec_extractv2sf_1): Likewise.
9237         (*vec_extractv2si_0): Likewise.
9238         (*vec_extractv2si_1): Likewise.
9239         (*vec_extractv2si_zext_mem): Likewise.
9240         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
9241         (vec_extractv2sf_1 splitter): Likewise.
9242         (vec_extractv2sfsf): Likewise.
9243         (vec_setv2si): Likewise.
9244         (vec_extractv2si_1 splitter): Likewise.
9245         (vec_extractv2sisi): Likewise.
9246         (vec_setv4hi): Likewise.
9247         (vec_extractv4hihi): Likewise.
9248         (vec_setv8qi): Likewise.
9249         (vec_extractv8qiqi): Likewise.
9250         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
9251         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
9252         (vec_extractv2sisi): Likewise.
9253         (vec_extractv4hihi): Likewise.
9254         (vec_extractv8qiqi): Likewise.
9255         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
9256         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
9257         (vec_initv2sisi): Likewise.
9258         (vec_initv4hihi): Likewise.
9259         (vec_initv8qiqi): Likewise.
9260         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
9261         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
9262         (vec_setv4hi): Likewise.
9263         (vec_setv8qi): Likewise.
9265 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9267         PR target/89021
9268         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
9269         TARGET_MMX_WITH_SSE.
9270         (MMXMODE:*mov<mode>_internal): Likewise.
9271         (MMXMODE:movmisalign<mode>): Likewise.
9273 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
9275         PR target/89021
9276         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
9277         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
9278         (sse2_cvtpd2pi): Ditto.
9279         (sse2_cvttpd2pi): Ditto.
9280         (*vec_concatv2sf_sse4_1): Ditto.
9281         (*vec_concatv2sf_sse): Ditto.
9282         (*vec_concatv2si_sse4_1): Ditto.
9283         (*vec_concatv2si): Ditto.
9284         (*vec_concatv4si_0): Ditto.
9285         (*vec_concatv2di_0): Ditto.
9287 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9289         PR target/89021
9290         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
9292 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9294         PR target/89021
9295         * config/i386/sse.md (ssse3_palignrdi): Changed to
9296         define_insn_and_split to support SSE emulation.
9298 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9300         PR target/89021
9301         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
9303 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9305         PR target/89021
9306         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
9307         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
9308         SSE emulation.
9310 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9312         PR target/89021
9313         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
9314         or TARGET_MMX_WITH_SSE.
9315         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
9317 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9319         PR target/89021
9320         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
9322 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9324         PR target/89021
9325         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
9326         Changed to define_insn_and_split to support SSE emulation.
9328 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9330         PR target/89021
9331         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
9332         Changed to define_insn_and_split to support SSE emulation.
9334 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9336         PR target/89021
9337         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
9338         (*mmx_<emms>): This.
9339         (mmx_<emms>): New expander.
9341 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9343         PR target/89021
9344         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
9345         support.
9346         (*sse2_umulv1siv1di3): Add SSE2 emulation.
9348 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9350         PR target/89021
9351         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
9353 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9355         PR target/89021
9356         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
9358 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9360         PR target/89021
9361         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
9362         TARGET_MMX_WITH_SSE.
9363         (*mmx_uavgv4hi3): Add SSE emulation.
9365 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9367         PR target/89021
9368         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
9369         and TARGET_MMX_WITH_SSE.
9370         (*mmx_uavgv8qi3): Add SSE emulation.
9372 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9374         PR target/89021
9375         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
9376         maskmovdqu for __MMX_WITH_SSE__.
9378 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9380         PR target/89021
9381         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
9382         TARGET_MMX and TARGET_MMX_WITH_SSE.
9383         (*mmx_umulv4hi3_highpart): Add SSE emulation.
9385 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9387         PR target/89021
9388         * config/i386/mmx.md (mmx_pmovmskb): Changed to
9389         define_insn_and_split to support SSE emulation.
9391 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9393         PR target/89021
9394         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
9395         and TARGET_MMX_WITH_SSE.
9396         (mmx_<code>v8qi3): Likewise.
9397         (smaxmin:<code>v4hi3): New.
9398         (umaxmin:<code>v8qi3): Likewise.
9399         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
9400         (umaxmin:*mmx_<code>v8qi3): Likewise.
9402 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9404         PR target/89021
9405         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
9406         TARGET_MMX_WITH_SSE.
9407         (*mmx_pinsrw): Add SSE emulation.
9409 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9411         PR target/89021
9412         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
9414 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9416         PR target/89021
9417         * config/i386/sse.md (sse_cvtpi2ps): Changed to
9418         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
9419         SSE emulation.
9421 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9423         PR target/89021
9424         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
9425         (sse_cvttps2pi): Likewise.
9427 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9429         PR target/89021
9430         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
9431         TARGET_MMX_WITH_SSE.
9432         (mmx_pshufw_1): Add SSE emulation.
9433         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
9434         TARGET_MMX_WITH_SSE to support SSE emulation.
9436 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9438         PR target/89021
9439         * config/i386/constraints.md (Yw): New constraint.
9440         * config/i386/mmx.md (*vec_dupv2si): Changed to
9441         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
9442         support SSE emulation.
9444 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9446         PR target/89021
9447         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
9448         TARGET_MMX_WITH_SSE.
9449         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
9450         support.
9451         (mmx_gt<mode>3): Likewise.
9453 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9455         PR target/89021
9456         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
9457         TARGET_MMX_WITH_SSE.  Add SSE support.
9459 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9461         PR target/89021
9462         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
9463         TARGET_MMX_WITH_SSE.
9464         (any_logic:<code><mode>3): New.
9465         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
9466         Add SSE support.
9468 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9470         PR target/89021
9471         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
9472         TARGET_MMX_WITH_SSE.  Add SSE emulation.
9473         (mmx_<shift_insn><mode>3): Likewise.
9474         (ashr<mode>3): New.
9475         (<shift_insn><mode>3): Likewise.
9477 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9479         PR target/89021
9480         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
9481         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
9483 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9485         PR target/89021
9486         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
9487         TARGET_MMX_WITH_SSE.
9488         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
9489         SSE support.
9491 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9493         PR target/89021
9494         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
9495         TARGET_MMX_WITH_SSE.
9496         (mulv4hi3): New.
9497         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
9498         support.
9500 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9502         PR target/89021
9503         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
9504         (plusminus:mmx_<plusminus_insn><mode>3): Check
9505         TARGET_MMX_WITH_SSE.
9506         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
9507         (<plusminus_insn><mode>3): New.
9508         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
9509         (*mmx_<plusminus_insn><mode>3): Likewise.
9511 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9513         PR target/89021
9514         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
9515         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
9516         prototype.
9517         * config/i386/mmx.m (mmx_punpckhbw): Changed to
9518         define_insn_and_split to support SSE emulation.
9519         (mmx_punpcklbw): Likewise.
9520         (mmx_punpckhwd): Likewise.
9521         (mmx_punpcklwd): Likewise.
9522         (mmx_punpckhdq): Likewise.
9523         (mmx_punpckldq): Likewise.
9525 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9526             Uros Bizjak  <ubizjak@gmail.com>
9528         PR target/89021
9529         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
9530         New function.
9531         (ix86_split_mmx_pack): Likewise.
9532         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
9533         New prototype.
9534         (ix86_split_mmx_pack): Likewise.
9535         * config/i386/i386.md (mmx_isa): New.
9536         (enabled): Also check mmx_isa.
9537         * config/i386/mmx.md (any_s_truncate): New code iterator.
9538         (s_trunsuffix): New code attr.
9539         (mmx_packsswb): Removed.
9540         (mmx_packssdw): Likewise.
9541         (mmx_packuswb): Likewise.
9542         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
9543         MMX packsswb/packuswb with SSE2.
9544         (mmx_packssdw): Likewise.
9545         * config/i386/predicates.md (register_mmxmem_operand): New.
9547 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9549         PR target/89021
9550         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9551         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
9552         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
9553         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
9554         (ix86_vector_mode_supported_p): Likewise.
9555         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
9557 2019-05-15  Martin Liska  <mliska@suse.cz>
9559         PR middle-end/90478
9560         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9561         Check for overflow.
9563 2019-05-15  Richard Biener  <rguenther@suse.de>
9565         * tree-into-ssa.c (pass_build_ssa::execute): Run
9566         update_address_taken before going into SSA.
9568 2019-05-15  Richard Biener  <rguenther@suse.de>
9570         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
9571         as __BIT_FIELD_REF with type with -gimple.
9573 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
9575         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
9576         semantically equivalent branches (left over after prior refactorings).
9578 2019-05-15  Richard Biener  <rguenther@suse.de>
9580         PR tree-optimization/88828
9581         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
9582         bogus check.
9584 2019-05-14  Richard Biener  <rguenther@suse.de>
9586         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
9587         as __VIEW_CONVERT with -gimple.
9589 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
9591         PR target/82920
9592         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
9593         Darwin.
9595 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
9597         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
9598         define_split to become a define_insn_and_split.
9600 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
9602         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
9603         arguments.
9604         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
9605         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
9606         (sibcall_epilogue): Adjust.
9607         (epilogue): Adjust.
9609 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9611         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
9612         to unsupported ones.
9613         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
9614         * config.host: Likewise.
9615         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
9616         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
9617         __svr4__]: Remove "brand" fallback.
9618         [!KSTAT_DATA_STRING]: Remove.
9619         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
9620         to *-*-solaris2*.
9621         (comdat_group): Likewise.
9622         (set_have_as_tls): Likewise.
9623         (gcc_cv_target_dl_iterate_phdr): Likewise.
9624         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
9625         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
9626         * configure: Regenerate.
9627         * doc/install.texi: Simplify Solaris target triplets.
9628         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
9629         (Specific, *-*-solaris2*): Document Solaris 10 removal.
9630         Remove Solaris 10 references.
9631         Remove obsolete Solaris bug reference.
9632         (Specific, sparc-sun-solaris2.10): Remove.
9634 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
9636         * config/i386/i386.md (any_div): New code iterator.
9637         (paired_mod): New code attribute.
9638         (sgnprefix): Handle DIV and UDIV RTXes.
9639         (u): Ditto.
9640         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
9641         and udivmod<mode>4 patterns using any_div code iterator.
9642         (divmod splitters): Macroize splitters using any_div code iterator.
9643         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
9644         (*udivmodsi4_pow2_zext_2): Ditto.
9645         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
9646         and *udivmod<mode>4_noext patterns using any_div code iterator.
9647         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
9648         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
9649         patterns using any_div code iterator.
9650         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
9651         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
9652         patterns using any_div code iterator.
9653         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
9654         udivmodhiqi3 patterns using any_extend code iterator.
9656 2019-05-14  Richard Biener  <rguenther@suse.de>
9657             H.J. Lu  <hongjiu.lu@intel.com>
9659         PR tree-optimization/88828
9660         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9661         permuting in a single non-constant element not extracted
9662         from a vector.
9664 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
9666         * internal-fn.def (SIGNBIT): New.
9667         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
9668         defined.
9669         (signbitv4sf2): Likewise.
9671 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
9673         PR target/90357
9674         * config/mips/mips.c (mips_split_move): Skip forward SRC into
9675         next insn when the SRC reg is dead.
9677 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
9679         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
9680         (alloc_cand_and_find_basis): Ditto.
9681         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
9682         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
9683         (create_add_imm_cand, slsr_process_cast): Ditto.
9684         (slsr_process_copy, replace_mult_candidate): Ditto.
9685         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9686         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9687         (pass_strength_reduction::execute): Init the first NULL element.
9689 2019-05-13  Nathan Sidwell  <nathan@acm.org>
9691         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
9692         (run_attempt): Reformat line break.
9694 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
9696         PR target/90418
9697         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9698         data registers in sibcall epilogues.
9699         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9701 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
9703         PR target/89221
9704         * configure.ac (--enable-frame-pointer):
9705         Disable by default for cygwin and mingw.
9706         * configure: Regenerate.
9708 2019-05-13  Nathan Sidwell  <nathan@acm.org>
9710         * dwarf2out.c (breakout_comdat_types): Move comment to correct
9711         piece of code.
9712         (const_ok_for_output_1): Balance parens around #if/#else/#endif
9713         (gen_member_die): Move abstract origin check earlier.  Only VARs
9714         can be static_inline_p.  Simplify splicing control flow.
9716 2019-05-13  Richard Biener  <rguenther@suse.de>
9718         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9719         VIEW_CONVERT_EXPR.
9720         (vect_build_slp_tree_1): Likewise.
9722 2019-05-13  Richard Biener  <rguenther@suse.de>
9724         PR tree-optimization/90402
9725         * tree-if-conv.c (tree_if_conversion): Value number only
9726         the loop body by making the latch an exit of the region
9727         as well.
9728         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9729         processing PHIs.
9730         (do_rpo_vn): Deal with multiple edges into the entry block
9731         that are not backedges inside the region by skipping PHIs
9732         of the entry block.
9734 2019-05-13  Richard Biener  <rguenther@suse.de>
9736         PR tree-optimization/90316
9737         * tree-ssa-pre.c (insert_aux): Fold into ...
9738         (insert): ... this function.  Use a RPO walk to reduce the
9739         number of required iterations.
9741 2019-05-13  Martin Liska  <mliska@suse.cz>
9743         PR tree-optimization/90416
9744         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9745         string instead of passing the second part as va_arg argument.
9747 2019-05-13  Martin Liska  <mliska@suse.cz>
9749         PR gcov-profile/90380
9750         * gcov.c (handle_cycle): Do not support zero cycle count,
9751         it should not be possible.
9752         (path_contains_zero_cycle_arc): New function.
9753         (circuit): Ignore zero cycle arc counts.
9755 2019-05-13  Martin Liska  <mliska@suse.cz>
9757         PR gcov-profile/90380
9758         * gcov.c (enum loop_type): Remove the enum and
9759         the operator.
9760         (handle_cycle): Assert that we should not reach
9761         a negative count.
9762         (circuit): Use loop_found instead of a tri-state loop_type.
9763         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9764         happen.
9766 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
9768         PR target/82920
9769         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9770         (ix86_output_indirect_branch_via_reg): Use output mechanism
9771         accounting for __USER_LABEL_PREFIX__.
9772         (ix86_output_indirect_branch_via_push): Likewise.
9773         (ix86_output_function_return): Likewise.
9774         (ix86_output_indirect_function_return): Likewise.
9776 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
9778         * doc/md.texi: Document use of code attributes in rtx patterns.
9779         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9780         * read-rtl.c (find_code): Split out search loops into...
9781         (maybe_find_code): ...this new function.
9782         (check_code_iterator): Make the error message more informative.
9783         (check_code_attribute): New function.
9784         (rtx_reader::rtx_alloc_for_name): Likewise.
9785         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9786         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9787         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9788         <max_opp> directly as an rtx code instead of via a match_operator.
9789         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9790         (<su>abd<mode>_3): Update accordingly.
9792 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
9794         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9795         is given, print the state of the EH "save world" computation for
9796         Darwin.
9798 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
9800         PR c++/59813
9801         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9802         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9804 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
9806         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9807         Use pinsrd for TARGET_SSE4_1.
9808         * config/i386/sse.md (movdi_to_sse): Ditto.
9810 2019-05-10  Richard Biener  <rguenther@suse.de>
9812         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9813         (do_rpo_vn): Initialize next_value_id.
9815 2019-05-10  Martin Liska  <mliska@suse.cz>
9817         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9818         Fix plural form.
9820 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
9822         PR tree-optimization/90385
9823         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9824         arguments of the exit phis.
9826         PR c++/90383
9827         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9828         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9829         id->do_not_fold.
9830         (copy_tree_body_r): Likewise.
9831         (copy_fn): Set id.do_not_fold to true.
9833 2019-05-10  Martin Liska  <mliska@suse.cz>
9835         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9836         Reapply changes from r269790.
9838 2019-05-10  Martin Liska  <mliska@suse.cz>
9840         PR middle-end/90340
9841         * doc/invoke.texi: New params.
9842         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9843         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9844         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9845         Use it.
9846         * tree-switch-conversion.h (struct jump_table_cluster):
9847         Likewise.
9849 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
9851         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9853 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
9855         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9857 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
9859         PR rtl-optimization/88879
9860         * sel-sched.c (sel_target_adjust_priority): Remove assert.
9862 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
9864         PR target/90405
9865         * config/arm/arm.c (callee_saved_reg_p): Move before
9866         thumb_find_work_register.
9867         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9868         thumb_find_work_register.  Only call df_get_live_out once.
9869         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9870         (thumb_find_work_register): Use
9871         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9872         algorithms to locate a spare call clobbered reg.
9874 2019-05-09  Martin Liska  <mliska@suse.cz>
9876         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
9877         and MAX_EXPR in GIMPLE FE format.
9879 2019-05-09  Martin Liska  <mliska@suse.cz>
9881         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
9882         * gimple-pretty-print.c (dump_gimple_bb_header):
9883         Dump BB count.
9884         (pp_cfg_jump): Dump edge probability.
9885         * profile-count.c (profile_quality_as_string): Simplify
9886         with a static array.
9887         (parse_profile_quality): New function.
9888         (profile_count::dump): Simplify with a static array.
9889         (profile_count::from_gcov_type): Add new argument.
9890         * profile-count.h (parse_profile_quality): Likewise.
9891         * predict.h (set_hot_bb_threshold): New.
9892         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9893         New param.
9894         * predict.c (get_hot_bb_threshold): Set from the new param.
9895         (set_hot_bb_threshold): New.
9897 2019-05-09  Richard Biener  <rguenther@suse.de>
9899         PR tree-optimization/90395
9900         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
9901         rewrite vector stores that throw internally.
9903 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
9905         * cif-code.def (CHKP): Remove.
9907         PR target/89221
9908         * configure.ac (--enable-frame-pointer): Disable by default for
9909         GNU systems.
9910         * configure: Regenerate.
9912 2019-05-09  Alan Modra  <amodra@gmail.com>
9914         PR target/89271
9915         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
9916         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
9917         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
9918         cost for general <-> vsx when direct moves are available.
9919         Cost union classes at minimal cost for any reg in the class.
9920         Correct calculation for moves between vsx, float, and altivec.
9921         Don't return a low cost for moves between special regs.  Don't
9922         use hard coded register numbers.
9923         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
9924         (rs6000_ira_change_pseudo_allocno_class): New function.
9925         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
9926         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
9927         alternatives.
9928         (movsi_internal1): Don't disparage vector alternatives.
9929         (mov<mode>_internal): Likewise, excepting alternative that
9930         will be split.
9931         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
9932         we <- b alternative.
9934 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
9936         PR c++/59813
9937         PR tree-optimization/89060
9938         * tree-ssa-live.h (live_vars_map): New typedef.
9939         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
9940         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
9941         (struct compute_live_vars_data): New type.
9942         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
9943         live_vars_at_stmt, destroy_live_vars): New functions.
9944         * tree-tailcall.c: Include tree-ssa-live.h.
9945         (live_vars, live_vars_vec): New global variables.
9946         (find_tail_calls): Perform variable life analysis before punting.
9947         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
9948         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
9949         member.
9950         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
9951         Perform variable life analysis to select variables that really need
9952         clobbers added.
9953         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
9954         instead set id->eh_landing_pad_dest and assert it is the same.
9955         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
9957 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
9958             Richard Earnshaw  <rearnsha@arm.com>
9960         PR target/88167
9961         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
9962         function.
9963         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
9964         (thumb1_compute_save_core_reg_mask): Don't force a spare work
9965         register if both the epilogue and prologue can use call-clobbered
9966         regs.
9967         (thumb1_unexpanded_epilogue): Use
9968         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
9969         picking temporaries for restoring high regs to match that of the
9970         prologue where possible.
9971         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
9972         the list of work registers.  Detect if the return address is still live
9973         at the end of the prologue and avoid using it for a work register if so.
9974         If the return address is not live, add LR to the list of pushable regs
9975         after the first pass.
9977 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
9979         PR tree-optimization/90078
9980         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
9981         (INFTY): Increase the value for infinite cost.
9982         (struct comp_cost): Promote type of members to int64_t.
9983         (infinite_cost): Don't set complexity in initialization.
9984         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
9985         overflows to infinite_cost.
9986         (adjust_setup_cost): Promote type of parameter and cost computation
9987         to int64_t.
9988         (struct ainc_cost_data, struct iv_ca): Promote type of member to
9989         int64_t.
9990         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
9991         cost computation to int64_t.
9992         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
9993         int64_t's format specifier in dump.
9995 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
9997         PR tree-optimization/90240
9998         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
9999         with respect to scaling factor pre-computed for each basic block.
10000         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
10001         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
10002         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
10003         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
10004         live range for array of loop's basic blocks.  Cleanup aux field of
10005         loop's basic blocks.
10007 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
10009         PR tree-optimization/90356
10010         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
10012 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
10014         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
10015         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
10016         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
10017         (ix86_handle_option): Handle -mavx512bf16.
10018         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
10019         to extra_headers.
10020         * config/i386/avx512bf16vlintrin.h: New.
10021         * config/i386/avx512bf16intrin.h: New.
10022         * config/i386/cpuid.h (bit_AVX512BF16): New.
10023         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
10024         * config/i386/i386-builtin-types.def: Add new types.
10025         * config/i386/i386-builtin.def: Add new builtins.
10026         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10027         __AVX512BF16__.
10028         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
10029         (ix86_option_override_internal): Handle BF16.
10030         (ix86_valid_target_attribute_inner_p): Ditto.
10031         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
10032         * config/i386/i386-builtin.c (enum processor_features): Add
10033         F_AVX512BF16.
10034         (static const _isa_names_table isa_names_table): Ditto.
10035         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
10036         (PTA_AVX512BF16): Ditto.
10037         * config/i386/i386.opt: Add -mavx512bf16.
10038         * config/i386/immintrin.h: Include avx512bf16intrin.h
10039         and avx512bf16vlintrin.h.
10040         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
10041         avx512f_cvtneps2bf16_<mode><mask_name>,
10042         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
10043         * config/i386/subst.md (mask_half): Add new subst.
10044         * doc/invoke.texi: Document -mavx512bf16.
10046 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
10048         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
10049         Delete declaration.
10050         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
10051         (rs6000_debug_legitimize_reload_address): Delete.
10052         (rs6000_legitimize_reload_address_ptr): Delete.
10053         (rs6000_option_override_internal): Adjust.
10054         (mem_operand_gpr): Adjust comment.
10055         (legitimate_lo_sum_address_p): Ditto.
10056         (rs6000_legitimize_reload_address): Delete.
10057         (rs6000_debug_legitimize_reload_address): Delete.
10058         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
10060 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10062         PR target/89765
10063         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10064         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
10065         to compute vector element selector for both constant and variable
10066         operands.
10068 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
10070         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
10071         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
10072         ashrdi3_cvt using SWI48 mode iterator.
10074 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
10076         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
10077         (aarch64_<su>abd<mode>_3): Likewise.
10078         (*aarch64_<su>abd<mode>_3): New define_insn.
10079         (<sur>sad<vsi2qi>): New define_expand.
10080         * config/aarch64/iterators.md: Added MAX_OPP attribute.
10081         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
10082         (build_vect_cond_expr): Likewise.
10084 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
10086         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
10087         clobbers outside of accessible_reg_set.
10088         * config/i386/i386.c (ix86_conditional_register_usage):
10089         Disable register sets by clearing corresponding bits in
10090         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
10091         call_used_regs and don't clear corresponding reg_names array members.
10093 2019-05-07  Richard Biener  <rguenther@suse.de>
10095         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
10096         not specified still compute a comp_vectype for invariant
10097         compares.
10099 2019-05-07  Richard Biener  <rguenther@suse.de>
10101         PR tree-optimization/90316
10102         * tree-ssa-pre.c (translate_vuse_through_block): When
10103         same_valid is NULL do not bother to search for a virtual
10104         PHI continuation.
10105         (phi_translate_1): When operands changed we cannot keep
10106         the same value-number so do not bother to ask whether
10107         that's possible from translate_vuse_through_block.
10109 2019-05-07  Martin Liska  <mliska@suse.cz>
10111         * bitmap.c (bitmap_register): Come up with
10112         alloc_descriptor_max_uid and assign it for
10113         a new bitmap.
10114         (register_overhead): Use get_descriptor as
10115         a descriptor.
10116         (release_overhead): New.
10117         (bitmap_elem_to_freelist): Call it.
10118         (bitmap_elt_clear_from): Likewise.
10119         (bitmap_obstack_free): Likewise.
10120         (bitmap_move): Sensitively release memory.
10121         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
10122         (bitmap_initialize): Initialize alloc_descriptor to zero.
10123         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
10125 2019-05-07  Richard Biener  <rguenther@suse.de>
10127         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
10128         we build a SLP node.  Remove max_size and limiting.
10129         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
10131 2019-05-07  Richard Biener  <rguenther@suse.de>
10133         PR tree-optimization/90316
10134         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
10135         limit by reference.
10136         (walk_non_aliased_vuses): Take walking limit argument.
10137         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
10138         walking if it is reached instead of just counting.
10139         (get_continuation_for_phi): Likewise.
10140         (walk_non_aliased_vuses): Likewise, instead of leaving counter
10141         limiting to the callback.
10142         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
10143         (vn_reference_lookup_3): Likewise.
10144         (vn_reference_lookup_pieces): Likewise.
10145         (vn_reference_lookup): Likewise.
10146         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
10147         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
10148         (avail_exprs_stack::lookup_avail_expr): Likewise.
10150 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
10152         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
10153         for comparaible types in the second direction even if first one
10154         hits incomparable type.
10156 2019-05-07  Richard Biener  <rguenther@suse.de>
10158         PR lto/90369
10159         * lto-wrapper.c (debug_objcopy): Use the original filename
10160         including archive offset for the filename used for -save-temps.
10162 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
10164         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
10165         detection.
10167 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10168             Hongtao Liu  <hongtao.liu@intel.com>
10170         PR target/89750
10171         PR target/86444
10172         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
10173         Modified, original implementation isn't correct.
10175 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
10177         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
10178         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
10179         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
10180         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
10181         (FRAME_POINTER_REGNUM): Change numbering.
10182         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
10183         (alt_reg_names): Adjust.
10184         (rs6000_conditional_register_usage): Don't mark hard register 64 as
10185         fixed.
10186         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10187         (DWARF_FRAME_REGISTERS): Delete.
10188         (DWARF2_FRAME_REG_OUT): Fix whitespace.
10189         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10190         Adjust.
10191         (REG_ALLOC_ORDER): Adjust.
10192         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
10193         (REG_CLASS_CONTENTS): Adjust.
10194         (RETURN_ADDR_RTX): Change comment.
10195         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
10196         instead of 67.
10197         (REGISTER_NAMES): Adjust.
10198         (ADDITIONAL_REGISTER_NAMES): Adjust.
10199         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10201 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
10203         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
10204         Delete.
10205         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10206         (DWARF_FRAME_REGISTERS): Adjust.
10207         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10208         Adjust.
10209         (REG_ALLOC_ORDER): Adjust.
10210         (enum reg_class): Delete SPR_REGS.
10211         (REG_CLASS_NAMES): Delete SPR_REGS.
10212         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
10213         (REGISTER_NAMES): Adjust.
10214         (ADDITIONAL_REGISTER_NAMES): Adjust.
10215         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10216         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
10217         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
10218         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
10219         (htm_spr_regno): Delete.
10220         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
10221         argument.
10222         (rs6000_dbx_register_number): Adjust.
10224 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
10226         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
10228 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
10230         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
10231         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
10233 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
10235         PR tree-optimization/88709
10236         PR tree-optimization/90271
10237         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
10238         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
10239         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
10240         variable.
10241         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
10242         of the store merging group is larger than
10243         PARAM_STORE_MERGING_MAX_SIZE parameter.
10244         (split_group): Add bzero_first argument.  If set, always emit first
10245         the first store which must be = {} of the whole area and then for the
10246         rest of the stores consider all zero bytes as paddings.
10247         (imm_store_chain_info::output_merged_store): Check if first store
10248         is = {} of the whole area and if yes, determine which setting of
10249         bzero_first for split_group gives smaller number of stores.  Adjust
10250         split_group callers.
10251         (lhs_valid_for_store_merging_p): Allow decls.
10252         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
10253         no elts.
10254         (pass_store_merging::process_store): Likewise.
10256 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10258         PR target/89424
10259         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10260         handling of V1TImode.
10262 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
10264         PR target/89221
10265         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
10266         and enable_frame_pointer ...
10267         * configure.ac: ... here.  Update help strings for
10268         --enable-frame-pointer.
10269         * configure: Regenerate.
10270         * config/i386/i386-options.c (ix86_option_override_internal): Remove
10271         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
10272         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
10273         (USE_X86_64_FRAME_POINTER): Ditto.
10275 2019-05-06  Martin Liska  <mliska@suse.cz>
10277         * config.gcc: Append to target_gtfiles and fix indentation.
10279 2019-05-06  Richard Biener  <rguenther@suse.de>
10281         PR tree-optimization/90358
10282         * tree-vect-stmts.c (get_group_load_store_type): Properly
10283         detect unused upper half of load.
10284         (vectorizable_load): Likewise.
10286 2019-05-06  Richard Biener  <rguenther@suse.de>
10288         PR tree-optimization/88828
10289         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
10290         (simplify_vector_constructor): ...here.  Handle constants in
10291         the constructor.
10293 2019-05-06  Richard Biener  <rguenther@suse.de>
10295         PR tree-optimization/90328
10296         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
10297         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
10298         is valid in the loop nest before using it.
10299         (initialize_data_dependence_relation): Adjust.
10300         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
10301         loop as loop-nest to dr_may_alias_p.
10303 2019-05-06  Richard Biener  <rguenther@suse.de>
10305         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
10307 2019-05-06  Richard Biener  <rguenther@suse.de>
10309         PR tree-optimization/90316
10310         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
10311         compute target on demand.
10312         (get_continuation_for_phi): Remove code walking stmts to
10313         get to a target virtual operand which could end up being
10314         quadratic.
10316 2019-05-06  Martin Liska  <mliska@suse.cz>
10318         PR sanitizer/90312
10319         * config/i386/i386-options.c (ix86_option_override_internal): Error only
10320         when -mabi is selected to a non-default version.
10322 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
10323             Martin Liska  <mliska@suse.cz>
10325         * Makefile.in: Add lto-dump.texi.
10326         * cgraph.h: Add new functions get_visibility_string and
10327         get_symtab_type_string.
10328         * doc/gcc.texi: Include lto-dump section.
10329         * doc/lto-dump.texi: New file.
10330         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
10331         (parse_dump_option): Factor out this function.
10332         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
10333         (parse_dump_option): Export the function.
10334         * symtab.c (symtab_node::get_visibility_string): New function.
10335         (symtab_node::get_symtab_type_string): Likewise.
10337 2019-05-06  Martin Liska  <mliska@suse.cz>
10339         * config/i386/i386-builtins.c: New file.
10340         * config/i386/i386-builtins.h: New file.
10341         * config/i386/i386-expand.c: New file.
10342         * config/i386/i386-expand.h: New file.
10343         * config/i386/i386-features.c: New file.
10344         * config/i386/i386-features.h: New file.
10345         * config/i386/i386-options.c: New file.
10346         * config/i386/i386-options.h: New file.
10347         * config.gcc: Add new files into extra_objs and
10348         target_gtfiles.
10349         * config/i386/i386.c: Split content of the file
10350         into newly introduced files.
10351         * config/i386/i386.h: Declare common variables
10352         and macros.
10353         * config/i386/t-i386: Define dependencies for new files.
10355 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
10357         PR target/89400
10358         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
10359         Restrict 'all' variant to 32-bit configurations.
10360         (unaligned_loadhiu): Likewise.
10361         (unaligned_storehi): Likewise.
10362         (unaligned_storesi): Likewise.
10363         (unaligned_loadhis): Disable when compiling for thumb1.
10365 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
10367         PR tree-optimization/90269
10368         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10369         Ignore clobbers.
10371 2019-05-03  Martin Liska  <mliska@suse.cz>
10373         * hash-map.h: Add is_empty function.
10374         * hash-set.h: Likewise.
10375         * hash-table.h: Likewise.
10376         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
10377         elements () == 0 (and similar usages).
10378         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
10379         * gimplify.c (gimplify_bind_expr): Likewise.
10380         (gimplify_switch_expr): Likewise.
10381         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
10382         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
10383         * postreload-gcse.c (dump_hash_table): Likewise.
10384         (gcse_after_reload_main): Likewise.
10385         * predict.c (combine_predictions_for_bb): Likewise.
10386         * tree-parloops.c (reduction_phi): Likewise.
10387         (separate_decls_in_region): Likewise.
10388         (transform_to_exit_first_loop): Likewise.
10389         (gen_parallel_loop): Likewise.
10390         (gather_scalar_reductions): Likewise.
10391         (try_create_reduction_list): Likewise.
10392         * var-tracking.c (dump_vars): Likewise.
10393         (emit_notes_for_changes): Likewise.
10394         (vt_emit_notes): Likewise.
10396 2019-05-03  Richard Biener  <rguenther@suse.de>
10398         PR tree-optimization/90316
10399         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
10400         before running VN.
10402 2019-05-03  Richard Biener  <rguenther@suse.de>
10404         * tree-vect-stmts.c (get_group_load_store_type): Avoid
10405         peeling for gaps by loading only lower halves of vectors
10406         if possible.
10407         (vectorizable_load): Likewise.
10409 2019-05-03  Richard Biener  <rguenther@suse.de>
10411         PR middle-end/89518
10412         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
10414 2019-05-03  Richard Biener  <rguenther@suse.de>
10416         PR middle-end/87314
10417         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
10418         Handle STRING_CST vs DECL or STRING_CST.
10420 2019-05-03  Richard Biener  <rguenther@suse.de>
10422         PR tree-optimization/88963
10423         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
10424         vector loads feeding only BIT_FIELD_REFs to component
10425         loads.  Rewrite stores fed by CONSTRUCTORs to component
10426         stores.
10428 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
10430         * opts.h (finish_options): Remove lang_mask argument.
10431         (print_help, help_option_argument): Declare.
10432         * opts.c (print_help): Remove forward declaration, no longer static.
10433         (finish_options): Remove lang_mask argument, don't call print_help
10434         here.
10435         * opts-global.c (decode_options): Adjust finish_option caller, call
10436         print_help here.
10438         PR tree-optimization/90303
10439         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
10440         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
10442 2019-05-03  Richard Biener  <rguenther@suse.de>
10444         PR tree-optimization/89698
10445         * gimple-fold.c (canonicalize_constructor_val): Early out
10446         for constants, handle unfolded INTEGER_CSTs as they appear in
10447         C++ virtual table ctors.
10449 2019-05-03  Richard Biener  <rguenther@suse.de>
10451         * passes.c (execute_function_todo): Remove dead code.
10453 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
10455         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
10456         the internal register number, for any "real" register.
10458 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
10460         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
10461         correct numbers for TFHAR, TFIAR, TEXASR.
10463 2019-05-02  Richard Biener  <rguenther@suse.de>
10465         PR tree-optimization/89653
10466         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
10467         update-address-taken before the pass.
10468         * passes.def (pass_tree_loop_init): Put comment before it.
10470 2019-05-02  Richard Biener  <rguenther@suse.de>
10472         PR tree-optimization/89509
10473         * tree-ssa-structalias.c (compute_dependence_clique): Look
10474         at the first subvar when determining whether it is restrict.
10476 2019-05-02  Richard Biener  <rguenther@suse.de>
10478         PR tree-optimization/90273
10479         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
10480         useless debug stmts.
10482 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
10484         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
10485         ACLE branch.
10486         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
10487         SVE ACLE branch.
10488         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
10489         VEC_COND_EXPR be inserted to emulate a conditional internal function.
10490         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
10491         (vectorizable_reduction): Use the functions above to vectorize in a
10492         fully masked loop codes that don't have a conditional internal
10493         function.
10495 2019-05-02  Martin Liska  <mliska@suse.cz>
10497         * cgraphclones.c: Call valid_attribute_p with 1 for
10498         target_clone.
10499         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
10500         it's for target attribute.
10501         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
10502         Add new boolean argument.
10503         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10504         Likewise.
10505         (ix86_valid_target_attribute_tree): Pass target_clone_attr
10506         to ix86_valid_target_attribute_inner_p.
10507         (ix86_valid_target_attribute_p): Pass flags argument to
10508         ix86_valid_target_attribute_inner_p.
10509         (get_builtin_code_for_version): Use 0 as it's target attribute.
10511 2019-05-02  Martin Liska  <mliska@suse.cz>
10513         * gcc.c (process_command): Add dummy file only
10514         if n_infiles == 0.
10515         * opts-global.c (decode_options): Pass lang_mask.
10516         * opts.c (print_help): New function.
10517         (finish_options): Print --help if help_option_argument
10518         is set.
10519         (common_handle_option): Factor out content of OPT__help_
10520         into print_help.
10521         * opts.h (finish_options): Add new argument.
10523 2019-05-02  Martin Liska  <mliska@suse.cz>
10525         PR target/88809
10526         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
10527         With -minline-all-stringops use inline expansion using 4B loop.
10528         * doc/invoke.texi: Document the change of
10529         -minline-all-stringops.
10531 2019-05-01  Jeff Law  <law@redhat.com>
10533         PR tree-optimization/88797
10534         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
10535         PHI feeds a conditional on the RHS of an assignment.
10537 2019-04-30  Andrew Waterman  <andrew@sifive.com>
10538             Jim Wilson  <jimw@sifive.com>
10540         * config/riscv/constraints.md (L): New.
10541         * config/riscv/predicates.md (lui_operand): New.
10542         (sfb_alu_operand): New.
10543         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
10544         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
10545         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
10546         * config/riscv/risc.md (type): Add sfb_alu.
10547         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
10548         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
10549         (branch_zero<mode>): Delete.
10550         (mov<mode>cc): New.
10551         (mov<GPR:mode><X:mode>cc): Likewise.
10552         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
10554 2019-04-30  Nathan Sidwell  <nathan@acm.org>
10556         * tree.h (MARK_TS_EXP): New.
10558 2019-04-30  Martin Liska  <mliska@suse.cz>
10560         * opts.c (enable_warning_as_error): Provide hints
10561         for unknown options.
10563 2019-04-30  Martin Liska  <mliska@suse.cz>
10565         PR debug/90288
10566         * doc/invoke.texi: Add missing dash for gas-locview-support
10567         and gno-as-locview-support.
10569 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
10571         PR target/89093
10572         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
10573         whitespace at the start of target attribute string.
10575 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10577         PR target/86538
10578         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10579         Define __ARM_FEATURE_ATOMICS.
10581 2019-04-30  Martin Liska  <mliska@suse.cz>
10583         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
10584         into built_in_function enum. Remove code for endp == 2 and
10585         use BUILT_IN_* constants.
10586         (gimple_fold_builtin): Call the function with fcode.
10588 2019-04-30  Martin Liska  <mliska@suse.cz>
10590         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
10591         DECL_FUNCTION_CODE into ix86_builtins enum before
10592         the switch statement.
10594 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
10596         PR tree-optimization/89475
10597         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
10598         calls.
10600 2019-04-30  Martin Liska  <mliska@suse.cz>
10602         PR translation/90274
10603         * opts.c (print_filtered_help): Wrap string in _(...).
10605 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
10607         PR tree-optimization/90240
10608         Revert:
10609         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
10611         PR tree-optimization/90078
10612         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10613         checks for infinite_cost overflow.
10615 2019-04-29  Jeff Law  <law@redhat.com>
10617         * passes.def: Move -Wrestrict pass after copy propagation.
10619 2019-04-29  Maya Rashish  <coypu@sdf.org>
10621         * config.gcc (default_gnu_indirect_function): Default to yes
10622         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
10623         sparc*-*-netbsd*, x86_64-*-netbsd*.
10625 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
10627         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
10628         where cond2 is NE_EXPR.
10629         (is_value_included_in): Update comment.
10631 2019-04-29  Richard Biener  <rguenther@suse.de>
10633         PR tree-optimization/90278
10634         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
10635         EH on comparison simplification.
10637 2019-04-29  Jason Merrill  <jason@redhat.com>
10639         PR c++/82081 - tail call optimization breaks noexcept
10640         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
10641         nothrow function to a might-throw function into a tail call.
10643 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10645         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
10646         (DDR_INNER_LOOP): Likewise.
10647         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
10648         (initialize_data_dependence_relation): Likewise.
10649         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
10651 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
10653         PR rtl-optimization/90257
10654         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
10655         return value.
10657         Revert the revert:
10658         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
10660         PR target/90178
10661         Revert:
10662         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
10664         Revert the revert:
10665         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
10667         Revert:
10668         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
10670         * lra-spills.c (lra_final_code_change): Remove useless move insns.
10672 2019-04-29  Richard Biener  <rguenther@suse.de>
10674         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
10675         rhs issue a reset.
10677 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
10679         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
10680         varasm.h, and netbsd-protos.h.
10682 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
10684         PR target/89261
10685         * config/i386/i386-protos.h (ix86_data_alignment): Change
10686         the second argument type to unsigned int.
10687         * config/i386/i386.c (ix86_data_alignment): Change "align"
10688         argument type to unsigned int.
10690 2019-04-27  Martin Liska  <mliska@suse.cz>
10692         PR middle-end/90258
10693         * opt-suggestions.c (option_proposer::build_option_suggestions):
10694         When get_valid_option_values returns empty values, add the
10695         misspelling candidate.
10697 2019-04-26  Jim Wilson  <jimw@sifive.com>
10699         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10700         parameter.
10701         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10702         Pass orig_mode to riscv_build_integer.
10703         (riscv_split_integer): Pass mode to riscv_move_integer.
10704         (riscv_legitimize_const_move): Likewise.
10705         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10706         promoted_mode.  Replace force_reg call with code to load constant into
10707         promoted reg and then subreg it for the store.
10708         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10709         riscv_move_integer.
10711 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
10713         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10714         corrupt codes.
10716 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
10718         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10719         commentary about the encoding of precision.
10721 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
10723         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10724         * config/i386/t-freebsd64: New file.
10725         * config.gcc: Add the t-freebsd64 for multilib support.
10727 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
10729         * doc/extend.texi (vector_size): Add missing comma after @xref.
10731 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
10733         * BASE-VER: Set to 10.0.0.
10735 2019-04-25  Richard Biener  <rguenther@suse.de>
10737         PR middle-end/89765
10738         * gimplify.c (gimplify_expr): Avoid turning a lvalue
10739         VIEW_CONVERT_EXPR into one operating on an rvalue.
10741 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
10743         PR target/89929
10744         * config/i386/i386.c (feature_priority): Moved to file scope.
10745         (processor_features): Likewise.
10746         (processor_model): Likewise.
10747         (_arch_names_table): Likewise.
10748         (arch_names_table): Likewise.
10749         (_feature_list): Removed.
10750         (feature_list): Likewise.
10751         (_isa_names_table): Moved to file scope.  Add priority.
10752         (isa_names_table): Likewise.
10753         (get_builtin_code_for_version): Replace feature_list with
10754         isa_names_table.  Update error message for P_ZERO priority.
10756 2019-04-25  Richard Biener  <rguenther@suse.de>
10758         * tree-pass.h (make_pass_phi_only_cprop): Remove.
10759         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10761 2019-04-24  Jeff Law  <law@redhat.com>
10763         PR tree-optimization/90037
10764         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10765         * passes.def: Replace all instance of phi-only cprop with the
10766         lattice propagator.  Move propagation pass from after erroneous
10767         path isolation to before erroneous path isolation.
10768         * tree-ssa-phionlycprop.c: Remove.
10770 2019-04-24  Richard Biener  <rguenther@suse.de>
10772         PR middle-end/90213
10773         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10774         by size and BITS_PER_UNIT on poly-wide-ints.
10776 2019-04-25  Richard Biener  <rguenther@suse.de>
10778         PR middle-end/90194
10779         * match.pd: Add pattern to simplify view-conversion of an
10780         empty constructor.
10782 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
10784         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10785         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10786         for Go on 32 bit AIX.
10787         * config/rs6000/aix72.h: Likewise.
10789 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
10791         PR target/90193
10792         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10793         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10795 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
10797         PR target/89952
10798         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10799         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
10800         for restored hard frame pointer.
10801         (s390_sched_dependencies_evaluation): Implement new target hook.
10802         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10804 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
10806         * config/arc/arc-options.def: Fix typos and spelling mistakes.
10807         * config/arc/arc.c (arc_init): Cleanup warning message.
10808         (arc_override_options): Likewise.
10810 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
10812         PR target/90187
10813         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10814         a register if both if_true and if_false are MEMs.
10816         PR tree-optimization/90208
10817         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10818         after labels of new_bb, not before them.
10820         PR tree-optimization/90211
10821         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10822         which are not SSA_NAMEs.
10824 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
10826         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10827         AArch64.
10828         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10830 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
10832         PR rtl-optimization/87979
10833         * modulo-sched.c (sms_schedule): Start ii value "mii" should
10834         not equal zero.
10836 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
10838         PR rtl-optimization/84032
10839         * modulo-sched.c (ps_insn_find_column): Change condition so that
10840         branch will always be the last insn in a row inside partial
10841         schedule.
10843 2019-04-23  Richard Biener  <rguenther@suse.de>
10845         PR debug/90131
10846         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10847         dest_single_pred_p argument.
10848         (remove_forwarder_block): Adjust.
10849         (remove_forwarder_block_with_phi): Likewise.
10851 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10852             Bernd Edlinger  <bernd.edlinger@hotmail.de>
10853             Jakub Jelinek  <jakub@redhat.com>
10855         PR target/89093
10856         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10857         if used with general-regs-only.
10858         (arm_conditional_register_usage): Don't add non-general regs if
10859         general-regs-only.
10860         (arm_valid_target_attribute_rec): Handle general-regs-only.
10861         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10862         general-regs-only.
10863         (TARGET_HARD_FLOAT_SUB): Define.
10864         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10865         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10866         (TARGET_REALLY_IWMMXT2): Likewise.
10867         * config/arm/arm.opt: Add -mgeneral-regs-only.
10868         * doc/extend.texi: Document ARM general-regs-only target.
10869         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10871 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
10873         PR tree-optimization/90078
10874         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10875         checks for infinite_cost overflow.
10877 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
10879         PR tree-optimization/90021
10880         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
10881         and check univariate against it.
10882         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
10883         * tree-data-ref.c (add_other_self_distances): Pass new argument.
10885 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
10887         PR target/90178
10888         Revert:
10889         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
10891         Revert the revert:
10892         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
10894         Revert:
10895         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
10897         * lra-spills.c (lra_final_code_change): Remove useless move insns.
10899 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
10901         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
10902         names using operand format, rather than hard-wired.
10903         (speculation_barrier): Likewise.
10905 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
10907         PR tree-optimization/88055
10908         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
10909         (gen_one_condition): Use it if !HONOR_NANS.
10911 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
10913         PR middle-end/90139
10914         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
10915         assign_temp instead of gen_reg_rtx.
10917 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
10919         PR translation/90118
10920         * config/aarch64/aarch64.c (aarch64_override_options_internal):
10921         Add missing space before %<.
10923 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
10925         PR rtl-optimization/87871
10926         * ira-lives.c (make_object_dead): Don't add conflicts to
10927         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
10929 2019-04-18  Martin Sebor  <msebor@redhat.com>
10931         PR middle-end/89797
10932         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
10933         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
10934         assuming type size fits in SHWI.
10936 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
10938         PR ipa/85051
10939         * ipa-inline.c (flatten_function): New parameter UPDATE.
10940         (ipa_inline, early_inliner): Use it.
10942 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
10944         * fold-const.c (int_const_binop): Return early on failure.
10946 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
10948         PR middle-end/85164
10949         * combine.c (force_int_to_mode): Cast the argument rather than
10950         the result of known_alignment.
10951         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
10953 2019-04-18  Richard Biener  <rguenther@suse.de>
10955         PR debug/90131
10956         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
10957         out from ...
10958         (remove_forwarder_block): ... here.
10959         (remove_forwarder_block_with_phi): Also move debug stmts here.
10961 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
10963         PR translation/79183
10964         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
10965         inform where appropriate.
10967 2019-04-18  Richard Biener  <rguenther@suse.de>
10969         * tree.c (get_qualified_type): Put found type variants at the
10970         head of the variant list.
10972 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
10974         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10976 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
10978         PR target/90125
10979         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
10980         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
10981         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
10982         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
10983         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
10985 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
10987         * ira-conflicts.c (print_allocno_conflicts): Always print something,
10988         even for allocno's with no conflicts.
10989         (print_conflicts): Print an extra newline.
10991 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
10993         * auto-inc-dec.c (attempt_change): Set the alignment of the
10994         temporary memory to that of the original.
10996 2019-04-17  Joao Moreira  <jmoreira@suse.de>
10998         * targhooks.c (default_print_patchable_function_entry): Emit
10999         __patchable_function_entries section with writable flags to allow
11000         relocation resolution.
11002 2019-04-17  Jonny Grant  <jg@jguk.org>
11004         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
11006 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
11008         PR middle-end/90095
11009         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
11010         on lowpart SUBREGs.
11012 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
11014         * config/arc/arc.c (arc_init): Format diagnostic string.
11015         (arc_override_options): Likewise.
11016         (check_if_valid_regno_const): Likewise.
11017         (arc_reorg): Likewise.
11019 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
11021         PR target/17108
11022         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
11023         name.
11024         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
11025         name.
11026         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
11027         (*movdi_update1): Use Pmode.
11028         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
11029         (movdi_<mode>_update_stack): Rename to ...
11030         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
11031         use Pmode.
11032         (*movsi_update1): Use Pmode.
11033         (*movsi_update2): Use Pmode.
11034         (movsi_update): Rename to ...
11035         (movsi_<mode>_update): ... this.  Use Pmode.
11036         (movsi_update_stack): Fix condition.
11037         (*movhi_update1): Use Pmode.  Fix argument to
11038         avoiding_indexed_address_p.
11039         (*movhi_update2): Ditto.
11040         (*movhi_update3): Ditto.
11041         (*movhi_update4): Ditto.
11042         (*movqi_update1): Ditto.
11043         (*movqi_update2): Ditto.
11044         (*movqi_update3): Ditto.
11045         (*movsf_update1, *movdf_update1): Merge, rename to...
11046         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
11047         avoiding_indexed_address_p.  Add "size" attribute.
11048         (*movsf_update2, *movdf_update2): Merge, rename to...
11049         (*mov<mode>_update2): This.  Ditto.
11050         (*movsf_update3): Use Pmode.  Fix argument to
11051         avoiding_indexed_address_p.
11052         (*movsf_update4): Ditto.
11053         (allocate_stack): Simplify condition.  Adjust pattern names.
11055 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
11057         PR target/89093
11058         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
11059         whitespace at the start of target attribute string.
11061 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
11063         PR target/84369
11064         * config/rs6000/power9.md: Add store forwarding bypass.
11066 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
11068         PR debug/89528
11069         * valtrack.c (dead_debug_insert_temp): Reset debug references
11070         to the return value of a call being removed.
11072 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
11074         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
11075         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
11076         implement target hook.
11077         (arc_memory_move_cost): New function.
11078         (TARGET_REGISTER_MOVE_COST): Define.
11079         (TARGET_MEMORY_MOVE_COST): Likewise.
11080         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
11081         (MEMORY_MOVE_COST): Likewise.
11083 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
11085         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
11086         (sibcall_value_insn): Likewise.
11087         * config/arc/constraints.md (Rs5): Remove.
11089 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
11091         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
11092         for last two fake registers.
11093         (arc_conditional_register_usage): Make sure fake frame and arg
11094         pointer regs are in general regs class.
11095         (FRAME_POINTER_MASK): Remove.
11096         (RETURN_ADDR_MASK): Remove.
11097         (arc_must_save_register): Use hard frame regnum.
11098         (frame_restore_reg): Use hard_frame_pointer_rtx.
11099         (arc_save_callee_saves): Likewise.
11100         (arc_restore_callee_saves): Likewise.
11101         (arc_save_callee_enter): Likewise.
11102         (arc_restore_callee_leave): Likewise.
11103         (arc_save_callee_milli): Likewise.
11104         (arc_eh_return_address_location): Likewise.
11105         (arc_check_multi): Use hard frame regnum.
11106         (arc_can_eliminate): Likewise.
11107         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
11108         for register allocator.
11109         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
11110         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
11111         (FRAME_POINTER_REGNUM): Change it to a fake register.
11112         (HARD_FRAME_POINTER_REGNUM): Defined.
11113         (ARG_POINTER_REGNUM): Change it to a new fake register.
11114         (ELIMINABLE_REGS): Update.
11115         (REGISTER_NAMES): Update names.
11116         * config/arc/arc.md (LP_START): Remove.
11117         (LP_END): Likewise.
11118         (shift_si3_loop): Update pattern.
11120 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
11122         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
11123         to avoid delay slot scheduling.
11124         (arc_must_save_register): Don't save SP.
11125         * config/arc/arc.md (stack_tie): Remove.
11126         (UNSPEC_ARC_STKTIE): Likewise.
11128 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
11129             Shiva Chen  <shiva0217@gmail.com>
11131         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
11132         code gen with large shift amount.
11134 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11136         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
11137         subreg.
11139 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
11141         PR target/90096
11142         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
11143         print -m64/-mx32/-m32 if it is true.
11144         (ix86_debug_options, ix86_function_specific_print): Pass true as
11145         ADD_ABI_P to ix86_target_string.
11146         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
11147         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
11148         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
11150         PR rtl-optimization/90082
11151         * dce.c (can_delete_call): New function.
11152         (deletable_insn_p, mark_insn): Use it.
11154         PR tree-optimization/90090
11155         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
11156         throw internally.
11157         (is_division_by_square): Likewise.  Formatting fix.
11159 2019-04-16  Richard Biener  <rguenther@suse.de>
11161         PR tree-optimization/56049
11162         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
11163         equality check if alias-set zero will prevail.
11165 2019-04-15  Jeff Law  <law@redhat.com>
11167         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
11168         size and alignment as unsigned.
11170 2019-04-15  Richard Biener  <rguenther@suse.de>
11172         PR debug/90074
11173         * tree-loop-distribution.c (destroy_loop): Preserve correct
11174         debug info.
11176 2019-04-15  Richard Biener  <rguenther@suse.de>
11178         PR tree-optimization/90071
11179         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
11180         abnormal operands from def stmts.
11182 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
11184         PR rtl-optimization/89794
11185         * combine.c (count_auto_inc): New function.
11186         (try_combine): Count how many auto_inc expressions there were in the
11187         original instructions.  Ensure we have the same number in the new
11188         instructions.  Remove the code that tried to ensure auto_inc side
11189         effects on i1 and i0 are not lost.
11191 2019-04-15  Richard Biener  <rguenther@suse.de>
11193         PR ipa/88936
11194         * tree.h (auto_var_p): Declare.
11195         * tree.c (auto_var_p): New function, split out from ...
11196         (auto_var_in_fn_p): ... here.
11197         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
11198         member.
11199         (new_var_info): Initialize it.
11200         (set_uids_in_ptset): Also set the shadow variable uid if required.
11201         (ipa_pta_execute): Postprocess points-to solutions assigning
11202         shadow variable uids for locals that may reach their containing
11203         function recursively.
11204         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
11205         assert but instead check whether the points-to solution is
11206         a singleton.
11208 2019-04-15  Martin Jambor  <mjambor@suse.cz>
11210         PR ipa/pr89693
11211         * cgraph.c (clone_of_p): Loop over clone chain for each step in
11212         the thunk chain.
11214 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
11216         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
11218 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
11219             Kito Cheng  <kito.cheng@gmail.com>
11220             Shiva Chen  <shiva0217@gmail.com>
11222         * config/nds32/nds32-md-auxiliary.c
11223         (nds32_legitimize_pic_address): Use new PIC pattern.
11224         (nds32_legitimize_tls_address): Use new TLS pattern.
11225         (nds32_output_symrel): New.
11226         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
11227         (nds32_alloc_relax_group_id): Ditto.
11228         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
11229         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
11230         relax_group_id.
11231         (nds32_group_tls_insn): Ditto.
11232         (nds32_group_float_insns): Ditto.
11233         * config/nds32/nds32.md (tls_le): New.
11234         (sym_got): Ditto.
11236 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
11238         * configure: Add nds32 target for dwarf2 debug_line checking.
11239         * configure.ac: Regenerated.
11241 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
11243         PR lto/89358
11244         * ipa-devirt.c (skip_in_fields_list_p): New.
11245         (odr_types_equivalent_p): Use it.
11247 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
11249         PR target/89093
11250         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
11251         instead of strncmp when checking for thumb and arm.  Formatting fixes.
11253 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
11255         * doc/install.texi: Document --with-target-system-zlib.
11257 2019-04-12  Martin Sebor  <msebor@redhat.com>
11259         PR c/88383
11260         PR c/89288
11261         PR c/89798
11262         PR c/89797
11263         * targhooks.c (default_vector_alignment): Avoid assuming
11264         argument fits in SHWI.
11265         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
11266         a shift expression.
11267         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
11269 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
11271         PR rtl-optimization/89965
11272         * dce.c: Include rtl-iter.h.
11273         (struct check_argument_load_data): New type.
11274         (check_argument_load): New function.
11275         (find_call_stack_args): Check for loads from stack slots still tracked
11276         in sp_bytes and punt if any is found.
11278         * config/mips/loongson-mmiintrin.h: Fix up #error message.
11280 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
11282         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
11283         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
11285 2019-04-12  Martin Liska  <mliska@suse.cz>
11287         PR middle-end/89970
11288         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
11289         in error message.
11290         (separate_attrs): Handle multiple 'default's.
11291         (expand_target_clones): Rework error handling code.
11293 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11295         PR target/87532
11296         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
11297         mode of vector rather than mode of destination for move instruction.
11298         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
11299         Use QI inner mode with V16QI vector mode.
11301 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
11303         PR target/52726
11304         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
11305         "invalid %%t operand" in output_operand_lossage message.
11307 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
11309         * config/s390/predicates.md (permute_pattern_operand): New
11310         predicate.
11311         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
11312         operand for the permute pattern.
11313         ("*vec_perm<mode>"): New insn definition.
11314         ("bswap<mode>"): Generate the permute pattern operand in the
11315         expander and perform the operand reloads for pre arch13 level
11316         already.
11317         ("*bswap<mode>_emu"): Rename to ...
11318         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
11319         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
11320         Add the USE operand for the permute pattern.
11321         ("*vec_set_bswap_vec<mode>"): Likewise.
11323 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
11325         PR c/89946
11326         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
11327         and gcc_unreachable if it fails, just call tree_to_uhwi which
11328         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
11329         Start warning message with a lower-case letter.  Formatting fixes.
11331         PR rtl-optimization/90026
11332         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
11333         successors, look for BARRIERs inside of the whole BB_FOOTER chain
11334         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
11335         in cfglayout mode, use emit_barrier_after_bb.
11337 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
11339         PR rtl-optimization/87763
11340         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
11341         New Instruction.
11343 2019-04-11  Tom de Vries  <tdevries@suse.de>
11345         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
11346         max macro using statement expression.
11348 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
11350         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
11351         * xcoffout.c (xcoff_private_rodata_section_name): Define.
11352         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
11353         read_only_private_data_section using xcoff_private_rodata_section_name.
11354         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
11356 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
11358         PR target/90016
11359         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
11361 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
11363         PR rtl-optimization/89965
11364         * dce.c (sp_based_mem_offset): New function.
11365         (find_call_stack_args): Use sp_based_mem_offset.
11367 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
11369         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
11371 2019-04-11  Richard Biener  <rguenther@suse.de>
11373         PR tree-optimization/90020
11374         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
11375         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
11376         * tree-ssa-pre.c (compute_avail): Use it to not put
11377         possibly trapping references after a call that might not
11378         return into EXP_GEN.
11379         * gcse.c (compute_hash_table_work): Do not elide
11380         marking a block containing a call if the call might not
11381         return.
11383 2019-04-11  Richard Biener  <rguenther@suse.de>
11385         PR tree-optimization/90018
11386         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
11387         Test both SLP and interleaving variants.
11389 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
11391         * config/s390/8561.md: New file.
11392         * config/s390/driver-native.c (s390_host_detect_local_cpu):
11393         Add arch13 cpu model.
11394         * config/s390/s390-opts.h (enum processor_type): Likewise.
11395         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
11396         (s390_get_unit_mask): Likewise.
11397         (s390_is_fpd): Likewise.
11398         (s390_is_fxd): Likewise.
11399         * config/s390/s390.h (s390_tune_attr): Likewise.
11400         * config/s390/s390.md: Include arch13 pipeline description.
11401         * config/s390/s390.opt: Add arch13.
11403 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
11405         PR rtl-optimization/87763
11406         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
11407         New prototype.
11408         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
11409         New function.
11410         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
11411         New instruction.
11412         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
11413         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
11414         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
11415         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
11417 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
11419         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
11420         "Although" in -fipa-icf documentation.
11422         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
11423         of using multiple -g options.
11425 2019-04-10  Martin Liska  <mliska@suse.cz>
11427         PR gcov-profile/89959
11428         * doc/gcov.texi: Make documentation of -x option
11429         more precise.
11431 2019-04-10  Richard Biener  <rguenther@suse.de>
11433         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
11434         member.
11435         (DR_GROUP_SAME_DR_STMT): Remove.
11436         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
11437         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
11438         replace with assert.
11439         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
11440         (vect_record_grouped_load_vectors): Remove unreachable code.
11442 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
11444         PR target/90016
11445         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
11446         obsolete reference to N.
11448 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
11450         PR middle-end/90025
11451         * expr.c (store_expr): Set properly size on the MEM passed to
11452         clear_storage.
11454         PR c++/90010
11455         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
11456         with strlen in between hostsz-3 and hostsz-1 inclusive when no
11457         translation is needed, and when translation is needed, only append
11458         ... if the string length is hostsz or more bytes long.  Avoid using
11459         strncpy or strcat.
11461 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
11463         PR target/90024
11464         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
11465         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
11466         into three.
11467         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
11468         differences directly.
11469         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
11471 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
11473         PR translation/90011
11474         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11475         from diagnostics.
11476         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
11477         diagnostics.
11478         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11479         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
11480         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
11481         trailing space from -gsplit-dwarf diagnostics.
11483         PR tree-optimization/89998
11484         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
11485         instead of integer_type_node if possible, don't add ranges if return
11486         type is not compatible with int.
11487         * gimple-fold.c (gimple_fold_builtin_sprintf,
11488         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
11489         integer_type_node.
11491 2019-04-09  Martin Liska  <mliska@suse.cz>
11493         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
11494         * doc/install.texi: Document the new config.
11496 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
11498         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
11499         use gimple_expr_type for load and store calls.  Skip over the
11500         condition argument in a conditional internal function.
11501         Protect use of TREE_INT_CST_LOW.
11503 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
11505         PR target/90015
11506         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
11507         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
11508         trailing period from it too.
11510 2019-04-08  wu yuan  <wuyuan5@huawei.com>
11512         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
11513         * config/aarch64/aarch64.md : Add "tsv110.md"
11514         * config/aarch64/tsv110.md: New file.
11516 2019-04-08  Richard Biener  <rguenther@suse.de>
11518         PR tree-optimization/90006
11519         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11520         calls like lrint.
11522 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
11524         PR target/83033
11525         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
11526         construction.
11527         (fma_root_node): Likewise.
11528         (func_fma_steering): Likewise.
11530 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
11532         PR rtl-optimization/89865
11533         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
11535         PR rtl-optimization/89865
11536         * config/i386/i386.md
11537         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
11538         numbers not to clash with the additional operands[4].
11539         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11540         with extra register copy in the middle.
11542 2019-04-08  Martin Liska  <mliska@suse.cz>
11544         PR gcov-profile/89961
11545         * doc/gcov.texi: Document data_file.
11546         * gcov.c (generate_results): Add data_info into JSON output.
11548 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
11550         PR tree-optimization/89725
11551         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
11552         loop's chrec as invariant symbol.
11553         * tree-chrec.h (chrec_contains_symbols): New parameter.
11554         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
11555         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
11556         function of loops not in DDR's loop_nest.
11557         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
11559 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
11561         PR target/89623
11562         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
11563         Mask.
11565 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
11567         PR target/89945
11568         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11569         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
11571 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11573         * sched-deps.c (sched_macro_fuse_insns): Check return value of
11574         targetm.fixed_condition_code_regs.
11576 2019-04-05  Richard Biener  <rguenther@suse.de>
11578         PR debug/89892
11579         PR debug/89905
11580         * tree-cfgcleanup.c (remove_forwarder_block): Always move
11581         debug bind stmts but reset them if they are not valid at the
11582         destination.
11584 2019-04-05  Martin Liska  <mliska@suse.cz>
11586         PR translation/89936
11587         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
11588         order to wrap keywords or arguments.
11589         * collect2.c (main): Likewise.
11590         (scan_prog_file): Likewise.
11591         (scan_libraries): Likewise.
11592         * common/config/riscv/riscv-common.c
11593         (riscv_subset_list::parsing_subset_version): Likewise.
11594         (riscv_subset_list::parse_std_ext): Likewise.
11595         * config/aarch64/aarch64.c (aarch64_override_options_internal):
11596         Likewise.
11597         * config/arm/arm.c (arm_option_override): Likewise.
11598         * config/cris/cris.c (cris_print_operand): Likewise.
11599         * config/darwin-c.c (darwin_pragma_options): Likewise.
11600         (darwin_pragma_unused): Likewise.
11601         (darwin_pragma_ms_struct): Likewise.
11602         * config/ft32/ft32.c (ft32_print_operand): Likewise.
11603         * config/i386/i386.c (print_reg): Likewise.
11604         (ix86_print_operand): Likewise.
11605         * config/i386/xm-djgpp.h: Likewise.
11606         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
11607         * config/m32c/m32c.c (m32c_option_override): Likewise.
11608         * config/msp430/msp430.c (msp430_option_override): Likewise.
11609         * config/nds32/nds32.c (nds32_option_override): Likewise.
11610         * config/nvptx/mkoffload.c (main): Likewise.
11611         * config/rx/rx.c (rx_print_operand): Likewise.
11612         (valid_psw_flag): Likewise.
11613         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
11614         (vms_pragma_nomember_alignment): Likewise.
11615         (vms_pragma_extern_model): Likewise.
11616         * lto-wrapper.c (compile_offload_image): Likewise.
11617         * omp-offload.c (oacc_parse_default_dims): Likewise.
11618         * symtab.c (symtab_node::verify_base): Likewise.
11619         * tlink.c (recompile_files): Likewise.
11620         (start_tweaking): Likewise.
11621         * tree-profile.c (parse_profile_filter): Likewise.
11623 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
11625         PR tree-optimization/89956
11626         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
11627         multiple negates of the same value.
11629 2019-04-04  Martin Sebor  <msebor@redhat.com>
11631         PR middle-end/89957
11632         PR middle-end/89911
11633         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
11634         have the same precision since the function crashes otherwise.
11635         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
11636         has non-zero arguments.
11638 2019-04-04  Martin Sebor  <msebor@redhat.com>
11640         PR middle-end/89934
11641         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
11642         out if the number of arguments is less than expected.
11644 2019-04-04  Jeff Law  <law@redhat.com>
11646         PR rtl-optimization/89399
11647         * ree.c (combine_set_extension): Use single_set rather than
11648         digging into PATTERN for items on the candidate list.
11649         (combine_reaching_defs): Likewise.
11651 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
11653         PR rtl-optimization/46590
11654         * loop-invariant.c (find_defs): Move df_remove_problem and
11655         df_process_deferred_rescans to move_invariants.
11656         Move df_live_add_problem and df_live_set_all_dirty calls
11657         to move_invariants.
11658         (move_invariants): Likewise.
11659         (move_loop_invariants): Likewise, making the df_live calls
11660         conditional on -O.  Remove the problem again if we added it
11661         locally.
11663 2019-04-03  qing zhao  <qing.zhao@oracle.com>
11665         PR tree-optimization/89730
11666         * ipa-inline.c (can_inline_edge_p): Delete the checking for
11667         -flive-patching=inline-only-static.
11668         (can_inline_edge_by_limits_p): Add the checking for
11669         -flive-patching=inline-only-static and grant always_inline
11670         even when -flive-patching=inline-only-static is specified.
11672 2019-04-03  Jeff Law  <law@redhat.com>
11674         PR rtl-optimization/81025
11675         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
11677 2019-04-03  Richard Biener  <rguenther@suse.de>
11679         PR tree-optimization/84101
11680         * tree-vect-stmts.c: Include explow.h for hard_function_value,
11681         regs.h for hard_regno_nregs.
11682         (cfun_returns): New helper.
11683         (vect_model_store_cost): When vectorizing a store to a decl
11684         we return and the function ABI returns in a multi-reg location
11685         account for the possible spilling that will happen.
11687 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
11689         * config/s390/s390.c (s390_legitimate_address_p): Reject long
11690         displacement addresses for vector mode operands.
11692 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
11694         * config/arc/arc.c (GMASK_LEN): Define.
11695         (arc_restore_callee_saves): Restore first blink when
11696         !optimize_size.
11698 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
11700         * doc/extend.texi: Add deprecated comment on sign-return-address
11701         function attribute and add mbranch-protection.
11702         * doc/invoke.texi: Add bti to the options for mbranch-protection.
11704 2019-04-03  Richard Biener  <rguenther@suse.de>
11706         PR lto/89896
11707         * lto-wrapper.c (run_gcc): Avoid implicit rules making
11708         the all target phony.
11710 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
11712         PR target/89902
11713         PR target/89903
11714         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11715         Return false for variable DImode shifts.
11716         (dimode_scalar_chain::compute_convert_gain): Do not handle
11717         register count operand in variable DImode shifts.
11718         (dimode_scalar_chain::make_vector_copies): Remove support to copy
11719         count argument of a variable shift instruction to a vector register.
11720         (dimode_scalar_chain::convert_reg): Remove support to convert
11721         count argument of a variable shift instruction.
11723 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
11725         PR rtl-optimization/84206
11726         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11727         iterating over loop headers.
11729 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
11731         PR rtl-optimization/85876
11732         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11733         beyond the original fence.
11735 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
11737         * config.gcc: Mark spu* targets as deprecated/obsolete.
11739 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11741         * config/s390/s390-builtin-types.def: New builtin function type
11742         definitions. Remove unused types.
11743         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11744         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11745         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11746         overloaded builtins.
11747         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11748         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11749         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11750         (vec_double, vec_signed, vec_unsigned): Define to use the new
11751         overloaded builtins.
11752         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11753         Remove expanders.
11755 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11757         * config/s390/s390-builtin-types.def: New builtin function type
11758         definitions.
11759         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11760         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11761         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11762         (s390_vstrszh, s390_vstrszf): New low-level builtins.
11763         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11764         constant definitions.
11765         * config/s390/vecintrin.h (vec_search_string_cc)
11766         (vec_search_string_until_zero_cc): New builtin name definitions.
11767         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11768         expanders.
11769         ("vec_vstrs<mode>"): New insn definition.
11771 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11773         * config/s390/s390-builtin-types.def: Add new builtin function
11774         types.
11775         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11776         New overloaded builtins.
11777         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
11778         s390_vsrd.
11779         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11780         (UNSPEC_VEC_SLDBYTE): ... this.
11781         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11782         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11783         definitions.
11784         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11785         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11786         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11788 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11790         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11791         New insn definition.
11792         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11793         * config/s390/vector.md (V_HW_HSD): ... here.
11795 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11797         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11798         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11799         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11800         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11801         New insn definitions.
11803 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11805         * config/s390/s390-builtin-types.def: Add new builtin function type.
11806         * config/s390/s390-builtins.def: Add overloaded builtin
11807         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11808         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11809         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11810         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11811         ("eltswap<mode>"): New expander.
11812         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11813         insn definitions.
11815 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11817         * config/s390/s390-builtin-types.def: Add new builtin function types.
11818         * config/s390/s390-builtins.def: Add overloaded builtin
11819         s390_vec_revb. Add low-level builtins for vlbr and vstbr
11820         instructions.
11821         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11822         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11823         ("bswap<mode>"): New expander.
11824         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11826 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11828         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11829         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11830         vector builtin version number in __VEC__.
11832 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11834         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11835         iterators.
11836         (SFSI): New mode attribute.
11837         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11838         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11839         rename to ...
11840         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11841         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11842         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11843         ("floatsi<mode>2"): Add wcefb instruction.
11845 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11847         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11848         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11849         mode iterators.
11850         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11851         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11852         support 32 bit fp-int conversions. Rename to ...
11853         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11854         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11855         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11856         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11857         ... to these.
11859 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11861         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11862         if-then-else constructs if we can use the select instruction.
11863         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11865 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11867         * config/s390/s390.md ("*popcountdi_arch13_cc")
11868         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11869         definition.
11870         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11871         Append _z196 to make it ...
11872         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11873         ("popcounthi2_z196"): ... this.
11874         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11875         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
11877 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11879         * config/s390/s390.c (s390_canonicalize_comparison): Convert
11880         certain compares for arch13 in order to make use of the condition
11881         code result produced by the new instructions.
11882         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
11883         nxrk, and nxgrk instruction patterns.
11884         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
11885         (inv_no): Add new code iterator together with some attributes.
11886         ("*andc_split_<mode>"): Disable splitter for arch13.
11887         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
11888         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
11889         ("*<ANDOR:bitops_name>c<GPR:mode>")
11890         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
11891         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
11892         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
11893         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
11895 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11897         * common/config/s390/s390-common.c (processor_flags_table): New
11898         entry for arch13.
11899         * config.gcc: Support arch13 with the --with-arch= configure flag.
11900         * config/s390/driver-native.c (s390_host_detect_local_cpu):
11901         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
11902         * config/s390/s390.c (s390_get_sched_attrmask)
11903         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
11904         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
11905         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
11906         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
11907         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
11908         definitions.
11909         * config/s390/s390.opt: Support arch13 as processor type in
11910         command line options.
11912 2019-04-02  Martin Liska  <mliska@suse.cz>
11914         PR translation/89912
11915         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
11916         Fix param description of graphite-max-arrays-per-scop.
11918 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
11920         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
11921         (ASAN_CC1_SPEC): Use it in 64-bit mode.
11922         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
11924 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
11926         PR rtl-optimization/85412
11927         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
11928         sel_sched_region_1, not after.
11930 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
11932         PR rtl-optimization/86928
11933         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
11934         compute_live if necessary.
11935         (sel_redirect_edge_and_branch): Likewise.
11937 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
11939         PR rtl-optimization/89865
11940         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
11941         register if it is a part of small class.
11943 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
11945         PR rtl-optimization/87273
11946         * sel-sched-ir.c (merge_fences): Remove assert.
11948 2019-04-01  Richard Biener  <rguenther@suse.de>
11950         PR tree-optimization/46590
11951         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
11952         (dom_walker::m_reachability): Add in place of...
11953         (dom_walker::m_skip_unreachable_blocks): ...this.
11954         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
11955         Move complex initialization ...
11956         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
11957         lazily and initialize edge flags on each invocation.
11958         (dom_walker::bb_reachable): Use m_reachability.
11960 2019-04-01  Martin Liska  <mliska@suse.cz>
11962         PR driver/89861
11963         * opt-suggestions.c (option_proposer::build_option_suggestions):
11964         Add variant without any argument in order to provide better
11965         hints.
11967 2019-04-01  Richard Biener  <rguenther@suse.de>
11969         PR c/71598
11970         * gimple.c: Include langhooks.h.
11971         (gimple_get_alias_set): Treat enumeral types as the underlying
11972         integer type.
11974 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
11975             Eric Botcazou  <ebotcazou@adacore.com>
11977         PR rtl-optimization/89862
11978         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
11979         that operates on the full registers for WORD_REGISTER_OPERATIONS
11980         architectures.
11982 2019-03-29  Jim Wilson  <jimw@sifive.com>
11984         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
11985         Clear MASK_RVC and then set if C subset supported.
11987 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
11989         PR c/89872
11990         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
11991         non-addressable complit into its initializer if it is volatile.
11993 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
11995         * opts-common.c (integral_argument): Set errno properly in one case.
11997 2019-03-29  Martin Liska  <mliska@suse.cz>
11999         * doc/invoke.texi: Remove -Wchkp from documentation.
12001 2019-03-29  Martin Liska  <mliska@suse.cz>
12003         * dbgcnt.c (print_limit_reach): New function.
12004         (dbg_cnt): Use it.
12006 2019-03-29  Martin Liska  <mliska@suse.cz>
12008         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
12009         (dbg_cnt_process_opt): Parse first tokens aas
12010         dbg_cnt_process_single_pair is also using strtok.
12012 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
12014         PR rtl-optimization/87485
12015         * function.c (expand_function_end): Move stack_protect_epilogue
12016         before loading of return value into hard register(s).
12018 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
12020         PR middle-end/89621
12021         * tree-inline.h (struct copy_body_data): Add
12022         dont_remap_vla_if_no_change flag.
12023         * tree-inline.c (remap_type_3, remap_type_2): New functions.
12024         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
12025         and remap_type_2 returns false.
12026         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
12027         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
12028         only from where it is copied to nested contexts.
12030 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
12032         PR target/89865
12033         * config/i386/i386.md (RMW operation with LEA peephole):
12034         Use LEAMODE mode attribute instead of SWI mode iterator for
12035         LEA pattern.
12037 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
12039         PR target/89848
12040         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
12041         Also process XEXP (src, 0) of a shift insn.
12043 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
12045         PR middle-end/89725
12046         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
12047         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
12049 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
12051         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
12052         test.
12053         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
12054         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
12055         immediately after first one with df_analyze in between, but rather
12056         process all bbs, queueing ones that need second pass in a worklist,
12057         df_analyze, process queued debug insn changes and if second pass is
12058         needed, process bbs from worklist, df_analyze, process queued debug
12059         insns again.
12061         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
12062         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
12063         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
12065 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
12067         PR c/79022
12068         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
12069         definition.
12071 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
12073         PR target/85667
12074         * config/i386/i386.c (ix86_function_value_1): Call the newly added
12075         function for 32-bit MS_ABI.
12076         (function_value_ms_32): New function.
12078 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
12080         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
12081         (movdi): Call gen_movdi_symbol_save_scc.
12082         (gen_movdi_symbol_save_scc): New insn and split.
12084 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
12086         PR rtl-optimization/89313
12087         * function.c (matching_constraint_num): New static function.
12088         (match_asm_constraints_1): Use it.  Fixup white space and comment.
12089         Don't replace inputs with non-matching constraints which conflict
12090         with early clobber outputs.
12092 2019-03-27  Jeff Law  <law@redhat.com>
12095         PR rtl-optimization/87761
12096         PR rtl-optimization/89826
12097         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
12098         slightly later.
12099         (pass_cprop_hardreg::execute): Call df_analyze after adding the
12100         note problem to get REG_DEAD/REG_UNUSED notes updated.
12102 2019-03-27  Richard Biener  <rguenther@suse.de>
12104         PR tree-optimization/89463
12105         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
12106         queue edges to remove.
12107         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
12108         dead stmts.  Delay edge removal until PHIs are removed to
12109         make debug-stmt creation not confused by seemingly degenerate
12110         PHIs.
12112 2019-03-27  Alan Modra  <amodra@gmail.com>
12114         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
12115         throughout file.
12116         * config/rs6000/darwin.h: Likewise.
12117         * config/rs6000/rs6000.c: Likewise.
12119 2019-03-27  Alan Modra  <amodra@gmail.com>
12121         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
12122         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
12124 2019-03-26  Andrew Waterman  <andrew@sifive.com>
12125             Jim Wilson  <jimw@sifive.com>
12127         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
12128         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
12129         (generic_idivdi, generic_fmul_single, generic_fmul_double)
12130         (generic_fdiv, generic_fsqrt): Add check for generic tune.
12131         (generic_alu): Add auipc to type list.
12132         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
12133         (riscv_microarchitecture): Declare.
12134         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
12135         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
12136         field.
12137         (riscv_microarchitecture): New.
12138         (sifive_7_tune_info): New.
12139         (riscv_cpu_info_table): Add microarchitecture value for rocket and
12140         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
12141         entries.
12142         (riscv_store_data_bypass_p): New.
12143         (riscv_option_override): Set riscv_microarchitecture from
12144         cpu->microarchitecture.
12145         * config/riscv/riscv.md: Include sifive-7.md.
12146         (type): Add auipc.
12147         (tune): New.
12148         (auipc<mode>): Change type to auipc.
12149         (restore_stack_nonlocal): New.
12150         * config/riscv/sifive-7.md: New.
12151         * doc/invoke.texi (RISC-V Options): Update mtune docs.
12153 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
12155         PR target/89827
12156         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
12157         Also process XEXP (src, 0) of a shift insn.
12159 2019-03-26  Richard Biener  <rguenther@suse.de>
12161         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
12162         (copy_debug_stmt): Likewise.
12163         (expand_call_inline): Likewise.
12164         (copy_bb): Avoid redundant lookup & set of gimple_block.
12165         * gimple-low.c (lower_gimple_return): Likewise.
12166         (lower_builtin_setjmp): Likewise.
12168 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
12170         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
12171         is constant 0, turn into static const data member initialized to false.
12172         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
12173         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
12175 2019-03-26  Jason Merrill  <jason@redhat.com>
12176             Jakub Jelinek  <jakub@redhat.com>
12178         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
12179         method.
12180         (mem_alloc_description::release_object_overhead): Fix comment typos.
12181         * hash-table.h (hash_table::~hash_table): Call
12182         release_instance_overhead only if m_entries is non-NULL, otherwise
12183         call unregister_descriptor.
12185 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
12187         PR tree-optimization/81740
12188         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12189         In case of outer loop vectorization, check for backward dependence
12190         at the inner loop if outer loop dependence is reversed.
12192 2019-03-26  Alan Modra  <amodra@gmail.com>
12194         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
12195         rs6000_vector_mem init.  Correct wI and wJ comment.
12197 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
12199         PR rtl-optimization/88347
12200         PR rtl-optimization/88423
12201         * sched-deps.c (sched_analyze_insn): Take into account that for
12202         tablejumps the barrier appears after a label and a jump_table_data.
12204 2019-03-25  Martin Sebor  <msebor@redhat.com>
12206         PR c/89812
12207         * c-common.c (check_user_alignment): Rename local.  Correct maximum
12208         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
12209         convert it to UHWI when it fits.
12211 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
12213         PR debug/86964
12214         * dwarf2out.c (premark_used_variables): New function.
12215         (prune_unused_types_walk): Do not mark not premarked external
12216         variables.
12217         (prune_unused_types): Call premark_used_variables.
12219 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
12221         PR rtl-optimization/89676
12222         * lra-constraints.c (curr_insn_transform): Do match reload for
12223         early clobbers when the match was successful only for different
12224         registers.
12226 2019-03-25  Martin Sebor  <msebor@redhat.com>
12228         * doc/extend.texi (Common Type Attributes): Document vector_size.
12229         (Common Variable Attributes): Mention size constraint.  Correct
12230         quoting and typos.
12231         (Vector Extensions): Use @dfn when defining bas type.  Clarify
12232         base type and size constraints.
12234 2019-03-25  Richard Biener  <rguenther@suse.de>
12236         PR tree-optimization/89789
12237         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
12238         changes from non-undefined back to undefined.
12240 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
12242         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
12243         heap string and a gc string, but since this variable is unknown to
12244         ggc the gc string might get reused and corrupted. Fixed by always
12245         using a heap string.
12247 2019-03-25  Richard Biener  <rguenther@suse.de>
12249         PR tree-optimization/89779
12250         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
12251         to remove IV defs, delay actual removal.
12252         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
12253         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
12254         very end, properly also reset loop control IV information.
12256 2019-03-25  Richard Biener  <rguenther@suse.de>
12258         PR tree-optimization/89802
12259         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
12260         move EH data to folded stmt.
12262 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
12264         * config/s390/s390-builtin-types.def: Remove few unused types and
12265         fix sort order for others.
12267 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
12269         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
12270         expected and found types with -mdebug during builtin matching.
12272 2019-03-25  Richard Biener  <rguenther@suse.de>
12274         PR middle-end/89790
12275         * fold-const.c (operand_equal_p): Revert last change with
12276         updated comment.
12278 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
12280         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
12281         notes for the result of the __tls_get_addr calls.
12282         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
12284 2019-03-24  Jeff Law  <law@redhat.com>
12286         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
12288         PR rtl-optimization/87761
12289         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
12290         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
12291         as needed.
12292         (pass_cprop_hardreg::execute): Add df note problem and defer insn
12293         rescans.  Reprocess blocks as needed, calling df_analyze before
12294         reprocessing.  Always call df_analyze before fixing up debug bind
12295         insns.
12297 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
12299         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
12300         big endian.
12302 2019-03-22  Andrew Pinski  <apinski@marvell.com>
12304         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
12305         attrribute for uxtw.
12307 2019-03-26  Jeff Law  <law@redhat.com>
12309         PR rtl-optimization/87761
12310         * config/mips/mips-protos.h (mips_split_move): Add new argument.
12311         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
12312         (mips_split_move): Accept new INSN argument.  Try to forward SRC
12313         into the next instruction.
12314         (mips_split_move_insn): Pass INSN through to mips_split_move.
12316 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
12318         PR rtl-optimization/89676
12319         * lra-constraints.c (curr_insn_transform): Do match reload for
12320         early clobbers even if the match was successful.
12322 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
12324         PR c++/87481
12325         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
12327 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
12329         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
12331 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
12333         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
12334         <avx512>_fmsub_<mode>_mask3<round_name>,
12335         <avx512>_fnmadd_<mode>_mask3<round_name>,
12336         <avx512>_fnmsub_<mode>_mask3<round_name>,
12337         avx512f_vmfmadd_<mode>_mask3<round_name>,
12338         avx512f_vmfmsub_<mode>_mask3<round_name>,
12339         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
12340         instead of register_operand and %v instead of v for match_operand 1.
12341         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
12342         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
12343         <round_nimm_predicate> instead of register_operand and %v instead of v
12344         for match_operand 1.
12346         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
12347         <avx512>_fmadd_<mode>_mask3<round_name>,
12348         <avx512>_fmsub_<mode>_mask<round_name>,
12349         <avx512>_fmsub_<mode>_mask3<round_name>,
12350         <avx512>_fnmadd_<mode>_mask<round_name>,
12351         <avx512>_fnmadd_<mode>_mask3<round_name>,
12352         <avx512>_fnmsub_<mode>_mask<round_name>,
12353         <avx512>_fnmsub_<mode>_mask3<round_name>,
12354         <avx512>_fmaddsub_<mode>_mask<round_name>,
12355         <avx512>_fmaddsub_<mode>_mask3<round_name>,
12356         <avx512>_fmsubadd_<mode>_mask<round_name>,
12357         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
12358         <round_nimm_predicate> instead of nonimmediate_operand.
12359         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
12360         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
12361         Use register_operand instead of <round_nimm_predicate> for the
12362         operand that needs to match output.
12363         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
12364         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
12365         Likewise.  Formatting fixes.
12367         PR target/89784
12368         * config/i386/i386.c (enum ix86_builtins): Remove
12369         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
12370         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
12371         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
12372         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
12373         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
12374         __builtin_ia32_vfmsubss3_mask3): New builtins.
12375         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
12376         avx512f_vmfmadd_<mode>_mask3<round_name>,
12377         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
12378         *avx512f_vmfmsub_<mode>_mask<round_name>,
12379         avx512f_vmfmsub_<mode>_mask3<round_name>,
12380         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
12381         *avx512f_vmfnmadd_<mode>_mask<round_name>,
12382         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
12383         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
12384         *avx512f_vmfnmsub_<mode>_mask<round_name>,
12385         avx512f_vmfnmsub_<mode>_mask3<round_name>,
12386         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
12387         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
12388         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
12389         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
12390         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
12391         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
12392         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
12393         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
12394         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
12395         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
12396         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
12397         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
12398         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
12399         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
12400         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
12401         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
12402         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
12403         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
12404         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
12405         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
12406         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
12407         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
12409 2019-03-21  Martin Sebor  <msebor@redhat.com>
12411         PR tree-optimization/89350
12412         * builtins.c (compute_objsize): Also ignore offsets whose upper
12413         bound is negative.
12414         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
12415         (builtin_memref::builtin_memref): Initialize new member.
12416         Allow EXPR to be null.
12417         (builtin_memref::extend_offset_range): Replace local with a member.
12418         Avoid assuming pointer offsets are unsigned.
12419         (builtin_memref::set_base_and_offset): Determine base object
12420         before computing offset range.
12421         (builtin_access::builtin_access): Handle memset.
12422         (builtin_access::generic_overlap): Replace local with a member.
12423         (builtin_access::strcat_overlap): Same.
12424         (builtin_access::overlap): Same.
12425         (maybe_diag_overlap): Same.
12426         (maybe_diag_access_bounds): Same.
12427         (wrestrict_dom_walker::check_call): Handle memset.
12428         (check_bounds_or_overlap): Same.
12430 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
12431             Jakub Jelinek  <jakub@redhat.com>
12433         PR lto/89692
12434         * tree.c (fld_type_variant, fld_incomplete_type_of,
12435         fld_process_array_type): Call fld->pset.add and don't call
12436         add_tree_to_fld_list if it returns true.
12437         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
12438         non-marked types from TYPE_NEXT_VARIANT list.
12439         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
12441 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
12443         * hash-table.h (hash_table): Add Lazy template parameter defaulted
12444         to false, if true, don't alloc_entries during construction, but defer
12445         it to the first method that needs m_entries allocated.
12446         (hash_table::hash_table, hash_table::~hash_table,
12447         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
12448         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
12449         hash_table::clear_slot, hash_table::traverse_noresize,
12450         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
12451         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
12452         false.
12453         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
12454         NO_INSERT instead of find_with_hash.
12455         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
12456         hash_set::m_table): Add Lazy to template params of hash_table.
12457         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
12458         * attribs.c (test_attribute_exclusions): Likewise.
12459         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
12460         hash_set.  Add tests for hash_set with Lazy = true.
12462 2019-03-21  Richard Biener  <rguenther@suse.de>
12464         PR tree-optimization/89779
12465         * tree.c (tree_nop_conversion): Consolidate and fix defensive
12466         checks with respect to released SSA names now having error_mark_node
12467         type.
12468         * fold-const.c (operand_equal_p): Likewise.
12470 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
12472         PR target/89775
12473         * config/s390/s390.c (global_not_special_regno_p): Move to make it
12474         available to ...
12475         (s390_optimize_register_info): Use global_not_special_regno_p to
12476         check for global regs.
12478 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
12480         PR target/89752
12481         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
12482         update this_alternative nor this_alternative_set.
12484 2019-03-19  Jim Wilson  <jimw@sifive.com>
12486         PR target/89411
12487         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
12488         align, size, offset.  Use them to handle a BLKmode reference.  Update
12489         comment.
12490         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
12492 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
12494         PR rtl-optimization/89768
12495         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
12496         instead of GEN_INT.
12497         (unroll_loop_runtime_iterations): Likewise.
12499 2019-03-19  Martin Sebor  <msebor@redhat.com>
12501         PR tree-optimization/89644
12502         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
12503         rather than endptr as an indicator of nul-termination.
12505         PR tree-optimization/89644
12506         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
12507         arrays in determining sequence sizes in strncpy and stpncpy.
12509 2019-03-19  Martin Liska  <mliska@suse.cz>
12511         PR middle-end/89737
12512         * predict.c (combine_predictions_for_bb): Empty likely_edges and
12513         unlikely_edges if there's an edge that belongs to both these sets.
12515 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
12517         PR target/89746
12518         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
12519         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
12520         go via a stack temporary.
12522 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
12524         PR target/89378
12525         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
12526         instead of gen_rtx_SUBREG.
12527         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
12529 2019-03-19  Richard Biener  <rguenther@suse.de>
12531         PR debug/88389
12532         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
12534 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
12536         PR lto/87809
12537         PR lto/89335
12538         * tree.c (free_lang_data_in_decl): Do not free context of C++
12539         destrutors.
12541 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
12543         PR target/89506
12544         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
12545         subs for the first alternative except when operands[3] is 1.
12547         PR target/89752
12548         * gimplify.c (gimplify_asm_expr): For output argument with
12549         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
12550         diagnose error.
12552 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
12554         PR rtl-optimization/89753
12555         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12556         explicit unrolling factor even more robust.
12558 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
12560         PR target/89726
12561         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
12562         compensation use x2 += 1 instead of x2 -= -1 and when honoring
12563         signed zeros, do another copysign after the compensation.
12565 2019-03-18  Martin Sebor  <msebor@redhat.com>
12567         PR tree-optimization/89720
12568         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
12569         more conservatively, the same as anti-range.
12571 2019-03-18  Richard Biener  <rguenther@suse.de>
12573         PR middle-end/88945
12574         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
12575         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
12576         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
12577         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
12579 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
12581         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
12582         Extend queue to 1024 entries.
12583         Add "consumed" field.
12584         (gomp_print_output): Remove print_index parameter.
12585         Add final parameter.
12586         Change limit to unsigned.
12587         Use consumed field to implement circular buffer.
12588         Detect interrupted print in final pass.
12589         Flush output at the end.
12590         (run): Update gomp_print_output usage.
12591         (main): Initialize kernargs->output_data.consumed.
12593 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
12595         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
12596         calculation of the minimum number of scalar iterations for
12597         fully-predicated loops.
12599 2019-03-18  Martin Jambor  <mjambor@suse.cz>
12601         PR tree-optimization/89546
12602         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
12603         any propagation to its children took place.
12605 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
12607         PR target/89627
12608         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
12609         parameter, and make use of it.
12610         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
12612 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
12614         * config/arc/arc.opt (mcode-density-frame): Get the inital value
12615         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
12616         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12617         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12618         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
12619         match what the ops is doing.
12620         (push_multi_fp_blink): Likewise.
12621         * config/arc/arc.c (arc_override_options): Enable enter/leave when
12622         compiling for size and elf target.
12623         (arc_save_callee_enter): Adjust note to match what enter/leave
12624         operation does.
12626 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
12628         * config/arc/arc.md (tst_movb): Fix constraint.
12630 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
12632         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12634 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
12636         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
12637         * config/arc/arc.c (arc_conditional_register_usage): Remove all
12638         reg_alloc_order references.
12639         (size_alloc_order): Define.
12640         (arc_adjust_reg_alloc_order): New function.
12641         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
12642         order.
12643         (ADJUST_REG_ALLOC_ORDER): Define.
12644         (HONOR_REG_ALLOC_ORDER): Likewise.
12646 2019-03-18  Richard Biener  <rguenther@suse.de>
12648         PR target/87561
12649         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
12650         loads and stores a bit more.
12652 2019-03-18  Richard Biener  <rguenther@suse.de>
12654         PR target/87561
12655         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
12656         load pessimization to stores as well.
12658 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
12660         PR middle-end/86979
12661         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
12662         successor, use NULL as its av set.
12664 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
12666         PR rtl-optimization/89721
12667         * lra-constraints (invariant_p): Return false if side_effects_p holds.
12669 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12671         PR target/87532
12672         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12673         When handling vec_extract, use modular arithmetic to allow
12674         constant selectors greater than vector length.
12675         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
12676         V1TImode vectors to have constant selector values greater than 0.
12677         Use modular arithmetic to compute vector index.
12678         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
12679         index for in-memory vectors.  Correct code generation for
12680         in-register vectors.
12681         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
12682         compute index.
12684 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
12686         PR c++/88534
12687         PR c++/88537
12688         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12689         VAR_DECL args.
12691 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
12693         PR c++/89709
12694         * tree.c (inchash::add_expr): Strip any location wrappers.
12695         * fold-const.c (operand_equal_p): Move stripping of location wrapper
12696         after hash verification.
12698         PR debug/89704
12699         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12700         SIGN_EXTEND and ZERO_EXTEND.
12702 2019-03-14  Jason Merrill  <jason@redhat.com>
12703             Jakub Jelinek  <jakub@redhat.com>
12705         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12706         than if is_empty (*slot).
12707         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12708         existing elt and for elt removal.
12709         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12710         of already removed elt.
12712 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
12714         PR target/89650
12715         * config/i386/i386.c (remove_partial_avx_dependency): Handle
12716         REG_EH_REGION note.
12718 2019-03-14  Martin Liska  <mliska@suse.cz>
12720         PR other/89712
12721         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12723 2019-03-14  Richard Biener  <rguenther@suse.de>
12725         PR target/89711
12726         * config/i386/i386.c (make_resolver_func): Properly set
12727         DECL_CONTEXT on the RESULT_DECL.
12728         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12730 2019-03-14  Richard Biener  <rguenther@suse.de>
12732         * gimple-pretty-print.c: Include cfgloop.h.
12733         (dump_gimple_phi): Adjust.
12734         (dump_gimple_bb_header): Dump loop header for GIMPLE.
12735         (pp_cfg_jump): Adjust.
12736         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12737         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12738         (lower_phi_internal_fn): Remove.
12739         (verify_gimple_call): Remove IFN_PHI special-casing.
12740         (dump_function_to_file): Dump IL state.
12741         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12742         done to deal with PHI nodes being present in non-SSA state.
12744 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
12746         PR ipa/89684
12747         * multiple_target.c (create_dispatcher_calls): Change
12748         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12749         In the node->iterate_referring loop, push *ref rather than ref, call
12750         ref->remove_reference () and always pass 0 to iterate_referring.
12752         PR rtl-optimization/89679
12753         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12754         would contain a paradoxical SUBREG.
12756 2019-03-14  Richard Biener  <rguenther@suse.de>
12758         PR tree-optimization/89710
12759         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12760         safe_dyn_cast.
12762 2019-03-14  Martin Liska  <mliska@suse.cz>
12764         * coverage.c (coverage_begin_function): Stream also
12765         end_column.
12766         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
12767         documentation about function declaration location.
12768         * gcov-dump.c (tag_function): Print whole range
12769         of function declaration.
12770         * gcov.c (struct function_info): Add end_column field.
12771         (function_info::function_info): Initialize it.
12772         (output_json_intermediate_file): Output {start,end}_column
12773         fields.
12774         (read_graph_file): Read end_column.
12776 2019-03-14  Richard Biener  <rguenther@suse.de>
12778         PR middle-end/89698
12779         * fold-const.c (operand_equal_p): For INDIRECT_REF check
12780         that the access types are similar.
12782 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
12784         PR tree-optimization/89703
12785         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12786         aren't compatible also with builtin_decl_explicit.  Check pure
12787         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12788         and BUILT_IN_STPNCPY{,_CHK}.
12790 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
12792         PR target/89523
12793         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12794         addr32 prefix to VSIB address for X32.
12795         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12796         "%M2" to opcode.
12797         (*avx512pf_gatherpf<mode>df_mask): Likewise.
12798         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12799         (*avx512pf_scatterpf<mode>df_mask): Likewise.
12800         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12801         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12802         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12803         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12804         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12805         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12806         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12807         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12808         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12809         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12810         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12811         (*avx512f_scatterdi<mode>): Likewise.
12813 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
12815         PR target/85860
12816         * lra-constraints.c (inherit_in_ebb): Update
12817         potential_reload_hard_regs along with live_hard_regs.
12819 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
12821         PR debug/89498
12822         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12823         DWARF_OFFSET_SIZE.
12824         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12826 2019-03-13  Martin Sebor  <msebor@redhat.com>
12828         PR tree-optimization/89662
12829         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12830         has a size.
12832 2019-03-13  Richard Biener  <rguenther@suse.de>
12834         PR middle-end/89677
12835         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12836         throw FP expressions at tree-affine.
12838 2019-03-14  Richard Biener  <rguenther@suse.de>
12840         * tree-pretty-print.c (dump_generic_node): For -gimple properly
12841         dump negative integer constants using _Literal (type) -num.
12843 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
12845         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12846         nonlocal_value member.
12848         PR middle-end/88588
12849         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12850         (ipa_simd_modify_function_body): Handle PHIs.
12852 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
12854         * config/s390/s390.c (s390_option_override_internal): Use more
12855         aggressive inlining parameters.
12857 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
12859         * config/s390/3906.md: New file.
12860         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12861         (LONGRUNNING_THRESHOLD): Remove.
12862         (MAX_SCHED_MIX_SCORE): Decrease.
12863         (MAX_SCHED_MIX_DISTANCE): Decrease.
12864         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12865         (struct s390_sched_state): New struct to hold scheduling state.
12866         (S390_SCHED_STATE_NORMAL): Remove.
12867         (S390_SCHED_STATE_CRACKED): Remove.
12868         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12869         (s390_get_sched_attrmask): Use new attribute.
12870         (s390_get_unit_mask): Use new units.
12871         (s390_is_fpd): New function.
12872         (s390_is_fxd): New function.
12873         (s390_is_longrunning): New function.
12874         (s390_sched_score): Use new functions.
12875         (s390_sched_reorder): Likewise.
12876         (s390_sched_variable_issue): Rework and use new functions.
12877         (s390_sched_init): Use new functions.
12878         * config/s390/s390.h (s390_tune_attr):  Add z14.
12879         * config/s390/s390.md: Add z14.
12881 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
12883         * config/s390/2964.md: Update pipeline description.
12884         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12885         (LONGRUNNING_THRESHOLD): Remove.
12886         (LATENCY_FACTOR): Remove.
12887         (s390_get_unit_mask): Add unit.
12888         (s390_sched_score): Use fxd/fpd.
12889         (s390_sched_variable_issue): Use fxd/fpd.
12891 2019-03-12  Martin Liska  <mliska@suse.cz>
12893         * config/i386/i386.c: Reword an error message.
12895 2019-03-12  Martin Jambor  <mjambor@suse.cz>
12897         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
12898         terminate with newline.
12900 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
12902         PR target/52726
12903         * config/s390/s390.md (tabort): Use %wd instead of
12904         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
12905         letters and periods.
12906         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
12907         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
12908         's with %< and %>.
12910         PR middle-end/89663
12911         * builtins.c (expand_builtin_int_roundingfn,
12912         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
12913         gcc_unreachable if validate_arglist fails.
12915 2019-03-12  Richard Biener  <rguenther@suse.de>
12917         PR tree-optimization/89664
12918         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
12919         free the occurance tree after the early out.
12921 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
12923         PR middle-end/89655
12924         PR bootstrap/89656
12925         * vr-values.c (vr_values::update_value_range): If
12926         old_vr->varying_p (), don't update it, make new_vr also VARYING
12927         and return false.
12929 2019-03-11  Martin Liska  <mliska@suse.cz>
12931         * config/aarch64/aarch64.c (aarch64_override_options_internal):
12932         Fix double string quoting.
12934 2019-03-11  Martin Liska  <mliska@suse.cz>
12936         * collect-utils.c (collect_wait): Wrap apostrophes
12937         in gcc internal format with %'.
12938         * collect2.c (main): Likewise.
12939         (scan_prog_file): Likewise.
12940         (scan_libraries): Likewise.
12941         * config/i386/i386.c (ix86_expand_call): Likewise.
12942         (ix86_handle_interrupt_attribute): Likewise.
12943         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12944         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12945         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
12946         * lto-wrapper.c (find_crtoffloadtable): Likewise.
12947         * symtab.c (symtab_node::verify_base): Likewise.
12948         * tree-cfg.c (verify_gimple_label): Likewise.
12949         * tree.c (verify_type_variant): Likewise.
12951 2019-03-11  Martin Liska  <mliska@suse.cz>
12953         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
12954         in a string format message and fix GNU coding style.
12955         (expand_builtin_set_thread_pointer): Likewise.
12956         * common/config/aarch64/aarch64-common.c
12957         (aarch64_rewrite_selected_cpu): Likewise.
12958         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
12959         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
12960         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
12961         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12962         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
12963         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
12964         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
12965         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
12966         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
12967         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
12968         Likewise.
12969         * common/config/riscv/riscv-common.c
12970         (riscv_subset_list::parsing_subset_version): Likewise.
12971         (riscv_subset_list::parse_std_ext): Likewise.
12972         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12973         (riscv_subset_list::parse): Likewise.
12974         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
12975         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
12976         (aarch64_override_options_internal): Likewise.
12977         (aarch64_validate_mcpu): Likewise.
12978         (aarch64_validate_march): Likewise.
12979         (aarch64_validate_mtune): Likewise.
12980         (aarch64_override_options): Likewise.
12981         * config/alpha/alpha.c (alpha_option_override): Likewise.
12982         * config/arc/arc.c (arc_init): Likewise.
12983         (parse_mrgf_banked_regs_option): Likewise.
12984         (arc_override_options): Likewise.
12985         (arc_expand_builtin_aligned): Likewise.
12986         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
12987         (arm_expand_builtin): Likewise.
12988         * config/arm/arm.c (arm_option_check_internal): Likewise.
12989         (arm_configure_build_target): Likewise.
12990         (arm_option_override): Likewise.
12991         (arm_options_perform_arch_sanity_checks): Likewise.
12992         (arm_handle_cmse_nonsecure_entry): Likewise.
12993         (arm_handle_cmse_nonsecure_call): Likewise.
12994         (arm_tls_referenced_p): Likewise.
12995         (thumb1_expand_prologue): Likewise.
12996         * config/avr/avr.c (avr_option_override): Likewise.
12997         * config/bfin/bfin.c (bfin_option_override): Likewise.
12998         * config/c6x/c6x.c (c6x_option_override): Likewise.
12999         * config/cr16/cr16.c (cr16_override_options): Likewise.
13000         * config/cris/cris.c (cris_option_override): Likewise.
13001         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
13002         * config/darwin-c.c (macosx_version_as_macro): Likewise.
13003         * config/darwin.c (darwin_override_options): Likewise.
13004         * config/frv/frv.c (frv_expand_builtin): Likewise.
13005         * config/h8300/h8300.c (h8300_option_override): Likewise.
13006         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
13007         (ix86_option_override_internal): Likewise.
13008         (warn_once_call_ms2sysv_xlogues): Likewise.
13009         (ix86_expand_prologue): Likewise.
13010         (split_stack_prologue_scratch_regno): Likewise.
13011         (ix86_warn_parameter_passing_abi): Likewise.
13012         * config/ia64/ia64.c (fix_range): Likewise.
13013         * config/m68k/m68k.c (m68k_option_override): Likewise.
13014         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
13015         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
13016         (mips_set_compression_mode): Likewise.
13017         * config/mmix/mmix.c (mmix_option_override): Likewise.
13018         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
13019         * config/msp430/msp430.c (msp430_option_override): Likewise.
13020         * config/nds32/nds32.c (nds32_option_override): Likewise.
13021         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
13022         (nios2_option_override): Likewise.
13023         (nios2_expand_custom_builtin): Likewise.
13024         * config/nvptx/mkoffload.c (main): Likewise.
13025         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
13026         * config/pa/pa.c (fix_range): Likewise.
13027         (pa_option_override): Likewise.
13028         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
13029         (riscv_option_override): Likewise.
13030         * config/rl78/rl78.c (rl78_option_override): Likewise.
13031         * config/rs6000/aix61.h: Likewise.
13032         * config/rs6000/aix71.h: Likewise.
13033         * config/rs6000/aix72.h: Likewise.
13034         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
13035         * config/rs6000/freebsd64.h: Likewise.
13036         * config/rs6000/linux64.h: Likewise.
13037         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
13038         (rs6000_expand_zeroop_builtin): Likewise.
13039         (rs6000_expand_mtfsb_builtin): Likewise.
13040         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
13041         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
13042         (rs6000_invalid_builtin): Likewise.
13043         (rs6000_expand_split_stack_prologue): Likewise.
13044         * config/rs6000/rtems.h: Likewise.
13045         * config/rx/rx.c (valid_psw_flag): Likewise.
13046         (rx_expand_builtin): Likewise.
13047         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13048         * config/s390/s390.c (s390_expand_builtin): Likewise.
13049         (s390_function_profiler): Likewise.
13050         (s390_option_override_internal): Likewise.
13051         (s390_option_override): Likewise.
13052         * config/sh/sh.c (sh_option_override): Likewise.
13053         (sh_builtin_saveregs): Likewise.
13054         (sh_fix_range): Likewise.
13055         * config/sh/vxworks.h: Likewise.
13056         * config/sparc/sparc.c (sparc_option_override): Likewise.
13057         * config/spu/spu.c (spu_option_override): Likewise.
13058         (fix_range): Likewise.
13059         * config/visium/visium.c (visium_option_override): Likewise.
13060         (visium_handle_interrupt_attr): Likewise.
13061         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
13062         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
13063         (dbg_cnt_process_opt): Likewise.
13064         * dwarf2out.c (output_dwarf_version): Likewise.
13065         * except.c (expand_eh_return): Likewise.
13066         * gcc.c (defined): Likewise.
13067         (driver_handle_option): Likewise.
13068         (process_command): Likewise.
13069         (compare_files): Likewise.
13070         (driver::prepare_infiles): Likewise.
13071         (driver::do_spec_on_infiles): Likewise.
13072         (driver::maybe_run_linker): Likewise.
13073         * omp-offload.c (oacc_parse_default_dims): Likewise.
13074         * opts-global.c (handle_common_deferred_options): Likewise.
13075         * opts.c (parse_sanitizer_options): Likewise.
13076         (common_handle_option): Likewise.
13077         (enable_warning_as_error): Likewise.
13078         * passes.c (enable_disable_pass): Likewise.
13079         * plugin.c (parse_plugin_arg_opt): Likewise.
13080         (default_plugin_dir_name): Likewise.
13081         * targhooks.c (default_expand_builtin_saveregs): Likewise.
13082         (default_pch_valid_p): Likewise.
13083         * toplev.c (init_asm_output): Likewise.
13084         (process_options): Likewise.
13085         (toplev::run_self_tests): Likewise.
13086         * tree-cfg.c (verify_gimple_call): Likewise.
13087         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
13088         (tree_inlinable_function_p): Likewise.
13089         * var-tracking.c (vt_find_locations): Likewise.
13091 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
13093         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
13094         only on the else branch.
13096 2019-03-11  Martin Liska  <mliska@suse.cz>
13098         * gcov.c (output_intermediate_json_line): Print function
13099         name of each line.
13100         (output_json_intermediate_file): Add new argument.
13101         * doc/gcov.texi: Document the change.
13103 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
13105         PR rtl-optimization/89588
13106         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13107         explicit unrolling factor more robust.
13109 2019-03-11  Richard Biener  <rguenther@suse.de>
13111         PR tree-optimization/89649
13112         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
13113         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
13114         on the prolog and epilog loops.
13115         (vect_loop_versioning): Return copy of loop.
13116         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
13117         on the non-vectorized version of the loop.
13119 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
13121         PR target/68924
13122         * config/i386/sse.md (*vec_extractv2di_0_sse):
13123         Add (=r,x) alternative and corresponding splitter.
13125 2019-03-10  Martin Jambor  <mjambor@suse.cz>
13127         PR tree-optimization/85762
13128         PR tree-optimization/87008
13129         PR tree-optimization/85459
13130         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
13131         it points to if there is a type changing MEM_REF.  Adjust all callers.
13132         (build_accesses_from_assign): Disable total scalarization if
13133         contains_vce_or_bfcref_p returns true through the new parameter, for
13134         both rhs and lhs.
13136 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
13138         PR c/88568
13139         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
13140         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
13142         PR target/79645
13143         * common.opt (fdiagnostics-show-labels,
13144         fdiagnostics-show-line-numbers, fdiagnostics-format=,
13145         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
13146         gas-locview-support, ginline-points, ginternal-reset-location-views):
13147         Terminate description text with a dot.
13148         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
13149         * config/mcore/mcore.opt (m210, m340): Likewise.
13150         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
13151         mnops=): Start description text with a capital letter.
13152         * config/arc/arc.opt (msize-level=): Likewise.
13153         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
13154         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
13155         mnewlib): Likewise.
13156         * config/ft32/ft32.opt (msim): Likewise.
13157         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
13158         (mnodiv, mnopm): Terminate description text with a dot.
13159         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
13160         a colon.
13161         * config/i386/i386.opt (prefer_vector_width, instrument_return):
13162         Likewise.
13163         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
13164         text.
13166         PR rtl-optimization/89634
13167         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
13168         are modified in BB_END (e->src) instruction.
13170 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
13172         PR target/79926
13173         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
13174         messages more amenable to translation, and improve wording.
13176 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
13178         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
13179         ud- and du-chains between phases.
13181 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
13183         PR debug/89631
13184         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
13185         instead of POLY_INT_CST.
13187 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13189         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
13190         requirement.
13192 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
13194         PR target/68924
13195         PR target/78782
13196         PR target/87558
13197         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
13198         (_mm_storeu_si64): Ditto.
13200 2019-03-08  Martin Liska  <mliska@suse.cz>
13202         PR target/86952
13203         * config/i386/i386.c (ix86_option_override_internal): Disable
13204         jump tables when retpolines are used.
13206 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
13208         PR go/63560
13209         * ipa-split.c (execute_split_functions): Do not split
13210         'noinline' or 'section' function.
13212 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
13214         PR target/79846
13215         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
13216         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
13217         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
13219         PR ipa/80000
13220         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
13221         from diagnostics.  Formatting fixes.
13223         PR target/85665
13224         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
13225         warn_odr diagnostics.
13227         PR other/80058
13228         * lra-constraints.c (process_alt_operands): Avoid one space before
13229         " at the end of line and another after " on another line in a string
13230         literal.
13231         * attribs.c (handle_dll_attribute): Likewise.
13232         * config/avr/avr-devices.c (avr_texinfo): Likewise.
13234         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
13235         warning_at or inform messages in G_() if there is no ?:.
13237         PR tree-optimization/89550
13238         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
13239         returned true.  Formatting fixes.
13240         (expand_builtin_strnlen): Formatting fixes.
13241         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
13242         if warning_at returned true.
13243         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
13245 2019-03-08  Richard Biener  <rguenther@suse.de>
13247         PR middle-end/89578
13248         * cfgloop.h (struct loop): Add owned_clique field.
13249         * cfgloopmanip.c (copy_loop_info): Copy it.
13250         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
13251         cliques.
13252         * tree-inline.c (copy_loops): Remap owned_clique.
13253         * lto-streamer-in.c (input_cfg): Stream owned_clique.
13254         * lto-streamer-out.c (output_cfg): Likewise.
13256 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
13258         PR target/80190
13259         * config/darwin.c: Include intl.h.
13260         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
13261         composing the message out of two separate parts.
13263 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
13265         PR target/80003
13266         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
13267         doesn't start with a capital letter and doesn't end with a dot.
13268         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
13269         with a capital letter.
13270         (ix86_mangle_function_version_assembler_name): Likewise.
13271         (ix86_generate_version_dispatcher_body): Likewise.
13272         (fold_builtin_cpu): Likewise.
13273         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
13274         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
13275         translators, wrap full type name in %qs.
13277         PR translation/79999
13278         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
13279         depend clause with source (or sink) modifier.
13280         * omp-expand.c (expand_omp_ordered_sink): Likewise.
13282         PR target/89602
13283         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
13284         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
13285         (avx512f_load<mode>_mask): New define_expand.
13286         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
13287         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
13288         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
13289         __builtin_ia32_movess_mask): New builtins.
13290         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
13291         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
13292         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
13293         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
13295 2019-03-07  Martin Jambor  <mjambor@suse.cz>
13297         PR lto/87525
13298         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
13299         for extern inline functions.
13301 2019-03-07  Martin Jambor  <mjambor@suse.cz>
13303         PR ipa/88235
13304         * cgraph.h (cgraph_node): New inline method former_thunk_p.
13305         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
13306         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
13307         have multiple callees.  At the end check if declarations match as
13308         opposed to cgraph_nodes.
13310 2019-03-07  Martin Liska  <mliska@suse.cz>
13312         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
13313         which is equivalent to searching for this in clones chain.
13314         * symtab.c (symtab_node::verify_base): Similarly compare ASM
13315         names with a neighbour and special case first node in a chain.
13317 2019-01-25  Jason Merrill  <jason@redhat.com>
13319         PR c++/80916 - spurious "static but not defined" warning.
13320         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
13321         for an internal symbol with DECL_EXTERNAL.
13323 2019-04-07  Richard Biener  <rguenther@suse.de>
13325         PR middle-end/89618
13326         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
13327         * tree-inline.c (copy_loops): Simplify.
13329 2019-03-07  Martin Liska  <mliska@suse.cz>
13331         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
13333 2019-03-07  Richard Biener  <rguenther@suse.de>
13335         PR tree-optimization/89595
13336         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
13337         stmt iterator as reference, take boolean output parameter to
13338         indicate whether the stmt was removed and thus the iterator
13339         already advanced.
13340         (dom_opt_dom_walker::before_dom_children): Re-iterate over
13341         stmts created by folding.
13343 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
13345         PR c++/89585
13346         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
13347         at toplevel.
13349 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
13351         PR rtl-optimization/88845
13352         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
13353         LRA.
13354         * lra.c (remove_scratches_1): New function.
13355         (remove_scratches): Use it.
13356         (lra_emit_move): Likewise.
13358 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
13360         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
13361         unaligned_access variable.
13362         * config/arc/arc.c (arc_override_options): Set unaligned access
13363         default on for HS CPUs.
13364         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
13366 2019-03-06  Martin Liska  <mliska@suse.cz>
13368         PR gcov-profile/89577
13369         * doc/gcov.texi: Prefer to use --coverage.
13370         * doc/sourcebuild.texi: Likewise.
13372 2019-03-02  Jason Merrill  <jason@redhat.com>
13374         PR c++/86485 - -Wmaybe-unused with empty class ?:
13375         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
13377 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
13379         PR target/89587
13380         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
13381         if_multiarch.
13383         PR middle-end/89590
13384         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
13385         exactly one argument.
13387 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
13388             Richard Sandiford  <richard.sandiford@arm.com>
13390         PR tree-optimization/89570
13391         * match.pd (vec_cond into cond_op simplification): Don't use
13392         get_conditional_internal_fn, use as_internal_fn (cond_op).
13394 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
13396         PR target/89222
13397         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
13398         to decide when to split off a non-zero offset from a symbol.
13399         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
13400         in function symbols.
13402 2019-03-05  Richard Biener  <rguenther@suse.de>
13404         PR tree-optimization/89594
13405         * tree-if-conv.c (pass_if_conversion::execute): Handle
13406         case where .LOOP_VECTORIZED_FUNCTION was removed.
13408 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
13410         PR bootstrap/89560
13411         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
13412         instead alloca it only when needed with the needed size.
13414         PR tree-optimization/89570
13415         * match.pd (vec_cond into cond_op simplification): Guard with
13416         vectorized_internal_fn_supported_p test and #if GIMPLE.
13418         PR tree-optimization/89566
13419         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
13420         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
13421         Punt if get_user_idx_format succeeds, but idx_format argument is
13422         not provided or doesn't have pointer type, or if idx_args is above
13423         number of provided arguments.
13425 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
13427         PR tree-optimization/89437
13428         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
13430 2019-03-04  Richard Biener  <rguenther@suse.de>
13432         PR middle-end/89572
13433         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
13434         safe_dyn_cast.
13436 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
13438         PR tree-optimization/89487
13439         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
13440         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
13441         (distribute_loop): Don't do runtime alias check if there is non-
13442         addressable data reference.
13443         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
13444         is a register variable.
13446 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
13448         PR target/89506
13449         * config/arm/arm.md (cmpsi2_addneg): Use
13450         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
13451         If operands[2] is 0 or INT_MIN, force use of subs.
13452         (*compare_scc splitter): Use gen_int_mode.
13453         (*negscc): Likewise.
13454         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
13456 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
13457             Monk Chiang  <sh.chiang04@gmail.com>
13459         * common/config/riscv/riscv-common.c: Include sstream.
13460         (riscv_subset_list::to_string): New.
13461         (riscv_arch_str): Likewise.
13462         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
13463         * config.in: Regen.
13464         * config/riscv/riscv-protos.h (riscv_arch_str): New.
13465         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
13466         (riscv_emit_attribute): New.
13467         (riscv_file_start): Emit attribute if needed.
13468         (riscv_option_override): Init riscv_emit_attribute_p.
13469         * config/riscv/riscv.opt (mriscv-attribute): New option.
13470         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
13471         * configure: Regen.
13472         * doc/install.texi: Document --with-riscv-attribute.
13473         * doc/invoke.texi: Document -mriscv-attribute.
13475         * common/config/riscv/riscv-common.c:
13476         Include config/riscv/riscv-protos.h.
13477         (INCLUDE_STRING): Defined.
13478         (RISCV_DONT_CARE_VERSION): Defined.
13479         (riscv_subset_t): Declare.
13480         (riscv_subset_t::riscv_subset_t): New.
13481         (riscv_subset_list): Declare.
13482         (riscv_subset_list::riscv_subset_list): New.
13483         (riscv_subset_list::~riscv_subset_list): Likewise.
13484         (riscv_subset_list::parsing_subset_version): Likewise.
13485         (riscv_subset_list::parse_std_ext): Likewise.
13486         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13487         (riscv_subset_list::add): Likewise.
13488         (riscv_subset_list::lookup): Likewise.
13489         (riscv_subset_list::xlen): Likewise.
13490         (riscv_subset_list::parse): Likewise.
13491         (riscv_supported_std_ext): Likewise.
13492         (current_subset_list): Likewise.
13493         (riscv_parse_arch_string): Using riscv_subset_list::parse to
13494         parse.
13496 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
13498         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13499         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
13500         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
13502 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
13504         PR rtl-optimization/85899
13505         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
13506         fallthru edges leading to the exit block.
13508 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
13510         PR target/89517
13511         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
13512         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
13514 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
13516         PR tree-optimization/89535
13517         * tree-vect-stmts.c (vectorizable_call): Record the vector types
13518         for each operand.  Calculate the fallback choice for mask operands
13519         and pass it to vect_get_vec_def_for_operand.
13521 2019-03-01  Richard Biener  <rguenther@suse.de>
13523         PR middle-end/89541
13524         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
13525         get virtual operands.
13526         (get_expr_operands): Handle CONST_DECL like other decls.
13528 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
13530         PR middle-end/89503
13531         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
13532         on DECL_P and EXPR_P.
13534 2019-03-01  Richard Biener  <rguenther@suse.de>
13536         PR middle-end/89497
13537         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
13538         argument, defaulted to zero.
13539         * passes.c (execute_function_todo): Pass down SSA update flags
13540         to cleanup_tree_cfg.
13541         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
13542         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
13543         form if requested.
13544         (cleanup_tree_cfg): Get and pass down SSA update flags.
13546 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
13548         PR bootstrap/89539
13549         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
13550         early_lto_debug argument.
13552 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
13554         PR tree-optimization/89536
13555         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
13556         only whether bit #0 of the value is 0 instead of the entire value.
13558 2019-02-28  Marek Polacek  <polacek@redhat.com>
13560         PR c++/87068 - missing diagnostic with fallthrough statement.
13561         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
13562         at the end of a seq, save its location to walk_stmt_info.
13563         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
13564         a switch.
13566 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
13568         PR lto/88585
13569         * tree.c (find_atomic_core_type): Move ahead in file.
13570         (check_base_type): Correctly compare alignments of atomic types.
13572 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
13574         PR target/89455
13575         * config/i386/i386.c (get_builtin_code_for_version): Identify
13576         Westmere from PCLMUL, instead of AES.
13578 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
13580         PR target/89434
13581         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
13582         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
13583         -UINTVAL (...).
13585 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
13587         PR target/88530
13588         * config/aarch64/aarch64-option-extensions.def: Document it.
13589         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
13590         if empty hwcaps.
13592 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
13594         PR c/89520
13595         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
13596         builtins if they don't have a single scalar floating point argument.
13597         Formatting fixes.
13599 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13601         PR rtl-optimization/89490
13602         * varasm.c (get_block_for_section): Bail out for mergeable sections.
13603         (default_use_anchors_for_symbol_p, output_object_block): Assert the
13604         block section is not mergeable.
13606 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
13608         PR target/70341
13609         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
13610         old define_insn to ...
13611         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
13612         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
13613         Rename old define_insn to ...
13614         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
13615         (thumb2_casesi_internal_pic): New define_expand.  Rename old
13616         define_insn to ...
13617         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
13618         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
13619         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
13621 2019-02-27  Richard Biener  <rguenther@suse.de>
13623         PR debug/88878
13624         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
13626 2019-02-27  Richard Biener  <rguenther@suse.de>
13628         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
13629         building.
13631 2019-02-27  Richard Biener  <rguenther@suse.de>
13633         PR debug/88878
13634         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
13635         parameter, prefix section name with .gnu.debuglto_ if true.
13636         (dwarf2out_finish): Pass false to output_comdat_type_unit.
13637         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
13639 2019-02-27  Richard Biener  <rguenther@suse.de>
13641         PR debug/89514
13642         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
13643         rather than on use_debug_types, doing what output_die does.
13644         (value_format): Likewise.
13646 2019-02-27  Martin Jambor  <mjambor@suse.cz>
13647             Martin Sebor  <msebor@redhat.com>
13649         * doc/invoke.texi (Warning Options): Reword description of
13650         -Wno-absolute-value.
13652 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
13654         PR tree-optimization/89280
13655         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
13656         builtin_setjmp_setup_bb): New functions.
13657         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
13658         When visiting __builtin_setjmp_setup block, queue in special
13659         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
13660         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
13661         from visited after the loop if they don't have any visited successor
13662         blocks.
13664 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
13666         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
13667         New function.
13668         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
13670 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
13672         PR c++/89507
13673         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
13674         with types other than sizetype/ssizetype.
13676 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
13678         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
13679         (enum sparc_processor_type): ...this.
13680         (enum sparc_code_model_type): New enumeration type.
13681         (enum sparc_memory_model_type): Tweak comments.
13682         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
13683         (mtune): Likewise.
13684         (mcmodel): Use sparc_code_model enumeration and variable.
13685         (sparc_code_model): New enumeration.
13686         (mdebug): Add Undocumented marker.
13687         * config/sparc/sparc.h (enum cmodel): Delete.
13688         (sparc_cmodel): Likewise.
13689         (TARGET_CM_MEDLOW): Adjust to above renaming.
13690         (TARGET_CM_MEDMID): Likewise.
13691         (TARGET_CM_MEDANY): Likewise.
13692         (TARGET_CM_EMBMEDANY): Likewise.
13693         * config/sparc/sparc.c (sparc_cmodel): Delete.
13694         (sparc_option_override): Remove string/value mapping support for the
13695         code model.  Move code and memory model support to after the handling
13696         of target flags.  Do private machine setup last.
13697         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13698         (sparc_legitimize_reload_address): Likewise.
13699         (sparc_output_mi_thunk): Likewise.
13700         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13702 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
13704         PR tree-optimization/89500
13705         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13706         (handle_builtin_strlen): Remove noncst_bound variable.  Always
13707         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
13708         cst if the first cst bytes starting at x are known to be non-zero,
13709         even if the string is not zero terminated.  Don't try to modify
13710         *si for strnlen.  Update strlen_to_stridx only for strlen or if
13711         we can prove strnlen returns the same value as strlen would.
13713 2019-02-26  Martin Liska  <mliska@suse.cz>
13715         * alloc-pool.h (struct pool_usage): Remove extra
13716         print_dash_line.
13717         * bitmap.h (struct bitmap_usage): Likewise.
13718         * ggc-common.c (struct ggc_usage): Likewise.
13719         * mem-stats.h (struct mem_usage): Likewise.
13720         (mem_alloc_description::dump): Print dash lines
13721         here and repeat header at the end of a table report.
13722         It's then more readable.
13723         * tree-phinodes.c (phinodes_print_statistics): Make
13724         horizontal alignment.
13725         * tree-ssanames.c (ssanames_print_statistics): Likewise.
13726         * vec.c (struct vec_usage): Remove extra print_dash_line.
13727         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13729 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
13731         * doc/extend.texi (__builtin_object_size):
13732         Use @pxref instead of @xref inside parenthesis.
13733         (__builtin_has_attribute): Add missing comma after @xref.
13734         (__builtin_object_size): Ditto.
13735         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13736         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13737         in the list.
13739 2019-02-26  Jeff Law  <law@redhat.com>
13741         PR rtl-optimization/87761
13742         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13743         detect obviously dead insns and delete them.
13745 2019-02-26  Richard Biener  <rguenther@suse.de>
13747         PR tree-optimization/89505
13748         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13749         to handle restrict pointed-to vars with multiple subvars
13750         correctly.
13752 2019-02-26  Richard Biener  <rguenther@suse.de>
13754         PR tree-optimization/89489
13755         * tree-parloops.c (create_loop_fn): Copy over last_clique.
13757 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
13759         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13760         and move around comment.
13761         <BIT_AND_EXPR>: Likewise.
13762         <BIT_NOT_EXPR>: Add specific handling for boolean types.
13764 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
13766         PR target/89474
13767         * config/i386/i386.c (remove_partial_avx_dependency): Call
13768         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13769         after changing possibly many instructions to use that pseudo.  Fix up
13770         insertion of v4sf_const0 setter at the start of bb.
13772 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
13774         PR c/80409
13775         * doc/extend.texi (Variadic Pointer Args): New section.
13777 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
13778             Martin Sebor  <msebor@gmail.com>
13780         * common.opt (Wattribute-alias): Likewise.
13781         * doc/invoke.texi (Option Summary): List general form of
13782         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
13783         (-Wmissing-attributes): Invert entry, rewrite and correct default.
13784         Add cross-references.
13785         (-Wattribute-alias): Rewrite and correct default.  Mention
13786         considered attributes (same as for -Wmissing-attributes).
13788 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
13790         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13791         (_mm_cvtpd_ps): Likewise.
13792         (_mm_cvttpd_epi32): Likewise.
13794         PR target/89338
13795         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
13796         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13798         PR target/89339
13799         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13801 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
13803         PR target/88530
13804         * common/config/aarch64/aarch64-common.c
13805         (struct aarch64_option_extension): Add is_synthetic.
13806         (all_extensions): Use it.
13807         (TARGET_OPTION_INIT_STRUCT): Define hook.
13808         (struct gcc_targetm_common): Moved to end.
13809         (all_extensions_by_on): New.
13810         (opt_ext_cmp, typedef opt_ext): New.
13811         (aarch64_option_init_struct): New.
13812         (aarch64_contains_opt): New.
13813         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13814         * config/aarch64/aarch64-option-extensions.def
13815         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13816         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13817         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13818         Set is_synthetic to false.
13819         (crypto): Set is_synthetic to true.
13820         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13821         SYNTHETIC.
13823 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
13825         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13826         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13827         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13828         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13829         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13830         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13831         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13832         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13833         Rename ...
13834         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13835         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13836         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13837         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13838         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13839         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13840         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13841         vfmlsl_laneq_high_f16): ... To this.
13842         * config/arm/neon.md: Update comments.
13844 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
13846         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13847         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13848         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13849         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13850         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13851         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13852         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13853         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13854         Rename ...
13855         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13856         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13857         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13858         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13859         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13860         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13861         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13862         vfmlslq_laneq_high_f16): ... To this.
13864 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
13866         PR rtl-optimization/86096
13867         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13868         comparing mw_order values.
13870 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
13872         PR target/89434
13873         * config/arm/arm.md (*subsi3_carryin_const): Use
13874         arm_neg_immediate_operand predicate instead of
13875         arm_not_immediate_operand, "L" constraint instead of "K" and
13876         print it using %n2 instead of %B2.
13877         (*subsi3_carryin_const0): New define_insn.
13878         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
13879         instead of arm_not_operand and "I" constraint instead of "K" and
13880         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
13881         another match_operand and in the condition check that it is negation
13882         of operands[2].
13883         (*subsi3_carryin_compare_const0): New define_ins.
13884         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
13885         *subsi3_carryin_const.
13886         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
13887         split into *subsi3_carryin_compare_const0 if the highpart is zero.
13889         PR target/89438
13890         * config/arm.vfp.md (*negdf2_vfp): Use
13891         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
13892         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
13894 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
13896         PR rtl-optimization/89445
13897         * simplify-rtx.c (simplify_ternary_operation): Don't use
13898         simplify_merge_mask on operands that may trap.
13899         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
13900         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
13901         second operand is CONST_VECTOR, check if any element could be zero.
13902         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
13903         their operands can trap.
13905 2019-02-23  Martin Sebor  <msebor@redhat.com>
13907         * gimple-ssa-sprintf.c (target_strtol): Rename...
13908         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
13909         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
13910         check for range error.
13912 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
13914         PR driver/69471
13915         * opts-common.c (prune_options): Also prune joined switches
13916         with Negative and RejectNegative.
13917         * config/i386/i386.opt (march=): Add Negative(march=).
13918         (mtune=): Add Negative(mtune=).
13919         * doc/options.texi: Document Negative used together with Joined
13920         and RejectNegative.
13922 2019-02-22  Martin Sebor  <msebor@redhat.com>
13924         * doc/extend.texi (Other Builtins): Add
13925         __builtin_is_constant_evaluated.
13927 2019-02-22  Richard Biener  <rguenther@suse.de>
13929         PR tree-optimization/87609
13930         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
13932 2019-02-22  Jeff Law  <law@redhat.com>
13934         PR rtl-optimization/87761
13935         * config/mips/mips.md: Add new combiner pattern to recognize
13936         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
13938 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
13940         PR target/89324
13941         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
13942         destination register in peepholes generating patterns for ADDS/SUBS.
13943         (add<mode>3_compare0,
13944         *addsi3_compare0_uxtw, add<mode>3_compareC,
13945         add<mode>3_compareV_imm, add<mode>3_compareV,
13946         *adds_<optab><ALLX:mode>_<GPI:mode>,
13947         *subs_<optab><ALLX:mode>_<GPI:mode>,
13948         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
13949         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
13950         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
13951         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
13952         sub<mode>3_compare1): Allow stack pointer for source register.
13953         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
13955 2019-02-22  Martin Sebor  <msebor@redhat.com>
13957         PR tree-optimization/88993
13958         PR tree-optimization/88853
13959         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
13960         New helper.
13961         (sprintf_dom_walker::call_info::is_string_func): New helper.
13962         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
13963         for formatted string functions.
13964         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
13966 2019-02-22  Martin Sebor  <msebor@redhat.com>
13968         PR c/89425
13969         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
13970         unreachable subexpressions.
13972 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
13973             Hongtao Liu  <hongtao.liu@intel.com>
13974             Sunil K Pandey  <sunil.k.pandey@intel.com>
13976         PR target/87007
13977         * config/i386/i386-passes.def: Add
13978         pass_remove_partial_avx_dependency.
13979         * config/i386/i386-protos.h
13980         (make_pass_remove_partial_avx_dependency): New.
13981         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
13982         New function.
13983         (pass_data_remove_partial_avx_dependency): New.
13984         (pass_remove_partial_avx_dependency): Likewise.
13985         (make_pass_remove_partial_avx_dependency): Likewise.
13986         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
13987         (*extendsfdf2): Add avx_partial_xmm_update.
13988         (truncdfsf2): Likewise.
13989         (*float<SWI48:mode><MODEF:mode>2): Likewise.
13990         (SF/DF conversion splitters): Disabled for TARGET_AVX.
13992 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
13994         PR middle-end/85598
13995         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
13996         analysis for pass.
13998 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
14000         PR target/89444
14001         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
14002         (PTA_SKYLAKE): Add PTA_AES.
14003         (PTA_GOLDMONT): Likewise.
14005 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
14007         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
14008         instruction if enabled.
14009         (aarch64_override_options): Remove reference to return address key.
14011 2019-02-22  Richard Biener  <rguenther@suse.de>
14013         PR tree-optimization/89440
14014         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
14015         not necessary assert.
14017 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
14019         PR fortran/72741
14020         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
14021         (oacc_replace_fn_attrib_attr): ... this new function.
14022         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
14023         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
14025 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14027         * config/arm/arm-cpus.in (ares): Rename to...
14028         (neoverse-n1): ... This.  Add ares as alias.
14029         * config/arm/arm-tables.opt: Regenerate.
14030         * config/arm/arm-tune.md: Likewise.
14031         * doc/invoke.txt (ARM Options): Document neoverse-n1.
14033 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14035         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
14036         * config/aarch64/aarch64-tune.md: Regenerate.
14037         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
14039 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14041         * config/aarch64/aarch64.c (ares_tunings): Rename to...
14042         (neoversen1_tunings): ... This.
14043         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
14044         (neoverse-n1): New CPU.
14045         * config/aarch64/aarch64-tune.md: Regenerate.
14046         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
14048 2019-02-22  Richard Biener  <rguenther@suse.de>
14050         PR middle-end/87609
14051         * cfghooks.h (dependence_hash): New typedef.
14052         (struct copy_bb_data): New type.
14053         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
14054         (duplicate_block): Likewise.
14055         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
14056         (copy_bbs): Create and pass down copy_bb_data.
14057         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
14058         (rtl_duplicate_bb): Likewise.
14059         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
14060         remap dependence info.
14062 2019-02-22  Richard Biener  <rguenther@suse.de>
14064         PR tree-optimization/87609
14065         * tree-core.h (tree_base): Document special clique values.
14066         * tree-inline.c (remap_dependence_clique): Do not use the
14067         special clique value of one.
14068         (maybe_set_dependence_info): Use clique one.
14069         (clear_dependence_clique): New callback.
14070         (compute_dependence_clique): Clear clique one from all refs
14071         before assigning it (again).
14073 2019-02-21  Martin Sebor  <msebor@redhat.com>
14075         * doc/extend.texi (__clear_cache): Correct signature.
14077 2019-02-21  Ian Lance Taylor  <iant@golang.org>
14079         PR go/89170
14080         * varasm.c (decode_addr_const): Call lookup_constant_def rather
14081         than output_constant_def.
14082         (add_constant_to_table): New static function.
14083         (output_constant_def): Call add_constant_to_table.
14084         (tree_output_constant_def): Likewise.
14086 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
14088         PR c++/89285
14089         * builtins.c (fold_builtin_arith_overflow): If first two args are
14090         INTEGER_CSTs, set intres and ovfres to constants rather than calls
14091         to ifn.
14093 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
14095         PR target/87412
14096         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
14097         error for -mindirect-branch/-mfunction-return with incompatible
14098         -fcf-protection.
14100 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
14102         PR bootstrap/88714
14103         * constraints.md (q): Remove.
14104         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
14105         instead of q.
14107 2019-02-21  Martin Jambor  <mjambor@suse.cz>
14109         PR hsa/89302
14110         * omp-general.c (omp_extract_for_data): Removed a duplicate call
14111         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
14112         (omp_adjust_for_condition): ...here.  Added necessary parameters.
14113         * omp-general.h (omp_adjust_for_condition): Updated declaration.
14114         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
14115         proper values to new parameters of omp_adjust_for_condition.
14117 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
14119         PR middle-end/89412
14120         * expr.c (expand_assignment): If result is a MEM, use change_address
14121         instead of simplify_gen_subreg.
14123 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
14124             David Malcolm  <dmalcolm@redhat.com>
14126         PR middle-end/89091
14127         * fold-const.c (decode_field_reference): Return NULL_TREE if
14128         lang_hooks.types.type_for_size returns NULL.  Check it before
14129         overwriting *exp_.  Use return NULL_TREE instead of return 0.
14131 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
14133         PR middle-end/88074
14134         PR middle-end/89415
14135         * toplev.c (do_compile): Double the emin/emax exponents to workaround
14136         buggy mpc_norm.
14138 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
14140         PR target/89397
14141         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
14142         TARGET_SSE in addition to TARGET_SSE_MATH.
14144         (ix86_excess_precision): Ditto.
14145         (ix86_float_exceptions_rounding_supported_p): Ditto.
14146         (use_rsqrt_p): Ditto.
14147         * config/i386/sse.md (rsqrt<mode>2): Ditto.
14149 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
14151         PR c/89410
14152         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
14153         linenum_arith_t when determining if two adjacent line spans are
14154         close enough to merge.
14155         (diagnostic_show_locus): Use linenum_arith_t when iterating over
14156         lines within each line_span.
14158 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
14160         PR target/86487
14161         * lra-constraints.c(uses_hard_regs_p): Fix handling of
14162         paradoxical SUBREGS.
14164 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
14166         PR target/88100
14167         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
14168         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
14169         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
14170         range checking it.
14172 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
14174         * config/gcn/gcn.c (print_operand): Fix typo.
14176 2019-02-19  Richard Biener  <rguenther@suse.de>
14178         PR middle-end/88074
14179         * toplev.c (do_compile): Initialize mpfr's exponent range
14180         based on available float modes.
14182 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
14184         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
14185         as long as the epilogue isn't completed.
14187 2019-02-18  Martin Sebor  <msebor@redhat.com>
14189         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
14190         __has_cpp_attribute, and __has_include.
14192 2019-02-18  Martin Sebor  <msebor@redhat.com>
14194         * doc/invoke.texi (-Wreturn-type): Correct and expand.
14196 2019-02-18  Martin Sebor  <msebor@redhat.com>
14198         PR middle-end/89294
14199         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
14200         expression.
14201         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
14203 2019-02-18  Richard Biener  <rguenther@suse.de>
14205         PR tree-optimization/89296
14206         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
14207         of no-warning flag to cases that might emit the bogus warning.
14209 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
14211         PR bootstrap/88714
14212         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
14213         "q" constraint.
14214         * config/arm/vfp.md (*movdi_vfp): Likewise.
14215         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
14216         "q" constraint for operands[0].
14218         PR target/89369
14219         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
14220         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
14221         pattern in a temporary buffer.
14222         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
14223         than 64-operands[2].
14225         PR target/89361
14226         * config/s390/s390.c (s390_indirect_branch_attrvalue,
14227         s390_indirect_branch_settings): Define unconditionally.
14228         (s390_set_current_function): Likewise, but guard the whole body except
14229         the s390_indirect_branch_settings call with
14230         #if S390_USE_TARGET_ATTRIBUTE.
14231         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
14233         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
14234         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
14235         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
14236         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
14237         HOST_WIDE_INT_1U instead of 1ULL.
14238         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
14239         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
14240         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
14241         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
14242         instead of 1UL.
14243         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
14244         instead of 1ul.
14246 2019-02-18  Martin Jambor  <mjambor@suse.cz>
14248         PR tree-optimization/89209
14249         * tree-sra.c (create_access_replacement): New optional parameter
14250         reg_tree.  Use it as a type if non-NULL and access type is not of
14251         a register type.
14252         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
14253         to create_access_replacement.
14254         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
14255         Check lacc is non-NULL before attempting to re-create it on the RHS.
14257 2019-02-18  Martin Liska  <mliska@suse.cz>
14259         PR ipa/89306
14260         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
14261         by default.
14262         (symbol_table::free_edge): Recycle m_summary_id.
14263         * cgraph.h (get_summary_id): New.
14264         (symbol_table::release_symbol): Set m_summary_id to -1
14265         by default.
14266         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
14267         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
14268         function_summary to fast_function_summary.
14269         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
14270         * ipa-pure-const.c (class funct_state_summary_t):
14271         Switch from function_summary to fast_function_summary.
14272         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
14273         (class ipa_ref_opt_summary_t): Switch from function_summary
14274         to fast_function_summary.
14275         * symbol-summary.h (class function_summary_base): New class
14276         that is created from base of former function_summary.
14277         (function_summary_base::unregister_hooks): New.
14278         (class function_summary): Inherit from function_summary_base.
14279         (class call_summary_base): New class
14280         that is created from base of former call_summary.
14281         (class call_summary): Inherit from call_summary_base.
14282         (struct is_same): New.
14283         (class fast_function_summary): New summary class.
14284         (class fast_call_summary): New summary class.
14285         * vec.h (vec_safe_grow_cleared): New function.
14287 2019-02-18  Martin Liska  <mliska@suse.cz>
14289         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
14290         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
14291         * doc/tm.texi: Document new target hook.
14292         * doc/tm.texi.in: Likewise.
14293         * target.def: Add new target macro.
14294         * gcc.c (find_fortran_preinclude_file): Do not search multilib
14295         suffixes.
14297 2019-02-17  Alan Modra  <amodra@gmail.com>
14299         PR target/89271
14300         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
14301         output reg on add insn.
14302         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
14304 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
14306         PR target/89372
14307         * config/i386/sse.md (ssedoublemode): Remove V4HI.
14308         (PMULHRSW): Likewise.
14309         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
14310         TARGET_AVX2.
14311         (ssse3_pmulhrswv4hi3): New expander.
14313 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
14315         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
14316         MMX.  Add isa attribute.
14318 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
14320         PR rtl-optimization/66152
14321         * builtins.h (c_readstr): Declare.
14322         * builtins.c (c_readstr): Remove forward declaration.  Add
14323         null_terminated_p argument, if false, read all bytes from the
14324         string instead of stopping after '\0'.
14325         * expr.c (string_cst_read_str): New function.
14326         (store_expr): Use string_cst_read_str instead of
14327         builtin_strncpy_read_str.  Try to store by pieces the whole
14328         exp_len first, and only if that fails, split it up into
14329         store by pieces followed by clear_storage.  Formatting fix.
14331         * config/i386/i386.md (*movqi_internal): Remove static from
14332         buf variable.  Use output_asm_insn (buf, operands); return "";
14333         instead of return buf;.
14334         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
14335         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
14336         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
14338 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
14340         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
14341         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
14342         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
14343         (CC1_SPEC): Likewise.
14344         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
14346 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
14348         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
14349         the base address on 64-bit strict-alignment platforms.
14351 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
14353         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
14355 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
14357         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
14359 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
14361         PR rtl-optimization/88308
14362         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
14363         on copied instruction.
14365 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
14367         * final.c (insn_current_reference_address): Replace test on JUMP_P
14368         with test on jump_to_label_p.
14369         * config/visium/visium-passes.def: New file.
14370         * config/visium/t-visium (PASSES_EXTRA): Define.
14371         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
14372         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
14373         (TRAMPOLINE_ALIGNMENT): Define.
14374         * config/visium/visium.c (visium_option_override): Do not register
14375         the machine-specific reorg pass here.
14376         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
14377         for the GR6.
14378         (output_branch): Adjust threshold for long branch instruction.
14379         * config/visium/visium.md (cpu): Move around.
14380         (length): Adjust for the GR6.
14382 2019-02-15  Richard Biener  <rguenther@suse.de>
14383             Jakub Jelinek  <jakub@redhat.com>
14385         PR tree-optimization/89278
14386         * tree-loop-distribution.c: Include tree-eh.h.
14387         (generate_memset_builtin, generate_memcpy_builtin): Call
14388         rewrite_to_non_trapping_overflow on builtin->size before passing it
14389         to force_gimple_operand_gsi.
14391 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
14393         PR other/89342
14394         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
14395         optimize_debug.
14396         * opth-gen.awk: Likewise.
14398 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
14400         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
14401         Enable MMX, SSE and SSE2 by default.
14402         * config/i386/i386.c (ix86_option_override_internal): Do not
14403         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
14405 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
14407         PR rtl-optimization/89354
14408         * combine.c (make_extraction): Punt if extraction_mode is narrower
14409         than len bits.
14411 2019-02-14  Maya Rashish  <coypu@sdf.org>
14413         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
14414         * config/netbsd-d.c: New file.
14415         * config/t-netbsd: Add netbsd-d.o
14417 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
14419         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
14420         affects_type_identity to true for aarch64_vector_pcs.
14421         (aarch64_comp_type_attributes): New function.
14422         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
14424 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
14426         PR target/88850
14427         * config/arm/iterators.md (ANY64): Add V4HF.
14429 2019-02-14  Martin Liska  <mliska@suse.cz>
14431         PR rtl-optimization/89242
14432         * dce.c (delete_unmarked_insns): Call free_dominance_info we
14433         process a transformation.
14435 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
14437         PR tree-optimization/89314
14438         * fold-const.c (fold_binary_loc): Cast strlen argument to
14439         const char * before dereferencing it.  Formatting fixes.
14441         PR middle-end/89284
14442         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
14444 2019-02-13  Ian Lance Taylor  <iant@golang.org>
14446         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
14447         and set current index for other optimizations.
14449 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
14451         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
14452         nonimmediate_operand as operand 2 predicate.
14453         (vec_set<VF2_512_256:mode>_0): Ditto.
14454         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
14455         (*vec_concatv2si): Remove alternative 2.
14456         (*vec_concatv4si_0): Use vm constraint for alternative 0.
14457         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
14458         (vec_concatv2di): Split alternatives 4,5,6 to ...
14459         (*vec_concatv2di_0) ... new pattern.
14461 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
14463         PR target/89190
14464         * config/arm/arm.c (ldm_stm_operation_p) Set
14465         addr_reg_in_reglist correctly for first register.
14466         (load_multiple_sequence): Remove dead base check.
14467         (gen_ldm_seq): Correctly set write_back for Thumb-1.
14469 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
14471         PR target/88847
14472         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
14473         Expose as @aarch64_pred_mov.
14474         * config/aarch64/aarch64.c (aarch64_classify_address):
14475         Use expand_insn which legitimizes operands.
14477 2019-02-13  Martin Liska  <mliska@suse.cz>
14479         * builtins.h (expand_builtin_with_bounds): Remove declaration.
14480         * calls.c (struct arg_data): Remove special_slot, pointer_arg
14481         and pointer_offset fields.
14482         (initialize_argument_information): Remove usage of dead
14483         fields.
14484         * cgraph.h (struct cgraph_thunk_info): Remove
14485         add_pointer_bounds_args.
14486         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
14487         fields.
14488         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
14489         fields.
14490         * config/i386/i386.c (ix86_function_arg_advance): Remove
14491         unrelated comment.
14492         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
14493         (def_builtin):  Remove usage of dead
14494         fields.
14495         (ix86_add_new_builtins): Likewise.
14496         * ipa-fnsummary.c (compute_fn_summary): Likewise.
14497         * ipa-icf.c (sem_function::equals_wpa): Likewise.
14498         (sem_function::init): Likewise.
14499         (sem_variable::merge): Likewise.
14500         * ipa-visibility.c (function_and_variable_visibility): Likewise.
14501         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
14502         * lto-cgraph.c (lto_output_node): Likewise.
14503         (lto_output_varpool_node): Likewise.
14504         (input_node): Likewise.
14505         (input_varpool_node): Likewise.
14506         * lto-streamer-out.c (lto_output): Likewise.
14507         * tree-inline.c (expand_call_inline): Remove usage of
14508         assign_stmts.
14509         * tree-inline.h (struct copy_body_data): Likewise.
14510         * varpool.c (varpool_node::dump): Likewise.
14512 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
14514         PR middle-end/89303
14515         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
14516         into pt->vars_contains_escaped_heap instead of setting
14517         pt->vars_contains_escaped_heap to it.
14519         PR middle-end/89281
14520         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
14521         INTVAL (size), compare it to GET_MODE_MASK instead of
14522         1 << GET_MODE_BITSIZE.
14524         PR target/89290
14525         * config/i386/predicates.md (x86_64_immediate_operand): Allow
14526         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
14527         -mcmodel=large.
14529 2019-02-13  Martin Liska  <mliska@suse.cz>
14531         PR lto/88858
14532         * cfgrtl.c (remove_barriers_from_footer): New function.
14533         (try_redirect_by_replacing_jump): Use it.
14534         (cfg_layout_redirect_edge_and_branch): Likewise.
14536 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
14538         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
14539         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
14540         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
14541         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
14542         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
14543         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
14544         New BU_CRYPTO_2.
14545         * config/rs6000/rs6000.c (builtin_function_type)
14546         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
14547         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
14548         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
14549         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
14550         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
14552 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
14554         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
14555         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
14557 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
14559         PR target/89229
14560         * config/i386/i386.md (*movoi_internal_avx): Revert revision
14561         268678 and revision 268657.
14562         (*movti_internal): Likewise.
14564 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
14566         PR target/89233
14567         * config/s390/s390.c (s390_decompose_address): Update comment.
14568         (s390_check_qrst_address): Reject invalid address forms after
14569         LRA.
14571 2019-02-12  Martin Liska  <mliska@suse.cz>
14573         PR lto/88876
14574         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
14575         we need default values of funct_state for a function that
14576         is not optimized.
14578 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14580         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
14581         the object to pick the size of stores on strict-alignment platforms.
14583         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
14584         (*movdi_insn_sp32): Likewise.
14585         (*movdi_insn_sp64): Likewise.
14587 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
14589         PR lto/88677
14590         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
14591         types that needs constructiong.
14592         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
14594 2019-02-12  Richard Biener  <rguenther@suse.de>
14596         PR tree-optimization/89253
14597         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
14598         duplicate the loop.
14600 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
14602         PR lto/88147
14603         * input.c (selftest::test_line_offset_overflow): New selftest.
14604         (selftest::input_c_tests): Call it.
14606 2019-02-11  Martin Sebor  <msebor@redhat.com>
14608         PR tree-optimization/88771
14609         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
14610         when -Wstringop-overflow is set.
14611         (builtin_memref::builtin_memref): Adjust excessive upper bound
14612         only when lower bound is not excessive.
14613         (maybe_diag_overlap): Detect and diagnose excessive bounds via
14614         -Wstringop-ovefflow.
14615         (maybe_diag_offset_bounds): Rename...
14616         (maybe_diag_access_bounds): ...to this.
14617         (check_bounds_or_overlap): Adjust for name change above.
14619 2019-02-11  Martin Sebor  <msebor@redhat.com>
14621         PR c++/87996
14622         * builtins.c (max_object_size): Move from here...
14623         * builtins.h (max_object_size): ...and here...
14624         * tree.c (max_object_size): ...to here...
14625         * tree.h (max_object_size): ...and here.
14627 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
14629         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
14630         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
14631         for correct semantics.
14633 2019-02-11  Alan Modra  <amodra@gmail.com>
14635         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
14636         -mlongcall and -mpltseq.
14637         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
14638         (RS/6000 and PowerPC Options <-mpltseq>): Document.
14639         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
14640         * config/rs6000/sysv4.opt (mpltseq): New option.
14641         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
14642         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
14643         support is lacking.  Don't allow -mpltseq with -mbss-plt.
14644         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
14645         -mpltseq given for ELFv1.
14646         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
14647         Only use UNSPEC_PLTSEQ for inline PLT calls.
14648         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
14649         use UNSPEC_PLTSEQ for inline PLT calls.
14650         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
14651         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
14652         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
14653         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14654         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14655         (pltseq_mtctr_<mode>): Likewise.
14657 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14659         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
14660         Solaris ld.
14661         * configure: Regenerate.
14663 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
14665         PR bootstrap/88714
14666         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
14667         instead of r.
14669 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
14671         * function.c (assign_parm_setup_block): Use the stored
14672         size, not the passed size, when allocating stack-space,
14673         also for a parameter with alignment larger than
14674         MAX_SUPPORTED_STACK_ALIGNMENT.
14676 2019-02-11  Martin Liska  <mliska@suse.cz>
14678         PR ipa/89009
14679         * ipa-cp.c (build_toporder_info): Remove usage of a param.
14680         * ipa-inline.c (inline_small_functions): Likewise.
14681         * ipa-pure-const.c (propagate_pure_const): Likewise.
14682         (propagate_nothrow): Likewise.
14683         * ipa-reference.c (propagate): Likewise.
14684         * ipa-utils.c (struct searchc_env): Remove unused field.
14685         (searchc): Always search across AVAIL_INTERPOSABLE.
14686         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14687         the only called IPA pure const can properly not propagate
14688         across interposable boundary.
14689         * ipa-utils.h (ipa_reduced_postorder): Remove param.
14691 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
14693         * config/nds32/nds32.md (call_internal, call_value_internal,
14694         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14696 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
14698         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14699         typo.
14701 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
14703         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14704         in comments
14706 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
14708         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14710 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
14712         PR tree-optimization/89268
14713         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14714         if preds is non-NULL.
14716 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
14718         PR lto/89272
14719         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14720         polymorphic types.
14722 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
14724         * config/nds32/nds32.md (trap): New pattern.
14726 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
14728         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14729         dwarf span.
14731 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
14733         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14734         to split POST_INC.
14736 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
14738         * ipa-visibility.c (localize_node): Also do not localize
14739         LDPR_PREVAILING_DEF_IRONLY_EXP.
14741 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
14743         PR lto/87957
14744         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14745         instead of type_with_linkage.
14747 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
14749         PR ipa/88755
14750         * params.def (uninlined-function-insns, uninlined-function-time,
14751         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14752         bound so we don't get overflows.
14754 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
14756         * config/rs6000/rs6000-string.c (expand_compare_loop,
14757         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14758         memcmp/strncmp.
14760 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
14762         PR middle-end/89246
14763         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14764         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14765         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14767 2019-02-09  Alan Modra  <amodra@gmail.com>
14769         PR target/88343
14770         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14771         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
14772         setup.
14774 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
14776         PR middle-end/88560
14777         * lra-constraints.c (process_alt_operands): Don't increase reject
14778         for memory when offset memory is required.
14780 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
14782         * config/s390/vector.md: Implement vector copysign.
14784 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
14786         * expr.c (expand_constructor): Correct indentations.
14788 2019-02-08  Richard Biener  <rguenther@suse.de>
14790         PR tree-optimization/89247
14791         * tree-if-conv.c: Include tree-cfgcleanup.h.
14792         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14793         (tree_if_conversion): Pass through predicate vector.
14794         (pass_if_conversion::execute): Do CFG cleanup and SSA update
14795         inline, see if any if-converted loops we refrece in
14796         LOOP_VECTORIZED calls vanished and fixup.
14797         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14799 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
14801         * config/s390/constraints.md (jdd): New constraint.
14803 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
14805         PR target/89229
14806         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14807         upper 16 vector registers without TARGET_AVX512VL.
14808         (*movti_internal): Likewise.
14810 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
14812         PR rtl-optimization/89234
14813         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14814         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14815         (copy_reg_eh_region_note_backward): Likewise.
14817 2019-02-08  Richard Biener  <rguenther@suse.de>
14819         PR middle-end/89223
14820         * tree-data-ref.c (initialize_matrix_A): Fail if constant
14821         doesn't fit in HWI.
14822         (analyze_subscript_affine_affine): Handle failure from
14823         initialize_matrix_A.
14825 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
14827         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14828         cfun everywhere.
14830 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
14832         PR tree-optimization/86637
14833         PR tree-optimization/89235
14834         * tree-vect-loop.c (optimize_mask_stores): Add an
14835         auto_purge_vect_location sentinel to ensure that vect_location is
14836         purged on exit.
14837         * tree-vectorizer.c
14838         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14839         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14840         to ensure that vect_location is purged on exit.
14841         (pass_slp_vectorize::execute): Likewise, replacing the manual
14842         reset.
14843         * tree-vectorizer.h (class auto_purge_vect_location): New class.
14845 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14847         * config/aarch64/iterators.md (max_opp): New code_attr.
14848         (USMAX): New code iterator.
14849         * config/aarch64/predicates.md (aarch64_smin): New predicate.
14850         (aarch64_smax): Likewise.
14851         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14852         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14853         MINUS (MAX MIN).
14855 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
14857         PR target/89229
14858         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14859         for TARGET_AVX512VL.
14860         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14862 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
14864         * config/s390/s390-builtin-types.def: Add new types.
14865         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14866         (s390_vec_xlw4): Make the memory operand into a const pointer.
14867         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14868         float.
14869         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14870         a new vector type with the alignment of the scalar memory operand.
14872 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
14873             Jakub Jelinek  <jakub@redhat.com>
14875         PR bootstrap/88714
14876         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
14877         arm_count_ldrdstrd_insns): New declarations.
14878         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
14879         MINUS.
14880         (valid_operands_ldrd_strd): New function.
14881         (arm_count_ldrdstrd_insns): New function.
14882         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
14883         sets instead of single DImode set and define new insns to match this.
14885 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
14887         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
14888         Make it a C initializer.
14890 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
14892         PR/target 88850
14893         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
14895 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14897         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
14898         Use neon_dot<q> for type.
14899         (neon_<sup>dot_lane<vsi2qi>): Likewise.
14901 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14903         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
14904         Use neon_dot<q> for type.
14905         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
14906         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
14908 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14910         PR rtl-optimization/89225
14911         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
14912         sizes check.
14914 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
14916         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
14917         after restoring registers saved to allocate the frame on Windows.
14919 2019-02-06  Richard Biener  <rguenther@suse.de>
14921         PR tree-optimization/89182
14922         * graphite.h (cached_scalar_evolution_in_region): Declare.
14923         * graphite.c (struct seir_cache_key): New.
14924         (struct sese_scev_hash): Likewise.
14925         (seir_cache): New global.
14926         (cached_scalar_evolution_in_region): New function.
14927         (graphite_transform_loops): Allocate and release seir_cache.
14928         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
14929         cached_scalar_evolution_in_region.
14930         * graphite-scop-detection.c (scop_detection::can_represent_loop):
14931         Simplify.
14932         (scop_detection::graphite_can_represent_expr: Use
14933         cached_scalar_evolution_in_region.
14934         (scop_detection::stmt_simple_for_scop_p): Likewise.
14935         (find_params_in_bb): Likewise.
14936         (gather_bbs::before_dom_children): Likewise.
14937         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
14938         (add_loop_constraints): Likewise.
14940 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
14942         PR middle-end/89210
14943         * fold-const-call.c (fold_const_vec_convert): Pass true as last
14944         operand to new_unary_operation only if both element types are integral
14945         and it isn't a widening conversion.  Return NULL_TREE if
14946         new_unary_operation failed.
14948 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
14950         PR target/88856
14951         * config/s390/s390.md: Remove load and test FP splitter.
14953 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
14955         PR target/89112
14956         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
14957         expand_compare_loop, expand_block_compare_gpr,
14958         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
14959         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
14960         #include "profile-count.h" and "predict.h" for types and functions
14961         needed to work with REG_BR_PROB notes.
14963 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
14965         PR target/89112
14966         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
14967         for the long branch case.
14969 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
14971         PR target/89188
14972         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
14973         can throw, non-call exceptions are enabled and we can't delete
14974         dead exceptions or alter cfg.  Set must_clean if
14975         delete_insn_and_edges returns true, don't set it blindly for calls.
14976         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
14978         PR rtl-optimization/89195
14979         * combine.c (make_extraction): For MEMs, don't extract bytes outside
14980         of the original MEM.
14982 2019-02-05  Martin Liska  <mliska@suse.cz>
14984         PR gcov-profile/89000
14985         * gcov.c (function_summary): Remove argument.
14986         (file_summary): New function.
14987         (print_usage): Replace tabs with spaces.
14988         (generate_results): Use new function file_summary.
14990 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
14992         PR target/89186
14993         * optabs.c (prepare_cmp_insn): Pass x and y to
14994         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
14996 2019-02-05  Richard Biener  <rguenther@suse.de>
14998         PR middle-end/89150
14999         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
15000         (struct bitmap_element): Drop chain_prev so we properly recurse on
15001         the prev member, supporting tree views.
15002         (struct bitmap_head): GTY skip the obstack member.
15004 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
15006         PR c/88698
15007         * doc/extend.texi (Vector Extensions): Add an example of using vector
15008         types together with x86 intrinsics.
15010 2019-02-04  Alan Modra  <amodra@gmail.com>
15012         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
15013         str[] size to 160, and comment.
15015 2019-02-04  Alan Modra  <amodra@gmail.com>
15017         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
15018         (rs6000_pltseq_template): Guard output of TLS markers with
15019         TARGET_TLS_MARKERS.
15020         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
15021         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
15022         to use inline PLT sequences.
15023         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
15024         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
15025         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
15027 2019-02-04  Martin Liska  <mliska@suse.cz>
15029         PR ipa/88985
15030         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
15031         out when ipa_fn_summaries does not contain entry for callee.
15033 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15035         * config/sparc/sparc.h: Remove superfluous blank lines.
15036         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
15037         (got_register_rtx): ...this.
15038         (sparc_got): Adjust to above renaming.
15039         (sparc_tls_got): Likewise.
15040         (sparc_delegitimize_address): Likewise.
15041         (sparc_output_mi_thunk): Likewise.
15042         (sparc_init_pic_reg): Likewise.
15043         (save_local_or_in_reg_p): Fix test on the GOT register.
15044         (USE_HIDDEN_LINKONCE): Move around.
15045         (get_pc_thunk_name): Likewise.
15046         (gen_load_pcrel_sym): Likewise.
15047         (load_got_register): Likewise.
15049 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
15051         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
15052         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
15054 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15056         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
15057         into consideration.
15059 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15061         * config.gcc (with_nds32_lib, glibc):
15062         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
15063         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
15064         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
15066 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
15068         PR target/89071
15069         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
15070         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
15071         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
15072         (*rcpsf2_sse): Ditto.
15073         (*rsqrtsf2_sse): Ditto.
15074         (sse4_1_round<mode<2): Ditto.
15076 2019-02-03  Richard Biener  <rguenther@suse.de>
15078         PR debug/87295
15079         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
15080         orig.
15082 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
15084         PR middle-end/87887
15085         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15086         Punt with warning on aggregate return or argument types.  Ignore
15087         type/mode checking for uniform arguments.
15089 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
15091         * combine.c (try_combine): Do not print "Can't combine" messages unless
15092         printing failed combination attempts.
15094 2019-02-01  Martin Jambor  <mjambor@suse.cz>
15096         PR hsa/87863
15097         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
15098         segment and global segment variables before making them static.
15100 2019-02-01  Martin Jambor  <mjambor@suse.cz>
15102         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
15103         missed optimization dump with dump_enabled_p.
15105 2019-02-01  Richard Biener  <rguenther@suse.de>
15107         PR middle-end/88597
15108         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
15109         the instantiate cache.
15110         (instantiate_scev_binary): Elide second operand procesing
15111         if equal to the first.
15112         * tree-chrec.c (chrec_contains_symbols): Add visited set.
15113         (chrec_contains_undetermined): Likewise.
15114         (tree_contains_chrecs): Likewise.
15116 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
15118         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
15120 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
15122         PR tree-optimization/89143
15123         * wide-int-range.h (wide_int_range_absu): Declare.
15124         * wide-int-range.cc (wide_int_range_absu): New function.
15125         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
15127         PR tree-optimization/88107
15128         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
15129         instead of assertion that eh_region_outermost is non-NULL, if it
15130         is NULL, set *ALL to true and return NULL.
15131         (move_sese_region_to_fn): Adjust caller, if all is set, call
15132         duplicate_eh_regions with NULL region.
15134 2019-02-01  Richard Biener  <rguenth@suse.de>
15136         PR rtl-optimization/88593
15137         * mode-switching.c (optimize_mode_switching): Free dominators before
15138         calling cleanup_cfg.
15140 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
15142         PR tree-optimization/88932
15143         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
15145 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
15147         PR middle-end/89137
15148         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
15149         bogus clang warning.
15151 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
15153         PR target/89071
15154         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
15155         alternative to avoid partial SSE register stall for TARGET_AVX.
15156         (truncdfsf2): Ditto.
15157         (sse4_1_round<mode>2): Ditto.
15159 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
15161         PR tree-optimization/89008
15162         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
15163         process anything of the form X * 0.
15165 2019-01-31  Richard Biener  <rguenther@suse.de>
15167         PR tree-optimization/89135
15168         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
15169         with abnormal preds.
15171 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
15173         PR sanitizer/89124
15174         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
15175         always_inline callees into no_sanitize_address callers.
15177 2019-01-31  Richard Biener  <rguenther@suse.de>
15179         PR rtl-optimization/89115
15180         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
15182 2019-01-30  Martin Sebor  <msebor@redhat.com>
15184         PR other/89106
15185         * doc/extend.texi (cast to a union): Correct and expand.
15187 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15189         PR rtl-optimization/87246
15190         * lra-constraints.c (simplify_operand_subreg): Reload memory
15191         in subreg if the address became invalid.
15193 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
15195         PR target/87064
15196         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
15197         Disable for little-endian.
15199 2019-01-30  Richard Biener  <rguenther@suse.de>
15201         PR rtl-optimization/89115
15202         * opts.c (default_options_optimization): Reduce
15203         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
15204         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
15205         to the default.
15207 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15209         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
15210         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
15211         type of vector element when vec_extract is implemented by direct
15212         move.
15214 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
15216         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
15218 2019-01-30  Richard Biener  <rguenther@suse.de>
15220         PR tree-optimization/89111
15221         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
15222         canonicalization to appropriately sized access types.
15224 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
15226         PR c++/89105
15227         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
15228         for arguments to functions that are TU-local and shouldn't be
15229         referenced by assembly.
15231 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
15233         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
15234         after '='.
15236 2019-01-29  Martin Sebor  <msebor@redhat.com>
15238         PR c/88956
15239         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
15241 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
15243         PR c++/66676
15244         PR ipa/89104
15245         * omp-simd-clone.c (simd_clone_clauses_extract)
15246         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
15247         OMP_CLAUSE_ALIGNED_ALIGNMENT.
15249 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
15251         * config.gcc: Force .init_array for ARC.
15253 2019-01-29  Richard Biener  <rguenther@suse.de>
15255         PR debug/87295
15256         * dwarf2out.c (collect_skeleton_dies): New helper.
15257         (copy_decls_for_unworthy_types): Call it.
15258         (build_abbrev_table): Assert we do not try to replace
15259         DW_AT_signature refs with local refs.
15261 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
15263         PR middle-end/89002
15264         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
15265         for lastprivate/linear IV, push gimplify context around gimplify_assign
15266         and, if it needed any temporaries, pop it into a gimple bind around the
15267         sequence.
15269 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15271         * common.opt (-Wattribute-alias): Remove "no-" from name.
15272         Make -Wattribute-alias command line option and
15273         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
15275 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
15277         PR target/89073
15278         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
15279         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
15280         x86 ISA options.
15281         (bmi2): Add missing @opindex.
15282         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
15283         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
15284         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
15285         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
15286         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
15287         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
15288         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
15289         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
15290         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
15291         xsavec, xsaveopt and xsaves options.
15293 2019-01-28  Richard Biener  <rguenther@suse.de>
15295         PR debug/89076
15296         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
15297         support removal.
15299 2019-01-28  Richard Biener  <rguenther@suse.de>
15301         PR tree-optimization/88739
15302         * tree-cfg.c (verify_types_in_gimple_reference): Verify
15303         BIT_FIELD_REFs only are applied to mode-precision operands
15304         when they are integral.
15305         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
15306         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
15307         BIT_FIELD_REFs of non-mode-precision integral operands.
15309 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
15311         PR target/87214
15312         * config/i386/sse.md
15313         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
15314         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
15315         first constants in pairs are multiples of 2.  Formatting fixes.
15316         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
15317         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
15318         first constants in each quadruple are multiples of 4.  Formatting fixes.
15320 2019-01-26  Martin Jambor  <mjambor@suse.cz>
15322         PR ipa/88933
15323         * tree-inline.c: Include tree-cfgcleanup.h.
15324         (delete_unreachable_blocks_update_callgraph): Move...
15325         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
15326         ...here, make externally visible, make second argument bool, adjust
15327         all callers.
15328         * tree-cfgcleanup.c: Include cgraph.h.
15329         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
15330         Declare.
15331         * ipa-prop.c: Include tree-cfgcleanup.h.
15332         (ipcp_transform_function): Call
15333         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
15335 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
15337         PR rtl-optimization/88846
15338         * ira.c (process_set_for_memref_referenced_p): New.
15339         (memref_referenced_p): Add new param.  Use
15340         process_set_for_memref_referenced_p.  Add new switch cases.
15341         (memref_used_between_p): Pass new arg to memref_referenced_p.
15343 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
15345         PR target/88469
15346         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
15347         argument ABI_BREAK.  Set to true if the calculated alignment has
15348         changed in gcc-9.  Check bit-fields for their base type alignment.
15349         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
15350         (aarch64_function_arg_boundary): Likewise.
15351         (aarch64_gimplify_va_arg_expr): Likewise.
15353 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
15355         PR middle-end/89037
15356         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
15357         instead of accessing TREE_INT_CST_ELT directly.
15359 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
15361         * doc/sourcebuild.texi (Environment attributes): Add fenv and
15362         fenv_exceptions description.
15364 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
15366         PR rtl-optimization/87763
15367         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
15368         Allow SUBREG when matching CC_NZmode compare.
15370 2019-01-25  Richard Biener  <rguenther@suse.de>
15372         PR tree-optimization/89049
15373         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15374         Look at the pattern stmt to determine if the stmt is vectorized.
15376 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
15378         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
15379         (pred_mov<mode>): Handle all-register forms using both a new
15380         alternative and a split.
15382 2019-01-25  Richard Biener  <rguenther@suse.de>
15384         PR tree-optimization/86865
15385         * graphite-scop-detection.c (scop_detection::can_represent_loop):
15386         Reject non-do-while loops.
15388 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
15390         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
15391         * config/rs6000/constraints.md (Q constraint): Use REG_P.
15392         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
15393         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15394         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
15395         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15396         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
15397         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
15398         vlogical_operand, gpc_reg_operand, int_reg_operand,
15399         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
15400         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
15401         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
15402         (save_world_operation, restore_world_operation, lmw_operation,
15403         stmw_operation): Use MEM_P and REG_P.
15404         (tie_operand): Use MEM_P.
15405         (vrsave_operation, crsave_operation): Use REG_P.
15406         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
15407         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
15408         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
15409         (call_operand): Use HARD_REGISTER_P.
15410         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
15411         Use CONST_INT_P.
15412         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
15413         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
15414         quad_aligned_load_p, replace_swapped_aligned_store,
15415         recombine_lvx_pattern, replace_swapped_aligned_load,
15416         recombine_stvx_pattern): Use MEM_P.
15417         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
15418         Use MEM_P and SYMBOL_REF_P.
15419         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
15420         (insn_is_swappable_p): Use REG_P and MEM_P.
15421         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
15422         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
15423         Use CONST_INT_P.
15424         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
15425         Use CONST_DOUBLE_P.
15426         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
15427         CONST_WIDE_INT_P.
15428         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
15429         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
15430         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
15431         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
15432         reg_or_subregno:
15433         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15434         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
15435         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
15436         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
15437         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
15438         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
15439         rs6000_split_logical_di): Use CONST_INT_P.
15440         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
15441         REG_P and SYMBOL_REF_P.
15442         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
15443         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
15444         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
15445         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
15446         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
15447         (small_data_operand, print_operand_address): Use CONST_INT_P and
15448         SYMBOL_REF_P.
15449         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
15450         (rs6000_init_hard_regno_mode_ok, direct_move_p):
15451         Use HARD_REGISTER_NUM_P.
15452         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
15453         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
15454         SUBREG_P and SYMBOL_REF_P.
15455         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
15456         and HARD_REGISTER_NUM_P.
15457         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
15458         reg_or_subregno.
15459         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
15460         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
15461         MEM_P and REG_P.
15462         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
15463         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
15464         find_addr_reg): Use REG_P.
15465         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
15466         (rs6000_emit_le_vsx_move): Use SUBREG_P.
15467         (offsettable_ok_by_alignment, constant_pool_expr_p,
15468         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
15469         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
15470         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
15471         rs6000_assemble_integer, create_TOC_reference,
15472         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
15473         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
15474         (rs6000_split_vec_extract_var): Use reg_or_subregno.
15475         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15476         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15477         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15478         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15479         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
15480         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
15481         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
15482         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
15483         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
15484         and cbranch<mode>4): Use CONST_INT_P.
15485         (multiple define_splits): Use REG_P and SUBREG_P.
15486         (define_expands call, call_value): Use MEM_P.
15487         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
15488         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
15489         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
15490         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
15491         and HARD_REGISTER_NUM_P.
15492         (multiple define_splits): Use HARD_REGISTER_NUM_P.
15494 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
15496         PR rtl-optimization/88948
15497         * rtl.h (prepare_copy_insn): New prototype.
15498         * gcse.c (prepare_copy_insn): New function, split out from
15499         process_insert_insn.
15500         (process_insert_insn): Use prepare_copy_insn.
15501         * store-motion.c (replace_store_insn): Use prepare_copy_insn
15502         instead of gen_move_insn.
15504 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
15506         PR debug/89006
15507         * config/i386/i386.c (ix86_pic_register_p): Return true for
15508         UNSPEC_SET_GOT too.
15510         PR tree-optimization/88964
15511         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
15512         punt if HONOR_SNANS (chrec).
15514         PR middle-end/89015
15515         * tree-nested.c (convert_nonlocal_reference_stmt,
15516         convert_local_reference_stmt, convert_tramp_reference_stmt,
15517         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
15518         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
15519         or GIMPLE_OMP_TASK.
15521         PR tree-optimization/89027
15522         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
15523         for "omp simd array" variables.
15525 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
15527         PR target/88469
15528         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
15529         force the alignment of m_val.
15531 2019-01-24  Richard Biener  <rguenther@suse.de>
15533         PR lto/87187
15534         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
15535         When in "legacy" debug mode make sure to reset self-origins.
15537 2019-01-24  Martin Liska  <mliska@suse.cz>
15539         PR gcov-profile/88994
15540         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
15541         result will be always smaller or equal to the original.
15542         * gcov.c (mangle_name): Fix else branch where we should
15543         also copy to PTR and shift the pointer.
15545 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
15547         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
15548         * vr-values.c (find_case_label_ranges): Fix a comment typo.
15550 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
15552         * common/config/i386/i386-common.c
15553         (OPTION_MASK_ISA_ENQCMD_SET,
15554         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
15555         (ix86_handle_option): Handle -menqcmd.
15556         * config.gcc (enqcmdintrin.h): New header file.
15557         * config/i386/cpuid.h (bit_ENQCMD): New bit.
15558         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15559         -menqcmd.
15560         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
15561         function type.
15562         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
15563         __builtin_ia32_enqcmds): New builtins.
15564         * config/i386/i386-c.c (__ENQCMD__): New macro.
15565         * config/i386/i386-option.c (ix86_target_string): Add
15566         -menqcmd.
15567         (ix86_valid_target_attribute_inner_p): Likewise.
15568         * config/i386/i386-expand.c
15569         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
15570         IX86_BUILTIN_ENQCMDS.
15571         * config/i386/i386.h (TARGET_ENQCMD): New.
15572         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
15573         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
15574         (movdir64b_<mode>): Parameterize to enable share expansion code
15575         with ENQCMD in function ix86_expand_builtin.
15576         * config/i386/i386.opt: Add -menqcmd.
15577         * config/i386/immintrin.h: Include enqcmdintrin.h.
15578         * config/i386/enqcmdintrin.h: New intrinsic file.
15579         * doc/invoke.texi: Add -menqcmd.
15581 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
15582             Steve Ellcey <sellcey@marvell.com>
15584         PR target/85711
15585         * recog.c (address_operand): Return false on wrong mode for address.
15586         (constrain_operands): Check for mode with 'p' constraint.
15588 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
15590         PR target/88998
15591         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
15592         Disparage MMX alternative.
15593         (sse2_cvtpd2pi): Ditto.
15594         (sse2_cvttpd2pi): Ditto.
15596 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
15598         PR driver/89014
15599         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
15600         use-after-free of the result of
15601         aarch64_get_extension_string_for_isa_flags.
15603 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
15605         PR c/44715
15606         * doc/extend.texi: Document break and continue behavior in
15607         statement expressions.
15609 2019-01-23  Richard Biener  <rguenther@suse.de>
15611         PR tree-optimization/89008
15612         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
15613         not leave another stray operand.
15615 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
15617         * BASE-VER: Bump to 9.0.1.
15619 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
15621         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
15622         thunk that returns by reference, use the type of the return object
15623         of the thunk instead of that of the alias to build the dereference.
15625 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
15627         * config/arc/atomic.md: Add operand to DMB instruction.
15629 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
15631         PR tree-optimization/88964
15632         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
15633         build_zero_cst instead of build_int_cst.  Return false for loop
15634         invariants which honor signed zeros.
15636 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
15638         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
15640 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
15642         PR target/88965
15643         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
15644         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
15645         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
15647         PR middle-end/88968
15648         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
15649         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
15651         PR target/87064
15652         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
15653         Disable for little endian.
15655 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
15657         PR target/88469
15658         * config/arm/arm.c (arm_needs_double_word_align): Check
15659         DECL_BIT_FIELD_TYPE.
15661 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
15662             H.J. Lu  <hongjiu.lu@intel.com>
15664         PR target/88909
15665         * config/i386/i386-builtin.def: Add mask2 to all builtin
15666         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
15667         SPECIAL_ARGS.
15668         * config/i386/i386.c (BDESC): Add mask2 to the definition.
15669         (BDESC_FIRST): Likewise.
15670         (define_builtin): Add an argument for mask2.  Updated to handle
15671         both ix86_isa_flags and ix86_isa_flags2.
15672         (define_builtin_const): Likewise.
15673         (define_builtin_pure): Likewise.
15674         (define_builtin2): Deleted.
15675         (define_builtin_const2): Likewise.
15676         (builtin_description): Add a member, mask2.
15677         (bdesc_*): Add mask2 to builtin initializations.
15678         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
15679         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
15680         support.
15681         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
15683 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15685         PR target/88954
15686         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15687         noplt attribute.
15689 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
15691         PR target/88469
15692         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15693         alignment is dominated by a bitfield with 64-bit aligned base type.
15694         (arm_function_arg): Emit a warning if the alignment has changed since
15695         earlier GCC releases.
15696         (arm_function_arg_boundary): Likewise.
15697         (arm_setup_incoming_varargs): Likewise.
15699 2019-01-22  Richard Biener  <rguenther@suse.de>
15701         PR tree-optimization/88862
15702         * graphite-scop-detection.c
15703         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15705 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
15707         * doc/extend.tex (AMD GCN Function Attributes): New section.
15708         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15709         * doc/invoke.texi (AMD GCN Options): New section.
15710         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15712 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15714         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15715         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15717 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
15719         PR tree-optimization/88044
15720         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15721         is false in the first iteration, but !every_iteration, return false
15722         instead of true with niter->niter zero.
15724         PR rtl-optimization/88904
15725         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15726         any nonequal registers before processing BB_END (b).
15728         PR target/88905
15729         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15730         GET_MODE (op0).
15731         (expand_binop_directly, expand_doubleword_clz,
15732         expand_doubleword_popcount, expand_ctz, expand_ffs,
15733         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15735         PR rtl-optimization/49429
15736         PR target/49454
15737         PR rtl-optimization/86334
15738         PR target/88906
15739         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15740         addressable from here...
15741         (emit_block_op_via_libcall): ... to here.
15743 2019-01-22  Richard Biener  <rguenther@suse.de>
15745         * tree-vect-loop.c (vect_analyze_loop_operations): Use
15746         auto_vec for cost vector to fix memleak.
15747         (vectorize_fold_left_reduction): Properly gather SLP defs.
15748         (vectorizable_comparison): Do not swap operands to properly
15749         gather SLP defs.
15751 2019-01-22  Alan Modra  <amodra@gmail.com>
15753         PR target/88614
15754         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15755         stays a reg.  Allow a const_int.
15756         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15757         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15758         (IS_NOMARK_TLSGETADDR): Define.
15759         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15760         (rs6000_output_tlsargs): New function.
15761         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15762         __tls_get_addr call takes an arg.
15763         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15764         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15765         delete split..
15766         (call_value_nonlocal_sysv): ..or here, delete split.
15767         (tls_gdld_nomark): Delete.
15768         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15769         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
15770         (call_value_nonlocal_sysv): Likewise.
15771         (call_value_nonlocal_sysv_secure): Likewise.
15772         (call_value_nonlocal_aix): Likewise.
15773         (call_value_indirect_aix): Likewise.
15774         (call_value_indirect_elfv2): Likewise.
15775         (call_value_local32, call_value_local64): Disable for no-mark tls.
15776         (call_value_local_aix): Likewise.
15778 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
15780         PR target/88938
15781         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15782         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15784 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
15786         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15787         string contents as hash_map keys.
15789 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15791         PR c/88928
15792         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15793         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
15794         instead of TYPE_ALIGN.
15795         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15796         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
15797         pointer from TYPE_STUB_DECL.
15799 2019-01-21  Richard Biener  <rguenther@suse.de>
15801         PR tree-optimization/88934
15802         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15803         at the possibly non-constant operand.
15804         (vect_get_constant_vectors): Adjust.
15806 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15808         PR target/71659
15809         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15810         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15811         instead of _X86INTRIN_H_INCLUDED.
15812         * onfig/i386/clwbintrin.h: Likewise.
15813         * config/i386/pkuintrin.h: Likewise.
15814         * config/i386/prfchwintrin.h: Likewise.
15815         * config/i386/rdseedintrin.h: Likewise.
15816         * config/i386/wbnoinvdintrin.h: Likewise.
15817         * config/i386/xsavecintrin.h: Likewise.
15818         * config/i386/xsavesintrin.h: Likewise.
15819         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15820         * config/i386/xsaveintrin.h: Likewise.
15821         * config/i386/xsaveoptintrin.h: Likewise.
15822         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15823         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15824         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15825         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15826         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15827         * config/i386/immintrin.h: Here.
15829 2019-01-20  Martin Jambor  <mjambor@suse.cz>
15831         PR ipa/87615
15832         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15833         with aa_walk_budget.
15834         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15835         aa_walk_budget_p parameter.
15836         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
15837         walk.  Updated all callers.
15838         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15839         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15840         unmodified_parm.
15841         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15842         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
15843         and to unmodified_parm.
15844         (phi_result_unknown_predicate): New parameter fbi, removed parameter
15845         info, updated call to will_be_nonconstant_expr_predicate.
15846         (param_change_prob): New parameter fbi, limit AA walking.
15847         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
15848         calls to various above functions.
15849         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15850         parameter.  Use it to limit AA walking.
15851         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15852         fbi, limit AA walk.
15853         (detect_type_change): New parameter fbi, pass it on to
15854         detect_type_change_from_memory_writes.
15855         (detect_type_change_ssa): Likewise.
15856         (aa_overwalked): Removed.
15857         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15858         accordingly, adjust to the neew AA limiting scheme.
15859         (parm_ref_data_preserved_p): Likewise.
15860         (ipa_compute_jump_functions_for_edge): Adjust call to
15861         get_dynamic_type.
15862         (ipa_analyze_call_uses): Likewise.
15863         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15864         (ipa_analyze_node): Initialize aa_walk_budget.
15865         (ipcp_transform_function): Likewise.
15866         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15867         to get_dynamic_type.
15869 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
15871         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15872         outside of #if CHECKING_P code.
15874 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
15876         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
15877         New function, split out from...
15878         (loop_versioning::analyze_stride): ...here.
15879         (loop_versioning::find_per_loop_multiplication): Use gassign.
15880         (loop_versioning::analyze_term_using_scevs): Return a success code.
15881         (loop_versioning::analyze_arbitrary_term): New function.
15882         (loop_versioning::analyze_address_fragment): Use
15883         analyze_arbitrary_term if all else fails.
15885 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
15887         PR target/88892
15888         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
15889         operands.
15891 2019-01-18  Richard Biener  <rguenther@suse.de>
15893         PR tree-optimization/88903
15894         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
15895         scalar stmts a SLP shift amount is composed of when detecting
15896         shifts by scalars.
15898 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
15900         PR target/88799
15901         * config/arm/arm-cpus.in (mp): New feature.
15902         (sec): New feature.
15903         (fgroup ARMv7ve): Add mp and sec features.
15904         (arch armv7-a): Add options to allow mp and sec extensions.
15905         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
15906         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
15907         extenstions to the base architecture.
15908         (cpu cortex-a8): Add sec extension to the base architecture.
15909         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
15910         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
15911         variants down to the base v7-a varaint.
15912         * config/arm/t-multilib (v7_a_arch_variants): New variable.
15913         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
15914         of permitted extensions for -march=armv7-a and for
15915         -mcpu=generic-armv7-a.
15917 2019-01-18  Martin Liska  <mliska@suse.cz>
15919         * params.def: Fix comment.
15920         * tree-profile.c (gimple_init_gcov_profiler): Bump function
15921         name.
15922         (gimple_gen_ic_func_profiler): Likewise.
15924 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15926         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
15927         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
15928         and put in error checks for stack protector guard options.
15929         (aarch64_stack_protect_guard): New.
15930         (TARGET_STACK_PROTECT_GUARD): Define.
15931         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
15932         (reg_stack_protect_address<mode>): New.
15933         (stack_protect_set): Adjust for SSP_GLOBAL.
15934         (stack_protect_test): Likewise.
15935         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
15936         (-mstack-protector-guard): Likewise.
15937         (-mstack-protector-guard-offset): Likewise.
15939 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
15941         PR tree-optimization/86214
15942         * tree-inline.h (struct copy_body_data): Add
15943         add_clobbers_to_eh_landing_pads member.
15944         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
15945         (copy_edges_for_bb): Call it if EH edge destination is <
15946         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
15947         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
15948         if flag_stack_reuse != SR_NONE and clear it afterwards.
15950 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
15952         PR target/85596
15953         * doc/install.texi (with-multilib-list): Document for aarch64.
15955 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
15957         PR target/88734
15958         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
15959         (("..."))) with ("...").
15961 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15963         * doc/extend.texi (Built-in Functions for Memory Model Aware
15964         Atomic Operations): Document atomic fetch and nand.
15966 2019-01-18  Martin Liska  <mliska@suse.cz>
15967             Richard Biener  <rguenther@suse.de>
15969         PR middle-end/88587
15970         * cgraph.h (create_version_clone_with_body): Add new argument
15971         with attributes.
15972         * cgraphclones.c (cgraph_node::create_version_clone): Add
15973         DECL_ATTRIBUTES to a newly created decl.  And call
15974         valid_attribute_p so that proper cl_target_optimization_node
15975         is set for the newly created declaration.
15976         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
15977         for declaration.
15978         (expand_target_clones): Do not call valid_attribute_p, it must
15979         be already done.
15980         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
15981         vector types.
15983 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
15985         PR target/88734
15986         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
15987         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
15988         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
15990 2019-01-17  Martin Sebor  <msebor@redhat.com>
15992         PR middle-end/88273
15993         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
15994         Handle anti-ranges the same as no range at all.
15996 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
15998         * config/aarch64/aarch64.c (cgraph.h): New include.
15999         (intl.h): New include.
16000         (supported_simd_type): New function.
16001         (currently_supported_simd_type): Ditto.
16002         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
16003         (aarch64_simd_clone_adjust): Ditto.
16004         (aarch64_simd_clone_usable): Ditto.
16005         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
16006         (TARGET_SIMD_CLONE_ADJUST): Ditto.
16007         (TARGET_SIMD_CLONE_USABLE): Ditto.
16008         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
16009         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
16010         call.
16012 2019-01-17  Martin Sebor  <msebor@redhat.com>
16014         PR tree-optimization/88800
16015         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
16016         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
16017         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
16018         redundant argument.  Add new argument and issue diagnostics under
16019         its control.  Detect out-of-bounds access even with warnings
16020         disabled.
16021         (check_bounds_or_overlap): Change return type.  Add argument.
16022         (wrestrict_dom_walker::check_call): Adjust.
16023         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
16024         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
16025         check_bounds_or_overlap's return value.
16026         (handle_builtin_stxncpy): Same.
16027         (handle_builtin_strcat): Same.
16029 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16030             Kwok Cheung Yeung  <kcy@codesourcery.com>
16031             Julian Brown  <julian@codesourcery.com>
16032             Tom de Vries  <tom@codesourcery.com>
16034         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
16036 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16038         * doc/sourcebuild.texi: Document dg-require-effective-target
16039         llvm_binutils and offload_gcn.
16041 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16042             Kwok Cheung Yeung  <kcy@codesourcery.com>
16043             Julian Brown  <julian@codesourcery.com>
16044             Tom de Vries  <tom@codesourcery.com>
16046         * doc/sourcebuild.texi: Document dg-required-effective-target
16047         exceptions.
16049 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16050             Kwok Cheung Yeung  <kcy@codesourcery.com>
16051             Julian Brown  <julian@codesourcery.com>
16052             Tom de Vries  <tom@codesourcery.com>
16053             Jan Hubicka  <hubicka@ucw.cz>
16054             Martin Jambor  <mjambor@suse.cz>
16056         * config.gcc: Add amdgcn*-*-amdhsa configuration.
16057         * configure.ac: Check for dlopen.
16058         * configure: Regenerate.
16060 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16061             Kwok Cheung Yeung  <kcy@codesourcery.com>
16062             Julian Brown  <julian@codesourcery.com>
16063             Tom de Vries  <tom@codesourcery.com>
16064             Jan Hubicka  <hubicka@ucw.cz>
16065             Martin Jambor  <mjambor@suse.cz>
16067         * common/config/gcn/gcn-common.c: New file.
16068         * config/gcn/driver-gcn.c: New file.
16069         * config/gcn/gcn-builtins.def: New file.
16070         * config/gcn/gcn-hsa.h: New file.
16071         * config/gcn/gcn-modes.def: New file.
16072         * config/gcn/gcn-opts.h: New file.
16073         * config/gcn/gcn-passes.def: New file.
16074         * config/gcn/gcn-protos.h: New file.
16075         * config/gcn/gcn-run.c: New file.
16076         * config/gcn/gcn-tree.c: New file.
16077         * config/gcn/gcn.c: New file.
16078         * config/gcn/gcn.h: New file.
16079         * config/gcn/gcn.opt: New file.
16080         * config/gcn/t-gcn-hsa: New file.
16082 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
16083             Kwok Cheung Yeung  <kcy@codesourcery.com>
16084             Julian Brown  <julian@codesourcery.com>
16085             Tom de Vries  <tom@codesourcery.com>
16086             Jan Hubicka  <hubicka@ucw.cz>
16087             Martin Jambor  <mjambor@suse.cz>
16089         * config/gcn/constraints.md: New file.
16090         * config/gcn/gcn-valu.md: New file.
16091         * config/gcn/gcn.md: New file.
16092         * config/gcn/predicates.md: New file.
16094 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16096         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
16097         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
16098         (stmt_uses_0_or_null_in_undefined_way): Likewise.
16099         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
16101 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
16103         PR target/88851
16104         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
16105         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
16106         it and document registers.
16108 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16110         * config/aarch64/aarch64.c (ares_tunings): Define.
16111         * config/aarch64/aarch64-cores.def (ares): Use the above.
16113 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
16115         PR target/88794
16116         Revert:
16117         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
16119         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
16120         (_mm512_fixupimm_round_pd): Update parameters and builtin.
16121         (_mm512_maskz_fixupimm_round_pd): Ditto.
16122         (_mm512_fixupimm_round_ps): Ditto.
16123         (_mm512_maskz_fixupimm_round_ps): Ditto.
16124         (_mm_fixupimm_round_sd): Ditto.
16125         (_mm_maskz_fixupimm_round_sd): Ditto.
16126         (_mm_fixupimm_round_ss): Ditto.
16127         (_mm_maskz_fixupimm_round_ss): Ditto.
16128         (_mm512_fixupimm_pd): Ditto.
16129         (_mm512_maskz_fixupimm_pd): Ditto.
16130         (_mm512_fixupimm_ps): Ditto.
16131         (_mm512_maskz_fixupimm_ps): Ditto.
16132         (_mm_fixupimm_sd): Ditto.
16133         (_mm_maskz_fixupimm_sd): Ditto.
16134         (_mm_fixupimm_ss): Ditto.
16135         (_mm_maskz_fixupimm_ss): Ditto.
16136         (_mm512_mask_fixupimm_round_pd): Update builtin.
16137         (_mm512_mask_fixupimm_round_ps): Ditto.
16138         (_mm_mask_fixupimm_round_sd): Ditto.
16139         (_mm_mask_fixupimm_round_ss): Ditto.
16140         (_mm512_mask_fixupimm_pd): Ditto.
16141         (_mm512_mask_fixupimm_ps): Ditto.
16142         (_mm_mask_fixupimm_sd): Ditto.
16143         (_mm_mask_fixupimm_ss): Ditto.
16144         * config/i386/avx512vlintrin.h:
16145         (_mm256_fixupimm_pd): Update parameters and builtin.
16146         (_mm256_maskz_fixupimm_pd): Ditto.
16147         (_mm256_fixupimm_ps): Ditto.
16148         (_mm256_maskz_fixupimm_ps): Ditto.
16149         (_mm_fixupimm_pd): Ditto.
16150         (_mm_maskz_fixupimm_pd): Ditto.
16151         (_mm_fixupimm_ps): Ditto.
16152         (_mm_maskz_fixupimm_ps): Ditto.
16153         (_mm256_mask_fixupimm_pd): Update builtin.
16154         (_mm256_mask_fixupimm_ps): Ditto.
16155         (_mm_mask_fixupimm_pd): Ditto.
16156         (_mm_mask_fixupimm_ps): Ditto.
16157         * config/i386/i386-builtin-types.def: Add new types and remove
16158         useless ones.
16159         * config/i386/i386-builtin.def: Update builtin definitions.
16160         * config/i386/i386.c: Handle new builtin types and remove useless ones.
16161         * config/i386/sse.md: Update VFIXUPIMM* patterns.
16162         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16163         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16164         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
16165         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16166         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16167         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
16168         * config/i386/subst.md:
16169         (round_saeonly_sd_mask_operand4): Add new subst_attr.
16170         (round_saeonly_sd_mask_op4): Ditto.
16171         (round_saeonly_expand_operand5): Ditto.
16172         (round_saeonly_expand): Update.
16174 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
16176         PR target/88794
16177         Revert:
16178         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
16180         * config/i386/sse.md: Combine VFIXUPIMM* patterns
16181         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16182         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16183         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
16184         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16185         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16186         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
16188 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
16190         PR target/88794
16191         Revert:
16192         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
16194         PR target/88489
16195         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
16196         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
16197         instead of UNSPEC_FIXUPIMM.
16199 2019-01-17  Richard Biener  <rguenther@suse.de>
16201         PR lto/86736
16202         * dwarf2out.c (want_pubnames): Never generate pubnames sections
16203         and friends for the LTO part of debug info.
16205 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
16207         PR tree-optimization/86214
16208         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
16209         if x == y.
16211         PR rtl-optimization/88870
16212         * dce.c (deletable_insn_p): Never delete const/pure calls that can
16213         throw if we can't alter the cfg or delete dead exceptions.
16214         (mark_insn): Don't call find_call_stack_args for such calls.
16216 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
16218         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
16219         prototypes for vec_st.
16220         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
16221         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
16222         mainly on signed/unsigned long long and double.
16224 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
16226         PR target/88861
16227         * combine.c (delete_noop_moves): Convert to "bool" return,
16228         returning true if any edges are eliminated.
16229         (combine_instructions): Also return true if delete_noop_moves
16230         returns true.
16232 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
16234         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
16235         correct max nunits for endian swap.
16236         (aarch64_expand_fcmla_builtin): Correct subreg code.
16237         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16238         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
16239         lane endianness.
16241 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
16243         * config/alpha/alpha.c (alpha_gimplify_va_arg):
16244         Handle split indirect COMPLEX_TYPE arguments.
16246 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
16248         PR target/86891
16249         * config/aarch64/aarch64-modes.def: Add comment about how the carry
16250         bit is set by add and compare.
16251         (CC_ADC): New CC_MODE.
16252         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
16253         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
16254         comparison.  Add detection for CC_ADCmode.
16255         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
16256         CC_ADCmode.
16257         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
16258         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
16259         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
16260         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
16261         to eliminate the need for zero-extending the operands.
16262         (add<mode>3_compareC_imm): Delete.  Merge into ...
16263         (add<mode>3_compareC): ... this.  Restructure the comparison to
16264         eliminate the need for zero-extending the operands.
16265         (add<mode>3_carryin): Use LTU for the overflow detection.
16266         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
16267         Reexpress comparison for overflow.
16268         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
16269         (add<mode>3_carryinC): Likewise.
16270         (add<mode>3_carryinV): Use LTU for carry between partials.
16271         * config/aarch64/predicates.md (aarch64_carry_operation): Update
16272         handling of CC_Cmode and add CC_ADCmode.
16273         (aarch64_borrow_operation): Likewise.
16275 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
16277         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
16278         Remove patternmode.
16279         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
16280         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16281         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
16282         Remove endianness conversion.
16284 2019-01-16  Martin Liska  <mliska@suse.cz>
16286         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
16287         for GCC driver.
16288         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
16289         a new argument.
16290         * gcc.c (add_sysrooted_hdrs_prefix): New function.
16291         (path_prefix_reset): Move up in the source file.
16292         (find_fortran_preinclude_file): Make complex search for the
16293         fortran header files.
16295 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
16297         * godump.c (go_output_typedef): When outputting a typedef, refer
16298         to the underlying type by its name and not its structure.
16300 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
16302         PR c++/88795
16303         * tree.c (build_function_type): Assert that arg_types is not
16304         error_mark_node.
16306 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16308         PR inline-asm/52813
16309         * doc/extend.texi: Document that listing the stack pointer in the
16310         clobber list of an asm is a deprecated feature.
16311         * common.opt (Wdeprecated): Moved from c-family/c.opt.
16312         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
16313         warning instead of an error for clobbers of the stack pointer.
16314         Add a note explaining why.
16316 2019-01-15  Richard Biener  <rguenther@suse.de>
16318         PR debug/88046
16319         * dwarf2out.c (gen_member_die): Do not generate inheritance
16320         DIEs late.
16322 2019-01-15  Richard Biener  <rguenther@suse.de>
16324         PR tree-optimization/88855
16325         * tree-if-conv.c (combine_blocks): Collect
16326         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
16328 2019-01-15  Tom de Vries  <tdevries@suse.de>
16330         PR target/80547
16331         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
16332         lhs == NULL_TREE for gang-level reduction.
16334 2019-01-15  Richard Biener  <rguenther@suse.de>
16335             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16337         PR ipa/88788
16338         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
16339         return true if SSA_NAME is already marked in visited bitmap.
16340         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
16342 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
16344         PR tree-optimization/88775
16345         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
16346         equal == 0 equality pointer comparisons some more if compared in
16347         integral types and either one points to an automatic var and the
16348         other to a global, or we can prove at least one points to the middle
16349         or both point to start or both point to end.
16351 2019-01-14  Andi Kleen  <ak@linux.intel.com>
16353         * Makefile.in: Lower autofdo sampling rate by 10x.
16354         * Makefile.tpl: Dito.
16356 2019-01-14  Tom Honermann  <tom@honermann.net>
16358         * defaults.h: Define CHAR8_TYPE.
16360 2019-01-14  Martin Sebor  <msebor@redhat.com>
16362         PR target/88638
16363         * doc/extend.texi (Darwin Format Checks): Clarify.
16365 2019-01-14  Richard Biener  <rguenther@suse.de>
16367         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
16368         whether we are in (simplify ...) or (match ...) context.
16370 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
16372         PR rtl-optimization/88796
16373         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
16374         * cfgexpand.c (stack_protect_prologue): Initialize
16375         crtl->stack_protect_guard_decl.
16376         * function.c (stack_protect_epilogue): Use it instead of calling
16377         targetm.stack_protect_guard again.
16378         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
16379         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
16380         crtl->stack_protect_guard_decl.
16381         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
16382         on the returned MEM_EXPR.
16384 2019-01-12  Tom de Vries  <tdevries@suse.de>
16386         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
16387         vector length using -fopenacc-dim.
16389 2019-01-12  Tom de Vries  <tdevries@suse.de>
16391         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
16392         lengths into account.
16394 2019-01-12  Svante Signell  <svante.signell@gmail.com>
16396         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
16397         (TARGET_CAN_SPLIT_STACK): Define.
16398         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
16400 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
16402         * params.def (inline-unit-growth): Set to 40.
16404 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
16406         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
16408 2019-01-12  Tom de Vries  <tdevries@suse.de>
16410         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
16411         region calling vector-partitionable routine, set default_vector_length
16412         to WARP_SIZE.
16414 2019-01-12  Tom de Vries  <tdevries@suse.de>
16416         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
16417         variable default_vector_length.
16419 2019-01-12  Tom de Vries  <tdevries@suse.de>
16421         PR middle-end/88703
16422         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
16423         from oacc_default_dims, as oacc_validate_dims would do it, and apply
16424         dimensions limits.
16426 2019-01-12  Tom de Vries  <tdevries@suse.de>
16428         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
16429         (nvptx_goacc_validate_dims): Add used parameter.
16430         * doc/tm.texi: Regenerate.
16431         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
16432         argument to call to targetm.goacc.validate_dims.
16433         (default_goacc_validate_dims): Add used
16434         parameter.
16435         * target.def (validate_dims): Add used parameter in DEFHOOK.
16436         * targhooks.h (default_goacc_validate_dims): Add used parameter.
16438 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
16440         PR middle-end/85956
16441         PR lto/88733
16442         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
16443         field.
16444         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
16445         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
16446         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
16447         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
16449 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
16451         PR rtl-optimization/87305
16452         * lra-assigns.c
16453         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
16454         for little endian pseudos used as paradoxical subreg.
16456 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
16458         PR tree-optimization/88693
16459         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
16460         for STRING_CSTs that don't contain any NUL characters in the first
16461         TREE_STRING_LENGTH bytes.
16463 2019-01-11  Alan Modra  <amodra@gmail.com>
16465         PR 88777
16466         PR 88614
16467         * genattrtab.c (min_fn): Don't translate values.
16468         (min_attr_value): Return INT_MAX when the value can't be calculated.
16469         Return minimum among any values that can be calculated.
16470         (max_attr_value): Adjust.
16472 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
16474         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
16476 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
16478         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16479         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
16480         (aarch64_return_call_with_max_clobbers): New function.
16481         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
16482         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
16483         argument.
16484         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
16485         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
16486         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
16487         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
16488         * cselib.c (cselib_process_insn): Add argument to
16489         targetm.hard_regno_call_part_clobbered call.
16490         * ira-conflicts.c (ira_build_conflicts): Ditto.
16491         * ira-costs.c (ira_tune_allocno_costs): Ditto.
16492         * lra-constraints.c (inherit_reload_reg): Ditto.
16493         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
16494         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
16495         argument.  Call targetm.return_call_with_max_clobbers.
16496         Add argument to targetm.hard_regno_call_part_clobbered call.
16497         (calls_have_same_clobbers_p): New function.
16498         (process_bb_lives): Add call_insn and last_call_insn variables.
16499         Pass call_insn to check_pseudos_live_through_calls.
16500         Modify if stmt to check targetm.return_call_with_max_clobbers.
16501         Update setting of flush variable.
16502         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
16503         to false.
16504         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
16505         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
16506         targetm.hard_regno_call_part_clobbered call.
16507         * reginfo.c (choose_hard_reg_mode): Ditto.
16508         * regrename.c (check_new_reg_p): Ditto.
16509         * reload.c (find_equiv_reg): Ditto.
16510         * reload1.c (emit_reload_insns): Ditto.
16511         * sched-deps.c (deps_analyze_insn): Ditto.
16512         * sel-sched.c (init_regs_for_mode): Ditto.
16513         (mark_unavailable_hard_regs): Ditto.
16514         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
16515         * target.def (hard_regno_call_part_clobbered): Add insn argument.
16516         (return_call_with_max_clobbers): New target function.
16517         * doc/tm.texi: Regenerate.
16518         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
16519         * hooks.c (hook_bool_uint_mode_false): Change to
16520         hook_bool_insn_uint_mode_false.
16521         * hooks.h (hook_bool_uint_mode_false): Ditto.
16523 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
16525         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16526         (aarch64_remove_extra_call_preserved_regs): New function.
16527         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
16528         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
16529         * doc/tm.texi: Regenerate.
16530         * final.c (get_call_reg_set_usage): Call new hook.
16531         * target.def (remove_extra_call_preserved_regs): New hook.
16532         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
16533         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
16535 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
16537         PR bootstrap/88714
16538         * passes.c (finish_optimization_passes): Call print_combine_total_stats
16539         inside of pass_combine_1 dump rather than pass_profile_1.
16541 2019-01-11  Tom de Vries  <tdevries@suse.de>
16543         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
16544         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
16545         (PTX_NUM_PER_WORKER_BARRIERS): Define.
16546         (nvptx_apply_dim_limits): Prevent vector_length 64 and
16547         num_workers 16.
16549 2019-01-11  Tom de Vries  <tdevries@suse.de>
16551         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
16553 2019-01-11  Jan Beulich  <jbeulich@suse.com>
16555         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
16556         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
16557         sse2_cvtsi2sd): Add {l}.
16558         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
16559         syntax.
16561 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
16563         PR target/88785
16564         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
16565         define_expand.
16566         (*float<floatunssuffix>v2div2sf2): New define_insn.
16567         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
16568         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
16569         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
16570         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
16571         match_operands with "const0_operand" "C".
16573 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
16575         * config/aarch64/aarch64-builtins.c
16576         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
16577         (aarch64_init_simd_builtins): ...Here
16579 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
16581         PR rtl-optimization/87305
16582         * lra-assigns.c
16583         (setup_live_pseudos_and_spill_after_risky_transforms): Check
16584         allocation for big endian pseudos used as paradoxical subregs and
16585         spill them if it is wrong.
16586         * lra-constraints.c (lra_constraints): Add a comment.
16588 2019-01-10  Richard Biener  <rguenther@suse.de>
16590         PR tree-optimization/88792
16591         * tree-ssa-pre.c (get_representative_for): Do not return a
16592         value-number here.
16594 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
16596         PR middle-end/84877
16597         PR bootstrap/88450
16598         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
16599         (assign_parm_setup_block): Do the argument slot realignment here
16600         instead.
16602 2019-01-10  Stefan Agner  <stefan@agner.ch>
16604         PR target/88648
16605         * config/arm/arm.c (arm_option_override_internal): Force
16606         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
16608 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
16610         PR c/88568
16611         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
16612         DECL_EXTERNAL.
16614 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
16616         * config/arm/arm-builtins.c
16617         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
16618         (MAC_LANE_PAIR_QUALIFIERS): New.
16619         (arm_expand_builtin_args): Use it.
16620         (arm_expand_builtin_1): Likewise.
16621         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
16622         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
16623         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
16624         * config/arm/arm_neon.h:
16625         (vcadd_rot90_f16): New.
16626         (vcaddq_rot90_f16): New.
16627         (vcadd_rot270_f16): New.
16628         (vcaddq_rot270_f16): New.
16629         (vcmla_f16): New.
16630         (vcmlaq_f16): New.
16631         (vcmla_lane_f16): New.
16632         (vcmla_laneq_f16): New.
16633         (vcmlaq_lane_f16): New.
16634         (vcmlaq_laneq_f16): New.
16635         (vcmla_rot90_f16): New.
16636         (vcmlaq_rot90_f16): New.
16637         (vcmla_rot90_lane_f16): New.
16638         (vcmla_rot90_laneq_f16): New.
16639         (vcmlaq_rot90_lane_f16): New.
16640         (vcmlaq_rot90_laneq_f16): New.
16641         (vcmla_rot180_f16): New.
16642         (vcmlaq_rot180_f16): New.
16643         (vcmla_rot180_lane_f16): New.
16644         (vcmla_rot180_laneq_f16): New.
16645         (vcmlaq_rot180_lane_f16): New.
16646         (vcmlaq_rot180_laneq_f16): New.
16647         (vcmla_rot270_f16): New.
16648         (vcmlaq_rot270_f16): New.
16649         (vcmla_rot270_lane_f16): New.
16650         (vcmla_rot270_laneq_f16): New.
16651         (vcmlaq_rot270_lane_f16): New.
16652         (vcmlaq_rot270_laneq_f16): New.
16653         (vcadd_rot90_f32): New.
16654         (vcaddq_rot90_f32): New.
16655         (vcadd_rot270_f32): New.
16656         (vcaddq_rot270_f32): New.
16657         (vcmla_f32): New.
16658         (vcmlaq_f32): New.
16659         (vcmla_lane_f32): New.
16660         (vcmla_laneq_f32): New.
16661         (vcmlaq_lane_f32): New.
16662         (vcmlaq_laneq_f32): New.
16663         (vcmla_rot90_f32): New.
16664         (vcmlaq_rot90_f32): New.
16665         (vcmla_rot90_lane_f32): New.
16666         (vcmla_rot90_laneq_f32): New.
16667         (vcmlaq_rot90_lane_f32): New.
16668         (vcmlaq_rot90_laneq_f32): New.
16669         (vcmla_rot180_f32): New.
16670         (vcmlaq_rot180_f32): New.
16671         (vcmla_rot180_lane_f32): New.
16672         (vcmla_rot180_laneq_f32): New.
16673         (vcmlaq_rot180_lane_f32): New.
16674         (vcmlaq_rot180_laneq_f32): New.
16675         (vcmla_rot270_f32): New.
16676         (vcmlaq_rot270_f32): New.
16677         (vcmla_rot270_lane_f32): New.
16678         (vcmla_rot270_laneq_f32): New.
16679         (vcmlaq_rot270_lane_f32): New.
16680         (vcmlaq_rot270_laneq_f32): New.
16681         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
16682         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
16683         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16684         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16685         vcmlaq_lane270): New.
16686         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16687         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16688         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16689         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16690         (arm_option_reconfigure_globals): Use them.
16691         * config/arm/iterators.md (VDF, VQ_HSF): New.
16692         (VCADD, VCMLA): New.
16693         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16694         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16695         New.
16696         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16697         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16699 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
16701         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16702         Add qualifier_lane_pair_index.
16703         (emit-rtl.h): Include.
16704         (TYPES_QUADOP_LANE_PAIR): New.
16705         (aarch64_simd_expand_args): Use it.
16706         (aarch64_simd_expand_builtin): Likewise.
16707         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16708         New.
16709         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16710         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16711         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16712         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16713         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16714         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16715         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16716         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16717         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16718         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16719         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16720         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16721         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16722         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16723         Add __ARM_FEATURE_COMPLEX.
16724         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16725         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16726         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16727         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16728         fcmlaq_lane270): New.
16729         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16730         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16731         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16732         * config/aarch64/arm_neon.h:
16733         (vcadd_rot90_f16): New.
16734         (vcaddq_rot90_f16): New.
16735         (vcadd_rot270_f16): New.
16736         (vcaddq_rot270_f16): New.
16737         (vcmla_f16): New.
16738         (vcmlaq_f16): New.
16739         (vcmla_lane_f16): New.
16740         (vcmla_laneq_f16): New.
16741         (vcmlaq_lane_f16): New.
16742         (vcmlaq_rot90_lane_f16): New.
16743         (vcmla_rot90_laneq_f16): New.
16744         (vcmla_rot90_lane_f16): New.
16745         (vcmlaq_rot90_f16): New.
16746         (vcmla_rot90_f16): New.
16747         (vcmlaq_laneq_f16): New.
16748         (vcmla_rot180_laneq_f16): New.
16749         (vcmla_rot180_lane_f16): New.
16750         (vcmlaq_rot180_f16): New.
16751         (vcmla_rot180_f16): New.
16752         (vcmlaq_rot90_laneq_f16): New.
16753         (vcmlaq_rot270_laneq_f16): New.
16754         (vcmlaq_rot270_lane_f16): New.
16755         (vcmla_rot270_laneq_f16): New.
16756         (vcmlaq_rot270_f16): New.
16757         (vcmla_rot270_f16): New.
16758         (vcmlaq_rot180_laneq_f16): New.
16759         (vcmlaq_rot180_lane_f16): New.
16760         (vcmla_rot270_lane_f16): New.
16761         (vcadd_rot90_f32): New.
16762         (vcaddq_rot90_f32): New.
16763         (vcaddq_rot90_f64): New.
16764         (vcadd_rot270_f32): New.
16765         (vcaddq_rot270_f32): New.
16766         (vcaddq_rot270_f64): New.
16767         (vcmla_f32): New.
16768         (vcmlaq_f32): New.
16769         (vcmlaq_f64): New.
16770         (vcmla_lane_f32): New.
16771         (vcmla_laneq_f32): New.
16772         (vcmlaq_lane_f32): New.
16773         (vcmlaq_laneq_f32): New.
16774         (vcmla_rot90_f32): New.
16775         (vcmlaq_rot90_f32): New.
16776         (vcmlaq_rot90_f64): New.
16777         (vcmla_rot90_lane_f32): New.
16778         (vcmla_rot90_laneq_f32): New.
16779         (vcmlaq_rot90_lane_f32): New.
16780         (vcmlaq_rot90_laneq_f32): New.
16781         (vcmla_rot180_f32): New.
16782         (vcmlaq_rot180_f32): New.
16783         (vcmlaq_rot180_f64): New.
16784         (vcmla_rot180_lane_f32): New.
16785         (vcmla_rot180_laneq_f32): New.
16786         (vcmlaq_rot180_lane_f32): New.
16787         (vcmlaq_rot180_laneq_f32): New.
16788         (vcmla_rot270_f32): New.
16789         (vcmlaq_rot270_f32): New.
16790         (vcmlaq_rot270_f64): New.
16791         (vcmla_rot270_lane_f32): New.
16792         (vcmla_rot270_laneq_f32): New.
16793         (vcmlaq_rot270_lane_f32): New.
16794         (vcmlaq_rot270_laneq_f32): New.
16795         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16796         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16797         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16798         (FCADD, FCMLA): New.
16799         (rot): New.
16800         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16802 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
16804         PR other/16615
16806         * config/pa/pa.c: Change "can not" to "cannot".
16807         * gimple-ssa-evrp-analyze.c: Likewise.
16808         * ipa-icf.c: Likewise.
16809         * ipa-polymorphic-call.c: Likewise.
16810         * ipa-pure-const.c: Likewise.
16811         * lra-constraints.c: Likewise.
16812         * lra-remat.c: Likewise.
16813         * reload1.c: Likewise.
16814         * reorg.c: Likewise.
16815         * tree-ssa-uninit.c: Likewise.
16817 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
16819         PR other/16615
16821         * Makefile.in: Mechanically replace "can not" with "cannot".
16822         * alias.c: Likewise.
16823         * builtins.c: Likewise.
16824         * calls.c: Likewise.
16825         * cgraph.c: Likewise.
16826         * cgraph.h: Likewise.
16827         * cgraphclones.c: Likewise.
16828         * cgraphunit.c: Likewise.
16829         * combine-stack-adj.c: Likewise.
16830         * combine.c: Likewise.
16831         * common/config/i386/i386-common.c: Likewise.
16832         * config/aarch64/aarch64.c: Likewise.
16833         * config/alpha/sync.md: Likewise.
16834         * config/arc/arc.c: Likewise.
16835         * config/arc/predicates.md: Likewise.
16836         * config/arm/arm-c.c: Likewise.
16837         * config/arm/arm.c: Likewise.
16838         * config/arm/arm.h: Likewise.
16839         * config/arm/arm.md: Likewise.
16840         * config/arm/cortex-r4f.md: Likewise.
16841         * config/csky/csky.c: Likewise.
16842         * config/csky/csky.h: Likewise.
16843         * config/darwin-f.c: Likewise.
16844         * config/epiphany/epiphany.md: Likewise.
16845         * config/i386/i386.c: Likewise.
16846         * config/i386/sol2.h: Likewise.
16847         * config/m68k/m68k.c: Likewise.
16848         * config/mcore/mcore.h: Likewise.
16849         * config/microblaze/microblaze.md: Likewise.
16850         * config/mips/20kc.md: Likewise.
16851         * config/mips/sb1.md: Likewise.
16852         * config/nds32/nds32.c: Likewise.
16853         * config/nds32/predicates.md: Likewise.
16854         * config/pa/pa.c: Likewise.
16855         * config/rs6000/e300c2c3.md: Likewise.
16856         * config/rs6000/rs6000.c: Likewise.
16857         * config/s390/s390.h: Likewise.
16858         * config/sh/sh.c: Likewise.
16859         * config/sh/sh.md: Likewise.
16860         * config/spu/vmx2spu.h: Likewise.
16861         * cprop.c: Likewise.
16862         * dbxout.c: Likewise.
16863         * df-scan.c: Likewise.
16864         * doc/cfg.texi: Likewise.
16865         * doc/extend.texi: Likewise.
16866         * doc/fragments.texi: Likewise.
16867         * doc/gty.texi: Likewise.
16868         * doc/invoke.texi: Likewise.
16869         * doc/lto.texi: Likewise.
16870         * doc/md.texi: Likewise.
16871         * doc/objc.texi: Likewise.
16872         * doc/rtl.texi: Likewise.
16873         * doc/tm.texi: Likewise.
16874         * dse.c: Likewise.
16875         * emit-rtl.c: Likewise.
16876         * emit-rtl.h: Likewise.
16877         * except.c: Likewise.
16878         * expmed.c: Likewise.
16879         * expr.c: Likewise.
16880         * fold-const.c: Likewise.
16881         * genautomata.c: Likewise.
16882         * gimple-fold.c: Likewise.
16883         * hard-reg-set.h: Likewise.
16884         * ifcvt.c: Likewise.
16885         * ipa-comdats.c: Likewise.
16886         * ipa-cp.c: Likewise.
16887         * ipa-devirt.c: Likewise.
16888         * ipa-fnsummary.c: Likewise.
16889         * ipa-icf.c: Likewise.
16890         * ipa-inline-transform.c: Likewise.
16891         * ipa-inline.c: Likewise.
16892         * ipa-polymorphic-call.c: Likewise.
16893         * ipa-profile.c: Likewise.
16894         * ipa-prop.c: Likewise.
16895         * ipa-pure-const.c: Likewise.
16896         * ipa-reference.c: Likewise.
16897         * ipa-split.c: Likewise.
16898         * ipa-visibility.c: Likewise.
16899         * ipa.c: Likewise.
16900         * ira-build.c: Likewise.
16901         * ira-color.c: Likewise.
16902         * ira-conflicts.c: Likewise.
16903         * ira-costs.c: Likewise.
16904         * ira-int.h: Likewise.
16905         * ira-lives.c: Likewise.
16906         * ira.c: Likewise.
16907         * ira.h: Likewise.
16908         * loop-invariant.c: Likewise.
16909         * loop-unroll.c: Likewise.
16910         * lower-subreg.c: Likewise.
16911         * lra-assigns.c: Likewise.
16912         * lra-constraints.c: Likewise.
16913         * lra-eliminations.c: Likewise.
16914         * lra-lives.c: Likewise.
16915         * lra-remat.c: Likewise.
16916         * lra-spills.c: Likewise.
16917         * lra.c: Likewise.
16918         * lto-cgraph.c: Likewise.
16919         * lto-streamer-out.c: Likewise.
16920         * postreload-gcse.c: Likewise.
16921         * predict.c: Likewise.
16922         * profile-count.h: Likewise.
16923         * profile.c: Likewise.
16924         * recog.c: Likewise.
16925         * ree.c: Likewise.
16926         * reload.c: Likewise.
16927         * reload1.c: Likewise.
16928         * reorg.c: Likewise.
16929         * resource.c: Likewise.
16930         * rtl.def: Likewise.
16931         * rtl.h: Likewise.
16932         * rtlanal.c: Likewise.
16933         * sched-deps.c: Likewise.
16934         * sched-ebb.c: Likewise.
16935         * sched-rgn.c: Likewise.
16936         * sel-sched-ir.c: Likewise.
16937         * sel-sched.c: Likewise.
16938         * shrink-wrap.c: Likewise.
16939         * simplify-rtx.c: Likewise.
16940         * symtab.c: Likewise.
16941         * target.def: Likewise.
16942         * toplev.c: Likewise.
16943         * tree-call-cdce.c: Likewise.
16944         * tree-cfg.c: Likewise.
16945         * tree-complex.c: Likewise.
16946         * tree-core.h: Likewise.
16947         * tree-eh.c: Likewise.
16948         * tree-inline.c: Likewise.
16949         * tree-loop-distribution.c: Likewise.
16950         * tree-nrv.c: Likewise.
16951         * tree-profile.c: Likewise.
16952         * tree-sra.c: Likewise.
16953         * tree-ssa-alias.c: Likewise.
16954         * tree-ssa-dce.c: Likewise.
16955         * tree-ssa-dom.c: Likewise.
16956         * tree-ssa-forwprop.c: Likewise.
16957         * tree-ssa-loop-im.c: Likewise.
16958         * tree-ssa-loop-ivcanon.c: Likewise.
16959         * tree-ssa-loop-ivopts.c: Likewise.
16960         * tree-ssa-loop-niter.c: Likewise.
16961         * tree-ssa-phionlycprop.c: Likewise.
16962         * tree-ssa-phiopt.c: Likewise.
16963         * tree-ssa-propagate.c: Likewise.
16964         * tree-ssa-threadedge.c: Likewise.
16965         * tree-ssa-threadupdate.c: Likewise.
16966         * tree-ssa-uninit.c: Likewise.
16967         * tree-ssanames.c: Likewise.
16968         * tree-streamer-out.c: Likewise.
16969         * tree.c: Likewise.
16970         * tree.h: Likewise.
16971         * vr-values.c: Likewise.
16973 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
16975         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
16976         (ix86_split_xorsign): Ditto.
16977         * config/i386/i386.c (ix86_expand_xorsign): New function.
16978         (ix86_split_xorsign): Ditto.
16979         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
16980         (xorsign<mode>3): New expander.
16981         (xorsign<mode>3_1): New insn_and_split pattern.
16982         * config/i386/sse.md (xorsign<mode>3): New expander.
16984 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
16986         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
16987         (*tablejump_sp64): Likewise.
16988         (*tablejump<P:mode>): ...this.
16989         (*call_address_sp32): Merge into...
16990         (*call_address_sp64): Likewise.
16991         (*call_address<P:mode>): ...this.
16992         (*call_symbolic_sp32): Merge into...
16993         (*call_symbolic_sp64): Likewise.
16994         (*call_symbolic<P:mode>): ...this.
16995         (call_value): Remove constraint and add predicate.
16996         (*call_value_address_sp32): Merge into...
16997         (*call_value_address_sp64): Likewise.
16998         (*call_value_address<P:mode>): ...this.
16999         (*call_value_symbolic_sp32): Merge into...
17000         (*call_value_symbolic_sp64): Likewise.
17001         (*call_value_symbolic<P:mode>): ...this.
17002         (*sibcall_symbolic_sp32): Merge into...
17003         (*sibcall_symbolic_sp64): Likewise.
17004         (*sibcall_symbolic<P:mode>): ...this.
17005         (sibcall_value): Remove constraint and add predicate.
17006         (*sibcall_value_symbolic_sp32): Merge into...
17007         (*sibcall_value_symbolic_sp64): Likewise.
17008         (*sibcall_value_symbolic<P:mode>): ...this.
17009         (window_save): Minor tweak.
17010         (*branch_sp32): Merge into...
17011         (*branch_sp64): Likewise.
17012         (*branch<P:mode>): ...this.
17014 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
17015             James Clarke  <jrtc27@jrtc27.com>
17017         PR target/84010
17018         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
17019         consistently in TLS address generation and adjust code to the renaming
17020         of patterns.  Mark calls to __tls_get_addr as const.
17021         * config/sparc/sparc.md (tgd_hi22): Turn into...
17022         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
17023         (tgd_lo10): Turn into...
17024         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
17025         (tgd_add32): Merge into...
17026         (tgd_add64): Likewise.
17027         (tgd_add<P:mode>): ...this and use Pmode throughout.
17028         (tldm_hi22): Turn into...
17029         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
17030         (tldm_lo10): Turn into...
17031         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
17032         (tldm_add32): Merge into...
17033         (tldm_add64): Likewise.
17034         (tldm_add<P:mode>): ...this and use Pmode throughout.
17035         (tldm_call32): Merge into...
17036         (tldm_call64): Likewise.
17037         (tldm_call<P:mode>): ...this and use Pmode throughout.
17038         (tldo_hix22): Turn into...
17039         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
17040         (tldo_lox10): Turn into...
17041         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
17042         (tldo_add32): Merge into...
17043         (tldo_add64): Likewise.
17044         (tldo_add<P:mode>): ...this and use Pmode throughout.
17045         (tie_hi22): Turn into...
17046         (tie_hi22<P:mode>): ...this and use Pmode throughout.
17047         (tie_lo10): Turn into...
17048         (tie_lo10<P:mode>): ...this and use Pmode throughout.
17049         (tie_ld64): Use DImode throughout.
17050         (tie_add32): Merge into...
17051         (tie_add64): Likewise.
17052         (tie_add<P:mode>): ...this and use Pmode throughout.
17053         (tle_hix22_sp32): Merge into...
17054         (tle_hix22_sp64): Likewise.
17055         (tle_hix22<P:mode>): ...this and use Pmode throughout.
17056         (tle_lox22_sp32): Merge into...
17057         (tle_lox22_sp64): Likewise.
17058         (tle_lox22<P:mode>): ...this and use Pmode throughout.
17059         (*tldo_ldub_sp32): Merge into...
17060         (*tldo_ldub_sp64): Likewise.
17061         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
17062         (*tldo_ldub1_sp32): Merge into...
17063         (*tldo_ldub1_sp64): Likewise.
17064         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
17065         (*tldo_ldub2_sp32): Merge into...
17066         (*tldo_ldub2_sp64): Likewise.
17067         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
17068         (*tldo_ldsb1_sp32): Merge into...
17069         (*tldo_ldsb1_sp64): Likewise.
17070         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
17071         (*tldo_ldsb2_sp32): Merge into...
17072         (*tldo_ldsb2_sp64): Likewise.
17073         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
17074         (*tldo_ldub3_sp64): Use DImode throughout.
17075         (*tldo_ldsb3_sp64): Likewise.
17076         (*tldo_lduh_sp32): Merge into...
17077         (*tldo_lduh_sp64): Likewise.
17078         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
17079         (*tldo_lduh1_sp32): Merge into...
17080         (*tldo_lduh1_sp64): Likewise.
17081         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
17082         (*tldo_ldsh1_sp32): Merge into...
17083         (*tldo_ldsh1_sp64): Likewise.
17084         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
17085         (*tldo_lduh2_sp64): Use DImode throughout.
17086         (*tldo_ldsh2_sp64): Likewise.
17087         (*tldo_lduw_sp32): Merge into...
17088         (*tldo_lduw_sp64): Likewise.
17089         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
17090         (*tldo_lduw1_sp64): Use DImode throughout.
17091         (*tldo_ldsw1_sp64): Likewise.
17092         (*tldo_ldx_sp64): Likewise.
17093         (*tldo_stb_sp32): Merge into...
17094         (*tldo_stb_sp64): Likewise.
17095         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
17096         (*tldo_sth_sp32): Merge into...
17097         (*tldo_sth_sp64): Likewise.
17098         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
17099         (*tldo_stw_sp32): Merge into...
17100         (*tldo_stw_sp64): Likewise.
17101         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
17102         (*tldo_stx_sp64): Use DImode throughout.
17104 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17106         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
17107         check configure option to set BTI and Return Address Signing.
17108         * configure.ac: Add --enable-standard-branch-protection and
17109         --disable-standard-branch-protection.
17110         * configure: Regenerated.
17111         * doc/install.texi: Document the same.
17113 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17114             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17116         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
17117         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
17118         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
17119         if bti is enabled.
17120         * config/aarch64/aarch64-bti-insert.c: New file.
17121         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
17122         pass.
17123         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
17124         new bti pass.
17125         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
17126         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
17127         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
17128         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
17130 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17132         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
17133         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
17134         Disable bti for -mbranch-protection=none.
17135         (aarch64_handle_standard_branch_protection): Enable bti for
17136         -mbranch-protection=standard.
17137         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
17138         -mbranch-protection.
17139         (aarch64_bti_enabled): Check if bti is enabled.
17140         * config/aarch64/aarch64.opt: Declare target variable.
17141         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
17143 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17145         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
17146         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
17147         (aarch64_expand_epilogue): Likewise.
17148         (aarch64_output_mi_thunk): Likewise
17149         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
17150         TAILCALL_ADDR_REGS to x16 and x17.
17151         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
17153 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17155         * config/aarch64/aarch64-option-extensions.def: Define
17156         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
17157         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
17158         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
17159         (AARCH64_FL_PREDRES): New.
17160         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
17161         AARCH64_FL_PREDRES by default.
17162         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
17164 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
17166         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
17167         ARMv8.5-A.
17168         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
17169         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
17170         * doc/invoke.texi: Document ARMv8.5-A.
17172 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
17174         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
17175         (xorsign<mode>3): Likewise.
17177 2019-01-09  Jelinek  <jakub@redhat.com>
17179         PR middle-end/88758
17180         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
17181         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
17183         PR rtl-optimization/88331
17184         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
17185         not currently_expanding_to_rtl.
17187 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
17189         * doc/invoke.texi (-Os): Remove trailing spaces.
17190         (-finline-functions): Remove reference to -O2.
17192 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
17194         PR rtl-optimization/79593
17195         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
17197         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
17198         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
17200 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
17202         PR bootstrap/88721
17203         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
17204         to -1 on entry.
17206         PR debug/88723
17207         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
17208         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
17210 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
17212         PR target/88717
17213         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
17214         ix86_avx_u128_mode_entry.
17216 2019-01-08  Martin Liska  <mliska@suse.cz>
17218         PR tree-optimization/88753
17219         * tree-switch-conversion.c (switch_conversion::build_one_array):
17220         Come up with local variable constructor.  Convert first to
17221         type of constructor values.
17223 2019-01-08  Richard Biener  <rguenther@suse.de>
17225         PR tree-optimization/86554
17226         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
17227         rpo_avail): Move earlier.
17228         (visit_nary_op): When value-numbering to expressions
17229         with different overflow behavior make sure there's an
17230         available expression on the path.
17232 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
17234         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
17235         aarch64_parse_branch_protection,
17236         struct aarch64_branch_protect_type,
17237         aarch64_handle_no_branch_protection,
17238         aarch64_handle_standard_branch_protection,
17239         aarch64_validate_mbranch_protection,
17240         aarch64_handle_pac_ret_protection,
17241         aarch64_handle_attr_branch_protection,
17242         accepted_branch_protection_string,
17243         aarch64_pac_ret_subtypes,
17244         aarch64_branch_protect_types,
17245         aarch64_handle_pac_ret_leaf): Define.
17246         (aarch64_override_options_after_change_1, aarch64_override_options):
17247         Add check for accepted_branch_protection_string.
17248         (aarch64_option_save): Save accepted_branch_protection_string.
17249         (aarch64_option_restore): Save accepted_branch_protection_string.
17250         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
17251         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
17252         msign-return-address.
17253         * doc/invoke.texi: Add mbranch-protection.
17255 2019-01-08  Alan Modra  <amodra@gmail.com>
17257         PR target/88614
17258         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
17259         Delete "unknownp" parameter.  Adjust callers.  Handle
17260         CONST_INT, PLUS, MINUS, and MULT.
17261         (attr_value_aligned): Renamed from or_attr_value.
17262         (min_attr_value): Return INT_MIN for unhandled rtl case..
17263         (min_fn): ..and translate to INT_MAX here.
17264         (write_length_unit_log): Modify to cope without "unknown".
17265         (write_attr_value): Handle IF_THEN_ELSE.
17267 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
17269         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
17270         optimization for masked stores.
17272 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
17274         PR middle-end/88567
17275         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
17276         output vector directly to duplicate_and_interleave instead of
17277         going through a temporary.  Postpone insertion of ctor_seq to
17278         the end of the loop.
17280 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
17282         PR target/86891
17283         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
17284         unsigned_p.  Handle signed and unsigned overflow correction as
17285         required.
17286         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
17287         prototype.
17288         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
17289         for operand 2.
17290         (add<mode>3_compareV_imm): Make this callable for expanding.
17291         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
17292         aarch64_plus_operand for operand 2.
17293         (subv<GPI:mode>_insn): New insn pattern.
17294         (subv<GPI:mode>_imm): Likewise.
17295         (negv<GPI:mode>3): New expand pattern.
17296         (negv<GPI:mode>_insn): New insn pattern.
17297         (negv<GPI:mode>_cmp_only): Likewise.
17298         (cmpv<GPI:mode>_insn): Likewise.
17299         (subvti4): Use register_operand for operand 1.  Update call to
17300         aarch64_expand_subvti.
17301         (usubvti4): Likewise.
17302         (negvti3): New expand pattern.
17303         (negdi_carryout): New insn pattern.
17304         (negvdi_carryinV): New insn pattern.
17305         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
17306         version the named version.
17307         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
17308         operands.
17309         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
17310         patterns.
17311         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
17312         patterns.
17313         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
17314         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
17315         (sub<mode>3_carryinCV): Delete.
17316         (sub<GPI:mode>3_carryinV): New expand pattern.
17317         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
17319 2019-01-07  Richard Biener  <rguenther@suse.de>
17321         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
17322         of tree_operand_hash.
17324 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
17326         PR tree-optimization/88598
17327         * tree.h (single_nonzero_element): Declare.
17328         * tree.c (single_nonzero_element): New function.
17329         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
17330         if I is the only nonzero element of CST.
17332 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
17334         PR tree-optimization/88598
17335         * tree.h (initializer_each_zero_or_onep): Declare.
17336         * tree.c (initializer_each_zero_or_onep): New function.
17337         (signed_or_unsigned_type_for): Handle float types too.
17338         (unsigned_type_for, signed_type_for): Update comments accordingly.
17339         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
17340         x & { 0 or -1, 0 or -1, ... }.
17342 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
17344         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
17345         with x86_64-pc-linux-gnu.
17347 2019-01-07  Tom de Vries  <tdevries@suse.de>
17349         PR target/85486
17350         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
17351         function.
17352         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
17353         routines.
17355 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
17357         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
17358         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
17359         TARGET_AVX512F as condition.
17361         PR debug/88723
17362         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
17363         const_not_ok_for_debug_p target hook.
17364         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
17365         on UNSPEC and subexpressions thereof if all subexpressions of the
17366         UNSPEC are CONSTANT_P.
17368         PR tree-optimization/88676
17369         * tree-ssa-phiopt.c (two_value_replacement): New function.
17370         (tree_ssa_phiopt_worker): Call it.
17372         PR sanitizer/88619
17373         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
17374         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
17376         PR c++/85052
17377         * tree-vect-generic.c: Include insn-config.h and recog.h.
17378         (expand_vector_piecewise): Add defaulted ret_type argument,
17379         if non-NULL, use that in preference to type for the result type.
17380         (expand_vector_parallel): Formatting fix.
17381         (do_vec_conversion, do_vec_narrowing_conversion,
17382         expand_vector_conversion): New functions.
17383         (expand_vector_operations_1): Call expand_vector_conversion
17384         for VEC_CONVERT ifn calls.
17385         * internal-fn.def (VEC_CONVERT): New internal function.
17386         * internal-fn.c (expand_VEC_CONVERT): New function.
17387         * fold-const-call.c (fold_const_vec_convert): New function.
17388         (fold_const_call): Use it for CFN_VEC_CONVERT.
17389         * doc/extend.texi (__builtin_convertvector): Document.
17391 2019-01-07  Tom de Vries  <tdevries@suse.de>
17393         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
17394         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
17395         vector_red_partition, vector_red_sym): New global variables.
17396         (nvptx_option_override): Initialize vector_red_sym.
17397         (nvptx_declare_function_name): Restore red_partition register.
17398         (nvptx_file_end): Emit code to declare the vector reduction variables.
17399         (nvptx_output_red_partition): New function.
17400         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
17401         large vector reductions.
17402         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
17403         (nvptx_init_builtins): Add VECTOR_ADDR.
17404         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
17405         Handle nvptx_expand_shared_addr.
17406         (nvptx_get_shared_red_addr): Add vector argument and handle large
17407         vectors.
17408         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
17409         large vectors.
17410         (nvptx_goacc_reduction_init): Likewise.
17411         (nvptx_goacc_reduction_fini): Likewise.
17412         (nvptx_goacc_reduction_teardown): Likewise.
17413         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
17414         init,fini,teardown}.
17415         (nvptx_init_axis_predicate): Initialize vector_red_partition.
17416         (nvptx_set_current_function): Init vector_red_partition.
17417         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
17418         (nvptx_red_partition): New insn.
17419         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
17421 2019-01-07  Tom de Vries  <tdevries@suse.de>
17423         PR target/85381
17424         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
17425         empty loops.
17427 2019-01-07  Tom de Vries  <tdevries@suse.de>
17429         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
17430         (nvptx_option_override): Init oacc_bcast_partition.
17431         (nvptx_init_oacc_workers): New function.
17432         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
17433         (nvptx_needs_shared_bcast): New function.
17434         (nvptx_find_par): Generalize to enable vectors to use shared-memory
17435         to propagate state.
17436         (nvptx_shared_propagate): Initialize vector bcast partition and
17437         synchronization state.
17438         (nvptx_single):  Generalize to enable vectors to use shared-memory
17439         to propagate state.
17440         (nvptx_process_pars): Likewise.
17441         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
17442         * config/nvptx/nvptx.h (struct machine_function): Add
17443         bcast_partition and sync_bar members.
17445 2019-01-07  Tom de Vries  <tdevries@suse.de>
17447         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
17448         (nvptx_apply_dim_limits): New function.
17449         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
17450         PTX_WARP_SIZE.
17452 2019-01-07  Tom de Vries  <tdevries@suse.de>
17454         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
17455         as late as possible.
17457 2019-01-07  Tom de Vries  <tdevries@suse.de>
17459         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
17460         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
17461         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
17462         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
17463         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
17465 2019-01-07  Tom de Vries  <tdevries@suse.de>
17467         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
17469 2019-01-07  Tom de Vries  <tdevries@suse.de>
17471         * omp-offload.c (oacc_get_min_dim): New function.
17472         * omp-offload.h (oacc_get_min_dim): Declare.
17474 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
17476         PR target/88521
17477         * config/i386/i386.c (function_value_ms_64): Return small sturct in
17478         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
17480 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
17482         PR tree-opt/86020
17483         Revert:
17484         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
17486         * ipa-inline.c (edge_badness): Use inlined_time instead of
17487         inline_summaries->get.
17489 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
17491         * opts.c (enable_fdo_optimizations): Enable
17492         version-loops-for-strides, loop-interchange, unrol-and-jam
17493         and tree-loop-distribution.
17494         * invoke.texi: Document newly enabled options.
17496 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
17498         * doc/invoke.texi (max-inline-insns-small): New parameters.
17499         * ipa-inline.c (want_early_inline_function_p): simplify.
17500         (want_inline_small_function_p): Fix pasto from previous patch;
17501         use max-inline-insns-small bound.
17502         * params.def (max-inline-insns-small): New param.
17503         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
17504         variables correctly.
17506 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
17508         * doc/invoke.texi: Document max-inline-insns-size,
17509         uninlined-function-insns, uninlined-function-time,
17510         uninlined-thunk-insns and uninlined-thunk-time.
17511         * params.def: Add max-inline-insns-size,
17512         uninlined-function-insns, uninlined-function-time,
17513         uninlined-thunk-insns and uninlined-thunk-time.
17514         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
17515         new parameters.
17516         * ipa-inline.c (can_inline_edge_by_limits_p,
17517         want_inline_small_function_p): Use new parameters.
17519 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
17521         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
17523 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
17525         PR middle-end/82564
17526         PR target/88620
17527         * expr.c (expand_assignment): For calls returning VLA structures
17528         if to_rtx is not a MEM, force it into a stack temporary.
17530         PR debug/88635
17531         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
17532         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
17533         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
17534         subexpressions of both operands.
17535         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
17536         subrtxes are CONSTANT_P.
17537         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
17538         2018-11-09 changes.
17540 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
17542         * params.def (hot-bb-count-ws-permille): Set to 990.
17544 2019-01-04  Martin Sebor  <msebor@redhat.com>
17546         PR c/88546
17547         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
17548         leaf.
17550 2019-01-04  Martin Sebor  <msebor@redhat.com>
17552         PR c/88363
17553         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
17555 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
17557         * gdbinit.in: Turn off pagination for the skip commands, restore
17558         it to previous state afterwards.
17560 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
17562         PR target/88594
17563         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
17564         of GET_MODE (opN) as modes of the libcall arguments.
17566 2019-01-04  Jan Beulich  <jbeulich@suse.com>
17568         * config/i386/sse.md
17569         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
17570         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
17571         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17572         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17573         avx512f_vmcmp<mode>3<round_saeonly_name>,
17574         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
17575         avx512f_maskcmp<mode>3,
17576         <avx512>_cvt<ssemodesuffix>2mask<mode>,
17577         <avx512>_cvt<ssemodesuffix>2mask<mode>,
17578         *<avx512>_cvtmask2<ssemodesuffix><mode>,
17579         *<avx512>_cvtmask2<ssemodesuffix><mode>,
17580         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17581         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17582         <avx512>_gt<mode>3<mask_scalar_merge_name>,
17583         <avx512>_gt<mode>3<mask_scalar_merge_name>,
17584         <avx512>_testm<mode>3<mask_scalar_merge_name>,
17585         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
17586         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
17587         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
17588         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
17589         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
17590         avx512cd_maskb_vec_dup<mode>,
17591         avx512cd_maskw_vec_dup<mode>,
17592         avx512dq_fpclass<mode><mask_scalar_merge_name>,
17593         avx512dq_vmfpclass<mode>,
17594         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
17595         instead of =Yk.
17597 2019-01-03  Martin Sebor  <msebor@redhat.com>
17599         PR tree-optimization/88659
17600         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
17602 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
17604         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
17605         unaligned vsx and avoid lxvd2x/stxvd2x.
17606         (gen_lvx_v4si_move): New function.
17608 2019-01-03  Tom de Vries  <tdevries@suse.de>
17610         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
17611         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
17612         function.
17613         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
17615 2019-01-03  Tom de Vries  <tdevries@suse.de>
17617         * config/nvptx/nvptx.c (struct offload_attrs): New.
17618         (populate_offload_attrs): New function.  Factor mask extraction out of
17619         nvptx_reorg.  Add extraction of dimensions.
17620         (nvptx_reorg): Use populate_offload_attrs.
17622 2019-01-03  Tom de Vries  <tdevries@suse.de>
17624         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
17625         cases for oacc_min_dims_p and routine_p.  Add asserts for
17626         oacc_default_dims_p and offload_region_p.
17628 2019-01-03  Tom de Vries  <tdevries@suse.de>
17630         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
17631         factored out of ...
17632         (nvptx_goacc_validate_dims): ... here.
17634 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
17636         PR tree-optimization/85574
17637         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
17638         structure.
17639         (struct ssa_equip_hash_traits): Declare.
17640         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
17642 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
17644         PR debug/88644
17645         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
17646         change it to qualified_type.
17648 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
17650         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
17651         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
17653 2019-01-02  Martin Sebor  <msebor@redhat.com>
17654             Jeff Law  <law@redhat.com>
17656         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
17657         (get_range_strlen_tree): Update appropriately.
17658         (get_range_strlen)
17659         * gimple-fold.h (get_range_strlen): Drop unused last argument.
17661         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
17662         rather than set_range_info.
17663         * tree-ssa-strlen.c (set_strlen_range): Extracted from
17664         maybe_set_strlen_range.  Handle potentially boundary crossing
17665         cases more conservatively.
17666         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
17667         Call set_strlen_range.
17668         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
17670         PR middle-end/88663
17671         * gimple-fold.c (get_range_strlen): Update prototype to no longer
17672         need the flexp argument.
17673         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
17674         from calls to get_range_strlen.  Update comments.  Just update
17675         VAL for an unterminated const char array and let the reset of the
17676         code handle it normally.  No longer try to set *flexp.  Adjust
17677         return value.
17678         (get_range_strlen): Update for the new get_range_strlen API.
17679         (get_maxval_strlen): Similarly.
17680         (gimple_fold_builtin_strlen): Handle update meaning of return value
17681         from get_range_strlen.
17682         * gimple-ssa-sprintf.c (get_string_length): Update for the new
17683         get_range_strlen API.
17685 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
17687         PR lto/88130
17688         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17689         false at WPA time when body was removed.
17691 2019-01-02  Martin Liska  <mliska@suse.cz>
17693         PR tree-optimization/88650
17694         * predict.c (set_even_probabilities): Calculate probability
17695         remainer only when really used.
17697 2019-01-02  Richard Biener  <rguenther@suse.de>
17699         PR middle-end/88651
17700         * tree-data-ref.c (analyze_subscript_affine_affine): Use
17701         widest_ints when mangling max_stmt_execution results.
17703 2019-01-02  Richard Biener  <rguenther@suse.de>
17705         PR tree-optimization/88621
17706         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17707         bitfields when canoncalizing.
17709 2019-01-02  Richard Biener  <rguenther@suse.de>
17711         PR target/87545
17712         * config/i386/x86-tune-costs.h (intel_cost): Adjust
17713         cost of cheap SSE instruction.
17715 2019-01-02  Richard Biener  <rguenther@suse.de>
17717         PR ipa/85574
17718         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17719         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17720         function.
17721         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17722         set after UIDs before splitting them.
17724 2019-01-01  Martin Sebor  <msebor@redhat.com>
17725             Jeff Law  <law@redhat.com>
17727         * gimple-fold.c (get_range_strlen_tree): Record if the computed
17728         length is optimistic.  If it is, then arrange to compute the
17729         conservative length as well.
17731         * gimple-fold.h (get_range_strlen): Update prototype.
17732         * builtins.c (check_access): Update call to get_range_strlen to use
17733         c_strlen_data pointer.   Change various variable accesses to instead
17734         pull data from the c_strlen_data structure.
17735         (check_strncat_sizes, expand_builtin_strncat): Likewise.
17736         * calls.c (maybe_warn_nonstring_arg): Likewise.
17737         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
17738         minimum length if maximum lengh is unknown.
17739         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
17740         that used c_strlen, it's no longer needed.  Restructure slightly.
17741         (format_string): Set unlikely range appropriately.
17742         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
17743         formatting issues.
17744         (get_range_strlen):  Accept c_strlen_data pointer for external
17745         call sites as well.  Pass through to call to internal get_range_strlen.
17746         Adjust minlen, maxlen and maxbound as needed.
17747         (get_maxval_strlen): Update comments.
17748         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
17749         to use c_strlen_data pointer.  Change variable accesses to instead
17750         use c_strlen_data data members.
17752         * gimple-fold.c (get_range_strlen): Update prototype.
17753         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
17754         local variables.  Use pdata to return information to caller.
17755         Update calls to get_range_strlen.  Update pdata->maxbound.
17756         (get_range_strlen -- static version): Similarly.
17757         (get_range_strlen -- extern version): Update for internal
17758         get_range_strlen API change.  Convert to external data format.
17759         (get_maxval_strlen): Similarly.
17761 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
17763         * coverage.c (get_coverage_counts): Use current_function_decl.
17764         * profile.c (read_thunk_profile): New function.
17765         (branch_prob): Add THUNK parameter.
17766         * tree-profile.c (tree_profiling): Handle thunks.
17767         * value-prof.c (init_node_map): Handle thunks.
17768         * value-prof.h (branch_prob): Upate prototype.
17769         (read_thunk_profile): Declare.
17771 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
17773         Update copyright years.
17775         * gcc.c (process_command): Update copyright notice dates.
17776         * gcov-dump.c (print_version): Ditto.
17777         * gcov.c (print_version): Ditto.
17778         * gcov-tool.c (print_version): Ditto.
17779         * gengtype.c (create_file): Ditto.
17780         * doc/cpp.texi: Bump @copying's copyright year.
17781         * doc/cppinternals.texi: Ditto.
17782         * doc/gcc.texi: Ditto.
17783         * doc/gccint.texi: Ditto.
17784         * doc/gcov.texi: Ditto.
17785         * doc/install.texi: Ditto.
17786         * doc/invoke.texi: Ditto.
17788 Copyright (C) 2019 Free Software Foundation, Inc.
17790 Copying and distribution of this file, with or without modification,
17791 are permitted in any medium without royalty provided the copyright
17792 notice and this notice are preserved.