omp-low.c (lower_rec_input_clauses): For lastprivate conditional references...
[official-gcc.git] / gcc / ChangeLog
blobcc706e207b57eab316e3be6106fd636d8ddf36d3
1 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
3         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
4         references, lookup in in hash map MEM_REF operand instead of the
5         MEM_REF itself.
6         (lower_omp_1): When looking for lastprivate conditional assignments,
7         handle MEM_REFs with REFERENCE_TYPE operands.
9         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
11         and references a VLA.  Handle references to non-VLAs if is_simd
12         all privatization clauses like reductions.
13         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14         If omp_is_reference, use always omp simd arrays and set
15         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16         fails, emit reference initialization.
18 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
20         PR target/89803
21         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22         _mm_mask_fpclass_sd_mask): New intrinsics.
23         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24         * config/i386/i386-builtin.def
25         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
26         New builtins.
27         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
28         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
29         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
30         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
31         case QI_FTYPE_V2SF_INT): Ditto.
32         * config/i386/sse.md
33         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
34         Extended to insnstructions with mask operands.
36 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
38         * config/rs6000/constraints.md (define_register_constraint "wp"):
39         Delete.
40         (define_register_constraint "wq"): Delete.
41         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
42         (rs6000_init_hard_regno_mode_ok): Adjust.
43         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
44         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
45         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
46         (define_mode_attr VSa): Delete.
47         (define_mode_attr VSisa): New.
48         (rest of file): Adjust.
49         * doc/md.texi (Machine Constraints): Adjust.
51 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
53         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
54         (define_attr "enabled"): Handle those new isa values.
56 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
58         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
59         (define_mode_attr VSr5): Delete.
60         (define_mode_attr VStype_sqrt): Delete.
61         (define_mode_iterator VSX_SPDP): Delete.
62         (define_mode_attr VS_spdp_res): Delete.
63         (define_mode_attr VS_spdp_insn): Delete.
64         (define_mode_attr VS_spdp_type): Delete.
65         (*vsx_sqrt<mode>2): Adjust.
66         (vsx_<VS_spdp_insn>): Delete, split to...
67         (vsx_xscvdpsp): ... this.  New.  And...
68         (vsx_xvcvspdp): ... this.  New.  And...
69         (vsx_xvcvdpsp): ... this.  New.
71 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
73         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
74         and V2DF.
75         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
76         (rest of file): Adjust.
78 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
80         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
81         (vsx_extract_<mode>_var): Ditto.
83 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
85         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
86         with just "wa".
88 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
90         * config/rs6000/constraints.md (define_register_constraint "ww"):
91         Delete.
92         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
93         (rs6000_init_hard_regno_mode_ok): Adjust.
94         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
95         RS6000_CONSTRAINT_ww.
96         * config/rs6000/rs6000.md: Adjust.
97         * config/rs6000/vsx.md: Adjust.
98         * doc/md.texi (Machine Constraints): Adjust.
100 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
102         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
103         (define_mode_attr sd): New.
104         (define_mode_attr s): New.
105         (define_mode_attr Ftrad): Delete.
106         (define_mode_attr Fvsx): Delete.
107         (define_mode_attr Fs): Delete.
108         (rest of file): Use the new mode attributes.
109         * config.rs6000/vsx.md: Use the new mode attributes.
111 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
113         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
114         with just "wa".
116 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
118         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
119         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
120         used with VSX_B, VSX_D, or VSX_F, with just "wa".
122 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
124         PR target/78263
125         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
126         C++ with strict ANSI requirements.
128 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
130         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
131         computations when step is 1.
133 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
135         * config/rs6000/constraints.md (define_register_constraint "wf"):
136         Delete.
137         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
138         (rs6000_init_hard_regno_mode_ok): Adjust.
139         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
140         RS6000_CONSTRAINT_wf.
141         * config/rs6000/rs6000.md: Adjust.
142         * config/rs6000/vsx.md: Adjust.
143         * doc/md.texi (Machine Constraints): Adjust.
145 2019-06-04  Andrew Pinski  <apinski@marvell.com>
147         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
148         Fix ILP32 value.
150 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
152         * config/rs6000/constraints.md (define_register_constraint "wd"):
153         Delete.
154         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
155         (rs6000_init_hard_regno_mode_ok): Adjust.
156         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
157         RS6000_CONSTRAINT_wd.
158         * config/rs6000/rs6000.md: Adjust.
159         * config/rs6000/vsx.md: Adjust.
160         * doc/md.texi (Machine Constraints): Adjust.
162 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
164         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
165         (rest of file): Adjust.
167 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
169         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
170         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
171         (vsx_splat_<mode>_reg): Adjust.
173 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
175         * config/rs6000/constraints.md (define_register_constraint "ws"):
176         Delete.
177         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
178         (rs6000_init_hard_regno_mode_ok): Adjust.
179         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
180         RS6000_CONSTRAINT_ws.
181         * config/rs6000/rs6000.md: Adjust.
182         * config/rs6000/vsx.md: Adjust.
183         * doc/md.texi (Machine Constraints): Adjust.
185 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
187         * config/rs6000/constraints.md (define_register_constraint "wv"):
188         Delete.
189         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
190         (rs6000_init_hard_regno_mode_ok): Adjust.
191         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
192         RS6000_CONSTRAINT_wv.
193         * config/rs6000/rs6000.md: Adjust.
194         * config/rs6000/vsx.md: Adjust.
195         * doc/md.texi (Machine Constraints): Adjust.
197 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
199         * config/rs6000/constraints.md (define_register_constraint "wi"):
200         Delete.
201         (define_register_constraint "wt"): Delete.
202         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
203         (rs6000_init_hard_regno_mode_ok): Adjust.
204         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
205         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
206         * config/rs6000/rs6000.md: Adjust.
207         * config/rs6000/vsx.md: Adjust.
208         * doc/md.texi (Machine Constraints): Adjust.
210 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
212         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
213         const.
214         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
215         default_elf_asm_output_external.
217 2019-06-04  Martin Liska  <mliska@suse.cz>
219         * ipa-icf.c (INCLUDE_LIST): Remove.
220         (sem_item_optimizer::execute): Remove call to init_wpa.
221         * ipa-icf.h (init_wpa): Remove.
223 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
225         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
226         conditional on combined for simd.
227         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
228         member.
229         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
230         constructs, don't remove lastprivate_conditional_map, but instead set
231         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
232         to parent construct temporaries.
233         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
234         like !ctx->lastprivate_conditional_map.
235         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
236         use up->outer context instead of up.
237         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
238         gimple_omp_for_combined_p.
239         (expand_omp_for_static_nochunk): Likewise.
240         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
241         probably moved over into expand_omp_for_generic rather than being copied
242         there.
244 2019-06-04  Martin Liska  <mliska@suse.cz>
246         * value-prof.c (dump_histogram_value): Fix typo.
247         (gimple_mod_subtract_transform): Likewise.
249 2019-06-04  Richard Biener  <rguenther@suse.de>
251         PR middle-end/90726
252         * tree-chrec.c (chrec_contains_symbols): Add to visited.
253         (tree_contains_chrecs): Likewise.
254         (chrec_contains_symbols_defined_in_loop): Move here and avoid
255         exponential behaivor from ...
256         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
257         ... here.
258         (expression_expensive_p): Avoid exponential behavior and compute
259         expanded size, rejecting any expansion.
260         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
261         (idx_contains_abnormal_ssa_name_p): Likewise.
262         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
263         (contains_abnormal_ssa_name_p): Simplify and use
264         walk_tree_without_duplicates.
266 2019-06-04  Richard Biener  <rguenther@suse.de>
268         PR tree-optimization/90738
269         Revert
270         2019-06-03  Richard Biener  <rguenther@suse.de>
272         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
273         full reference tree and record in ref->ref.
274         (vn_reference_lookup_3): Pass in original ref to
275         ao_ref_init_from_vn_reference.
276         (vn_reference_lookup): Likewise.
277         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
278         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
279         Handle non-decl bases in the original reference.
281 2019-06-04  Martin Liska  <mliska@suse.cz>
283         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
284         number of references.
285         (sem_item_optimizer::do_congruence_step):
286         (sem_item_optimizer::worklist_push): Dump how references
287         a class has.
288         (sem_item_optimizer::worklist_pop): Use heap.
289         (sem_item_optimizer::process_cong_reduction): Likewise.
290         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
292 2019-06-04  Martin Liska  <mliska@suse.cz>
294         * ipa-icf.h (struct sem_usage_pair_hash): New.
295         (sem_usage_pair_hash::hash): Likewise.
296         (sem_usage_pair_hash::equal): Likewise.
297         (struct sem_usage_hash): Likewise.
298         * ipa-icf.c (sem_item::sem_item): Initialize
299         referenced_by_count.
300         (sem_item::add_reference): Register a reference
301         in ref_map and not in target->usages.
302         (sem_item::setup): Remove initialization of
303         dead vectors.
304         (sem_item::~sem_item): Remove usage of dead vectors.
305         (sem_item::dump): Remove dump of references.
306         (sem_item_optimizer::sem_item_optimizer): Initialize
307         m_references.
308         (sem_item_optimizer::read_section): Remove useless
309         dump.
310         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
311         (sem_item_optimizer::build_graph): Pass m_references
312         to ::add_reference.
313         (sem_item_optimizer::verify_classes): Remove usage of dead
314         vectors.
315         (sem_item_optimizer::traverse_congruence_split): Return true
316         when a class is split.
317         (sem_item_optimizer::do_congruence_step_for_index): Use
318         hash_map for look up of (sem_item *, index). That brings
319         significant speed up.
320         (sem_item_optimizer::do_congruence_step): Return true
321         when a split is done.
322         (congruence_class::is_class_used): Use referenced_by_count.
324 2019-06-04  Alan Modra  <amodra@gmail.com>
326         PR target/90689
327         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
328         error.
330 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
332         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
333         * config/rs6000/rs6000.c (direct_move_p): Adjust.
334         (rs6000_secondary_reload_simple_move): Adjust.
335         (rs6000_opt_masks): Neuter the "mfpgpr" option.
336         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
337         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
338         comment.
339         (power6x): Adjust.
340         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
341         (floatunssi<mode>2_lfiwzx): Adjust.
342         (fix_trunc<mode>si2_stfiwx): Adjust.
343         (fixuns_trunc<mode>si2_stfiwx): Adjust.
344         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
345         (mfpgpr): Mark as deprecated.
346         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
347         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
348         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
350 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
352         * config/rs6000/constraints.md (define_register_constraint "wg"):
353         Delete.
354         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
355         RS6000_CONSTRAINT_wg.
356         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
357         (rs6000_init_hard_regno_mode_ok): Adjust.
358         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
359         Delete "wg" alternatives.
360         * doc/md.texi (Machine Constraints): Adjust.
362 2019-06-03  Alan Modra  <amodra@gmail.com>
364         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
365         (get_uncond_jump_length): Assert length less than INT_MAX and
366         non-negative.
368 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
370         PR middle-end/64242
371         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
372         block.
373         (expand_builtin_nonlocal_goto): Likewise.
375 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
377         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
378         (aarch64_asm_output_external): Declare.
379         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
380         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
381         (aarch64_asm_output_alias): New.
382         (aarch64_asm_output_external): New.
383         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
384         (ASM_OUTPUT_EXTERNAL): Define.
386 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
387         * tree-vrp.h (value_range_base::nonzero_p): New.
388         (value_range_base::set_nonnull): Rename to...
389         (value_range_base::set_nonzero): ...this.
390         (value_range_base::set_null): Rename to...
391         (value_range_base::set_zero): ...this.
392         (value_range::set_nonnull): Remove.
393         (value_range::set_null): Remove.
394         * tree-vrp.c (range_is_null): Remove.
395         (range_is_nonnull): Remove.
396         (extract_range_from_binary_expr): Use value_range_base::*zero_p
397         instead of range_is_*null.
398         (extract_range_from_unary_expr): Same.
399         (value_range_base::set_nonnull): Rename to...
400         (value_range_base::set_nonzero): ...this.
401         (value_range::set_nonnull): Remove.
402         (value_range_base::set_null): Rename to...
403         (value_range_base::set_zero): ...this.
404         (value_range::set_null): Remove.
405         (extract_range_from_binary_expr): Rename set_*null uses to
406         set_*zero.
407         (extract_range_from_unary_expr): Same.
408         (union_helper): Same.
409         * vr-values.c (get_value_range): Use set_*zero instead of
410         set_*null.
411         (vr_values::extract_range_from_binary_expr): Same.
412         (vr_values::extract_range_basic): Same.
414 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
416         PR driver/90684
417         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
419 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
421         * config/aarch64/iterators.md (MAX_OPP): New code attr.
422         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
423         (aarch64_<su>abd<mode>_3): ... This.
424         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
426 2019-06-03  Richard Biener  <rguenther@suse.de>
428         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
429         full reference tree and record in ref->ref.
430         (vn_reference_lookup_3): Pass in original ref to
431         ao_ref_init_from_vn_reference.
432         (vn_reference_lookup): Likewise.
433         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
434         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
435         Handle non-decl bases in the original reference.
437 2019-06-03  Martin Liska  <mliska@suse.cz>
439         * doc/generic.texi: Remove Java Trees.
441 2019-06-03  Martin Liska  <mliska@suse.cz>
443         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
444         returns 0 when operands are equal.
446 2019-06-03  Richard Biener  <rguenther@suse.de>
448         PR tree-optimization/90716
449         * tree-loop-distribution.c (destroy_loop): Process blocks in
450         correct order.
452 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
454         PR target/88837
455         * vector-builder.h (vector_builder::count_dups): New method.
456         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
457         Declare prototype.
458         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
459         (vec_init<mode><Vel>): New pattern.
460         * config/aarch64/aarch64.c (emit_insr): New function.
461         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
462         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
463         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
464         (aarch64_sve_expand_vector_init): Define two overloaded functions.
466 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
468         PR tree-optimization/90681
469         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
470         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
471         special case for SLP, but fail on non-groupped loads.
473 2019-06-03  Martin Liska  <mliska@suse.cz>
475         * cfg.c (debug): Use TDF_DETAILS for debug and
476         print edge info only once.
478 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
480         PR fortran/90539
481         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
483 2019-06-01  Martin Sebor  <msebor@redhat.com>
485         PR middle-end/90694
486         * tree-pretty-print.c (dump_generic_node): Add parentheses.
488 2019-05-31  Jan Hubicka  <jh@suse.cz>
490         * alias.c: Include ipa-utils.h.
491         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
492         * ipa-devirt.c (prevailing_odr_type): New.
493         * ipa-utils.h (previaling_odr_type): Declare.
495 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
496             Hongtao Liu  <hongtao.liu@intel.com>
498         PR target/89355
499         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
500         NOTE_INSN_DELETED_LABEL check.
502 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
503             Robert Suchanek  <robert.suchanek@mips.com>
505         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
506         and 3rd operands of the fmadd/fmsub/maddv builtin.
508 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
510         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
511         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
512         on OMP_SIMD if not nested inside of worksharing loop that also has
513         lastprivate conditional clause for the same decl.
514         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
515         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
516         on simd.
517         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
518         on simd construct.
519         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
520         on simd construct.
521         (lower_lastprivate_clauses): Likewise.
522         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
523         calling lower_rec_input_clauses.
524         (lower_omp_for): Likewise.
525         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
526         clause on simd construct.
527         * omp-expand.c (expand_omp_simd): Initialize cond_var if
528         OMP_CLAUSE__CONDTEMP_ clause is present.
530         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
531         ivar and lvar.
533 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
535         PR c/43673
536         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
537         TEX_D32, TEX_D64 or TEX_D128.
539 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
541         * match.pd (~(vec?cst1:cst2)): New transformation.
543 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
545         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
546         ((size_t)(A /[ex] B) CMP C): New transformation.
548 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
550         * doc/md.texi: Document define_insn_and_rewrite.
551         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
552         * gensupport.c (queue_elem): Update comment.
553         (replace_operands_with_dups): New function.
554         (gen_rewrite_sequence): Likewise.
555         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
556         * read-rtl.c (apply_subst_iterator): Likewise.
557         (add_condition_to_rtx, named_rtx_p): Likewise.
558         (rtx_reader::read_rtx_operand): Likewise.
559         * config/aarch64/aarch64-sve.md
560         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
561         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
562         define_insn_and_rewrite.
563         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
564         Remove separate define_split.
566 2019-05-31  Jan Hubicka  <jh@suse.cz>
568         * tree-ssa-alias.c (type_has_components_p): New function.
569         (aliasing_component_refs_p): Use it.
571 2019-05-31  Martin Liska  <mliska@suse.cz>
573         * gdbhooks.py: Add const_tree to TreePrinter.
575 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
577         PR debug/86964
578         * common.opt (feliminate-unused-debug-symbols): Enable by default.
579         * doc/invoke.texi (Debugging Options): Document new default of
580         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
582 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
584         PR tree-optimization/90671
585         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
586         template_block used to be empty on the first call, don't use
587         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
588         seq with bb_seq and set it with set_bb_seq.
590 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
592         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
594 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
595             Michael Meissner  <meissner@linux.ibm.com>
597         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
598         (prefixed_mem_operand): Likewise.
599         (non_prefixed_mem_operand): Likewise.
600         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
601         prototype.
602         * config/rs6000/rs6000.c (print_operand_address): Handle
603         PC-relative addresses.
604         (mode_supports_prefixed_address_p): New function.
605         (rs6000_prefixed_address): New function.
606         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
607         (SYMBOL_REF_PCREL_P): Likewise.
609 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
611         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
612         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
613         (gimplify_omp_for): If worksharing loop with lastprivate conditional
614         is nested inside of parallel region, add _condtemp_ clause to both.
615         * tree-nested.c (convert_nonlocal_omp_clauses,
616         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
617         assertion failure.
618         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
619         member.
620         * omp-general.c (omp_extract_for_data): Compute it.
621         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
622         (lower_rec_input_clauses): Likewise.
623         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
624         clause is already present, just add one further one after it.
625         (lower_lastprivate_clauses): Handle cond_ptr with array type.
626         (lower_send_shared_vars): Clear _condtemp_ vars.
627         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
628         or section or taskgroup.
629         * omp-expand.c (determine_parallel_type): Disallow combining only if
630         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
631         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
632         (expand_omp_for_generic, expand_omp_for_static_nochunk,
633         expand_omp_for_static_chunk, expand_omp_for): Use
634         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
635         determine if a special set of API routines are needed and if condtemp
636         needs to be initialized, while always initialize cond_var if
637         fd->lastprivate_conditional is non-zero.
639 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
640             Michael Meissner  <meissner@linux.ibm.com>
642         * config/rs6000/constraints.md (eI): New constraint.
643         * config/rs6000/predicates.md (cint34_operand): New predicate.
644         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
645         (SIGNED_34BIT_OFFSET_P): Likewise.
646         * doc/md.texi (eI): Document constraint.
648 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
650         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
652 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
653             Michael Meissner  <meissner@linux.ibm.com>
655         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
656         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
657         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
658         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
659         (OTHER_FUTURE_MASKS): Likewise.
660         (POWERPC_MASKS): Likewise.
661         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
662         specified without -mprefixed-addr or -mcpu=future.  Error if
663         -mprefixed-addr is specified without -mcpu=future.
664         (rs6000_opt_masks): Add entry for prefixed-addr.
665         * rs6000.opt (mprefixed-addr): New option.
667 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
669         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add 
670         cfun->is_thunk check.
672 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
674         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
675         to length.
677 2019-05-30  Martin Liska  <mliska@suse.cz>
679         * gdbinit.in: Fix 'ptc' command.  Add trt
680         that prints TREE_TYPE($).
682 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
683             Alan Modra  <amodra@gmail.com>
685         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
686         calls here...
687         (rs6000_indirect_call_template_1): ...and here.
688         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
689         plt16_ha, plt16_lo, mtctr indirect calls.  Use
690         rs6000_pltseq_enum.
691         (rs6000_decl_ok_for_sibcall): New function.
692         (rs6000_function_ok_for_sibcall): Refactor.
693         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
694         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
695         when pcrel.  Reorganize.
696         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
697         * rs6000.h (rs6000_pltseq_enum): New enum.
698         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
699         (*pltseq_tocsave): Use rs6000_pltseq_enum.
700         (*pltseq_plt16_ha): Likewise.
701         (*pltseq_plt16_lo): Likewise.
702         (*pltseq_mtctr): Likewise.
703         (*pltseq_plt_pcrel): New insn.
704         (*call_local_aix): Handle @notoc calls.
705         (*call_value_local_aix): Likewise.
706         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
707         (*call_value_nonlocal_aix): Likewise.
708         (*call_indirect_pcrel): New insn.
709         (*call_value_indirect_pcrel): Likewise.
712 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
714         * config/i386/sse.md (*save_multiple<mode>): Rename from
715         save_multiple<mode>.
716         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
717         (*restore_multiple_and_return<mode>): Rename from
718         restore_multiple_and_return<mode>.
719         (*restore_multiple_leave_return<mode>): Rename from
720         restore_multiple_leave_return<mode>.
722 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
724         * config.gcc (rx-*-linux*): New target.
725         * config/rx/elf.opt: New file.
726         * config/rx/linux.h: Likewise.
727         * config/rx/t-linux: Likewise.
728         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
729         make it zero.
730         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
731         (ASM_APP_OFF): Likewise.
732         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
733         moved elsewhere.
735 2019-05-29  Jan Hubicka  <jh@suse.cz>
737         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
738         variants are pointer equivalent.
740 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
742         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
743         * config/aarch64/aarch64-sve2.md: New file.
744         (<u>avg<mode>3_floor): New pattern.
745         (<u>avg<mode>3_ceil): Likewise.
746         (*<sur>h<addsub><mode>): Likewise.
747         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
748         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
750 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
752         PR bootstrap/90543
753         * optc-save-gen.awk: In cl_optimization_print, use correct condition
754         for var_opt_string printing.  In cl_optimization_print_diff, print
755         (null) instead of invoking undefined behavior if one of the
756         var_opt_string pointers is NULL and use && instead of first || in the
757         guarding condition.  For var_target_other options, handle const char *
758         target variables similarly to const char * optimize node variables.
760 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
762         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
763         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
764         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
765         Add autib1716 and pacib1716 initialisation.
766         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
767         for autib1716 and pacib1716.
768         * config/aarch64/aarch64-protos.h (aarch64_key_type,
769         aarch64_post_cfi_startproc): Define.
770         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
771         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
772         aarch64_handle_pac_ret_protection): Set default sign key to A.
773         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
774         aarch64_expand_prologue): Add check for b-key.
775         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
776         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
777         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
778         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
779         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
780         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
781         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
782         * config/aarch64/aarch64.md (do_return): Add check for b-key.
783         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
784         pauth_hint_num_a with pauth_hint_num.
785         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
786         pauth_hint_num_a with pauth_hint_num.
787         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
788         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
789         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
790         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
791         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
792         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
793         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
794         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
795         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
796         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
797         UNSPEC_AUTIA1716 respectively.
798         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
799         and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
800         * doc/invoke.texi (-mbranch-protection): Add b-key type.
801         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
802         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
804 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
806         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
807         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
808         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
809         explicit clause on combined parallel into implicit shared clause.
810         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
811         and firstprivate if the decl has one too from combined parallel to
812         the worksharing construct.
814 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
815             Michael Meissner  <meissner@linux.ibm.com>
817         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
819 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
821         * rtl.h (LABEL_REF_P): New #define.
823 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
825         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
827 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
829         * internal-fn.c: Marked mask_load_direct as vectorizable.
830         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
831         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
832         combined even if masks different with allow_slp_p param.
833         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
834         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
835         dissolve SLP-only vectorizable groups when SLP has been discarded.
836         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
837         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
838         masks.
839         (vect_build_slp_tree_1): Fixed comment typo.
840         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
841         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
842         loads for SLP only.
843         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
844         vectorizable.
845         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
847 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
849         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
850         Remove obsolete use_thunk reference.
851         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
852         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
853         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
854         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
855         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
856         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
857         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
858         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
859         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
861 2019-05-28  Nathan Sidwell  <nathan@acm.org>
863         * tree.h (IDENTIFIER_ANON_P): New.
864         (anon_aggrname_format, anon_aggname_p): Don't declare.
865         (make_anon_name): Declare.
866         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
867         (hash_tree): Likewise.
868         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
869         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
870         (anon_cnt, make_anon_name): New.
872 2019-05-28  Martin Liska  <mliska@suse.cz>
874         PR other/90315
875         * opts-global.c (decode_options): Print help for all
876         help_option_arguments.
877         * opts.c (print_help): Add new argument.
878         (common_handle_option): Remember all values into
879         help_option_arguments.
880         * opts.h (print_help): Add new argument.
882 2019-05-28  Martin Liska  <mliska@suse.cz>
884         PR ipa/90555
885         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
886         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
887         (func_checker::compare_bb): Call compare_loops.
889 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
891         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
892         on sections construct.
893         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
894         construct.
895         (lower_omp_sections): Handle lastprivate conditional.
896         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
897         lastprivate_conditional_map.
898         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
900         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
901         critical, taskgroup and section regions when looking for a region
902         with non-NULL lastprivate_conditional_map.
904 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
906         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
907         (*ix86_gen_sub3): Ditto.
908         (*ix86_gen_sub3_carry): Ditto.
909         (*ix86_gen_one_cmpl2): Ditto.
910         (*ix86_gen_andsp): Ditto.
911         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
912         (gen_and2_insn): New static function.
913         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
914         Use gen_add3_insn instead of ix86_gen_add3.
915         (ix86_expand_split_stack_prologue): Use gen_add2_insn
916         instead of ix86_gen_add3.
917         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
918         Use gen_sub3_insn instead of ix86_gen_sub3.
919         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
920         instead of ix86_gen_add3.
921         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
922         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
923         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
924         * config/i386/i386-options.c (ix86_option_override_internal):
925         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
926         ix86_gen_one_cmpl2 and ix86_gen_andsp.
928 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
930         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
931         and DW_OP_GNU_const_index opcodes.
933 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
935         * config/i386/i386.h (STACK_SIZE_MODE): Define.
937 2019-05-27  Richard Biener  <rguenther@suse.de>
939         PR tree-optimization/90637
940         * tree-ssa-sink.c (statement_sink_location): Honor the
941         computed sink location for single-uses.
943 2019-05-27  Richard Biener  <rguenther@suse.de>
945         PR middle-end/90610
946         * match.pd (vec_perm): Avoid clobbering op0 when not generating
947         a bit-insert.
949 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
951         * config/i386/i386.md (@sub<mode>3_carry): Rename
952         from sub<mode>3_carry.
953         (@leave_<mode>): New expander.
954         (*leave): Rename from leave.
955         (*leave_rex64): Rename from leave_rex64.
956         (@monitorx_<mode>): Rename from monitorx_<mode>.
957         (@clzero_<mode>): Rename from clzero_<mode>.
958         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
959         from sse3_monitor_<mode>.
960         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
961         (*ix86_gen_leave): Ditto.
962         (*ix86_gen_monitor): Ditto.
963         (*ix86_gen_monitorx): Ditto.
964         (*ix86_gen_clzero): Ditto.
965         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
966         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
967         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
968         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
969         Use gen_sse3_monitor instead of ix86_gen_monitor.
970         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
971         instead of ix86_gen_monitorx.
972         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
973         instead of ix86_gen_clzero.
974         * config/i386/i386-options.c (ix86_option_override_internal):
975         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
976         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
978 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
980         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
981         Rename from tls_global_dynamic_64_<mode>.
982         (@tls_local_dynamic_base_64_<mode>): Rename from
983         tls_local_dynamic_base_64_<mode>.
984         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
985         Remove indirect function.
986         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
987         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
988         instead of ix86_gen_tls_global_dynamic_64.
989         Use gen_tls_local_dynamic_base_64 instead of
990         ix86_gen_tls_local_dynamic_base_64.
991         * config/i386/i386-options.c (ix86_option_override_internal):
992         Do not initialize ix86_gen_tls_global_dynamic_64 and
993         ix86_gen_tls_local_dynamic_base_64.
995 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
997         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
998         Rename from pro_epilogue_adjust_stack_<mode>_add.
999         (@pro_epilogue_adjust_stack_sub_<mode>)
1000         Rename from pro_epilogue_adjust_stack_<mode>_sub.
1001         (@allocate_stack_worker_probe_<mode>):
1002         Rename from allocate_stack_worker_probe_<mode>.
1003         (allocate_stack): Use gen_allocate_stack_worker_probe.
1004         (probe_stack): Use gen_probe_stack_1.
1005         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1006         (@adjust_stack_and_probe_<mode>): Rename from
1007         adjust_stack_and_probe<mode>.
1008         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1009         (stack_protect_set): Use gen_stack_protect_set_1.
1010         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1011         (stack_protect_test): Use gen_stack_protect_test_1.
1012         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1013         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1014         Remove indirect function.
1015         (*ix86_gen_adjust_stack_and_probe): Ditto.
1016         (*ix86_gen_probe_stack_range): Ditto.
1017         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1018         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1019         (ix86_adjust_stack_and_probe_stack_clash): Use
1020         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1021         (ix86_adjust_stack_and_probe): Ditto.
1022         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1023         of ix86_gen_probe_stack_range.
1024         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
1025         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1026         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1027         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
1028         CODE_FOR_stack_protect_test_{si,di}.
1029         * config/i386/i386-options.c (ix86_option_override_internal):
1030         Do not initialize ix86_gen_allocate_stack_worker,
1031         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1033 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
1035         * doc/invoke.texi (Link Options): Many editorial changes around
1036         -flinker-output.
1038 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1040         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1041         pre-Solaris 11 referene and most Studio compiler details.
1043 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
1045         PR target/90530
1046         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1047         DImode to SImode in floating-point registers on 64-bit target.
1048         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1049         register_operand in xmpyu patterns.
1051 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
1053         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1054         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1055         OMP_CLAUSE__REDUCTEMP_.
1056         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1057         OMP_CLAUSE__CONDTEMP_.
1058         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1059         * tree-pretty-print.c (dump_omp_clause): Likewise.
1060         * tree-nested.c (convert_nonlocal_omp_clauses,
1061         convert_local_omp_clauses): Likewise.
1062         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1063         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
1064         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1065         on OMP_FOR.
1066         (gimplify_omp_for): Warn and disable conditional modifier from
1067         lastprivate on loop iterators.
1068         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1069         member.
1070         * omp-general.c (omp_extract_for_data): Initialize it.
1071         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1072         member.
1073         (delete_omp_context): Delete it.
1074         (lower_lastprivate_conditional_clauses): New function.
1075         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1076         handle lastprivate conditional clauses.
1077         (lower_reduction_clauses): Add CLIST argument, emit it into
1078         the critical section if any.
1079         (lower_omp_sections): Adjust lower_lastprivate_clauses and
1080         lower_reduction_clauses callers.
1081         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1082         to lower_lastprivate_clauses.
1083         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1084         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1085         clist into a critical section if not emitted there already by
1086         lower_reduction_clauses.
1087         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1088         callers.
1089         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1090         conditional variables.
1091         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1092         clause is present.
1093         (expand_omp_for_generic, expand_omp_for_static_nochunk,
1094         expand_omp_for_static_chunk): Handle lastprivate conditional.
1095         (expand_omp_for): Handle fd.lastprivate_conditional like
1096         fd.have_reductemp.
1098 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
1100         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1101         kernel does not exit cleanly.
1102         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1104 2019-05-24  Jason Merrill  <jason@redhat.com>
1106         Revert:
1107         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1109 2019-05-24  Richard Biener  <rguenther@suse.de>
1111         PR testsuite/90607
1112         * tree-loop-distribution.c (struct partition): Add location
1113         member.
1114         (partition_alloc): Initialize all fields.
1115         (generate_memset_builtin): Use the location recorded in the
1116         partition for the generated call.
1117         (generate_memcpy_builtin): Likewise.
1118         (classify_partition): Record the location of a single store
1119         as location for the partition.
1121 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
1123         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1124         for lo-part.
1126 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
1128         PR target/90588
1129         * common/config/aarch64/aarch64-common.c
1130         (aarch64_rewrite_selected_cpu): Change local temporary variable
1131         type from unsigned long to uint64_t.
1132         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1133         aarch64_get_extension_string_for_isa_flags): Change declaration to
1134         match new definition by replacing unsigned long with uint64_t.
1136 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
1138         PR target/90568
1139         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1140         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
1141         Handle stack_protect_test_<mode> codegen similarly to corresponding
1142         sub instruction.
1144 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
1146        * config/i386/darwin.h: Reject -mfentry*.
1147        * doc/sourcebuild.texi: Document mfentry target support.
1149 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
1151         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1152         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
1153         false for PC-relative functions.
1154         (rs6000_output_function_prologue): Change called function name to
1155         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
1156         name,1" for PC-relative functions.
1157         (rs6000_elf_declare_function_name): Change called function name to
1158         rs6000_global_entry_point_prologue_needed_p.
1160 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1162         PR target/90552
1163         * config/i386/i386.c (gen_rtx_cost):
1164         Use ix86_tune_cost instead of ix86_cost.
1166 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
1167             Michael Meissner  <meissner@linux.ibm.com>
1168             Segher Boessenkool  <segher@kernel.crashing.org>
1170         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1171         OPTION_MASK_PCREL.
1172         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1173         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1174         (rs6000_fndecl_pcrel_p): Likewise.
1175         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1176         error if -mpcrel is requested without -mcpu=future.
1177         (rs6000_opt_masks): Add entry for pcrel.
1178         (rs6000_fndecl_pcrel_p): New function.
1179         (rs6000_pcrel_p): Likewise.
1180         * config/rs6000/rs6000.opt (mpcrel): New option.
1181         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1183 2019-05-23  Jan Hubicka  <jh@suse.cz>
1184             Martin Liska  <mliska@suse.cz>
1186         PR tree-optimization/90576
1187         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1188         poly_int_tree_p.
1189         (aliasing_component_refs_p): Fix three way size compare conditional;
1190         give up earlier in case we can not decide on equivalence.
1192 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
1193             Michael Meissner  <meissner@linux.ibm.com>
1194             Segher Boessenkool  <segher@kernel.crashing.org>
1196         * config.gcc: Add future cpu.
1197         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1198         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1199         #define.
1200         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1201         (RS6000_CPU): New instantiation for future cpu.
1202         * config/rs6000/rs6000-opts.h (enum processor_type): Add
1203         PROCESSOR_FUTURE.
1204         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1205         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1206         * config/rs6000/rs6000-tables.opt: Regenerate.
1207         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1208         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1209         (rs6000_machine_from_flags): Handle future cpu.
1210         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1211         PROCESSOR_POWER9 for now.
1212         (rs6000_adjust_cost): Likewise.
1213         (rs6000_issue_rate): Likewise.
1214         (rs6000_register_move_cost): Likewise.
1215         (rs6000_opt_masks): Add entry for future.
1216         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1217         (MASK_FUTURE): New #define.
1218         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1219         * config/rs6000/rs6000.opt (mfuture): New target option.
1220         * doc/invoke.texi (mcpu): Add future cpu.
1222 2019-05-23  Martin Liska  <mliska@suse.cz>
1224         PR c++/90587
1225         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1226         operation points to a temporary (pointed via tree_to_wide_ref)
1227         that is out of scope after the &.
1229 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
1231         PR c++/90592
1232         * doc/extend.texi (Function Names): Add missing word.
1234 2019-05-23  Richard Biener  <rguenther@suse.de>
1236         PR tree-optimization/88440
1237         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1238         at -O[2s]+.
1239         * tree-loop-distribution.c (generate_memset_builtin): Fold the
1240         generated call.
1241         (generate_memcpy_builtin): Likewise.
1242         (distribute_loop): Pass in whether to only distribute patterns.
1243         (prepare_perfect_loop_nest): Also allow size optimization.
1244         (pass_loop_distribution::execute): When optimizing a loop
1245         nest for size allow pattern replacement.
1247 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
1249         PR target/90568
1250         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1251         of xor.
1253 2019-05-23  Martin Liska  <mliska@suse.cz>
1255         PR sanitizer/90570
1256         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1257         expression similarly to gimplify_decl_expr.
1259 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1261         * cse.c (cse_dump_path): s/dump_file/f.
1263 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
1265         PR c++/90462
1266         * diagnostic-format-json.cc: Include "selftest.h".
1267         (json_from_expanded_location): Only add "file" key for non-NULL
1268         file strings.
1269         (json_from_location_range): Don't add "start" and "finish"
1270         children if they are UNKNOWN_LOCATION.
1271         (selftest::test_unknown_location): New selftest.
1272         (selftest::test_bad_endpoints): New selftest.
1273         (selftest::diagnostic_format_json_cc_tests): New function.
1274         * json.cc (json::object::get): New function.
1275         (selftest::test_object_get): New selftest.
1276         (selftest::json_cc_tests): Call it.
1277         * json.h (json::object::get): New decl.
1278         * selftest-run-tests.c (selftest::run_tests): Call
1279         selftest::diagnostic_format_json_cc_tests.
1280         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1281         decl.
1283 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
1284             Andrew Stubbs  <amd@codesourcery.com>
1286         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1287         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1288         (kernel): Rename to...
1289         (main_kernel): ... this.
1290         (load_image): Load _init_array and _fini_array kernels.
1291         (run): Add argument for kernel to run.
1292         (main): Run init_array_kernel before main_kernel, and
1293         fini_array_kernel after.
1294         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1295         amdgpu_hsa_kernel attribute on functions.
1296         (gcn_disable_constructors): Delete.
1297         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1298         * config/gcn/crt0.c (size_t): Define.
1299         (_init_array, _fini_array): New.
1300         (__preinit_array_start, __preinit_array_end,
1301         __init_array_start, __init_array_end,
1302         __fini_array_start, __fini_array_end): Declare weak references.
1304 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
1306         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1308 2019-05-22  Jason Merrill  <jason@redhat.com>
1310         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1312 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1314         PR target/88483
1315         * config/i386/i386-options.c (ix86_init_machine_status): Set
1316         stack_frame_required to true.
1317         * config/i386/i386.c (ix86_get_frame_size): New function.
1318         (ix86_frame_pointer_required): Replace get_frame_size with
1319         ix86_get_frame_size.
1320         (ix86_compute_frame_layout): Likewise.
1321         (ix86_find_max_used_stack_alignment): Changed to void.  Set
1322         stack_frame_required.
1323         (ix86_finalize_stack_frame_flags): Always call
1324         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
1325         ix86_get_frame_size.
1326         * config/i386/i386.h (machine_function): Add stack_frame_required.
1328 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1330         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1332 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
1334         * common/config/aarch64/aarch64-common.c
1335         (struct aarch64_option_extension, struct processor_name_to_arch,
1336         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1337         aarch64_contains_opt,
1338         aarch64_get_extension_string_for_isa_flags): Change type of
1339         variables storing flags to uint64_t.
1340         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1341         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1342         * config/aarch64/aarch64.c (struct processor,
1343         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1344         aarch64_validate_march, aarch64_override_options,
1345         aarch64_option_print, aarch64_handle_attr_isa_flags,
1346         aarch64_declare_function_name, aarch64_start_file): Make flag
1347         variables uint64_t.
1348         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1349         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1350         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1351         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1352         * config/aarch64/driver-aarch64.c
1353         (struct aarch64_arch_extension, struct aarch64_core_data,
1354         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1355         flag variables uint64_t.
1356         * doc/invoke.texi: Add documentation for new arguments.
1358 2019-05-22  Richard Biener  <rguenther@suse.de>
1360         * alias.c (ao_ref_from_mem): Move stack-slot sharing
1361         rewrite ...
1362         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1364 2019-05-22  Martin Liska  <mliska@suse.cz>
1366         PR lto/90500
1367         * doc/extend.texi: Document the change.
1369 2019-05-22  Richard Biener  <rguenther@suse.de>
1371         PR tree-optimization/90450
1372         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1373         (mem_ref_hasher::equal): Check it.
1374         (mem_ref_alloc): Initialize it.
1375         (gather_mem_refs_stmt): Set it.
1377 2019-05-22  Richard Biener  <rguenther@suse.de>
1379         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1380         Add ABS_EXPR.
1381         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1382         as ABSU_EXPR.
1384 2019-05-22  Alan Modra  <amodra@gmail.com>
1386         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1387         (ASM_CPU_SPEC): Conditionally add -many.
1388         * config/rs6000/rs6000.c (rs6000_machine): New static var.
1389         (rs6000_machine_from_flags, emit_asm_machine): New functions..
1390         (rs6000_file_start): ..extracted from here, and modified to
1391         test all ISA bits.
1392         (rs6000_output_function_prologue): Emit .machine as necessary.
1393         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1394         power mnemonics.
1395         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1396         added by check_vect_support_and_set_flags.
1397         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1398         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1400 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
1402         PR middle-end/90553
1403         * ira-lives.c (process_bb_node_lives): Consider defs
1404         for a call insn to be die before the call, not after.
1406         * function.c (assign_parm_setup_block): Raise alignment of
1407         stacked parameter only for STRICT_ALIGNMENT targets.
1409 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1411         * config/rs6000/constraints.md (define_register_constraint "wz"):
1412         Delete.
1413         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1414         RS6000_CONSTRAINT_wz.
1415         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1416         (rs6000_init_hard_regno_mode_ok): Adjust.
1417         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1418         * doc/md.texi (Machine Constraints): Adjust.
1420 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1422         * config/rs6000/constraints.md (define_register_constraint "wl"):
1423         Delete.
1424         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1425         RS6000_CONSTRAINT_wl.
1426         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1427         (rs6000_init_hard_regno_mode_ok): Adjust.
1428         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1429         * doc/md.texi (Machine Constraints): Adjust.
1431 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1433         * config/rs6000/constraints.md (define_register_constraint "wm"):
1434         Delete.
1435         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1436         RS6000_CONSTRAINT_wm.
1437         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1438         (rs6000_init_hard_regno_mode_ok): Adjust.
1439         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1440         * doc/md.texi (Machine Constraints): Adjust.
1442 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1444         * config/rs6000/constraints.md (define_register_constraint "wk"):
1445         Delete.
1446         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1447         RS6000_CONSTRAINT_wk.
1448         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1449         (rs6000_init_hard_regno_mode_ok): Adjust.
1450         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1451         * doc/md.texi (Machine Constraints): Adjust.
1453 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1455         * config/rs6000/constraints.md (define_register_constraint "wj"):
1456         Delete.
1457         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1458         RS6000_CONSTRAINT_wj.
1459         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1460         (rs6000_init_hard_regno_mode_ok): Adjust.
1461         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1462         (VS_64dm): Delete.
1463         * config/rs6000/vsx.md: Ditto.
1464         * doc/md.texi (Machine Constraints): Adjust.
1466 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
1468         * config/rs6000/constraints.md (define_register_constraint "wh"):
1469         Delete.
1470         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1471         RS6000_CONSTRAINT_wh.
1472         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1473         (rs6000_init_hard_regno_mode_ok): Adjust.
1474         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1475         * doc/md.texi (Machine Constraints): Adjust.
1477 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1479         PR target/90547
1480         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1481         Avoid calling gen_lowpart with CONST operand.
1483 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
1485         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1486         field template_last_to_copy.
1487         (ssa_create_duplicates): Set it, and use it.  Attempt to
1488         preserve more debug stmts.
1490 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1492         * config/i386/sse.md (VF1_AVX2): New mode iterator.
1493         (signbit<mode>2): New expander
1495 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
1497         PR bootstrap/87338
1498         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1499         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1501 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1503         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1504         %ebx and %ecx bafore calling cpuid with leaf 1 or
1505         non-constant leaf argument.
1507 2019-05-21  Alan Modra  <amodra@gmail.com>
1509         PR target/90545
1510         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1511         power9 direct move cost.
1512         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1513         Correct comments and rename functions to suit parameters.
1515 2019-05-21  Richard Biener  <rguenther@suse.de>
1517         PR middle-end/90510
1518         * fold-const.c (fold_read_from_vector): New function.
1519         * fold-const.h (fold_read_from_vector): Declare.
1520         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1521         single-element insert permutations.  Canonicalize selector
1522         further and fix issue with last commit.
1524 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
1526         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1527         parameter with default value false to declaration.
1528         (split_edges_for_insertion): New inline function.  Wrapper for
1529         split_critical_edges with for_edge_insertion_p = true.
1530         * tree-cfg.c (split_critical_edges): Don't split non-critical
1531         edges if for_edge_insertion_p is false.  Fix whitespace.
1532         * tree-ssa-pre.c (pass_pre::execute): Call
1533         split_edges_for_insertion instead of split_critical_edges.
1534         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1535         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1536         (pass_data_sink_code): Update function name in the comment.
1538 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
1540         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1541         around is_value_included_in that knows how to handle BIT_AND_EXPR.
1542         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
1543         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1544         positives.
1546 2019-05-21  Martin Liska  <mliska@suse.cz>
1548         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1549         an extra newline.
1550         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1551         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1552         vec_lvsr.
1553         * config/rs6000/rs6000.c (rs6000_option_override_internal):
1554         Quote a C type.
1555         (rs6000_function_arg): Likewise.
1556         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1557         (rs6000_expand_ternop_builtin): Use interval syntax.
1558         (get_element_number): Likewise.
1559         (altivec_expand_builtin): Likewise.
1560         (rs6000_get_function_versions_dispatcher): Quote target_clones.
1562 Fix test-suite.
1564 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
1566         PR c++/59813
1567         PR target/90418
1568         * function.h (struct function): Add calls_eh_return member.
1569         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1570         gimplifying __builtin_eh_return call.
1571         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1572         to cfun.
1573         (expand_call_inline): Or in src_cfun->calls_eh_return into
1574         dst_cfun->calls_eh_return.
1575         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1576         cfun->calls_eh_return.
1577         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1578         * lto-streamer-out.c (output_struct_function_base): Write
1579         calls_eh_return.
1581 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
1583         PR rtl-optimization/43147
1584         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1585         IX86_BUILTIN_SHUFPD.
1587 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
1589         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1590         (refs_may_alias_p_1): ... here; update stats.
1591         (refs_may_alias_p): Do not update stats here.
1593 2019-05-20  Richard Biener  <rguenther@suse.de>
1595         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1596         doesn't produce pointers.
1597         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1598         the first operand points to.
1600 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
1602         * tree-ssa-alias.c (compare_sizes): New function.
1603         (sompare_type_sizes): New function
1604         (aliasing_component_refs_p): Use it.
1605         (indirect_ref_may_alias_decl_p): Likewise.
1607 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1609         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1611 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1613         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1614         (LIBLSAN_EARLY_SPEC): Likewise.
1615         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1617 2019-05-20  Martin Liska  <mliska@suse.cz>
1619         * config/i386/i386.c (ix86_libc_has_fast_function):
1620         Add ATTRIBUTE_UNUSED for the argument.
1622 2019-05-20  Richard Biener  <rguenther@suse.de>
1624         * gimple-match-head.c: Include vec-perm-indices.h.
1625         * generic-match-head.c: Likewise.
1626         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1627         is included.
1628         * fold-const.c (fold_vec_perm): Export.
1629         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1630         (match.pd): ...here.
1632 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
1634         * cfgloop.h (struct loop): Add simdlen member.
1635         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1636         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1637         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1638         as new argument to autovectorize_vector_sizes target hook.  If
1639         loop->simdlen, pick up vector size where the vectorization factor
1640         is equal to loop->simd, and if there is none, fall back to the first
1641         successful one.
1642         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1643         caller.
1644         * omp-low.c (omp_clause_aligned_alignment): Likewise.
1645         * omp-general.c (omp_max_vf): Likewise.
1646         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1647         * tree-vect-slp.c (vect_slp_bb): Likewise.
1648         * target.def (autovectorize_vector_sizes): Add ALL argument and
1649         document it.
1650         * doc/tm.texi: Adjust documentation.
1651         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1652         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1653         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1654         bool argument.
1655         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1656         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1657         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1658         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
1659         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1660         preferred vector size is not 512-bit or 256-bit, just put those
1661         unpreferred ones last.
1663 2019-05-20  Martin Liska  <mliska@suse.cz>
1665         * targhooks.c (default_libc_has_fast_function): New function.
1666         * targhooks.h (default_libc_has_fast_function): Likewise.
1668 2019-05-20  Martin Liska  <mliska@suse.cz>
1670         PR middle-end/90263
1671         * builtins.c (expand_builtin_memory_copy_args): When having a
1672         target with fast mempcpy implementation do now use memcpy.
1673         * config/i386/i386.c (ix86_libc_has_fast_function): New.
1674         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1675         * doc/tm.texi: Likewise.
1676         * doc/tm.texi.in: Likewise.
1677         * target.def:
1678         * expr.c (emit_block_move_hints): Add 2 new arguments.
1679         * expr.h (emit_block_move_hints): Bail out when libcall
1680         to memcpy would be used.
1682 2019-05-20  Martin Liska  <mliska@suse.cz>
1684         * profile-count.c: Add vertical spacing in order
1685         to separate functions.
1686         * profile-count.h: Likewise.
1688 2019-05-20  Martin Liska  <mliska@suse.cz>
1690         * profile-count.h: Do not use full qualified
1691         names if possible.
1692         * profile-count.c (profile_count::to_frequency): Likewise.
1694 2019-05-20  Martin Liska  <mliska@suse.cz>
1696         * profile-count.h (enum profile_quality): Use capital letters
1697         for enum value names.  Use the adjusted names.
1698         * profile-count.c: Use the adjusted names.
1700 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1702         * config/rs6000/constraints.md (define_register_constraint "wH"):
1703         Delete.
1704         (define_register_constraint "wI"): Delete.
1705         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1706         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1707         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1708         (rs6000_init_hard_regno_mode_ok): Adjust.
1709         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1710         resp. "d", or with "wa" as appropriate, all with "p8v".
1711         * config/rs6000/vsx.md: Ditto.
1712         * doc/md.texi (Machine Constraints): Adjust.
1714 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1716         * config/rs6000/constraints.md (define_register_constraint "wy"):
1717         Delete.
1718         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1719         RS6000_CONSTRAINT_wy.
1720         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1721         (rs6000_init_hard_regno_mode_ok): Adjust.
1722         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1723         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1724         (define_mode_attr Fisa): New.
1725         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1726         * doc/md.texi (Machine Constraints): Adjust.
1728 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1730         * config/rs6000/constraints.md (define_register_constraint "wu"):
1731         Delete.
1732         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1733         RS6000_CONSTRAINT_wu.
1734         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1735         (rs6000_init_hard_regno_mode_ok): Adjust.
1736         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1737         both with "p8v".
1738         (define_mode_attr Fa): Delete.
1739         * config/rs6000/vsx.md: Ditto.
1740         * doc/md.texi (Machine Constraints): Adjust.
1742 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1744         * config/rs6000/constraints.md (define_register_constraint "wJ"):
1745         Delete.
1746         (define_register_constraint "wK"): Delete.
1747         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1748         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1749         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1750         (rs6000_init_hard_regno_mode_ok): Adjust.
1751         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1752         Replace "wK" constraint by "wH" with "p9v".
1753         * config/rs6000/vsx.md: Ditto.
1754         * doc/md.texi (Machine Constraints): Adjust.
1756 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1758         * config/rs6000/constraints.md (define_register_constraint "wb"):
1759         Delete.
1760         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1761         RS6000_CONSTRAINT_wb.
1762         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1763         (rs6000_init_hard_regno_mode_ok): Adjust.
1764         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1765         * config/rs6000/vsx.md: Ditto.
1766         * doc/md.texi (Machine Constraints): Adjust.
1768 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1770         * config/rs6000/constraints.md (define_register_constraint "wo"):
1771         Delete.
1772         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1773         RS6000_CONSTRAINT_wo.
1774         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1775         (rs6000_init_hard_regno_mode_ok): Adjust.
1776         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1777         * config/rs6000/altivec.md: Ditto.
1778         * doc/md.texi (Machine Constraints): Adjust.
1780 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
1782         * config/darwin-c.c (darwin_register_objc_includes): Do not
1783         prepend the sysroot when building gnu-runtime header search
1784         paths.
1786 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
1788         * config/darwin.c (darwin_file_end): Use switch_to_section ()
1789         instead of direct output of the asm.
1791 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
1793         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1794         argument to be type bool (was int before).
1795         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
1796         at first use.  Use type bool for some variables.  Fix a theoretical
1797         eh_return bug for svr4.
1799 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
1801         * config/rs6000/rs6000.md (isa): New attribute.
1802         (enabled): New attribute.
1804 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
1806         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1807         assemble_start_function and assemble_end_function.
1809 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
1811         PR middle-end/89433
1812         * omp-general.c (oacc_verify_routine_clauses): Change formal
1813         parameters.  Add checking if already marked with an OpenACC
1814         'routine' directive.  Adjust all users.
1816         PR middle-end/89433
1817         * omp-general.c (oacc_build_routine_dims): Move some of its
1818         processing into...
1819         (oacc_verify_routine_clauses): ... this new function.
1820         * omp-general.h (oacc_verify_routine_clauses): New prototype.
1822 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
1824         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1825         formating of picbase labels to match other ports.
1827 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
1829         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1830         in the generated code.
1832 2019-05-16  Martin Sebor  <msebor@redhat.com>
1834         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1835         identifiers, keywords, operators, and types in diagnostics.  Correct
1836         quoting, spelling, and sentence capitalization issues.
1837         (expand_builtin_atomic_is_lock_free): Same.
1838         (fold_builtin_next_arg): Same.
1839         * cfgexpand.c (expand_one_var): Same.
1840         (tree_conflicts_with_clobbers_p): Same.
1841         (expand_asm_stmt): Same.
1842         (verify_loop_structure): Same.
1843         * cgraphunit.c (process_function_and_variable_attributes): Same.
1844         * collect-utils.c (collect_execute): Same.
1845         * collect2.c (maybe_run_lto_and_relink): Same.
1846         (is_lto_object_file): Same.
1847         (scan_prog_file): Same.
1848         * convert.c (convert_to_real_1): Same.
1849         * dwarf2out.c (dwarf2out_begin_prologue): Same.
1850         * except.c (verify_eh_tree): Same.
1851         * gcc.c (execute): Same.
1852         (eval_spec_function): Same.
1853         (run_attempt): Same.
1854         (driver::set_up_specs): Same.
1855         (compare_debug_auxbase_opt_spec_function): Same.
1856         * gcov-tool.c (unlink_gcda_file): Same.
1857         (do_merge): Same.
1858         (do_rewrite): Same.
1859         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1860         * gimplify.c (gimplify_asm_expr): Same.
1861         (gimplify_adjust_omp_clauses): Same.
1862         * hsa-gen.c (gen_hsa_addr_insns): Same.
1863         (gen_hsa_insns_for_load): Same.
1864         (gen_hsa_cmp_insn_from_gimple): Same.
1865         (gen_hsa_insns_for_operation_assignment): Same.
1866         (gen_get_level): Same.
1867         (gen_hsa_alloca): Same.
1868         (omp_simple_builtin::generate): Same.
1869         (gen_hsa_atomic_for_builtin): Same.
1870         (gen_hsa_insns_for_call): Same.
1871         * input.c (dump_location_info): Same.
1872         * ipa-devirt.c (compare_virtual_tables): Same.
1873         * ira.c (ira_setup_eliminable_regset): Same.
1874         * lra-assigns.c (lra_assign): Same.
1875         * lra-constraints.c (lra_constraints): Same.
1876         * lto-streamer-in.c (lto_input_mode_table): Same.
1877         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1878         (merge_and_complain): Same.
1879         (compile_offload_image): Same.
1880         (compile_images_for_offload_targets): Same.
1881         (debug_objcopy): Same.
1882         (run_gcc): Same.
1883         (main): Same.
1884         * opts.c (print_specific_help): Same.
1885         (parse_no_sanitize_attribute): Same.
1886         (print_help): Same.
1887         (handle_param): Same.
1888         * plugin.c (add_new_plugin): Same.
1889         (parse_plugin_arg_opt): Same.
1890         (try_init_one_plugin): Same.
1891         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1892         operators, and types in diagnostics.  Correct quoting and spelling
1893         issues.
1894         * read-rtl-function.c (parse_edge_flag_token): Same.
1895         (function_reader::parse_enum_value): Same.
1896         * reg-stack.c (check_asm_stack_operands): Same.
1897         * regcprop.c (validate_value_data): Same.
1898         * sched-rgn.c (make_pass_sched_fusion): Same.
1899         * stmt.c (check_unique_operand_names): Same.
1900         * targhooks.c (default_target_option_pragma_parse): Same.
1901         * tlink.c (recompile_files): Same.
1902         * toplev.c (process_options): Same.
1903         (do_compile): Same.
1904         * trans-mem.c (diagnose_tm_1): Same.
1905         (ipa_tm_scan_irr_block): Same.
1906         (ipa_tm_diagnose_transaction): Same.
1907         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
1908         format a tree code name in a diagnostic.
1909         (verify_types_in_gimple_min_lval): Same.
1910         (verify_types_in_gimple_reference): Same.
1911         (verify_gimple_call): Same.
1912         (verify_gimple_assign_unary): Same.
1913         (verify_gimple_assign_binary): Same.
1914         (verify_gimple_assign_ternary): Same.
1915         (verify_gimple_assign_single): Same.
1916         (verify_gimple_switch): Same.
1917         (verify_gimple_label): Same.
1918         (verify_gimple_phi): Same.
1919         (verify_gimple_in_seq): Same.
1920         (verify_eh_throw_stmt_node): Same.
1921         (collect_subblocks): Same.
1922         (gimple_verify_flow_info): Same.
1923         (do_warn_unused_result): Same.
1924         * tree-inline.c (expand_call_inline): Same.
1925         * tree-into-ssa.c (update_ssa): Same.
1926         * tree.c (tree_int_cst_elt_check_failed): Same.
1927         (tree_vec_elt_check_failed): Same.
1928         (omp_clause_operand_check_failed): Same.
1929         (verify_type_variant): Same.
1930         (verify_type): Same.
1931         * value-prof.c (verify_histograms): Same.
1932         * varasm.c (assemble_start_function): Same.
1934 2019-05-16  Martin Sebor  <msebor@redhat.com>
1936         * config/i386/i386-expand.c (get_element_number): Quote keywords
1937         and other internal names in diagnostics.  Adjust other diagnostic
1938         formatting issues noted by -Wformat-diag.
1939         * config/i386/i386-features.c
1940         (ix86_mangle_function_version_assembler_name): Same.
1941         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1942         * config/i386/i386.c (ix86_function_type_abi): Same.
1943         (ix86_function_ms_hook_prologue): Same.
1944         (classify_argument): Same.
1945         (ix86_expand_prologue): Same.
1946         (ix86_md_asm_adjust): Same.
1947         (ix86_memmodel_check): Same.
1949 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
1951         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1952         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1953         and fpxx modes.
1955 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1957         PR target/90497
1958         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1959         intrinsics without SSE/SSE2/SSSE3.
1960         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1961         check.
1962         (*mmx_uavgv8qi3): Likewise.
1964 2019-05-17  Richard Biener  <rguenther@suse.de>
1966         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1967         VEC_PERM_EXPR as __VEC_PERM with -gimple.
1969 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
1971         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1972         vec_sldw insn pattern.
1974 2019-05-17  Richard Biener  <rguenther@suse.de>
1976         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1978 2019-05-17  Martin Liska  <mliska@suse.cz>
1980         PR driver/90496
1981         * toplev.c (output_stack_usage): With LTO and sanitizer it
1982         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1983         has no file location.
1985 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
1987         PR c++/90484
1988         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1989         sz0 is equal to sz1, instead return false in that case.
1991         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
1992         has non-constant expression, force sctx.lane and use two
1993         argument IFN_GOMP_SIMD_LANE instead of single argument.
1994         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
1995         two argument IFN_GOMP_SIMD_LANE without lhs.
1996         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
1997         member.
1998         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
1999         Define.
2000         (LOOP_REQUIRES_VERSIONING): Or in
2001         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2002         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2003         simd_if_cond.
2004         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2005         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2006         from simd if clause if needed.
2008 2019-05-16  Richard Biener  <rguenther@suse.de>
2010         * tree-affine.c (expr_to_aff_combination): New function split
2011         out from...
2012         (tree_to_aff_combination): ... here.
2013         (aff_combination_expand): Avoid building a GENERIC tree.
2015 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
2017         * cgraphunit.c (cgraph_node::expand_thunk): Remove
2018         assemble_start_function and assemble_end_function calls.
2019         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2020         assemble_start_function and assemble_end_function.
2021         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2022         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2023         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2024         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2025         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2026         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2027         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2028         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2029         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2030         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2031         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2032         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2033         Likewise.
2034         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2035         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2036         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2037         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2038         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2039         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2040         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2041         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2042         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2043         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2044         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2045         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2046         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2047         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2048         Likewise.
2049         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2050         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2051         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2053 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
2055         * tree-ssa-alias.c (alias_stats): Add
2056         aliasing_component_refs_p_may_alias and
2057         aliasing_component_refs_p_no_alias.
2058         (dump_alias_stats): Print aliasing_component_refs_p stats.
2059         (aliasing_component_refs_p): Update stats.
2061 2019-05-16  Martin Liska  <mliska@suse.cz>
2063         PR lto/90500
2064         * multiple_target.c (expand_target_clones): Do not allow
2065         target_clones being used with a symbol that is an alias.
2067 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
2069         PR tree-optimization/90394
2070         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2071         positives rather than ICE for cases where (code2 == NE_EXPR
2072         && code1 == BIT_AND_EXPR).
2074 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
2076         PR fortran/90329
2077         * tree-core.h (struct tree_decl_common): Document
2078         decl_nonshareable_flag for PARM_DECLs.
2079         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2080         * calls.c (expand_call): Don't try tail call if caller
2081         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2082         passed on the stack and callee needs to pass any arguments on the
2083         stack.
2084         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2085         else if instead of series of mutually exclusive ifs.  Handle
2086         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2087         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2089         * lto-streamer.h (LTO_major_version): Bump to 9.
2091 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
2093         PR tree-optimization/90106
2094         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2095         new parameter as new internal function call, also move it to new
2096         basic block.
2097         (use_internal_fn): Pass internal function call to
2098         shrink_wrap_one_built_in_call_with_conds.
2100 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
2102         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2103         max_vf to 1.
2104         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2105         safelen_int and set loop->dont_vectorize.
2107 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2109         PR target/89021
2110         * config/i386/i386-builtin.def: Enable MMX intrinsics with
2111         SSE/SSE2/SSSE3.
2112         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2113         Likewise.
2114         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2115         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2116         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2117         is defined.
2119 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2121         PR target/89021
2122         * config/i386/mmx.md (*vec_dupv2sf): Changed to
2123         define_insn_and_split to support SSE emulation.
2124         (*vec_extractv2sf_0): Likewise.
2125         (*vec_extractv2sf_1): Likewise.
2126         (*vec_extractv2si_0): Likewise.
2127         (*vec_extractv2si_1): Likewise.
2128         (*vec_extractv2si_zext_mem): Likewise.
2129         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2130         (vec_extractv2sf_1 splitter): Likewise.
2131         (vec_extractv2sfsf): Likewise.
2132         (vec_setv2si): Likewise.
2133         (vec_extractv2si_1 splitter): Likewise.
2134         (vec_extractv2sisi): Likewise.
2135         (vec_setv4hi): Likewise.
2136         (vec_extractv4hihi): Likewise.
2137         (vec_setv8qi): Likewise.
2138         (vec_extractv8qiqi): Likewise.
2139         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
2140         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2141         (vec_extractv2sisi): Likewise.
2142         (vec_extractv4hihi): Likewise.
2143         (vec_extractv8qiqi): Likewise.
2144         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
2145         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2146         (vec_initv2sisi): Likewise.
2147         (vec_initv4hihi): Likewise.
2148         (vec_initv8qiqi): Likewise.
2149         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
2150         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2151         (vec_setv4hi): Likewise.
2152         (vec_setv8qi): Likewise.
2154 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2156         PR target/89021
2157         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2158         TARGET_MMX_WITH_SSE.
2159         (MMXMODE:*mov<mode>_internal): Likewise.
2160         (MMXMODE:movmisalign<mode>): Likewise.
2162 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2164         PR target/89021
2165         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2166         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2167         (sse2_cvtpd2pi): Ditto.
2168         (sse2_cvttpd2pi): Ditto.
2169         (*vec_concatv2sf_sse4_1): Ditto.
2170         (*vec_concatv2sf_sse): Ditto.
2171         (*vec_concatv2si_sse4_1): Ditto.
2172         (*vec_concatv2si): Ditto.
2173         (*vec_concatv4si_0): Ditto.
2174         (*vec_concatv2di_0): Ditto.
2176 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2178         PR target/89021
2179         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2181 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2183         PR target/89021
2184         * config/i386/sse.md (ssse3_palignrdi): Changed to
2185         define_insn_and_split to support SSE emulation.
2187 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2189         PR target/89021
2190         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2192 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2194         PR target/89021
2195         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2196         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
2197         SSE emulation.
2199 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2201         PR target/89021
2202         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2203         or TARGET_MMX_WITH_SSE.
2204         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2206 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2208         PR target/89021
2209         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2211 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2213         PR target/89021
2214         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2215         Changed to define_insn_and_split to support SSE emulation.
2217 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2219         PR target/89021
2220         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2221         Changed to define_insn_and_split to support SSE emulation.
2223 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2225         PR target/89021
2226         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2227         (*mmx_<emms>): This.
2228         (mmx_<emms>): New expander.
2230 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2232         PR target/89021
2233         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2234         support.
2235         (*sse2_umulv1siv1di3): Add SSE2 emulation.
2237 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2239         PR target/89021
2240         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2242 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2244         PR target/89021
2245         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2247 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2249         PR target/89021
2250         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2251         TARGET_MMX_WITH_SSE.
2252         (*mmx_uavgv4hi3): Add SSE emulation.
2254 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2256         PR target/89021
2257         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2258         and TARGET_MMX_WITH_SSE.
2259         (*mmx_uavgv8qi3): Add SSE emulation.
2261 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2263         PR target/89021
2264         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2265         maskmovdqu for __MMX_WITH_SSE__.
2267 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2269         PR target/89021
2270         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2271         TARGET_MMX and TARGET_MMX_WITH_SSE.
2272         (*mmx_umulv4hi3_highpart): Add SSE emulation.
2274 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2276         PR target/89021
2277         * config/i386/mmx.md (mmx_pmovmskb): Changed to
2278         define_insn_and_split to support SSE emulation.
2280 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2282         PR target/89021
2283         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2284         and TARGET_MMX_WITH_SSE.
2285         (mmx_<code>v8qi3): Likewise.
2286         (smaxmin:<code>v4hi3): New.
2287         (umaxmin:<code>v8qi3): Likewise.
2288         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2289         (umaxmin:*mmx_<code>v8qi3): Likewise.
2291 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2293         PR target/89021
2294         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2295         TARGET_MMX_WITH_SSE.
2296         (*mmx_pinsrw): Add SSE emulation.
2298 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2300         PR target/89021
2301         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2303 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2305         PR target/89021
2306         * config/i386/sse.md (sse_cvtpi2ps): Changed to
2307         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
2308         SSE emulation.
2310 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2312         PR target/89021
2313         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2314         (sse_cvttps2pi): Likewise.
2316 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2318         PR target/89021
2319         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2320         TARGET_MMX_WITH_SSE.
2321         (mmx_pshufw_1): Add SSE emulation.
2322         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2323         TARGET_MMX_WITH_SSE to support SSE emulation.
2325 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2327         PR target/89021
2328         * config/i386/constraints.md (Yw): New constraint.
2329         * config/i386/mmx.md (*vec_dupv2si): Changed to
2330         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2331         support SSE emulation.
2333 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2335         PR target/89021
2336         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2337         TARGET_MMX_WITH_SSE.
2338         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
2339         support.
2340         (mmx_gt<mode>3): Likewise.
2342 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2344         PR target/89021
2345         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2346         TARGET_MMX_WITH_SSE.  Add SSE support.
2348 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2350         PR target/89021
2351         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2352         TARGET_MMX_WITH_SSE.
2353         (any_logic:<code><mode>3): New.
2354         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2355         Add SSE support.
2357 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2359         PR target/89021
2360         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2361         TARGET_MMX_WITH_SSE.  Add SSE emulation.
2362         (mmx_<shift_insn><mode>3): Likewise.
2363         (ashr<mode>3): New.
2364         (<shift_insn><mode>3): Likewise.
2366 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2368         PR target/89021
2369         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2370         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
2372 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2374         PR target/89021
2375         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2376         TARGET_MMX_WITH_SSE.
2377         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2378         SSE support.
2380 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2382         PR target/89021
2383         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2384         TARGET_MMX_WITH_SSE.
2385         (mulv4hi3): New.
2386         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
2387         support.
2389 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2391         PR target/89021
2392         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2393         (plusminus:mmx_<plusminus_insn><mode>3): Check
2394         TARGET_MMX_WITH_SSE.
2395         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2396         (<plusminus_insn><mode>3): New.
2397         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2398         (*mmx_<plusminus_insn><mode>3): Likewise.
2400 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2402         PR target/89021
2403         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2404         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2405         prototype.
2406         * config/i386/mmx.m (mmx_punpckhbw): Changed to
2407         define_insn_and_split to support SSE emulation.
2408         (mmx_punpcklbw): Likewise.
2409         (mmx_punpckhwd): Likewise.
2410         (mmx_punpcklwd): Likewise.
2411         (mmx_punpckhdq): Likewise.
2412         (mmx_punpckldq): Likewise.
2414 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2415             Uros Bizjak  <ubizjak@gmail.com>
2417         PR target/89021
2418         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2419         New function.
2420         (ix86_split_mmx_pack): Likewise.
2421         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2422         New prototype.
2423         (ix86_split_mmx_pack): Likewise.
2424         * config/i386/i386.md (mmx_isa): New.
2425         (enabled): Also check mmx_isa.
2426         * config/i386/mmx.md (any_s_truncate): New code iterator.
2427         (s_trunsuffix): New code attr.
2428         (mmx_packsswb): Removed.
2429         (mmx_packssdw): Likewise.
2430         (mmx_packuswb): Likewise.
2431         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2432         MMX packsswb/packuswb with SSE2.
2433         (mmx_packssdw): Likewise.
2434         * config/i386/predicates.md (register_mmxmem_operand): New.
2436 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2438         PR target/89021
2439         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2440         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2441         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2442         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2443         (ix86_vector_mode_supported_p): Likewise.
2444         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2446 2019-05-15  Martin Liska  <mliska@suse.cz>
2448         PR middle-end/90478
2449         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2450         Check for overflow.
2452 2019-05-15  Richard Biener  <rguenther@suse.de>
2454         * tree-into-ssa.c (pass_build_ssa::execute): Run
2455         update_address_taken before going into SSA.
2457 2019-05-15  Richard Biener  <rguenther@suse.de>
2459         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2460         as __BIT_FIELD_REF with type with -gimple.
2462 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
2464         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2465         semantically equivalent branches (left over after prior refactorings).
2467 2019-05-15  Richard Biener  <rguenther@suse.de>
2469         PR tree-optimization/88828
2470         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2471         bogus check.
2473 2019-05-14  Richard Biener  <rguenther@suse.de>
2475         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2476         as __VIEW_CONVERT with -gimple.
2478 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
2480         PR target/82920
2481         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2482         Darwin.
2484 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
2486         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2487         define_split to become a define_insn_and_split.
2489 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
2491         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2492         arguments.
2493         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2494         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2495         (sibcall_epilogue): Adjust.
2496         (epilogue): Adjust.
2498 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2500         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2501         to unsupported ones.
2502         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2503         * config.host: Likewise.
2504         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2505         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2506         __svr4__]: Remove "brand" fallback.
2507         [!KSTAT_DATA_STRING]: Remove.
2508         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2509         to *-*-solaris2*.
2510         (comdat_group): Likewise.
2511         (set_have_as_tls): Likewise.
2512         (gcc_cv_target_dl_iterate_phdr): Likewise.
2513         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2514         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2515         * configure: Regenerate.
2516         * doc/install.texi: Simplify Solaris target triplets.
2517         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2518         (Specific, *-*-solaris2*): Document Solaris 10 removal.
2519         Remove Solaris 10 references.
2520         Remove obsolete Solaris bug reference.
2521         (Specific, sparc-sun-solaris2.10): Remove.
2523 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2525         * config/i386/i386.md (any_div): New code iterator.
2526         (paired_mod): New code attribute.
2527         (sgnprefix): Handle DIV and UDIV RTXes.
2528         (u): Ditto.
2529         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2530         and udivmod<mode>4 patterns using any_div code iterator.
2531         (divmod splitters): Macroize splitters using any_div code iterator.
2532         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2533         (*udivmodsi4_pow2_zext_2): Ditto.
2534         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2535         and *udivmod<mode>4_noext patterns using any_div code iterator.
2536         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2537         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2538         patterns using any_div code iterator.
2539         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2540         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2541         patterns using any_div code iterator.
2542         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2543         udivmodhiqi3 patterns using any_extend code iterator.
2545 2019-05-14  Richard Biener  <rguenther@suse.de>
2546             H.J. Lu  <hongjiu.lu@intel.com>
2548         PR tree-optimization/88828
2549         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2550         permuting in a single non-constant element not extracted
2551         from a vector.
2553 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
2555         * internal-fn.def (SIGNBIT): New.
2556         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2557         defined.
2558         (signbitv4sf2): Likewise.
2560 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
2562         PR target/90357
2563         * config/mips/mips.c (mips_split_move): Skip forward SRC into
2564         next insn when the SRC reg is dead.
2566 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
2568         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2569         (alloc_cand_and_find_basis): Ditto.
2570         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2571         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2572         (create_add_imm_cand, slsr_process_cast): Ditto.
2573         (slsr_process_copy, replace_mult_candidate): Ditto.
2574         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2575         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2576         (pass_strength_reduction::execute): Init the first NULL element.
2578 2019-05-13  Nathan Sidwell  <nathan@acm.org>
2580         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
2581         (run_attempt): Reformat line break.
2583 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
2585         PR target/90418
2586         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2587         data registers in sibcall epilogues.
2588         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2590 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2592         PR target/89221
2593         * configure.ac (--enable-frame-pointer):
2594         Disable by default for cygwin and mingw.
2595         * configure: Regenerate.
2597 2019-05-13  Nathan Sidwell  <nathan@acm.org>
2599         * dwarf2out.c (breakout_comdat_types): Move comment to correct
2600         piece of code.
2601         (const_ok_for_output_1): Balance parens around #if/#else/#endif
2602         (gen_member_die): Move abstract origin check earlier.  Only VARs
2603         can be static_inline_p.  Simplify splicing control flow.
2605 2019-05-13  Richard Biener  <rguenther@suse.de>
2607         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2608         VIEW_CONVERT_EXPR.
2609         (vect_build_slp_tree_1): Likewise.
2611 2019-05-13  Richard Biener  <rguenther@suse.de>
2613         PR tree-optimization/90402
2614         * tree-if-conv.c (tree_if_conversion): Value number only
2615         the loop body by making the latch an exit of the region
2616         as well.
2617         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2618         processing PHIs.
2619         (do_rpo_vn): Deal with multiple edges into the entry block
2620         that are not backedges inside the region by skipping PHIs
2621         of the entry block.
2623 2019-05-13  Richard Biener  <rguenther@suse.de>
2625         PR tree-optimization/90316
2626         * tree-ssa-pre.c (insert_aux): Fold into ...
2627         (insert): ... this function.  Use a RPO walk to reduce the
2628         number of required iterations.
2630 2019-05-13  Martin Liska  <mliska@suse.cz>
2632         PR tree-optimization/90416
2633         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2634         string instead of passing the second part as va_arg argument.
2636 2019-05-13  Martin Liska  <mliska@suse.cz>
2638         PR gcov-profile/90380
2639         * gcov.c (handle_cycle): Do not support zero cycle count,
2640         it should not be possible.
2641         (path_contains_zero_cycle_arc): New function.
2642         (circuit): Ignore zero cycle arc counts.
2644 2019-05-13  Martin Liska  <mliska@suse.cz>
2646         PR gcov-profile/90380
2647         * gcov.c (enum loop_type): Remove the enum and
2648         the operator.
2649         (handle_cycle): Assert that we should not reach
2650         a negative count.
2651         (circuit): Use loop_found instead of a tri-state loop_type.
2652         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2653         happen.
2655 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
2657         PR target/82920
2658         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2659         (ix86_output_indirect_branch_via_reg): Use output mechanism
2660         accounting for __USER_LABEL_PREFIX__.
2661         (ix86_output_indirect_branch_via_push): Likewise.
2662         (ix86_output_function_return): Likewise.
2663         (ix86_output_indirect_function_return): Likewise.
2665 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
2667         * doc/md.texi: Document use of code attributes in rtx patterns.
2668         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2669         * read-rtl.c (find_code): Split out search loops into...
2670         (maybe_find_code): ...this new function.
2671         (check_code_iterator): Make the error message more informative.
2672         (check_code_attribute): New function.
2673         (rtx_reader::rtx_alloc_for_name): Likewise.
2674         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2675         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2676         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2677         <max_opp> directly as an rtx code instead of via a match_operator.
2678         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2679         (<su>abd<mode>_3): Update accordingly.
2681 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
2683         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2684         is given, print the state of the EH "save world" computation for
2685         Darwin.
2687 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
2689         PR c++/59813
2690         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2691         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2693 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2695         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2696         Use pinsrd for TARGET_SSE4_1.
2697         * config/i386/sse.md (movdi_to_sse): Ditto.
2699 2019-05-10  Richard Biener  <rguenther@suse.de>
2701         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2702         (do_rpo_vn): Initialize next_value_id.
2704 2019-05-10  Martin Liska  <mliska@suse.cz>
2706         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2707         Fix plural form.
2709 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
2711         PR tree-optimization/90385
2712         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2713         arguments of the exit phis.
2715         PR c++/90383
2716         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2717         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2718         id->do_not_fold.
2719         (copy_tree_body_r): Likewise.
2720         (copy_fn): Set id.do_not_fold to true.
2722 2019-05-10  Martin Liska  <mliska@suse.cz>
2724         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2725         Reapply changes from r269790.
2727 2019-05-10  Martin Liska  <mliska@suse.cz>
2729         PR middle-end/90340
2730         * doc/invoke.texi: New params.
2731         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2732         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2733         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2734         Use it.
2735         * tree-switch-conversion.h (struct jump_table_cluster):
2736         Likewise.
2738 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
2740         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2742 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
2744         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2746 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
2748         PR rtl-optimization/88879
2749         * sel-sched.c (sel_target_adjust_priority): Remove assert.
2751 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
2753         PR target/90405
2754         * config/arm/arm.c (callee_saved_reg_p): Move before
2755         thumb_find_work_register.
2756         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2757         thumb_find_work_register.  Only call df_get_live_out once.
2758         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2759         (thumb_find_work_register): Use
2760         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2761         algorithms to locate a spare call clobbered reg.
2763 2019-05-09  Martin Liska  <mliska@suse.cz>
2765         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2766         and MAX_EXPR in GIMPLE FE format.
2768 2019-05-09  Martin Liska  <mliska@suse.cz>
2770         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2771         * gimple-pretty-print.c (dump_gimple_bb_header):
2772         Dump BB count.
2773         (pp_cfg_jump): Dump edge probability.
2774         * profile-count.c (profile_quality_as_string): Simplify
2775         with a static array.
2776         (parse_profile_quality): New function.
2777         (profile_count::dump): Simplify with a static array.
2778         (profile_count::from_gcov_type): Add new argument.
2779         * profile-count.h (parse_profile_quality): Likewise.
2780         * predict.h (set_hot_bb_threshold): New.
2781         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2782         New param.
2783         * predict.c (get_hot_bb_threshold): Set from the new param.
2784         (set_hot_bb_threshold): New.
2786 2019-05-09  Richard Biener  <rguenther@suse.de>
2788         PR tree-optimization/90395
2789         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2790         rewrite vector stores that throw internally.
2792 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
2794         * cif-code.def (CHKP): Remove.
2796         PR target/89221
2797         * configure.ac (--enable-frame-pointer): Disable by default for
2798         GNU systems.
2799         * configure: Regenerate.
2801 2019-05-09  Alan Modra  <amodra@gmail.com>
2803         PR target/89271
2804         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2805         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2806         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2807         cost for general <-> vsx when direct moves are available.
2808         Cost union classes at minimal cost for any reg in the class.
2809         Correct calculation for moves between vsx, float, and altivec.
2810         Don't return a low cost for moves between special regs.  Don't
2811         use hard coded register numbers.
2812         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2813         (rs6000_ira_change_pseudo_allocno_class): New function.
2814         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2815         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2816         alternatives.
2817         (movsi_internal1): Don't disparage vector alternatives.
2818         (mov<mode>_internal): Likewise, excepting alternative that
2819         will be split.
2820         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2821         we <- b alternative.
2823 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
2825         PR c++/59813
2826         PR tree-optimization/89060
2827         * tree-ssa-live.h (live_vars_map): New typedef.
2828         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2829         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2830         (struct compute_live_vars_data): New type.
2831         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2832         live_vars_at_stmt, destroy_live_vars): New functions.
2833         * tree-tailcall.c: Include tree-ssa-live.h.
2834         (live_vars, live_vars_vec): New global variables.
2835         (find_tail_calls): Perform variable life analysis before punting.
2836         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2837         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2838         member.
2839         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2840         Perform variable life analysis to select variables that really need
2841         clobbers added.
2842         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2843         instead set id->eh_landing_pad_dest and assert it is the same.
2844         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2846 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
2847             Richard Earnshaw  <rearnsha@arm.com>
2849         PR target/88167
2850         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2851         function.
2852         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2853         (thumb1_compute_save_core_reg_mask): Don't force a spare work
2854         register if both the epilogue and prologue can use call-clobbered
2855         regs.
2856         (thumb1_unexpanded_epilogue): Use
2857         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
2858         picking temporaries for restoring high regs to match that of the
2859         prologue where possible.
2860         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2861         the list of work registers.  Detect if the return address is still live
2862         at the end of the prologue and avoid using it for a work register if so.
2863         If the return address is not live, add LR to the list of pushable regs
2864         after the first pass.
2866 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
2868         PR tree-optimization/90078
2869         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2870         (INFTY): Increase the value for infinite cost.
2871         (struct comp_cost): Promote type of members to int64_t.
2872         (infinite_cost): Don't set complexity in initialization.
2873         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2874         overflows to infinite_cost.
2875         (adjust_setup_cost): Promote type of parameter and cost computation
2876         to int64_t.
2877         (struct ainc_cost_data, struct iv_ca): Promote type of member to
2878         int64_t.
2879         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2880         cost computation to int64_t.
2881         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2882         int64_t's format specifier in dump.
2884 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
2886         PR tree-optimization/90240
2887         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2888         with respect to scaling factor pre-computed for each basic block.
2889         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2890         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2891         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2892         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
2893         live range for array of loop's basic blocks.  Cleanup aux field of
2894         loop's basic blocks.
2896 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
2898         PR tree-optimization/90356
2899         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2901 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
2903         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2904         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2905         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2906         (ix86_handle_option): Handle -mavx512bf16.
2907         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2908         to extra_headers.
2909         * config/i386/avx512bf16vlintrin.h: New.
2910         * config/i386/avx512bf16intrin.h: New.
2911         * config/i386/cpuid.h (bit_AVX512BF16): New.
2912         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2913         * config/i386/i386-builtin-types.def: Add new types.
2914         * config/i386/i386-builtin.def: Add new builtins.
2915         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2916         __AVX512BF16__.
2917         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2918         (ix86_option_override_internal): Handle BF16.
2919         (ix86_valid_target_attribute_inner_p): Ditto.
2920         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2921         * config/i386/i386-builtin.c (enum processor_features): Add
2922         F_AVX512BF16.
2923         (static const _isa_names_table isa_names_table): Ditto.
2924         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2925         (PTA_AVX512BF16): Ditto.
2926         * config/i386/i386.opt: Add -mavx512bf16.
2927         * config/i386/immintrin.h: Include avx512bf16intrin.h
2928         and avx512bf16vlintrin.h.
2929         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2930         avx512f_cvtneps2bf16_<mode><mask_name>,
2931         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2932         * config/i386/subst.md (mask_half): Add new subst.
2933         * doc/invoke.texi: Document -mavx512bf16.
2935 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
2937         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2938         Delete declaration.
2939         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2940         (rs6000_debug_legitimize_reload_address): Delete.
2941         (rs6000_legitimize_reload_address_ptr): Delete.
2942         (rs6000_option_override_internal): Adjust.
2943         (mem_operand_gpr): Adjust comment.
2944         (legitimate_lo_sum_address_p): Ditto.
2945         (rs6000_legitimize_reload_address): Delete.
2946         (rs6000_debug_legitimize_reload_address): Delete.
2947         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2949 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2951         PR target/89765
2952         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2953         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2954         to compute vector element selector for both constant and variable
2955         operands.
2957 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2959         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2960         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2961         ashrdi3_cvt using SWI48 mode iterator.
2963 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
2965         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2966         (aarch64_<su>abd<mode>_3): Likewise.
2967         (*aarch64_<su>abd<mode>_3): New define_insn.
2968         (<sur>sad<vsi2qi>): New define_expand.
2969         * config/aarch64/iterators.md: Added MAX_OPP attribute.
2970         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2971         (build_vect_cond_expr): Likewise.
2973 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2975         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2976         clobbers outside of accessible_reg_set.
2977         * config/i386/i386.c (ix86_conditional_register_usage):
2978         Disable register sets by clearing corresponding bits in
2979         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
2980         call_used_regs and don't clear corresponding reg_names array members.
2982 2019-05-07  Richard Biener  <rguenther@suse.de>
2984         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2985         not specified still compute a comp_vectype for invariant
2986         compares.
2988 2019-05-07  Richard Biener  <rguenther@suse.de>
2990         PR tree-optimization/90316
2991         * tree-ssa-pre.c (translate_vuse_through_block): When
2992         same_valid is NULL do not bother to search for a virtual
2993         PHI continuation.
2994         (phi_translate_1): When operands changed we cannot keep
2995         the same value-number so do not bother to ask whether
2996         that's possible from translate_vuse_through_block.
2998 2019-05-07  Martin Liska  <mliska@suse.cz>
3000         * bitmap.c (bitmap_register): Come up with
3001         alloc_descriptor_max_uid and assign it for
3002         a new bitmap.
3003         (register_overhead): Use get_descriptor as
3004         a descriptor.
3005         (release_overhead): New.
3006         (bitmap_elem_to_freelist): Call it.
3007         (bitmap_elt_clear_from): Likewise.
3008         (bitmap_obstack_free): Likewise.
3009         (bitmap_move): Sensitively release memory.
3010         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3011         (bitmap_initialize): Initialize alloc_descriptor to zero.
3012         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3014 2019-05-07  Richard Biener  <rguenther@suse.de>
3016         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3017         we build a SLP node.  Remove max_size and limiting.
3018         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3020 2019-05-07  Richard Biener  <rguenther@suse.de>
3022         PR tree-optimization/90316
3023         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3024         limit by reference.
3025         (walk_non_aliased_vuses): Take walking limit argument.
3026         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3027         walking if it is reached instead of just counting.
3028         (get_continuation_for_phi): Likewise.
3029         (walk_non_aliased_vuses): Likewise, instead of leaving counter
3030         limiting to the callback.
3031         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3032         (vn_reference_lookup_3): Likewise.
3033         (vn_reference_lookup_pieces): Likewise.
3034         (vn_reference_lookup): Likewise.
3035         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3036         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3037         (avail_exprs_stack::lookup_avail_expr): Likewise.
3039 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
3041         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3042         for comparaible types in the second direction even if first one
3043         hits incomparable type.
3045 2019-05-07  Richard Biener  <rguenther@suse.de>
3047         PR lto/90369
3048         * lto-wrapper.c (debug_objcopy): Use the original filename
3049         including archive offset for the filename used for -save-temps.
3051 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
3053         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3054         detection.
3056 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
3057             Hongtao Liu  <hongtao.liu@intel.com>
3059         PR target/89750
3060         PR target/86444
3061         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3062         Modified, original implementation isn't correct.
3064 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
3066         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3067         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3068         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3069         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3070         (FRAME_POINTER_REGNUM): Change numbering.
3071         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3072         (alt_reg_names): Adjust.
3073         (rs6000_conditional_register_usage): Don't mark hard register 64 as
3074         fixed.
3075         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3076         (DWARF_FRAME_REGISTERS): Delete.
3077         (DWARF2_FRAME_REG_OUT): Fix whitespace.
3078         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3079         Adjust.
3080         (REG_ALLOC_ORDER): Adjust.
3081         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3082         (REG_CLASS_CONTENTS): Adjust.
3083         (RETURN_ADDR_RTX): Change comment.
3084         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3085         instead of 67.
3086         (REGISTER_NAMES): Adjust.
3087         (ADDITIONAL_REGISTER_NAMES): Adjust.
3088         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3090 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
3092         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3093         Delete.
3094         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3095         (DWARF_FRAME_REGISTERS): Adjust.
3096         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3097         Adjust.
3098         (REG_ALLOC_ORDER): Adjust.
3099         (enum reg_class): Delete SPR_REGS.
3100         (REG_CLASS_NAMES): Delete SPR_REGS.
3101         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
3102         (REGISTER_NAMES): Adjust.
3103         (ADDITIONAL_REGISTER_NAMES): Adjust.
3104         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3105         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3106         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3107         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3108         (htm_spr_regno): Delete.
3109         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3110         argument.
3111         (rs6000_dbx_register_number): Adjust.
3113 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
3115         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3117 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
3119         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3120         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3122 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
3124         PR tree-optimization/88709
3125         PR tree-optimization/90271
3126         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3127         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3128         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
3129         variable.
3130         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3131         of the store merging group is larger than
3132         PARAM_STORE_MERGING_MAX_SIZE parameter.
3133         (split_group): Add bzero_first argument.  If set, always emit first
3134         the first store which must be = {} of the whole area and then for the
3135         rest of the stores consider all zero bytes as paddings.
3136         (imm_store_chain_info::output_merged_store): Check if first store
3137         is = {} of the whole area and if yes, determine which setting of
3138         bzero_first for split_group gives smaller number of stores.  Adjust
3139         split_group callers.
3140         (lhs_valid_for_store_merging_p): Allow decls.
3141         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3142         no elts.
3143         (pass_store_merging::process_store): Likewise.
3145 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3147         PR target/89424
3148         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3149         handling of V1TImode.
3151 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3153         PR target/89221
3154         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3155         and enable_frame_pointer ...
3156         * configure.ac: ... here.  Update help strings for
3157         --enable-frame-pointer.
3158         * configure: Regenerate.
3159         * config/i386/i386-options.c (ix86_option_override_internal): Remove
3160         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3161         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3162         (USE_X86_64_FRAME_POINTER): Ditto.
3164 2019-05-06  Martin Liska  <mliska@suse.cz>
3166         * config.gcc: Append to target_gtfiles and fix indentation.
3168 2019-05-06  Richard Biener  <rguenther@suse.de>
3170         PR tree-optimization/90358
3171         * tree-vect-stmts.c (get_group_load_store_type): Properly
3172         detect unused upper half of load.
3173         (vectorizable_load): Likewise.
3175 2019-05-06  Richard Biener  <rguenther@suse.de>
3177         PR tree-optimization/88828
3178         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3179         (simplify_vector_constructor): ...here.  Handle constants in
3180         the constructor.
3182 2019-05-06  Richard Biener  <rguenther@suse.de>
3184         PR tree-optimization/90328
3185         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3186         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3187         is valid in the loop nest before using it.
3188         (initialize_data_dependence_relation): Adjust.
3189         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3190         loop as loop-nest to dr_may_alias_p.
3192 2019-05-06  Richard Biener  <rguenther@suse.de>
3194         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3196 2019-05-06  Richard Biener  <rguenther@suse.de>
3198         PR tree-optimization/90316
3199         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3200         compute target on demand.
3201         (get_continuation_for_phi): Remove code walking stmts to
3202         get to a target virtual operand which could end up being
3203         quadratic.
3205 2019-05-06  Martin Liska  <mliska@suse.cz>
3207         PR sanitizer/90312
3208         * config/i386/i386-options.c (ix86_option_override_internal): Error only
3209         when -mabi is selected to a non-default version.
3211 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
3212             Martin Liska  <mliska@suse.cz>
3214         * Makefile.in: Add lto-dump.texi.
3215         * cgraph.h: Add new functions get_visibility_string and
3216         get_symtab_type_string.
3217         * doc/gcc.texi: Include lto-dump section.
3218         * doc/lto-dump.texi: New file.
3219         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3220         (parse_dump_option): Factor out this function.
3221         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3222         (parse_dump_option): Export the function.
3223         * symtab.c (symtab_node::get_visibility_string): New function.
3224         (symtab_node::get_symtab_type_string): Likewise.
3226 2019-05-06  Martin Liska  <mliska@suse.cz>
3228         * config/i386/i386-builtins.c: New file.
3229         * config/i386/i386-builtins.h: New file.
3230         * config/i386/i386-expand.c: New file.
3231         * config/i386/i386-expand.h: New file.
3232         * config/i386/i386-features.c: New file.
3233         * config/i386/i386-features.h: New file.
3234         * config/i386/i386-options.c: New file.
3235         * config/i386/i386-options.h: New file.
3236         * config.gcc: Add new files into extra_objs and
3237         target_gtfiles.
3238         * config/i386/i386.c: Split content of the file
3239         into newly introduced files.
3240         * config/i386/i386.h: Declare common variables
3241         and macros.
3242         * config/i386/t-i386: Define dependencies for new files.
3244 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
3246         PR target/89400
3247         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3248         Restrict 'all' variant to 32-bit configurations.
3249         (unaligned_loadhiu): Likewise.
3250         (unaligned_storehi): Likewise.
3251         (unaligned_storesi): Likewise.
3252         (unaligned_loadhis): Disable when compiling for thumb1.
3254 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
3256         PR tree-optimization/90269
3257         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3258         Ignore clobbers.
3260 2019-05-03  Martin Liska  <mliska@suse.cz>
3262         * hash-map.h: Add is_empty function.
3263         * hash-set.h: Likewise.
3264         * hash-table.h: Likewise.
3265         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3266         elements () == 0 (and similar usages).
3267         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3268         * gimplify.c (gimplify_bind_expr): Likewise.
3269         (gimplify_switch_expr): Likewise.
3270         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3271         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3272         * postreload-gcse.c (dump_hash_table): Likewise.
3273         (gcse_after_reload_main): Likewise.
3274         * predict.c (combine_predictions_for_bb): Likewise.
3275         * tree-parloops.c (reduction_phi): Likewise.
3276         (separate_decls_in_region): Likewise.
3277         (transform_to_exit_first_loop): Likewise.
3278         (gen_parallel_loop): Likewise.
3279         (gather_scalar_reductions): Likewise.
3280         (try_create_reduction_list): Likewise.
3281         * var-tracking.c (dump_vars): Likewise.
3282         (emit_notes_for_changes): Likewise.
3283         (vt_emit_notes): Likewise.
3285 2019-05-03  Richard Biener  <rguenther@suse.de>
3287         PR tree-optimization/90316
3288         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3289         before running VN.
3291 2019-05-03  Richard Biener  <rguenther@suse.de>
3293         * tree-vect-stmts.c (get_group_load_store_type): Avoid
3294         peeling for gaps by loading only lower halves of vectors
3295         if possible.
3296         (vectorizable_load): Likewise.
3298 2019-05-03  Richard Biener  <rguenther@suse.de>
3300         PR middle-end/89518
3301         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3303 2019-05-03  Richard Biener  <rguenther@suse.de>
3305         PR middle-end/87314
3306         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3307         Handle STRING_CST vs DECL or STRING_CST.
3309 2019-05-03  Richard Biener  <rguenther@suse.de>
3311         PR tree-optimization/88963
3312         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3313         vector loads feeding only BIT_FIELD_REFs to component
3314         loads.  Rewrite stores fed by CONSTRUCTORs to component
3315         stores.
3317 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
3319         * opts.h (finish_options): Remove lang_mask argument.
3320         (print_help, help_option_argument): Declare.
3321         * opts.c (print_help): Remove forward declaration, no longer static.
3322         (finish_options): Remove lang_mask argument, don't call print_help
3323         here.
3324         * opts-global.c (decode_options): Adjust finish_option caller, call
3325         print_help here.
3327         PR tree-optimization/90303
3328         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3329         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3331 2019-05-03  Richard Biener  <rguenther@suse.de>
3333         PR tree-optimization/89698
3334         * gimple-fold.c (canonicalize_constructor_val): Early out
3335         for constants, handle unfolded INTEGER_CSTs as they appear in
3336         C++ virtual table ctors.
3338 2019-05-03  Richard Biener  <rguenther@suse.de>
3340         * passes.c (execute_function_todo): Remove dead code.
3342 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
3344         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3345         the internal register number, for any "real" register.
3347 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
3349         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3350         correct numbers for TFHAR, TFIAR, TEXASR.
3352 2019-05-02  Richard Biener  <rguenther@suse.de>
3354         PR tree-optimization/89653
3355         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3356         update-address-taken before the pass.
3357         * passes.def (pass_tree_loop_init): Put comment before it.
3359 2019-05-02  Richard Biener  <rguenther@suse.de>
3361         PR tree-optimization/89509
3362         * tree-ssa-structalias.c (compute_dependence_clique): Look
3363         at the first subvar when determining whether it is restrict.
3365 2019-05-02  Richard Biener  <rguenther@suse.de>
3367         PR tree-optimization/90273
3368         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3369         useless debug stmts.
3371 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
3373         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3374         ACLE branch.
3375         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3376         SVE ACLE branch.
3377         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3378         VEC_COND_EXPR be inserted to emulate a conditional internal function.
3379         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3380         (vectorizable_reduction): Use the functions above to vectorize in a
3381         fully masked loop codes that don't have a conditional internal
3382         function.
3384 2019-05-02  Martin Liska  <mliska@suse.cz>
3386         * cgraphclones.c: Call valid_attribute_p with 1 for
3387         target_clone.
3388         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3389         it's for target attribute.
3390         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3391         Add new boolean argument.
3392         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3393         Likewise.
3394         (ix86_valid_target_attribute_tree): Pass target_clone_attr
3395         to ix86_valid_target_attribute_inner_p.
3396         (ix86_valid_target_attribute_p): Pass flags argument to
3397         ix86_valid_target_attribute_inner_p.
3398         (get_builtin_code_for_version): Use 0 as it's target attribute.
3400 2019-05-02  Martin Liska  <mliska@suse.cz>
3402         * gcc.c (process_command): Add dummy file only
3403         if n_infiles == 0.
3404         * opts-global.c (decode_options): Pass lang_mask.
3405         * opts.c (print_help): New function.
3406         (finish_options): Print --help if help_option_argument
3407         is set.
3408         (common_handle_option): Factor out content of OPT__help_
3409         into print_help.
3410         * opts.h (finish_options): Add new argument.
3412 2019-05-02  Martin Liska  <mliska@suse.cz>
3414         PR target/88809
3415         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3416         With -minline-all-stringops use inline expansion using 4B loop.
3417         * doc/invoke.texi: Document the change of
3418         -minline-all-stringops.
3420 2019-05-01  Jeff Law  <law@redhat.com>
3422         PR tree-optimization/88797
3423         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3424         PHI feeds a conditional on the RHS of an assignment.
3426 2019-04-30  Andrew Waterman  <andrew@sifive.com>
3427             Jim Wilson  <jimw@sifive.com>
3429         * config/riscv/constraints.md (L): New.
3430         * config/riscv/predicates.md (lui_operand): New.
3431         (sfb_alu_operand): New.
3432         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3433         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3434         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3435         * config/riscv/risc.md (type): Add sfb_alu.
3436         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
3437         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
3438         (branch_zero<mode>): Delete.
3439         (mov<mode>cc): New.
3440         (mov<GPR:mode><X:mode>cc): Likewise.
3441         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
3443 2019-04-30  Nathan Sidwell  <nathan@acm.org>
3445         * tree.h (MARK_TS_EXP): New.
3447 2019-04-30  Martin Liska  <mliska@suse.cz>
3449         * opts.c (enable_warning_as_error): Provide hints
3450         for unknown options.
3452 2019-04-30  Martin Liska  <mliska@suse.cz>
3454         PR debug/90288
3455         * doc/invoke.texi: Add missing dash for gas-locview-support
3456         and gno-as-locview-support.
3458 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
3460         PR target/89093
3461         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3462         whitespace at the start of target attribute string.
3464 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3466         PR target/86538
3467         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3468         Define __ARM_FEATURE_ATOMICS.
3470 2019-04-30  Martin Liska  <mliska@suse.cz>
3472         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3473         into built_in_function enum. Remove code for endp == 2 and
3474         use BUILT_IN_* constants.
3475         (gimple_fold_builtin): Call the function with fcode.
3477 2019-04-30  Martin Liska  <mliska@suse.cz>
3479         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3480         DECL_FUNCTION_CODE into ix86_builtins enum before
3481         the switch statement.
3483 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
3485         PR tree-optimization/89475
3486         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3487         calls.
3489 2019-04-30  Martin Liska  <mliska@suse.cz>
3491         PR translation/90274
3492         * opts.c (print_filtered_help): Wrap string in _(...).
3494 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
3496         PR tree-optimization/90240
3497         Revert:
3498         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
3500         PR tree-optimization/90078
3501         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3502         checks for infinite_cost overflow.
3504 2019-04-29  Jeff Law  <law@redhat.com>
3506         * passes.def: Move -Wrestrict pass after copy propagation.
3508 2019-04-29  Maya Rashish  <coypu@sdf.org>
3510         * config.gcc (default_gnu_indirect_function): Default to yes
3511         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3512         sparc*-*-netbsd*, x86_64-*-netbsd*.
3514 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
3516         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3517         where cond2 is NE_EXPR.
3518         (is_value_included_in): Update comment.
3520 2019-04-29  Richard Biener  <rguenther@suse.de>
3522         PR tree-optimization/90278
3523         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3524         EH on comparison simplification.
3526 2019-04-29  Jason Merrill  <jason@redhat.com>
3528         PR c++/82081 - tail call optimization breaks noexcept
3529         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3530         nothrow function to a might-throw function into a tail call.
3532 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3534         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3535         (DDR_INNER_LOOP): Likewise.
3536         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3537         (initialize_data_dependence_relation): Likewise.
3538         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3540 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
3542         PR rtl-optimization/90257
3543         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3544         return value.
3546         Revert the revert:
3547         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3549         PR target/90178
3550         Revert:
3551         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
3553         Revert the revert:
3554         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
3556         Revert:
3557         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
3559         * lra-spills.c (lra_final_code_change): Remove useless move insns.
3561 2019-04-29  Richard Biener  <rguenther@suse.de>
3563         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3564         rhs issue a reset.
3566 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
3568         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
3569         varasm.h, and netbsd-protos.h.
3571 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3573         PR target/89261
3574         * config/i386/i386-protos.h (ix86_data_alignment): Change
3575         the second argument type to unsigned int.
3576         * config/i386/i386.c (ix86_data_alignment): Change "align"
3577         argument type to unsigned int.
3579 2019-04-27  Martin Liska  <mliska@suse.cz>
3581         PR middle-end/90258
3582         * opt-suggestions.c (option_proposer::build_option_suggestions):
3583         When get_valid_option_values returns empty values, add the
3584         misspelling candidate.
3586 2019-04-26  Jim Wilson  <jimw@sifive.com>
3588         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3589         parameter.
3590         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3591         Pass orig_mode to riscv_build_integer.
3592         (riscv_split_integer): Pass mode to riscv_move_integer.
3593         (riscv_legitimize_const_move): Likewise.
3594         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3595         promoted_mode.  Replace force_reg call with code to load constant into
3596         promoted reg and then subreg it for the store.
3597         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3598         riscv_move_integer.
3600 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
3602         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3603         corrupt codes.
3605 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
3607         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3608         commentary about the encoding of precision.
3610 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
3612         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3613         * config/i386/t-freebsd64: New file.
3614         * config.gcc: Add the t-freebsd64 for multilib support.
3616 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3618         * doc/extend.texi (vector_size): Add missing comma after @xref.
3620 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
3622         * BASE-VER: Set to 10.0.0.
3624 2019-04-25  Richard Biener  <rguenther@suse.de>
3626         PR middle-end/89765
3627         * gimplify.c (gimplify_expr): Avoid turning a lvalue
3628         VIEW_CONVERT_EXPR into one operating on an rvalue.
3630 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3632         PR target/89929
3633         * config/i386/i386.c (feature_priority): Moved to file scope.
3634         (processor_features): Likewise.
3635         (processor_model): Likewise.
3636         (_arch_names_table): Likewise.
3637         (arch_names_table): Likewise.
3638         (_feature_list): Removed.
3639         (feature_list): Likewise.
3640         (_isa_names_table): Moved to file scope.  Add priority.
3641         (isa_names_table): Likewise.
3642         (get_builtin_code_for_version): Replace feature_list with
3643         isa_names_table.  Update error message for P_ZERO priority.
3645 2019-04-25  Richard Biener  <rguenther@suse.de>
3647         * tree-pass.h (make_pass_phi_only_cprop): Remove.
3648         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3650 2019-04-24  Jeff Law  <law@redhat.com>
3652         PR tree-optimization/90037
3653         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3654         * passes.def: Replace all instance of phi-only cprop with the
3655         lattice propagator.  Move propagation pass from after erroneous
3656         path isolation to before erroneous path isolation.
3657         * tree-ssa-phionlycprop.c: Remove.
3659 2019-04-24  Richard Biener  <rguenther@suse.de>
3661         PR middle-end/90213
3662         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3663         by size and BITS_PER_UNIT on poly-wide-ints.
3665 2019-04-25  Richard Biener  <rguenther@suse.de>
3667         PR middle-end/90194
3668         * match.pd: Add pattern to simplify view-conversion of an
3669         empty constructor.
3671 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
3673         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3674         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3675         for Go on 32 bit AIX.
3676         * config/rs6000/aix72.h: Likewise.
3678 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
3680         PR target/90193
3681         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3682         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3684 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
3686         PR target/89952
3687         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3688         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
3689         for restored hard frame pointer.
3690         (s390_sched_dependencies_evaluation): Implement new target hook.
3691         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3693 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
3695         * config/arc/arc-options.def: Fix typos and spelling mistakes.
3696         * config/arc/arc.c (arc_init): Cleanup warning message.
3697         (arc_override_options): Likewise.
3699 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
3701         PR target/90187
3702         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3703         a register if both if_true and if_false are MEMs.
3705         PR tree-optimization/90208
3706         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3707         after labels of new_bb, not before them.
3709         PR tree-optimization/90211
3710         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3711         which are not SSA_NAMEs.
3713 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
3715         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3716         AArch64.
3717         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3719 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
3721         PR rtl-optimization/87979
3722         * modulo-sched.c (sms_schedule): Start ii value "mii" should
3723         not equal zero.
3725 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
3727         PR rtl-optimization/84032
3728         * modulo-sched.c (ps_insn_find_column): Change condition so that
3729         branch will always be the last insn in a row inside partial
3730         schedule.
3732 2019-04-23  Richard Biener  <rguenther@suse.de>
3734         PR debug/90131
3735         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3736         dest_single_pred_p argument.
3737         (remove_forwarder_block): Adjust.
3738         (remove_forwarder_block_with_phi): Likewise.
3740 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3741             Bernd Edlinger  <bernd.edlinger@hotmail.de>
3742             Jakub Jelinek  <jakub@redhat.com>
3744         PR target/89093
3745         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3746         if used with general-regs-only.
3747         (arm_conditional_register_usage): Don't add non-general regs if
3748         general-regs-only.
3749         (arm_valid_target_attribute_rec): Handle general-regs-only.
3750         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3751         general-regs-only.
3752         (TARGET_HARD_FLOAT_SUB): Define.
3753         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3754         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3755         (TARGET_REALLY_IWMMXT2): Likewise.
3756         * config/arm/arm.opt: Add -mgeneral-regs-only.
3757         * doc/extend.texi: Document ARM general-regs-only target.
3758         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3760 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
3762         PR tree-optimization/90078
3763         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3764         checks for infinite_cost overflow.
3766 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
3768         PR tree-optimization/90021
3769         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3770         and check univariate against it.
3771         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3772         * tree-data-ref.c (add_other_self_distances): Pass new argument.
3774 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3776         PR target/90178
3777         Revert:
3778         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
3780         Revert the revert:
3781         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
3783         Revert:
3784         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
3786         * lra-spills.c (lra_final_code_change): Remove useless move insns.
3788 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
3790         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3791         names using operand format, rather than hard-wired.
3792         (speculation_barrier): Likewise.
3794 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
3796         PR tree-optimization/88055
3797         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3798         (gen_one_condition): Use it if !HONOR_NANS.
3800 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
3802         PR middle-end/90139
3803         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3804         assign_temp instead of gen_reg_rtx.
3806 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
3808         PR translation/90118
3809         * config/aarch64/aarch64.c (aarch64_override_options_internal):
3810         Add missing space before %<.
3812 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
3814         PR rtl-optimization/87871
3815         * ira-lives.c (make_object_dead): Don't add conflicts to
3816         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3818 2019-04-18  Martin Sebor  <msebor@redhat.com>
3820         PR middle-end/89797
3821         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3822         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3823         assuming type size fits in SHWI.
3825 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
3827         PR ipa/85051
3828         * ipa-inline.c (flatten_function): New parameter UPDATE.
3829         (ipa_inline, early_inliner): Use it.
3831 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
3833         * fold-const.c (int_const_binop): Return early on failure.
3835 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
3837         PR middle-end/85164
3838         * combine.c (force_int_to_mode): Cast the argument rather than
3839         the result of known_alignment.
3840         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3842 2019-04-18  Richard Biener  <rguenther@suse.de>
3844         PR debug/90131
3845         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3846         out from ...
3847         (remove_forwarder_block): ... here.
3848         (remove_forwarder_block_with_phi): Also move debug stmts here.
3850 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
3852         PR translation/79183
3853         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3854         inform where appropriate.
3856 2019-04-18  Richard Biener  <rguenther@suse.de>
3858         * tree.c (get_qualified_type): Put found type variants at the
3859         head of the variant list.
3861 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
3863         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3865 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
3867         PR target/90125
3868         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3869         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3870         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3871         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3872         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3874 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
3876         * ira-conflicts.c (print_allocno_conflicts): Always print something,
3877         even for allocno's with no conflicts.
3878         (print_conflicts): Print an extra newline.
3880 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
3882         * auto-inc-dec.c (attempt_change): Set the alignment of the
3883         temporary memory to that of the original.
3885 2019-04-17  Joao Moreira  <jmoreira@suse.de>
3887         * targhooks.c (default_print_patchable_function_entry): Emit
3888         __patchable_function_entries section with writable flags to allow
3889         relocation resolution.
3891 2019-04-17  Jonny Grant  <jg@jguk.org>
3893         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3895 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
3897         PR middle-end/90095
3898         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3899         on lowpart SUBREGs.
3901 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
3903         * config/arc/arc.c (arc_init): Format diagnostic string.
3904         (arc_override_options): Likewise.
3905         (check_if_valid_regno_const): Likewise.
3906         (arc_reorg): Likewise.
3908 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
3910         PR target/17108
3911         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3912         name.
3913         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
3914         name.
3915         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3916         (*movdi_update1): Use Pmode.
3917         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3918         (movdi_<mode>_update_stack): Rename to ...
3919         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
3920         use Pmode.
3921         (*movsi_update1): Use Pmode.
3922         (*movsi_update2): Use Pmode.
3923         (movsi_update): Rename to ...
3924         (movsi_<mode>_update): ... this.  Use Pmode.
3925         (movsi_update_stack): Fix condition.
3926         (*movhi_update1): Use Pmode.  Fix argument to
3927         avoiding_indexed_address_p.
3928         (*movhi_update2): Ditto.
3929         (*movhi_update3): Ditto.
3930         (*movhi_update4): Ditto.
3931         (*movqi_update1): Ditto.
3932         (*movqi_update2): Ditto.
3933         (*movqi_update3): Ditto.
3934         (*movsf_update1, *movdf_update1): Merge, rename to...
3935         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
3936         avoiding_indexed_address_p.  Add "size" attribute.
3937         (*movsf_update2, *movdf_update2): Merge, rename to...
3938         (*mov<mode>_update2): This.  Ditto.
3939         (*movsf_update3): Use Pmode.  Fix argument to
3940         avoiding_indexed_address_p.
3941         (*movsf_update4): Ditto.
3942         (allocate_stack): Simplify condition.  Adjust pattern names.
3944 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
3946         PR target/89093
3947         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3948         whitespace at the start of target attribute string.
3950 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
3952         PR target/84369
3953         * config/rs6000/power9.md: Add store forwarding bypass.
3955 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
3957         PR debug/89528
3958         * valtrack.c (dead_debug_insert_temp): Reset debug references
3959         to the return value of a call being removed.
3961 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
3963         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3964         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3965         implement target hook.
3966         (arc_memory_move_cost): New function.
3967         (TARGET_REGISTER_MOVE_COST): Define.
3968         (TARGET_MEMORY_MOVE_COST): Likewise.
3969         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3970         (MEMORY_MOVE_COST): Likewise.
3972 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
3974         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3975         (sibcall_value_insn): Likewise.
3976         * config/arc/constraints.md (Rs5): Remove.
3978 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
3980         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3981         for last two fake registers.
3982         (arc_conditional_register_usage): Make sure fake frame and arg
3983         pointer regs are in general regs class.
3984         (FRAME_POINTER_MASK): Remove.
3985         (RETURN_ADDR_MASK): Remove.
3986         (arc_must_save_register): Use hard frame regnum.
3987         (frame_restore_reg): Use hard_frame_pointer_rtx.
3988         (arc_save_callee_saves): Likewise.
3989         (arc_restore_callee_saves): Likewise.
3990         (arc_save_callee_enter): Likewise.
3991         (arc_restore_callee_leave): Likewise.
3992         (arc_save_callee_milli): Likewise.
3993         (arc_eh_return_address_location): Likewise.
3994         (arc_check_multi): Use hard frame regnum.
3995         (arc_can_eliminate): Likewise.
3996         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
3997         for register allocator.
3998         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
3999         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4000         (FRAME_POINTER_REGNUM): Change it to a fake register.
4001         (HARD_FRAME_POINTER_REGNUM): Defined.
4002         (ARG_POINTER_REGNUM): Change it to a new fake register.
4003         (ELIMINABLE_REGS): Update.
4004         (REGISTER_NAMES): Update names.
4005         * config/arc/arc.md (LP_START): Remove.
4006         (LP_END): Likewise.
4007         (shift_si3_loop): Update pattern.
4009 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
4011         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4012         to avoid delay slot scheduling.
4013         (arc_must_save_register): Don't save SP.
4014         * config/arc/arc.md (stack_tie): Remove.
4015         (UNSPEC_ARC_STKTIE): Likewise.
4017 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
4018             Shiva Chen  <shiva0217@gmail.com>
4020         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4021         code gen with large shift amount.
4023 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4025         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4026         subreg.
4028 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
4030         PR target/90096
4031         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4032         print -m64/-mx32/-m32 if it is true.
4033         (ix86_debug_options, ix86_function_specific_print): Pass true as
4034         ADD_ABI_P to ix86_target_string.
4035         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4036         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4037         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4039         PR rtl-optimization/90082
4040         * dce.c (can_delete_call): New function.
4041         (deletable_insn_p, mark_insn): Use it.
4043         PR tree-optimization/90090
4044         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4045         throw internally.
4046         (is_division_by_square): Likewise.  Formatting fix.
4048 2019-04-16  Richard Biener  <rguenther@suse.de>
4050         PR tree-optimization/56049
4051         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4052         equality check if alias-set zero will prevail.
4054 2019-04-15  Jeff Law  <law@redhat.com>
4056         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4057         size and alignment as unsigned.
4059 2019-04-15  Richard Biener  <rguenther@suse.de>
4061         PR debug/90074
4062         * tree-loop-distribution.c (destroy_loop): Preserve correct
4063         debug info.
4065 2019-04-15  Richard Biener  <rguenther@suse.de>
4067         PR tree-optimization/90071
4068         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4069         abnormal operands from def stmts.
4071 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
4073         PR rtl-optimization/89794
4074         * combine.c (count_auto_inc): New function.
4075         (try_combine): Count how many auto_inc expressions there were in the
4076         original instructions.  Ensure we have the same number in the new
4077         instructions.  Remove the code that tried to ensure auto_inc side
4078         effects on i1 and i0 are not lost.
4080 2019-04-15  Richard Biener  <rguenther@suse.de>
4082         PR ipa/88936
4083         * tree.h (auto_var_p): Declare.
4084         * tree.c (auto_var_p): New function, split out from ...
4085         (auto_var_in_fn_p): ... here.
4086         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4087         member.
4088         (new_var_info): Initialize it.
4089         (set_uids_in_ptset): Also set the shadow variable uid if required.
4090         (ipa_pta_execute): Postprocess points-to solutions assigning
4091         shadow variable uids for locals that may reach their containing
4092         function recursively.
4093         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4094         assert but instead check whether the points-to solution is
4095         a singleton.
4097 2019-04-15  Martin Jambor  <mjambor@suse.cz>
4099         PR ipa/pr89693
4100         * cgraph.c (clone_of_p): Loop over clone chain for each step in
4101         the thunk chain.
4103 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
4105         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4107 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
4108             Kito Cheng  <kito.cheng@gmail.com>
4109             Shiva Chen  <shiva0217@gmail.com>
4111         * config/nds32/nds32-md-auxiliary.c
4112         (nds32_legitimize_pic_address): Use new PIC pattern.
4113         (nds32_legitimize_tls_address): Use new TLS pattern.
4114         (nds32_output_symrel): New.
4115         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4116         (nds32_alloc_relax_group_id): Ditto.
4117         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4118         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4119         relax_group_id.
4120         (nds32_group_tls_insn): Ditto.
4121         (nds32_group_float_insns): Ditto.
4122         * config/nds32/nds32.md (tls_le): New.
4123         (sym_got): Ditto.
4125 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
4127         * configure: Add nds32 target for dwarf2 debug_line checking.
4128         * configure.ac: Regenerated.
4130 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
4132         PR lto/89358
4133         * ipa-devirt.c (skip_in_fields_list_p): New.
4134         (odr_types_equivalent_p): Use it.
4136 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
4138         PR target/89093
4139         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4140         instead of strncmp when checking for thumb and arm.  Formatting fixes.
4142 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
4144         * doc/install.texi: Document --with-target-system-zlib.
4146 2019-04-12  Martin Sebor  <msebor@redhat.com>
4148         PR c/88383
4149         PR c/89288
4150         PR c/89798
4151         PR c/89797
4152         * targhooks.c (default_vector_alignment): Avoid assuming
4153         argument fits in SHWI.
4154         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4155         a shift expression.
4156         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4158 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4160         PR rtl-optimization/89965
4161         * dce.c: Include rtl-iter.h.
4162         (struct check_argument_load_data): New type.
4163         (check_argument_load): New function.
4164         (find_call_stack_args): Check for loads from stack slots still tracked
4165         in sp_bytes and punt if any is found.
4167         * config/mips/loongson-mmiintrin.h: Fix up #error message.
4169 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
4171         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4172         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4174 2019-04-12  Martin Liska  <mliska@suse.cz>
4176         PR middle-end/89970
4177         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4178         in error message.
4179         (separate_attrs): Handle multiple 'default's.
4180         (expand_target_clones): Rework error handling code.
4182 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4184         PR target/87532
4185         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4186         mode of vector rather than mode of destination for move instruction.
4187         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4188         Use QI inner mode with V16QI vector mode.
4190 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4192         PR target/52726
4193         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4194         "invalid %%t operand" in output_operand_lossage message.
4196 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
4198         * config/s390/predicates.md (permute_pattern_operand): New
4199         predicate.
4200         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4201         operand for the permute pattern.
4202         ("*vec_perm<mode>"): New insn definition.
4203         ("bswap<mode>"): Generate the permute pattern operand in the
4204         expander and perform the operand reloads for pre arch13 level
4205         already.
4206         ("*bswap<mode>_emu"): Rename to ...
4207         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4208         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4209         Add the USE operand for the permute pattern.
4210         ("*vec_set_bswap_vec<mode>"): Likewise.
4212 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4214         PR c/89946
4215         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4216         and gcc_unreachable if it fails, just call tree_to_uhwi which
4217         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
4218         Start warning message with a lower-case letter.  Formatting fixes.
4220         PR rtl-optimization/90026
4221         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4222         successors, look for BARRIERs inside of the whole BB_FOOTER chain
4223         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
4224         in cfglayout mode, use emit_barrier_after_bb.
4226 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
4228         PR rtl-optimization/87763
4229         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4230         New Instruction.
4232 2019-04-11  Tom de Vries  <tdevries@suse.de>
4234         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4235         max macro using statement expression.
4237 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
4239         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4240         * xcoffout.c (xcoff_private_rodata_section_name): Define.
4241         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4242         read_only_private_data_section using xcoff_private_rodata_section_name.
4243         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4245 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
4247         PR target/90016
4248         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4250 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
4252         PR rtl-optimization/89965
4253         * dce.c (sp_based_mem_offset): New function.
4254         (find_call_stack_args): Use sp_based_mem_offset.
4256 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
4258         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4260 2019-04-11  Richard Biener  <rguenther@suse.de>
4262         PR tree-optimization/90020
4263         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4264         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4265         * tree-ssa-pre.c (compute_avail): Use it to not put
4266         possibly trapping references after a call that might not
4267         return into EXP_GEN.
4268         * gcse.c (compute_hash_table_work): Do not elide
4269         marking a block containing a call if the call might not
4270         return.
4272 2019-04-11  Richard Biener  <rguenther@suse.de>
4274         PR tree-optimization/90018
4275         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4276         Test both SLP and interleaving variants.
4278 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
4280         * config/s390/8561.md: New file.
4281         * config/s390/driver-native.c (s390_host_detect_local_cpu):
4282         Add arch13 cpu model.
4283         * config/s390/s390-opts.h (enum processor_type): Likewise.
4284         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4285         (s390_get_unit_mask): Likewise.
4286         (s390_is_fpd): Likewise.
4287         (s390_is_fxd): Likewise.
4288         * config/s390/s390.h (s390_tune_attr): Likewise.
4289         * config/s390/s390.md: Include arch13 pipeline description.
4290         * config/s390/s390.opt: Add arch13.
4292 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
4294         PR rtl-optimization/87763
4295         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4296         New prototype.
4297         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4298         New function.
4299         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4300         New instruction.
4301         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4302         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4303         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4304         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4306 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
4308         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4309         "Although" in -fipa-icf documentation.
4311         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4312         of using multiple -g options.
4314 2019-04-10  Martin Liska  <mliska@suse.cz>
4316         PR gcov-profile/89959
4317         * doc/gcov.texi: Make documentation of -x option
4318         more precise.
4320 2019-04-10  Richard Biener  <rguenther@suse.de>
4322         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4323         member.
4324         (DR_GROUP_SAME_DR_STMT): Remove.
4325         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4326         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4327         replace with assert.
4328         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4329         (vect_record_grouped_load_vectors): Remove unreachable code.
4331 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
4333         PR target/90016
4334         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4335         obsolete reference to N.
4337 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
4339         PR middle-end/90025
4340         * expr.c (store_expr): Set properly size on the MEM passed to
4341         clear_storage.
4343         PR c++/90010
4344         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4345         with strlen in between hostsz-3 and hostsz-1 inclusive when no
4346         translation is needed, and when translation is needed, only append
4347         ... if the string length is hostsz or more bytes long.  Avoid using
4348         strncpy or strcat.
4350 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
4352         PR target/90024
4353         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4354         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4355         into three.
4356         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4357         differences directly.
4358         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4360 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
4362         PR translation/90011
4363         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4364         from diagnostics.
4365         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4366         diagnostics.
4367         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4368         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4369         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4370         trailing space from -gsplit-dwarf diagnostics.
4372         PR tree-optimization/89998
4373         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4374         instead of integer_type_node if possible, don't add ranges if return
4375         type is not compatible with int.
4376         * gimple-fold.c (gimple_fold_builtin_sprintf,
4377         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4378         integer_type_node.
4380 2019-04-09  Martin Liska  <mliska@suse.cz>
4382         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4383         * doc/install.texi: Document the new config.
4385 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
4387         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4388         use gimple_expr_type for load and store calls.  Skip over the
4389         condition argument in a conditional internal function.
4390         Protect use of TREE_INT_CST_LOW.
4392 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
4394         PR target/90015
4395         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4396         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
4397         trailing period from it too.
4399 2019-04-08  wu yuan  <wuyuan5@huawei.com>
4401         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4402         * config/aarch64/aarch64.md : Add "tsv110.md"
4403         * config/aarch64/tsv110.md: New file.
4405 2019-04-08  Richard Biener  <rguenther@suse.de>
4407         PR tree-optimization/90006
4408         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4409         calls like lrint.
4411 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
4413         PR target/83033
4414         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4415         construction.
4416         (fma_root_node): Likewise.
4417         (func_fma_steering): Likewise.
4419 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
4421         PR rtl-optimization/89865
4422         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4424         PR rtl-optimization/89865
4425         * config/i386/i386.md
4426         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4427         numbers not to clash with the additional operands[4].
4428         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4429         with extra register copy in the middle.
4431 2019-04-08  Martin Liska  <mliska@suse.cz>
4433         PR gcov-profile/89961
4434         * doc/gcov.texi: Document data_file.
4435         * gcov.c (generate_results): Add data_info into JSON output.
4437 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
4439         PR tree-optimization/89725
4440         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
4441         loop's chrec as invariant symbol.
4442         * tree-chrec.h (chrec_contains_symbols): New parameter.
4443         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4444         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4445         function of loops not in DDR's loop_nest.
4446         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4448 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
4450         PR target/89623
4451         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4452         Mask.
4454 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4456         PR target/89945
4457         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4458         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4460 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4462         * sched-deps.c (sched_macro_fuse_insns): Check return value of
4463         targetm.fixed_condition_code_regs.
4465 2019-04-05  Richard Biener  <rguenther@suse.de>
4467         PR debug/89892
4468         PR debug/89905
4469         * tree-cfgcleanup.c (remove_forwarder_block): Always move
4470         debug bind stmts but reset them if they are not valid at the
4471         destination.
4473 2019-04-05  Martin Liska  <mliska@suse.cz>
4475         PR translation/89936
4476         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4477         order to wrap keywords or arguments.
4478         * collect2.c (main): Likewise.
4479         (scan_prog_file): Likewise.
4480         (scan_libraries): Likewise.
4481         * common/config/riscv/riscv-common.c
4482         (riscv_subset_list::parsing_subset_version): Likewise.
4483         (riscv_subset_list::parse_std_ext): Likewise.
4484         * config/aarch64/aarch64.c (aarch64_override_options_internal):
4485         Likewise.
4486         * config/arm/arm.c (arm_option_override): Likewise.
4487         * config/cris/cris.c (cris_print_operand): Likewise.
4488         * config/darwin-c.c (darwin_pragma_options): Likewise.
4489         (darwin_pragma_unused): Likewise.
4490         (darwin_pragma_ms_struct): Likewise.
4491         * config/ft32/ft32.c (ft32_print_operand): Likewise.
4492         * config/i386/i386.c (print_reg): Likewise.
4493         (ix86_print_operand): Likewise.
4494         * config/i386/xm-djgpp.h: Likewise.
4495         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4496         * config/m32c/m32c.c (m32c_option_override): Likewise.
4497         * config/msp430/msp430.c (msp430_option_override): Likewise.
4498         * config/nds32/nds32.c (nds32_option_override): Likewise.
4499         * config/nvptx/mkoffload.c (main): Likewise.
4500         * config/rx/rx.c (rx_print_operand): Likewise.
4501         (valid_psw_flag): Likewise.
4502         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4503         (vms_pragma_nomember_alignment): Likewise.
4504         (vms_pragma_extern_model): Likewise.
4505         * lto-wrapper.c (compile_offload_image): Likewise.
4506         * omp-offload.c (oacc_parse_default_dims): Likewise.
4507         * symtab.c (symtab_node::verify_base): Likewise.
4508         * tlink.c (recompile_files): Likewise.
4509         (start_tweaking): Likewise.
4510         * tree-profile.c (parse_profile_filter): Likewise.
4512 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
4514         PR tree-optimization/89956
4515         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4516         multiple negates of the same value.
4518 2019-04-04  Martin Sebor  <msebor@redhat.com>
4520         PR middle-end/89957
4521         PR middle-end/89911
4522         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4523         have the same precision since the function crashes otherwise.
4524         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4525         has non-zero arguments.
4527 2019-04-04  Martin Sebor  <msebor@redhat.com>
4529         PR middle-end/89934
4530         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4531         out if the number of arguments is less than expected.
4533 2019-04-04  Jeff Law  <law@redhat.com>
4535         PR rtl-optimization/89399
4536         * ree.c (combine_set_extension): Use single_set rather than
4537         digging into PATTERN for items on the candidate list.
4538         (combine_reaching_defs): Likewise.
4540 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
4542         PR rtl-optimization/46590
4543         * loop-invariant.c (find_defs): Move df_remove_problem and
4544         df_process_deferred_rescans to move_invariants.
4545         Move df_live_add_problem and df_live_set_all_dirty calls
4546         to move_invariants.
4547         (move_invariants): Likewise.
4548         (move_loop_invariants): Likewise, making the df_live calls
4549         conditional on -O.  Remove the problem again if we added it
4550         locally.
4552 2019-04-03  qing zhao  <qing.zhao@oracle.com>
4554         PR tree-optimization/89730
4555         * ipa-inline.c (can_inline_edge_p): Delete the checking for
4556         -flive-patching=inline-only-static.
4557         (can_inline_edge_by_limits_p): Add the checking for
4558         -flive-patching=inline-only-static and grant always_inline
4559         even when -flive-patching=inline-only-static is specified.
4561 2019-04-03  Jeff Law  <law@redhat.com>
4563         PR rtl-optimization/81025
4564         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4566 2019-04-03  Richard Biener  <rguenther@suse.de>
4568         PR tree-optimization/84101
4569         * tree-vect-stmts.c: Include explow.h for hard_function_value,
4570         regs.h for hard_regno_nregs.
4571         (cfun_returns): New helper.
4572         (vect_model_store_cost): When vectorizing a store to a decl
4573         we return and the function ABI returns in a multi-reg location
4574         account for the possible spilling that will happen.
4576 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
4578         * config/s390/s390.c (s390_legitimate_address_p): Reject long
4579         displacement addresses for vector mode operands.
4581 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
4583         * config/arc/arc.c (GMASK_LEN): Define.
4584         (arc_restore_callee_saves): Restore first blink when
4585         !optimize_size.
4587 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
4589         * doc/extend.texi: Add deprecated comment on sign-return-address
4590         function attribute and add mbranch-protection.
4591         * doc/invoke.texi: Add bti to the options for mbranch-protection.
4593 2019-04-03  Richard Biener  <rguenther@suse.de>
4595         PR lto/89896
4596         * lto-wrapper.c (run_gcc): Avoid implicit rules making
4597         the all target phony.
4599 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4601         PR target/89902
4602         PR target/89903
4603         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4604         Return false for variable DImode shifts.
4605         (dimode_scalar_chain::compute_convert_gain): Do not handle
4606         register count operand in variable DImode shifts.
4607         (dimode_scalar_chain::make_vector_copies): Remove support to copy
4608         count argument of a variable shift instruction to a vector register.
4609         (dimode_scalar_chain::convert_reg): Remove support to convert
4610         count argument of a variable shift instruction.
4612 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
4614         PR rtl-optimization/84206
4615         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4616         iterating over loop headers.
4618 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
4620         PR rtl-optimization/85876
4621         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4622         beyond the original fence.
4624 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
4626         * config.gcc: Mark spu* targets as deprecated/obsolete.
4628 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4630         * config/s390/s390-builtin-types.def: New builtin function type
4631         definitions. Remove unused types.
4632         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4633         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4634         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4635         overloaded builtins.
4636         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4637         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4638         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4639         (vec_double, vec_signed, vec_unsigned): Define to use the new
4640         overloaded builtins.
4641         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4642         Remove expanders.
4644 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4646         * config/s390/s390-builtin-types.def: New builtin function type
4647         definitions.
4648         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4649         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4650         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4651         (s390_vstrszh, s390_vstrszf): New low-level builtins.
4652         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4653         constant definitions.
4654         * config/s390/vecintrin.h (vec_search_string_cc)
4655         (vec_search_string_until_zero_cc): New builtin name definitions.
4656         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4657         expanders.
4658         ("vec_vstrs<mode>"): New insn definition.
4660 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4662         * config/s390/s390-builtin-types.def: Add new builtin function
4663         types.
4664         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4665         New overloaded builtins.
4666         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
4667         s390_vsrd.
4668         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4669         (UNSPEC_VEC_SLDBYTE): ... this.
4670         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4671         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4672         definitions.
4673         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4674         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4675         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4677 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4679         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4680         New insn definition.
4681         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4682         * config/s390/vector.md (V_HW_HSD): ... here.
4684 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4686         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4687         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4688         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4689         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4690         New insn definitions.
4692 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4694         * config/s390/s390-builtin-types.def: Add new builtin function type.
4695         * config/s390/s390-builtins.def: Add overloaded builtin
4696         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4697         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4698         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4699         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4700         ("eltswap<mode>"): New expander.
4701         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4702         insn definitions.
4704 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4706         * config/s390/s390-builtin-types.def: Add new builtin function types.
4707         * config/s390/s390-builtins.def: Add overloaded builtin
4708         s390_vec_revb. Add low-level builtins for vlbr and vstbr
4709         instructions.
4710         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4711         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4712         ("bswap<mode>"): New expander.
4713         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4715 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4717         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4718         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4719         vector builtin version number in __VEC__.
4721 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4723         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4724         iterators.
4725         (SFSI): New mode attribute.
4726         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4727         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4728         rename to ...
4729         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4730         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4731         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4732         ("floatsi<mode>2"): Add wcefb instruction.
4734 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4736         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4737         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4738         mode iterators.
4739         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4740         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4741         support 32 bit fp-int conversions. Rename to ...
4742         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4743         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4744         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4745         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4746         ... to these.
4748 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4750         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4751         if-then-else constructs if we can use the select instruction.
4752         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4754 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4756         * config/s390/s390.md ("*popcountdi_arch13_cc")
4757         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4758         definition.
4759         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4760         Append _z196 to make it ...
4761         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4762         ("popcounthi2_z196"): ... this.
4763         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4764         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4766 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4768         * config/s390/s390.c (s390_canonicalize_comparison): Convert
4769         certain compares for arch13 in order to make use of the condition
4770         code result produced by the new instructions.
4771         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4772         nxrk, and nxgrk instruction patterns.
4773         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4774         (inv_no): Add new code iterator together with some attributes.
4775         ("*andc_split_<mode>"): Disable splitter for arch13.
4776         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4777         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4778         ("*<ANDOR:bitops_name>c<GPR:mode>")
4779         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4780         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4781         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4782         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4784 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
4786         * common/config/s390/s390-common.c (processor_flags_table): New
4787         entry for arch13.
4788         * config.gcc: Support arch13 with the --with-arch= configure flag.
4789         * config/s390/driver-native.c (s390_host_detect_local_cpu):
4790         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4791         * config/s390/s390.c (s390_get_sched_attrmask)
4792         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4793         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4794         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4795         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4796         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4797         definitions.
4798         * config/s390/s390.opt: Support arch13 as processor type in
4799         command line options.
4801 2019-04-02  Martin Liska  <mliska@suse.cz>
4803         PR translation/89912
4804         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4805         Fix param description of graphite-max-arrays-per-scop.
4807 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
4809         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4810         (ASAN_CC1_SPEC): Use it in 64-bit mode.
4811         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4813 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
4815         PR rtl-optimization/85412
4816         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4817         sel_sched_region_1, not after.
4819 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
4821         PR rtl-optimization/86928
4822         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4823         compute_live if necessary.
4824         (sel_redirect_edge_and_branch): Likewise.
4826 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
4828         PR rtl-optimization/89865
4829         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4830         register if it is a part of small class.
4832 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
4834         PR rtl-optimization/87273
4835         * sel-sched-ir.c (merge_fences): Remove assert.
4837 2019-04-01  Richard Biener  <rguenther@suse.de>
4839         PR tree-optimization/46590
4840         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4841         (dom_walker::m_reachability): Add in place of...
4842         (dom_walker::m_skip_unreachable_blocks): ...this.
4843         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4844         Move complex initialization ...
4845         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
4846         lazily and initialize edge flags on each invocation.
4847         (dom_walker::bb_reachable): Use m_reachability.
4849 2019-04-01  Martin Liska  <mliska@suse.cz>
4851         PR driver/89861
4852         * opt-suggestions.c (option_proposer::build_option_suggestions):
4853         Add variant without any argument in order to provide better
4854         hints.
4856 2019-04-01  Richard Biener  <rguenther@suse.de>
4858         PR c/71598
4859         * gimple.c: Include langhooks.h.
4860         (gimple_get_alias_set): Treat enumeral types as the underlying
4861         integer type.
4863 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
4864             Eric Botcazou  <ebotcazou@adacore.com>
4866         PR rtl-optimization/89862
4867         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4868         that operates on the full registers for WORD_REGISTER_OPERATIONS
4869         architectures.
4871 2019-03-29  Jim Wilson  <jimw@sifive.com>
4873         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4874         Clear MASK_RVC and then set if C subset supported.
4876 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
4878         PR c/89872
4879         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4880         non-addressable complit into its initializer if it is volatile.
4882 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
4884         * opts-common.c (integral_argument): Set errno properly in one case.
4886 2019-03-29  Martin Liska  <mliska@suse.cz>
4888         * doc/invoke.texi: Remove -Wchkp from documentation.
4890 2019-03-29  Martin Liska  <mliska@suse.cz>
4892         * dbgcnt.c (print_limit_reach): New function.
4893         (dbg_cnt): Use it.
4895 2019-03-29  Martin Liska  <mliska@suse.cz>
4897         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4898         (dbg_cnt_process_opt): Parse first tokens aas
4899         dbg_cnt_process_single_pair is also using strtok.
4901 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
4903         PR rtl-optimization/87485
4904         * function.c (expand_function_end): Move stack_protect_epilogue
4905         before loading of return value into hard register(s).
4907 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
4909         PR middle-end/89621
4910         * tree-inline.h (struct copy_body_data): Add
4911         dont_remap_vla_if_no_change flag.
4912         * tree-inline.c (remap_type_3, remap_type_2): New functions.
4913         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4914         and remap_type_2 returns false.
4915         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4916         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4917         only from where it is copied to nested contexts.
4919 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4921         PR target/89865
4922         * config/i386/i386.md (RMW operation with LEA peephole):
4923         Use LEAMODE mode attribute instead of SWI mode iterator for
4924         LEA pattern.
4926 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4928         PR target/89848
4929         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4930         Also process XEXP (src, 0) of a shift insn.
4932 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
4934         PR middle-end/89725
4935         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4936         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4938 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
4940         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4941         test.
4942         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4943         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
4944         immediately after first one with df_analyze in between, but rather
4945         process all bbs, queueing ones that need second pass in a worklist,
4946         df_analyze, process queued debug insn changes and if second pass is
4947         needed, process bbs from worklist, df_analyze, process queued debug
4948         insns again.
4950         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4951         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4952         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4954 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
4956         PR c/79022
4957         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4958         definition.
4960 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
4962         PR target/85667
4963         * config/i386/i386.c (ix86_function_value_1): Call the newly added
4964         function for 32-bit MS_ABI.
4965         (function_value_ms_32): New function.
4967 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
4969         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4970         (movdi): Call gen_movdi_symbol_save_scc.
4971         (gen_movdi_symbol_save_scc): New insn and split.
4973 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
4975         PR rtl-optimization/89313
4976         * function.c (matching_constraint_num): New static function.
4977         (match_asm_constraints_1): Use it.  Fixup white space and comment.
4978         Don't replace inputs with non-matching constraints which conflict
4979         with early clobber outputs.
4981 2019-03-27  Jeff Law  <law@redhat.com>
4984         PR rtl-optimization/87761
4985         PR rtl-optimization/89826
4986         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4987         slightly later.
4988         (pass_cprop_hardreg::execute): Call df_analyze after adding the
4989         note problem to get REG_DEAD/REG_UNUSED notes updated.
4991 2019-03-27  Richard Biener  <rguenther@suse.de>
4993         PR tree-optimization/89463
4994         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
4995         queue edges to remove.
4996         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
4997         dead stmts.  Delay edge removal until PHIs are removed to
4998         make debug-stmt creation not confused by seemingly degenerate
4999         PHIs.
5001 2019-03-27  Alan Modra  <amodra@gmail.com>
5003         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5004         throughout file.
5005         * config/rs6000/darwin.h: Likewise.
5006         * config/rs6000/rs6000.c: Likewise.
5008 2019-03-27  Alan Modra  <amodra@gmail.com>
5010         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5011         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
5013 2019-03-26  Andrew Waterman  <andrew@sifive.com>
5014             Jim Wilson  <jimw@sifive.com>
5016         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5017         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5018         (generic_idivdi, generic_fmul_single, generic_fmul_double)
5019         (generic_fdiv, generic_fsqrt): Add check for generic tune.
5020         (generic_alu): Add auipc to type list.
5021         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5022         (riscv_microarchitecture): Declare.
5023         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5024         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5025         field.
5026         (riscv_microarchitecture): New.
5027         (sifive_7_tune_info): New.
5028         (riscv_cpu_info_table): Add microarchitecture value for rocket and
5029         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
5030         entries.
5031         (riscv_store_data_bypass_p): New.
5032         (riscv_option_override): Set riscv_microarchitecture from
5033         cpu->microarchitecture.
5034         * config/riscv/riscv.md: Include sifive-7.md.
5035         (type): Add auipc.
5036         (tune): New.
5037         (auipc<mode>): Change type to auipc.
5038         (restore_stack_nonlocal): New.
5039         * config/riscv/sifive-7.md: New.
5040         * doc/invoke.texi (RISC-V Options): Update mtune docs.
5042 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5044         PR target/89827
5045         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5046         Also process XEXP (src, 0) of a shift insn.
5048 2019-03-26  Richard Biener  <rguenther@suse.de>
5050         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5051         (copy_debug_stmt): Likewise.
5052         (expand_call_inline): Likewise.
5053         (copy_bb): Avoid redundant lookup & set of gimple_block.
5054         * gimple-low.c (lower_gimple_return): Likewise.
5055         (lower_builtin_setjmp): Likewise.
5057 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
5059         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5060         is constant 0, turn into static const data member initialized to false.
5061         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5062         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5064 2019-03-26  Jason Merrill  <jason@redhat.com>
5065             Jakub Jelinek  <jakub@redhat.com>
5067         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5068         method.
5069         (mem_alloc_description::release_object_overhead): Fix comment typos.
5070         * hash-table.h (hash_table::~hash_table): Call
5071         release_instance_overhead only if m_entries is non-NULL, otherwise
5072         call unregister_descriptor.
5074 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
5076         PR tree-optimization/81740
5077         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5078         In case of outer loop vectorization, check for backward dependence
5079         at the inner loop if outer loop dependence is reversed.
5081 2019-03-26  Alan Modra  <amodra@gmail.com>
5083         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5084         rs6000_vector_mem init.  Correct wI and wJ comment.
5086 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
5088         PR rtl-optimization/88347
5089         PR rtl-optimization/88423
5090         * sched-deps.c (sched_analyze_insn): Take into account that for
5091         tablejumps the barrier appears after a label and a jump_table_data.
5093 2019-03-25  Martin Sebor  <msebor@redhat.com>
5095         PR c/89812
5096         * c-common.c (check_user_alignment): Rename local.  Correct maximum
5097         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
5098         convert it to UHWI when it fits.
5100 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
5102         PR debug/86964
5103         * dwarf2out.c (premark_used_variables): New function.
5104         (prune_unused_types_walk): Do not mark not premarked external
5105         variables.
5106         (prune_unused_types): Call premark_used_variables.
5108 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
5110         PR rtl-optimization/89676
5111         * lra-constraints.c (curr_insn_transform): Do match reload for
5112         early clobbers when the match was successful only for different
5113         registers.
5115 2019-03-25  Martin Sebor  <msebor@redhat.com>
5117         * doc/extend.texi (Common Type Attributes): Document vector_size.
5118         (Common Variable Attributes): Mention size constraint.  Correct
5119         quoting and typos.
5120         (Vector Extensions): Use @dfn when defining bas type.  Clarify
5121         base type and size constraints.
5123 2019-03-25  Richard Biener  <rguenther@suse.de>
5125         PR tree-optimization/89789
5126         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5127         changes from non-undefined back to undefined.
5129 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
5131         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5132         heap string and a gc string, but since this variable is unknown to
5133         ggc the gc string might get reused and corrupted. Fixed by always
5134         using a heap string.
5136 2019-03-25  Richard Biener  <rguenther@suse.de>
5138         PR tree-optimization/89779
5139         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5140         to remove IV defs, delay actual removal.
5141         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
5142         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5143         very end, properly also reset loop control IV information.
5145 2019-03-25  Richard Biener  <rguenther@suse.de>
5147         PR tree-optimization/89802
5148         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5149         move EH data to folded stmt.
5151 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
5153         * config/s390/s390-builtin-types.def: Remove few unused types and
5154         fix sort order for others.
5156 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
5158         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5159         expected and found types with -mdebug during builtin matching.
5161 2019-03-25  Richard Biener  <rguenther@suse.de>
5163         PR middle-end/89790
5164         * fold-const.c (operand_equal_p): Revert last change with
5165         updated comment.
5167 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
5169         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5170         notes for the result of the __tls_get_addr calls.
5171         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5173 2019-03-24  Jeff Law  <law@redhat.com>
5175         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5177         PR rtl-optimization/87761
5178         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5179         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
5180         as needed.
5181         (pass_cprop_hardreg::execute): Add df note problem and defer insn
5182         rescans.  Reprocess blocks as needed, calling df_analyze before
5183         reprocessing.  Always call df_analyze before fixing up debug bind
5184         insns.
5186 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
5188         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5189         big endian.
5191 2019-03-22  Andrew Pinski  <apinski@marvell.com>
5193         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5194         attrribute for uxtw.
5196 2019-03-26  Jeff Law  <law@redhat.com>
5198         PR rtl-optimization/87761
5199         * config/mips/mips-protos.h (mips_split_move): Add new argument.
5200         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5201         (mips_split_move): Accept new INSN argument.  Try to forward SRC
5202         into the next instruction.
5203         (mips_split_move_insn): Pass INSN through to mips_split_move.
5205 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5207         PR rtl-optimization/89676
5208         * lra-constraints.c (curr_insn_transform): Do match reload for
5209         early clobbers even if the match was successful.
5211 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
5213         PR c++/87481
5214         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5216 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
5218         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5220 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
5222         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5223         <avx512>_fmsub_<mode>_mask3<round_name>,
5224         <avx512>_fnmadd_<mode>_mask3<round_name>,
5225         <avx512>_fnmsub_<mode>_mask3<round_name>,
5226         avx512f_vmfmadd_<mode>_mask3<round_name>,
5227         avx512f_vmfmsub_<mode>_mask3<round_name>,
5228         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5229         instead of register_operand and %v instead of v for match_operand 1.
5230         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5231         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
5232         <round_nimm_predicate> instead of register_operand and %v instead of v
5233         for match_operand 1.
5235         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5236         <avx512>_fmadd_<mode>_mask3<round_name>,
5237         <avx512>_fmsub_<mode>_mask<round_name>,
5238         <avx512>_fmsub_<mode>_mask3<round_name>,
5239         <avx512>_fnmadd_<mode>_mask<round_name>,
5240         <avx512>_fnmadd_<mode>_mask3<round_name>,
5241         <avx512>_fnmsub_<mode>_mask<round_name>,
5242         <avx512>_fnmsub_<mode>_mask3<round_name>,
5243         <avx512>_fmaddsub_<mode>_mask<round_name>,
5244         <avx512>_fmaddsub_<mode>_mask3<round_name>,
5245         <avx512>_fmsubadd_<mode>_mask<round_name>,
5246         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5247         <round_nimm_predicate> instead of nonimmediate_operand.
5248         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5249         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5250         Use register_operand instead of <round_nimm_predicate> for the
5251         operand that needs to match output.
5252         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5253         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5254         Likewise.  Formatting fixes.
5256         PR target/89784
5257         * config/i386/i386.c (enum ix86_builtins): Remove
5258         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5259         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5260         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5261         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5262         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5263         __builtin_ia32_vfmsubss3_mask3): New builtins.
5264         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5265         avx512f_vmfmadd_<mode>_mask3<round_name>,
5266         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5267         *avx512f_vmfmsub_<mode>_mask<round_name>,
5268         avx512f_vmfmsub_<mode>_mask3<round_name>,
5269         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5270         *avx512f_vmfnmadd_<mode>_mask<round_name>,
5271         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5272         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5273         *avx512f_vmfnmsub_<mode>_mask<round_name>,
5274         avx512f_vmfnmsub_<mode>_mask3<round_name>,
5275         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5276         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5277         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5278         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5279         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5280         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5281         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5282         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5283         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5284         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5285         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5286         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5287         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5288         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5289         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5290         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5291         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5292         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5293         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5294         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5295         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5296         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5298 2019-03-21  Martin Sebor  <msebor@redhat.com>
5300         PR tree-optimization/89350
5301         * builtins.c (compute_objsize): Also ignore offsets whose upper
5302         bound is negative.
5303         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5304         (builtin_memref::builtin_memref): Initialize new member.
5305         Allow EXPR to be null.
5306         (builtin_memref::extend_offset_range): Replace local with a member.
5307         Avoid assuming pointer offsets are unsigned.
5308         (builtin_memref::set_base_and_offset): Determine base object
5309         before computing offset range.
5310         (builtin_access::builtin_access): Handle memset.
5311         (builtin_access::generic_overlap): Replace local with a member.
5312         (builtin_access::strcat_overlap): Same.
5313         (builtin_access::overlap): Same.
5314         (maybe_diag_overlap): Same.
5315         (maybe_diag_access_bounds): Same.
5316         (wrestrict_dom_walker::check_call): Handle memset.
5317         (check_bounds_or_overlap): Same.
5319 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
5320             Jakub Jelinek  <jakub@redhat.com>
5322         PR lto/89692
5323         * tree.c (fld_type_variant, fld_incomplete_type_of,
5324         fld_process_array_type): Call fld->pset.add and don't call
5325         add_tree_to_fld_list if it returns true.
5326         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
5327         non-marked types from TYPE_NEXT_VARIANT list.
5328         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5330 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
5332         * hash-table.h (hash_table): Add Lazy template parameter defaulted
5333         to false, if true, don't alloc_entries during construction, but defer
5334         it to the first method that needs m_entries allocated.
5335         (hash_table::hash_table, hash_table::~hash_table,
5336         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5337         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5338         hash_table::clear_slot, hash_table::traverse_noresize,
5339         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5340         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5341         false.
5342         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5343         NO_INSERT instead of find_with_hash.
5344         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5345         hash_set::m_table): Add Lazy to template params of hash_table.
5346         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5347         * attribs.c (test_attribute_exclusions): Likewise.
5348         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5349         hash_set.  Add tests for hash_set with Lazy = true.
5351 2019-03-21  Richard Biener  <rguenther@suse.de>
5353         PR tree-optimization/89779
5354         * tree.c (tree_nop_conversion): Consolidate and fix defensive
5355         checks with respect to released SSA names now having error_mark_node
5356         type.
5357         * fold-const.c (operand_equal_p): Likewise.
5359 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
5361         PR target/89775
5362         * config/s390/s390.c (global_not_special_regno_p): Move to make it
5363         available to ...
5364         (s390_optimize_register_info): Use global_not_special_regno_p to
5365         check for global regs.
5367 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
5369         PR target/89752
5370         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5371         update this_alternative nor this_alternative_set.
5373 2019-03-19  Jim Wilson  <jimw@sifive.com>
5375         PR target/89411
5376         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
5377         align, size, offset.  Use them to handle a BLKmode reference.  Update
5378         comment.
5379         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5381 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
5383         PR rtl-optimization/89768
5384         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5385         instead of GEN_INT.
5386         (unroll_loop_runtime_iterations): Likewise.
5388 2019-03-19  Martin Sebor  <msebor@redhat.com>
5390         PR tree-optimization/89644
5391         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5392         rather than endptr as an indicator of nul-termination.
5394         PR tree-optimization/89644
5395         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5396         arrays in determining sequence sizes in strncpy and stpncpy.
5398 2019-03-19  Martin Liska  <mliska@suse.cz>
5400         PR middle-end/89737
5401         * predict.c (combine_predictions_for_bb): Empty likely_edges and
5402         unlikely_edges if there's an edge that belongs to both these sets.
5404 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
5406         PR target/89746
5407         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5408         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5409         go via a stack temporary.
5411 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
5413         PR target/89378
5414         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5415         instead of gen_rtx_SUBREG.
5416         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5418 2019-03-19  Richard Biener  <rguenther@suse.de>
5420         PR debug/88389
5421         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5423 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
5425         PR lto/87809
5426         PR lto/89335
5427         * tree.c (free_lang_data_in_decl): Do not free context of C++
5428         destrutors.
5430 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
5432         PR target/89506
5433         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5434         subs for the first alternative except when operands[3] is 1.
5436         PR target/89752
5437         * gimplify.c (gimplify_asm_expr): For output argument with
5438         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5439         diagnose error.
5441 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
5443         PR rtl-optimization/89753
5444         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5445         explicit unrolling factor even more robust.
5447 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
5449         PR target/89726
5450         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5451         compensation use x2 += 1 instead of x2 -= -1 and when honoring
5452         signed zeros, do another copysign after the compensation.
5454 2019-03-18  Martin Sebor  <msebor@redhat.com>
5456         PR tree-optimization/89720
5457         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5458         more conservatively, the same as anti-range.
5460 2019-03-18  Richard Biener  <rguenther@suse.de>
5462         PR middle-end/88945
5463         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5464         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5465         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
5466         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5468 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
5470         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5471         Extend queue to 1024 entries.
5472         Add "consumed" field.
5473         (gomp_print_output): Remove print_index parameter.
5474         Add final parameter.
5475         Change limit to unsigned.
5476         Use consumed field to implement circular buffer.
5477         Detect interrupted print in final pass.
5478         Flush output at the end.
5479         (run): Update gomp_print_output usage.
5480         (main): Initialize kernargs->output_data.consumed.
5482 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
5484         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5485         calculation of the minimum number of scalar iterations for
5486         fully-predicated loops.
5488 2019-03-18  Martin Jambor  <mjambor@suse.cz>
5490         PR tree-optimization/89546
5491         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5492         any propagation to its children took place.
5494 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5496         PR target/89627
5497         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5498         parameter, and make use of it.
5499         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5501 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
5503         * config/arc/arc.opt (mcode-density-frame): Get the inital value
5504         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5505         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5506         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5507         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5508         match what the ops is doing.
5509         (push_multi_fp_blink): Likewise.
5510         * config/arc/arc.c (arc_override_options): Enable enter/leave when
5511         compiling for size and elf target.
5512         (arc_save_callee_enter): Adjust note to match what enter/leave
5513         operation does.
5515 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
5517         * config/arc/arc.md (tst_movb): Fix constraint.
5519 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
5521         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5523 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
5525         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5526         * config/arc/arc.c (arc_conditional_register_usage): Remove all
5527         reg_alloc_order references.
5528         (size_alloc_order): Define.
5529         (arc_adjust_reg_alloc_order): New function.
5530         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5531         order.
5532         (ADJUST_REG_ALLOC_ORDER): Define.
5533         (HONOR_REG_ALLOC_ORDER): Likewise.
5535 2019-03-18  Richard Biener  <rguenther@suse.de>
5537         PR target/87561
5538         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5539         loads and stores a bit more.
5541 2019-03-18  Richard Biener  <rguenther@suse.de>
5543         PR target/87561
5544         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5545         load pessimization to stores as well.
5547 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
5549         PR middle-end/86979
5550         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5551         successor, use NULL as its av set.
5553 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
5555         PR rtl-optimization/89721
5556         * lra-constraints (invariant_p): Return false if side_effects_p holds.
5558 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5560         PR target/87532
5561         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5562         When handling vec_extract, use modular arithmetic to allow
5563         constant selectors greater than vector length.
5564         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5565         V1TImode vectors to have constant selector values greater than 0.
5566         Use modular arithmetic to compute vector index.
5567         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5568         index for in-memory vectors.  Correct code generation for
5569         in-register vectors.
5570         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5571         compute index.
5573 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
5575         PR c++/88534
5576         PR c++/88537
5577         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5578         VAR_DECL args.
5580 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
5582         PR c++/89709
5583         * tree.c (inchash::add_expr): Strip any location wrappers.
5584         * fold-const.c (operand_equal_p): Move stripping of location wrapper
5585         after hash verification.
5587         PR debug/89704
5588         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5589         SIGN_EXTEND and ZERO_EXTEND.
5591 2019-03-14  Jason Merrill  <jason@redhat.com>
5592             Jakub Jelinek  <jakub@redhat.com>
5594         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5595         than if is_empty (*slot).
5596         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5597         existing elt and for elt removal.
5598         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5599         of already removed elt.
5601 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
5603         PR target/89650
5604         * config/i386/i386.c (remove_partial_avx_dependency): Handle
5605         REG_EH_REGION note.
5607 2019-03-14  Martin Liska  <mliska@suse.cz>
5609         PR other/89712
5610         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5612 2019-03-14  Richard Biener  <rguenther@suse.de>
5614         PR target/89711
5615         * config/i386/i386.c (make_resolver_func): Properly set
5616         DECL_CONTEXT on the RESULT_DECL.
5617         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5619 2019-03-14  Richard Biener  <rguenther@suse.de>
5621         * gimple-pretty-print.c: Include cfgloop.h.
5622         (dump_gimple_phi): Adjust.
5623         (dump_gimple_bb_header): Dump loop header for GIMPLE.
5624         (pp_cfg_jump): Adjust.
5625         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5626         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5627         (lower_phi_internal_fn): Remove.
5628         (verify_gimple_call): Remove IFN_PHI special-casing.
5629         (dump_function_to_file): Dump IL state.
5630         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5631         done to deal with PHI nodes being present in non-SSA state.
5633 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
5635         PR ipa/89684
5636         * multiple_target.c (create_dispatcher_calls): Change
5637         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5638         In the node->iterate_referring loop, push *ref rather than ref, call
5639         ref->remove_reference () and always pass 0 to iterate_referring.
5641         PR rtl-optimization/89679
5642         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5643         would contain a paradoxical SUBREG.
5645 2019-03-14  Richard Biener  <rguenther@suse.de>
5647         PR tree-optimization/89710
5648         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5649         safe_dyn_cast.
5651 2019-03-14  Martin Liska  <mliska@suse.cz>
5653         * coverage.c (coverage_begin_function): Stream also
5654         end_column.
5655         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
5656         documentation about function declaration location.
5657         * gcov-dump.c (tag_function): Print whole range
5658         of function declaration.
5659         * gcov.c (struct function_info): Add end_column field.
5660         (function_info::function_info): Initialize it.
5661         (output_json_intermediate_file): Output {start,end}_column
5662         fields.
5663         (read_graph_file): Read end_column.
5665 2019-03-14  Richard Biener  <rguenther@suse.de>
5667         PR middle-end/89698
5668         * fold-const.c (operand_equal_p): For INDIRECT_REF check
5669         that the access types are similar.
5671 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
5673         PR tree-optimization/89703
5674         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5675         aren't compatible also with builtin_decl_explicit.  Check pure
5676         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5677         and BUILT_IN_STPNCPY{,_CHK}.
5679 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5681         PR target/89523
5682         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5683         addr32 prefix to VSIB address for X32.
5684         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5685         "%M2" to opcode.
5686         (*avx512pf_gatherpf<mode>df_mask): Likewise.
5687         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5688         (*avx512pf_scatterpf<mode>df_mask): Likewise.
5689         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5690         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5691         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5692         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5693         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5694         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5695         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5696         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5697         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5698         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5699         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5700         (*avx512f_scatterdi<mode>): Likewise.
5702 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
5704         PR target/85860
5705         * lra-constraints.c (inherit_in_ebb): Update
5706         potential_reload_hard_regs along with live_hard_regs.
5708 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
5710         PR debug/89498
5711         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5712         DWARF_OFFSET_SIZE.
5713         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5715 2019-03-13  Martin Sebor  <msebor@redhat.com>
5717         PR tree-optimization/89662
5718         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5719         has a size.
5721 2019-03-13  Richard Biener  <rguenther@suse.de>
5723         PR middle-end/89677
5724         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5725         throw FP expressions at tree-affine.
5727 2019-03-14  Richard Biener  <rguenther@suse.de>
5729         * tree-pretty-print.c (dump_generic_node): For -gimple properly
5730         dump negative integer constants using _Literal (type) -num.
5732 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
5734         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5735         nonlocal_value member.
5737         PR middle-end/88588
5738         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5739         (ipa_simd_modify_function_body): Handle PHIs.
5741 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
5743         * config/s390/s390.c (s390_option_override_internal): Use more
5744         aggressive inlining parameters.
5746 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
5748         * config/s390/3906.md: New file.
5749         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5750         (LONGRUNNING_THRESHOLD): Remove.
5751         (MAX_SCHED_MIX_SCORE): Decrease.
5752         (MAX_SCHED_MIX_DISTANCE): Decrease.
5753         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5754         (struct s390_sched_state): New struct to hold scheduling state.
5755         (S390_SCHED_STATE_NORMAL): Remove.
5756         (S390_SCHED_STATE_CRACKED): Remove.
5757         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5758         (s390_get_sched_attrmask): Use new attribute.
5759         (s390_get_unit_mask): Use new units.
5760         (s390_is_fpd): New function.
5761         (s390_is_fxd): New function.
5762         (s390_is_longrunning): New function.
5763         (s390_sched_score): Use new functions.
5764         (s390_sched_reorder): Likewise.
5765         (s390_sched_variable_issue): Rework and use new functions.
5766         (s390_sched_init): Use new functions.
5767         * config/s390/s390.h (s390_tune_attr):  Add z14.
5768         * config/s390/s390.md: Add z14.
5770 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
5772         * config/s390/2964.md: Update pipeline description.
5773         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5774         (LONGRUNNING_THRESHOLD): Remove.
5775         (LATENCY_FACTOR): Remove.
5776         (s390_get_unit_mask): Add unit.
5777         (s390_sched_score): Use fxd/fpd.
5778         (s390_sched_variable_issue): Use fxd/fpd.
5780 2019-03-12  Martin Liska  <mliska@suse.cz>
5782         * config/i386/i386.c: Reword an error message.
5784 2019-03-12  Martin Jambor  <mjambor@suse.cz>
5786         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5787         terminate with newline.
5789 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
5791         PR target/52726
5792         * config/s390/s390.md (tabort): Use %wd instead of
5793         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5794         letters and periods.
5795         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5796         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5797         's with %< and %>.
5799         PR middle-end/89663
5800         * builtins.c (expand_builtin_int_roundingfn,
5801         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5802         gcc_unreachable if validate_arglist fails.
5804 2019-03-12  Richard Biener  <rguenther@suse.de>
5806         PR tree-optimization/89664
5807         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5808         free the occurance tree after the early out.
5810 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
5812         PR middle-end/89655
5813         PR bootstrap/89656
5814         * vr-values.c (vr_values::update_value_range): If
5815         old_vr->varying_p (), don't update it, make new_vr also VARYING
5816         and return false.
5818 2019-03-11  Martin Liska  <mliska@suse.cz>
5820         * config/aarch64/aarch64.c (aarch64_override_options_internal):
5821         Fix double string quoting.
5823 2019-03-11  Martin Liska  <mliska@suse.cz>
5825         * collect-utils.c (collect_wait): Wrap apostrophes
5826         in gcc internal format with %'.
5827         * collect2.c (main): Likewise.
5828         (scan_prog_file): Likewise.
5829         (scan_libraries): Likewise.
5830         * config/i386/i386.c (ix86_expand_call): Likewise.
5831         (ix86_handle_interrupt_attribute): Likewise.
5832         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5833         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5834         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5835         * lto-wrapper.c (find_crtoffloadtable): Likewise.
5836         * symtab.c (symtab_node::verify_base): Likewise.
5837         * tree-cfg.c (verify_gimple_label): Likewise.
5838         * tree.c (verify_type_variant): Likewise.
5840 2019-03-11  Martin Liska  <mliska@suse.cz>
5842         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5843         in a string format message and fix GNU coding style.
5844         (expand_builtin_set_thread_pointer): Likewise.
5845         * common/config/aarch64/aarch64-common.c
5846         (aarch64_rewrite_selected_cpu): Likewise.
5847         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5848         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5849         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5850         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5851         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5852         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5853         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5854         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5855         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5856         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5857         Likewise.
5858         * common/config/riscv/riscv-common.c
5859         (riscv_subset_list::parsing_subset_version): Likewise.
5860         (riscv_subset_list::parse_std_ext): Likewise.
5861         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5862         (riscv_subset_list::parse): Likewise.
5863         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5864         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5865         (aarch64_override_options_internal): Likewise.
5866         (aarch64_validate_mcpu): Likewise.
5867         (aarch64_validate_march): Likewise.
5868         (aarch64_validate_mtune): Likewise.
5869         (aarch64_override_options): Likewise.
5870         * config/alpha/alpha.c (alpha_option_override): Likewise.
5871         * config/arc/arc.c (arc_init): Likewise.
5872         (parse_mrgf_banked_regs_option): Likewise.
5873         (arc_override_options): Likewise.
5874         (arc_expand_builtin_aligned): Likewise.
5875         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5876         (arm_expand_builtin): Likewise.
5877         * config/arm/arm.c (arm_option_check_internal): Likewise.
5878         (arm_configure_build_target): Likewise.
5879         (arm_option_override): Likewise.
5880         (arm_options_perform_arch_sanity_checks): Likewise.
5881         (arm_handle_cmse_nonsecure_entry): Likewise.
5882         (arm_handle_cmse_nonsecure_call): Likewise.
5883         (arm_tls_referenced_p): Likewise.
5884         (thumb1_expand_prologue): Likewise.
5885         * config/avr/avr.c (avr_option_override): Likewise.
5886         * config/bfin/bfin.c (bfin_option_override): Likewise.
5887         * config/c6x/c6x.c (c6x_option_override): Likewise.
5888         * config/cr16/cr16.c (cr16_override_options): Likewise.
5889         * config/cris/cris.c (cris_option_override): Likewise.
5890         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5891         * config/darwin-c.c (macosx_version_as_macro): Likewise.
5892         * config/darwin.c (darwin_override_options): Likewise.
5893         * config/frv/frv.c (frv_expand_builtin): Likewise.
5894         * config/h8300/h8300.c (h8300_option_override): Likewise.
5895         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5896         (ix86_option_override_internal): Likewise.
5897         (warn_once_call_ms2sysv_xlogues): Likewise.
5898         (ix86_expand_prologue): Likewise.
5899         (split_stack_prologue_scratch_regno): Likewise.
5900         (ix86_warn_parameter_passing_abi): Likewise.
5901         * config/ia64/ia64.c (fix_range): Likewise.
5902         * config/m68k/m68k.c (m68k_option_override): Likewise.
5903         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5904         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5905         (mips_set_compression_mode): Likewise.
5906         * config/mmix/mmix.c (mmix_option_override): Likewise.
5907         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5908         * config/msp430/msp430.c (msp430_option_override): Likewise.
5909         * config/nds32/nds32.c (nds32_option_override): Likewise.
5910         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5911         (nios2_option_override): Likewise.
5912         (nios2_expand_custom_builtin): Likewise.
5913         * config/nvptx/mkoffload.c (main): Likewise.
5914         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5915         * config/pa/pa.c (fix_range): Likewise.
5916         (pa_option_override): Likewise.
5917         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5918         (riscv_option_override): Likewise.
5919         * config/rl78/rl78.c (rl78_option_override): Likewise.
5920         * config/rs6000/aix61.h: Likewise.
5921         * config/rs6000/aix71.h: Likewise.
5922         * config/rs6000/aix72.h: Likewise.
5923         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5924         * config/rs6000/freebsd64.h: Likewise.
5925         * config/rs6000/linux64.h: Likewise.
5926         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5927         (rs6000_expand_zeroop_builtin): Likewise.
5928         (rs6000_expand_mtfsb_builtin): Likewise.
5929         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5930         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5931         (rs6000_invalid_builtin): Likewise.
5932         (rs6000_expand_split_stack_prologue): Likewise.
5933         * config/rs6000/rtems.h: Likewise.
5934         * config/rx/rx.c (valid_psw_flag): Likewise.
5935         (rx_expand_builtin): Likewise.
5936         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5937         * config/s390/s390.c (s390_expand_builtin): Likewise.
5938         (s390_function_profiler): Likewise.
5939         (s390_option_override_internal): Likewise.
5940         (s390_option_override): Likewise.
5941         * config/sh/sh.c (sh_option_override): Likewise.
5942         (sh_builtin_saveregs): Likewise.
5943         (sh_fix_range): Likewise.
5944         * config/sh/vxworks.h: Likewise.
5945         * config/sparc/sparc.c (sparc_option_override): Likewise.
5946         * config/spu/spu.c (spu_option_override): Likewise.
5947         (fix_range): Likewise.
5948         * config/visium/visium.c (visium_option_override): Likewise.
5949         (visium_handle_interrupt_attr): Likewise.
5950         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5951         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5952         (dbg_cnt_process_opt): Likewise.
5953         * dwarf2out.c (output_dwarf_version): Likewise.
5954         * except.c (expand_eh_return): Likewise.
5955         * gcc.c (defined): Likewise.
5956         (driver_handle_option): Likewise.
5957         (process_command): Likewise.
5958         (compare_files): Likewise.
5959         (driver::prepare_infiles): Likewise.
5960         (driver::do_spec_on_infiles): Likewise.
5961         (driver::maybe_run_linker): Likewise.
5962         * omp-offload.c (oacc_parse_default_dims): Likewise.
5963         * opts-global.c (handle_common_deferred_options): Likewise.
5964         * opts.c (parse_sanitizer_options): Likewise.
5965         (common_handle_option): Likewise.
5966         (enable_warning_as_error): Likewise.
5967         * passes.c (enable_disable_pass): Likewise.
5968         * plugin.c (parse_plugin_arg_opt): Likewise.
5969         (default_plugin_dir_name): Likewise.
5970         * targhooks.c (default_expand_builtin_saveregs): Likewise.
5971         (default_pch_valid_p): Likewise.
5972         * toplev.c (init_asm_output): Likewise.
5973         (process_options): Likewise.
5974         (toplev::run_self_tests): Likewise.
5975         * tree-cfg.c (verify_gimple_call): Likewise.
5976         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5977         (tree_inlinable_function_p): Likewise.
5978         * var-tracking.c (vt_find_locations): Likewise.
5980 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
5982         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5983         only on the else branch.
5985 2019-03-11  Martin Liska  <mliska@suse.cz>
5987         * gcov.c (output_intermediate_json_line): Print function
5988         name of each line.
5989         (output_json_intermediate_file): Add new argument.
5990         * doc/gcov.texi: Document the change.
5992 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
5994         PR rtl-optimization/89588
5995         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5996         explicit unrolling factor more robust.
5998 2019-03-11  Richard Biener  <rguenther@suse.de>
6000         PR tree-optimization/89649
6001         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6002         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6003         on the prolog and epilog loops.
6004         (vect_loop_versioning): Return copy of loop.
6005         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6006         on the non-vectorized version of the loop.
6008 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6010         PR target/68924
6011         * config/i386/sse.md (*vec_extractv2di_0_sse):
6012         Add (=r,x) alternative and corresponding splitter.
6014 2019-03-10  Martin Jambor  <mjambor@suse.cz>
6016         PR tree-optimization/85762
6017         PR tree-optimization/87008
6018         PR tree-optimization/85459
6019         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6020         it points to if there is a type changing MEM_REF.  Adjust all callers.
6021         (build_accesses_from_assign): Disable total scalarization if
6022         contains_vce_or_bfcref_p returns true through the new parameter, for
6023         both rhs and lhs.
6025 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
6027         PR c/88568
6028         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6029         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6031         PR target/79645
6032         * common.opt (fdiagnostics-show-labels,
6033         fdiagnostics-show-line-numbers, fdiagnostics-format=,
6034         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6035         gas-locview-support, ginline-points, ginternal-reset-location-views):
6036         Terminate description text with a dot.
6037         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6038         * config/mcore/mcore.opt (m210, m340): Likewise.
6039         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6040         mnops=): Start description text with a capital letter.
6041         * config/arc/arc.opt (msize-level=): Likewise.
6042         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6043         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6044         mnewlib): Likewise.
6045         * config/ft32/ft32.opt (msim): Likewise.
6046         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
6047         (mnodiv, mnopm): Terminate description text with a dot.
6048         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6049         a colon.
6050         * config/i386/i386.opt (prefer_vector_width, instrument_return):
6051         Likewise.
6052         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6053         text.
6055         PR rtl-optimization/89634
6056         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6057         are modified in BB_END (e->src) instruction.
6059 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
6061         PR target/79926
6062         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6063         messages more amenable to translation, and improve wording.
6065 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
6067         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6068         ud- and du-chains between phases.
6070 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
6072         PR debug/89631
6073         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6074         instead of POLY_INT_CST.
6076 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6078         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6079         requirement.
6081 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6083         PR target/68924
6084         PR target/78782
6085         PR target/87558
6086         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6087         (_mm_storeu_si64): Ditto.
6089 2019-03-08  Martin Liska  <mliska@suse.cz>
6091         PR target/86952
6092         * config/i386/i386.c (ix86_option_override_internal): Disable
6093         jump tables when retpolines are used.
6095 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
6097         PR go/63560
6098         * ipa-split.c (execute_split_functions): Do not split
6099         'noinline' or 'section' function.
6101 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
6103         PR target/79846
6104         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6105         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6106         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
6108         PR ipa/80000
6109         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6110         from diagnostics.  Formatting fixes.
6112         PR target/85665
6113         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6114         warn_odr diagnostics.
6116         PR other/80058
6117         * lra-constraints.c (process_alt_operands): Avoid one space before
6118         " at the end of line and another after " on another line in a string
6119         literal.
6120         * attribs.c (handle_dll_attribute): Likewise.
6121         * config/avr/avr-devices.c (avr_texinfo): Likewise.
6123         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6124         warning_at or inform messages in G_() if there is no ?:.
6126         PR tree-optimization/89550
6127         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6128         returned true.  Formatting fixes.
6129         (expand_builtin_strnlen): Formatting fixes.
6130         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6131         if warning_at returned true.
6132         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6134 2019-03-08  Richard Biener  <rguenther@suse.de>
6136         PR middle-end/89578
6137         * cfgloop.h (struct loop): Add owned_clique field.
6138         * cfgloopmanip.c (copy_loop_info): Copy it.
6139         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6140         cliques.
6141         * tree-inline.c (copy_loops): Remap owned_clique.
6142         * lto-streamer-in.c (input_cfg): Stream owned_clique.
6143         * lto-streamer-out.c (output_cfg): Likewise.
6145 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
6147         PR target/80190
6148         * config/darwin.c: Include intl.h.
6149         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6150         composing the message out of two separate parts.
6152 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
6154         PR target/80003
6155         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6156         doesn't start with a capital letter and doesn't end with a dot.
6157         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6158         with a capital letter.
6159         (ix86_mangle_function_version_assembler_name): Likewise.
6160         (ix86_generate_version_dispatcher_body): Likewise.
6161         (fold_builtin_cpu): Likewise.
6162         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
6163         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6164         translators, wrap full type name in %qs.
6166         PR translation/79999
6167         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6168         depend clause with source (or sink) modifier.
6169         * omp-expand.c (expand_omp_ordered_sink): Likewise.
6171         PR target/89602
6172         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6173         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6174         (avx512f_load<mode>_mask): New define_expand.
6175         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6176         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6177         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6178         __builtin_ia32_movess_mask): New builtins.
6179         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6180         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6181         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6182         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6184 2019-03-07  Martin Jambor  <mjambor@suse.cz>
6186         PR lto/87525
6187         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6188         for extern inline functions.
6190 2019-03-07  Martin Jambor  <mjambor@suse.cz>
6192         PR ipa/88235
6193         * cgraph.h (cgraph_node): New inline method former_thunk_p.
6194         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6195         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6196         have multiple callees.  At the end check if declarations match as
6197         opposed to cgraph_nodes.
6199 2019-03-07  Martin Liska  <mliska@suse.cz>
6201         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6202         which is equivalent to searching for this in clones chain.
6203         * symtab.c (symtab_node::verify_base): Similarly compare ASM
6204         names with a neighbour and special case first node in a chain.
6206 2019-01-25  Jason Merrill  <jason@redhat.com>
6208         PR c++/80916 - spurious "static but not defined" warning.
6209         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6210         for an internal symbol with DECL_EXTERNAL.
6212 2019-04-07  Richard Biener  <rguenther@suse.de>
6214         PR middle-end/89618
6215         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6216         * tree-inline.c (copy_loops): Simplify.
6218 2019-03-07  Martin Liska  <mliska@suse.cz>
6220         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6222 2019-03-07  Richard Biener  <rguenther@suse.de>
6224         PR tree-optimization/89595
6225         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6226         stmt iterator as reference, take boolean output parameter to
6227         indicate whether the stmt was removed and thus the iterator
6228         already advanced.
6229         (dom_opt_dom_walker::before_dom_children): Re-iterate over
6230         stmts created by folding.
6232 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
6234         PR c++/89585
6235         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6236         at toplevel.
6238 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
6240         PR rtl-optimization/88845
6241         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6242         LRA.
6243         * lra.c (remove_scratches_1): New function.
6244         (remove_scratches): Use it.
6245         (lra_emit_move): Likewise.
6247 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
6249         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6250         unaligned_access variable.
6251         * config/arc/arc.c (arc_override_options): Set unaligned access
6252         default on for HS CPUs.
6253         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6255 2019-03-06  Martin Liska  <mliska@suse.cz>
6257         PR gcov-profile/89577
6258         * doc/gcov.texi: Prefer to use --coverage.
6259         * doc/sourcebuild.texi: Likewise.
6261 2019-03-02  Jason Merrill  <jason@redhat.com>
6263         PR c++/86485 - -Wmaybe-unused with empty class ?:
6264         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6266 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
6268         PR target/89587
6269         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6270         if_multiarch.
6272         PR middle-end/89590
6273         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6274         exactly one argument.
6276 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
6277             Richard Sandiford  <richard.sandiford@arm.com>
6279         PR tree-optimization/89570
6280         * match.pd (vec_cond into cond_op simplification): Don't use
6281         get_conditional_internal_fn, use as_internal_fn (cond_op).
6283 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
6285         PR target/89222
6286         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6287         to decide when to split off a non-zero offset from a symbol.
6288         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6289         in function symbols.
6291 2019-03-05  Richard Biener  <rguenther@suse.de>
6293         PR tree-optimization/89594
6294         * tree-if-conv.c (pass_if_conversion::execute): Handle
6295         case where .LOOP_VECTORIZED_FUNCTION was removed.
6297 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
6299         PR bootstrap/89560
6300         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6301         instead alloca it only when needed with the needed size.
6303         PR tree-optimization/89570
6304         * match.pd (vec_cond into cond_op simplification): Guard with
6305         vectorized_internal_fn_supported_p test and #if GIMPLE.
6307         PR tree-optimization/89566
6308         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6309         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6310         Punt if get_user_idx_format succeeds, but idx_format argument is
6311         not provided or doesn't have pointer type, or if idx_args is above
6312         number of provided arguments.
6314 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
6316         PR tree-optimization/89437
6317         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6319 2019-03-04  Richard Biener  <rguenther@suse.de>
6321         PR middle-end/89572
6322         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6323         safe_dyn_cast.
6325 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
6327         PR tree-optimization/89487
6328         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6329         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6330         (distribute_loop): Don't do runtime alias check if there is non-
6331         addressable data reference.
6332         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6333         is a register variable.
6335 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
6337         PR target/89506
6338         * config/arm/arm.md (cmpsi2_addneg): Use
6339         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6340         If operands[2] is 0 or INT_MIN, force use of subs.
6341         (*compare_scc splitter): Use gen_int_mode.
6342         (*negscc): Likewise.
6343         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6345 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
6346             Monk Chiang  <sh.chiang04@gmail.com>
6348         * common/config/riscv/riscv-common.c: Include sstream.
6349         (riscv_subset_list::to_string): New.
6350         (riscv_arch_str): Likewise.
6351         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6352         * config.in: Regen.
6353         * config/riscv/riscv-protos.h (riscv_arch_str): New.
6354         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6355         (riscv_emit_attribute): New.
6356         (riscv_file_start): Emit attribute if needed.
6357         (riscv_option_override): Init riscv_emit_attribute_p.
6358         * config/riscv/riscv.opt (mriscv-attribute): New option.
6359         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6360         * configure: Regen.
6361         * doc/install.texi: Document --with-riscv-attribute.
6362         * doc/invoke.texi: Document -mriscv-attribute.
6364         * common/config/riscv/riscv-common.c:
6365         Include config/riscv/riscv-protos.h.
6366         (INCLUDE_STRING): Defined.
6367         (RISCV_DONT_CARE_VERSION): Defined.
6368         (riscv_subset_t): Declare.
6369         (riscv_subset_t::riscv_subset_t): New.
6370         (riscv_subset_list): Declare.
6371         (riscv_subset_list::riscv_subset_list): New.
6372         (riscv_subset_list::~riscv_subset_list): Likewise.
6373         (riscv_subset_list::parsing_subset_version): Likewise.
6374         (riscv_subset_list::parse_std_ext): Likewise.
6375         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6376         (riscv_subset_list::add): Likewise.
6377         (riscv_subset_list::lookup): Likewise.
6378         (riscv_subset_list::xlen): Likewise.
6379         (riscv_subset_list::parse): Likewise.
6380         (riscv_supported_std_ext): Likewise.
6381         (current_subset_list): Likewise.
6382         (riscv_parse_arch_string): Using riscv_subset_list::parse to
6383         parse.
6385 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
6387         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6388         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6389         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6391 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
6393         PR rtl-optimization/85899
6394         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6395         fallthru edges leading to the exit block.
6397 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
6399         PR target/89517
6400         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6401         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6403 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
6405         PR tree-optimization/89535
6406         * tree-vect-stmts.c (vectorizable_call): Record the vector types
6407         for each operand.  Calculate the fallback choice for mask operands
6408         and pass it to vect_get_vec_def_for_operand.
6410 2019-03-01  Richard Biener  <rguenther@suse.de>
6412         PR middle-end/89541
6413         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6414         get virtual operands.
6415         (get_expr_operands): Handle CONST_DECL like other decls.
6417 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
6419         PR middle-end/89503
6420         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6421         on DECL_P and EXPR_P.
6423 2019-03-01  Richard Biener  <rguenther@suse.de>
6425         PR middle-end/89497
6426         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6427         argument, defaulted to zero.
6428         * passes.c (execute_function_todo): Pass down SSA update flags
6429         to cleanup_tree_cfg.
6430         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6431         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6432         form if requested.
6433         (cleanup_tree_cfg): Get and pass down SSA update flags.
6435 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
6437         PR bootstrap/89539
6438         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6439         early_lto_debug argument.
6441 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6443         PR tree-optimization/89536
6444         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6445         only whether bit #0 of the value is 0 instead of the entire value.
6447 2019-02-28  Marek Polacek  <polacek@redhat.com>
6449         PR c++/87068 - missing diagnostic with fallthrough statement.
6450         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6451         at the end of a seq, save its location to walk_stmt_info.
6452         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6453         a switch.
6455 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
6457         PR lto/88585
6458         * tree.c (find_atomic_core_type): Move ahead in file.
6459         (check_base_type): Correctly compare alignments of atomic types.
6461 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
6463         PR target/89455
6464         * config/i386/i386.c (get_builtin_code_for_version): Identify
6465         Westmere from PCLMUL, instead of AES.
6467 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
6469         PR target/89434
6470         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6471         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6472         -UINTVAL (...).
6474 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
6476         PR target/88530
6477         * config/aarch64/aarch64-option-extensions.def: Document it.
6478         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6479         if empty hwcaps.
6481 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
6483         PR c/89520
6484         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6485         builtins if they don't have a single scalar floating point argument.
6486         Formatting fixes.
6488 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6490         PR rtl-optimization/89490
6491         * varasm.c (get_block_for_section): Bail out for mergeable sections.
6492         (default_use_anchors_for_symbol_p, output_object_block): Assert the
6493         block section is not mergeable.
6495 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
6497         PR target/70341
6498         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
6499         old define_insn to ...
6500         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
6501         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6502         Rename old define_insn to ...
6503         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
6504         (thumb2_casesi_internal_pic): New define_expand.  Rename old
6505         define_insn to ...
6506         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
6507         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6508         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6510 2019-02-27  Richard Biener  <rguenther@suse.de>
6512         PR debug/88878
6513         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6515 2019-02-27  Richard Biener  <rguenther@suse.de>
6517         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6518         building.
6520 2019-02-27  Richard Biener  <rguenther@suse.de>
6522         PR debug/88878
6523         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6524         parameter, prefix section name with .gnu.debuglto_ if true.
6525         (dwarf2out_finish): Pass false to output_comdat_type_unit.
6526         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6528 2019-02-27  Richard Biener  <rguenther@suse.de>
6530         PR debug/89514
6531         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6532         rather than on use_debug_types, doing what output_die does.
6533         (value_format): Likewise.
6535 2019-02-27  Martin Jambor  <mjambor@suse.cz>
6536             Martin Sebor  <msebor@redhat.com>
6538         * doc/invoke.texi (Warning Options): Reword description of
6539         -Wno-absolute-value.
6541 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
6543         PR tree-optimization/89280
6544         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6545         builtin_setjmp_setup_bb): New functions.
6546         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6547         When visiting __builtin_setjmp_setup block, queue in special
6548         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6549         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
6550         from visited after the loop if they don't have any visited successor
6551         blocks.
6553 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
6555         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6556         New function.
6557         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6559 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
6561         PR c++/89507
6562         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6563         with types other than sizetype/ssizetype.
6565 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
6567         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6568         (enum sparc_processor_type): ...this.
6569         (enum sparc_code_model_type): New enumeration type.
6570         (enum sparc_memory_model_type): Tweak comments.
6571         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6572         (mtune): Likewise.
6573         (mcmodel): Use sparc_code_model enumeration and variable.
6574         (sparc_code_model): New enumeration.
6575         (mdebug): Add Undocumented marker.
6576         * config/sparc/sparc.h (enum cmodel): Delete.
6577         (sparc_cmodel): Likewise.
6578         (TARGET_CM_MEDLOW): Adjust to above renaming.
6579         (TARGET_CM_MEDMID): Likewise.
6580         (TARGET_CM_MEDANY): Likewise.
6581         (TARGET_CM_EMBMEDANY): Likewise.
6582         * config/sparc/sparc.c (sparc_cmodel): Delete.
6583         (sparc_option_override): Remove string/value mapping support for the
6584         code model.  Move code and memory model support to after the handling
6585         of target flags.  Do private machine setup last.
6586         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6587         (sparc_legitimize_reload_address): Likewise.
6588         (sparc_output_mi_thunk): Likewise.
6589         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6591 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
6593         PR tree-optimization/89500
6594         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6595         (handle_builtin_strlen): Remove noncst_bound variable.  Always
6596         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
6597         cst if the first cst bytes starting at x are known to be non-zero,
6598         even if the string is not zero terminated.  Don't try to modify
6599         *si for strnlen.  Update strlen_to_stridx only for strlen or if
6600         we can prove strnlen returns the same value as strlen would.
6602 2019-02-26  Martin Liska  <mliska@suse.cz>
6604         * alloc-pool.h (struct pool_usage): Remove extra
6605         print_dash_line.
6606         * bitmap.h (struct bitmap_usage): Likewise.
6607         * ggc-common.c (struct ggc_usage): Likewise.
6608         * mem-stats.h (struct mem_usage): Likewise.
6609         (mem_alloc_description::dump): Print dash lines
6610         here and repeat header at the end of a table report.
6611         It's then more readable.
6612         * tree-phinodes.c (phinodes_print_statistics): Make
6613         horizontal alignment.
6614         * tree-ssanames.c (ssanames_print_statistics): Likewise.
6615         * vec.c (struct vec_usage): Remove extra print_dash_line.
6616         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6618 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6620         * doc/extend.texi (__builtin_object_size):
6621         Use @pxref instead of @xref inside parenthesis.
6622         (__builtin_has_attribute): Add missing comma after @xref.
6623         (__builtin_object_size): Ditto.
6624         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6625         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6626         in the list.
6628 2019-02-26  Jeff Law  <law@redhat.com>
6630         PR rtl-optimization/87761
6631         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6632         detect obviously dead insns and delete them.
6634 2019-02-26  Richard Biener  <rguenther@suse.de>
6636         PR tree-optimization/89505
6637         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6638         to handle restrict pointed-to vars with multiple subvars
6639         correctly.
6641 2019-02-26  Richard Biener  <rguenther@suse.de>
6643         PR tree-optimization/89489
6644         * tree-parloops.c (create_loop_fn): Copy over last_clique.
6646 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
6648         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6649         and move around comment.
6650         <BIT_AND_EXPR>: Likewise.
6651         <BIT_NOT_EXPR>: Add specific handling for boolean types.
6653 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
6655         PR target/89474
6656         * config/i386/i386.c (remove_partial_avx_dependency): Call
6657         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6658         after changing possibly many instructions to use that pseudo.  Fix up
6659         insertion of v4sf_const0 setter at the start of bb.
6661 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
6663         PR c/80409
6664         * doc/extend.texi (Variadic Pointer Args): New section.
6666 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
6667             Martin Sebor  <msebor@gmail.com>
6669         * common.opt (Wattribute-alias): Likewise.
6670         * doc/invoke.texi (Option Summary): List general form of
6671         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
6672         (-Wmissing-attributes): Invert entry, rewrite and correct default.
6673         Add cross-references.
6674         (-Wattribute-alias): Rewrite and correct default.  Mention
6675         considered attributes (same as for -Wmissing-attributes).
6677 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
6679         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6680         (_mm_cvtpd_ps): Likewise.
6681         (_mm_cvttpd_epi32): Likewise.
6683         PR target/89338
6684         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
6685         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6687         PR target/89339
6688         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6690 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
6692         PR target/88530
6693         * common/config/aarch64/aarch64-common.c
6694         (struct aarch64_option_extension): Add is_synthetic.
6695         (all_extensions): Use it.
6696         (TARGET_OPTION_INIT_STRUCT): Define hook.
6697         (struct gcc_targetm_common): Moved to end.
6698         (all_extensions_by_on): New.
6699         (opt_ext_cmp, typedef opt_ext): New.
6700         (aarch64_option_init_struct): New.
6701         (aarch64_contains_opt): New.
6702         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6703         * config/aarch64/aarch64-option-extensions.def
6704         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6705         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6706         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6707         Set is_synthetic to false.
6708         (crypto): Set is_synthetic to true.
6709         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6710         SYNTHETIC.
6712 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
6714         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6715         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6716         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6717         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6718         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6719         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6720         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6721         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6722         Rename ...
6723         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6724         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6725         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6726         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6727         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6728         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6729         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6730         vfmlsl_laneq_high_f16): ... To this.
6731         * config/arm/neon.md: Update comments.
6733 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
6735         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6736         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6737         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6738         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6739         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6740         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6741         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6742         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6743         Rename ...
6744         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6745         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6746         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6747         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6748         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6749         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6750         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6751         vfmlslq_laneq_high_f16): ... To this.
6753 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
6755         PR rtl-optimization/86096
6756         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6757         comparing mw_order values.
6759 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
6761         PR target/89434
6762         * config/arm/arm.md (*subsi3_carryin_const): Use
6763         arm_neg_immediate_operand predicate instead of
6764         arm_not_immediate_operand, "L" constraint instead of "K" and
6765         print it using %n2 instead of %B2.
6766         (*subsi3_carryin_const0): New define_insn.
6767         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6768         instead of arm_not_operand and "I" constraint instead of "K" and
6769         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
6770         another match_operand and in the condition check that it is negation
6771         of operands[2].
6772         (*subsi3_carryin_compare_const0): New define_ins.
6773         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6774         *subsi3_carryin_const.
6775         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6776         split into *subsi3_carryin_compare_const0 if the highpart is zero.
6778         PR target/89438
6779         * config/arm.vfp.md (*negdf2_vfp): Use
6780         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6781         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6783 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
6785         PR rtl-optimization/89445
6786         * simplify-rtx.c (simplify_ternary_operation): Don't use
6787         simplify_merge_mask on operands that may trap.
6788         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6789         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
6790         second operand is CONST_VECTOR, check if any element could be zero.
6791         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6792         their operands can trap.
6794 2019-02-23  Martin Sebor  <msebor@redhat.com>
6796         * gimple-ssa-sprintf.c (target_strtol): Rename...
6797         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
6798         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
6799         check for range error.
6801 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
6803         PR driver/69471
6804         * opts-common.c (prune_options): Also prune joined switches
6805         with Negative and RejectNegative.
6806         * config/i386/i386.opt (march=): Add Negative(march=).
6807         (mtune=): Add Negative(mtune=).
6808         * doc/options.texi: Document Negative used together with Joined
6809         and RejectNegative.
6811 2019-02-22  Martin Sebor  <msebor@redhat.com>
6813         * doc/extend.texi (Other Builtins): Add
6814         __builtin_is_constant_evaluated.
6816 2019-02-22  Richard Biener  <rguenther@suse.de>
6818         PR tree-optimization/87609
6819         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6821 2019-02-22  Jeff Law  <law@redhat.com>
6823         PR rtl-optimization/87761
6824         * config/mips/mips.md: Add new combiner pattern to recognize
6825         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6827 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
6829         PR target/89324
6830         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6831         destination register in peepholes generating patterns for ADDS/SUBS.
6832         (add<mode>3_compare0,
6833         *addsi3_compare0_uxtw, add<mode>3_compareC,
6834         add<mode>3_compareV_imm, add<mode>3_compareV,
6835         *adds_<optab><ALLX:mode>_<GPI:mode>,
6836         *subs_<optab><ALLX:mode>_<GPI:mode>,
6837         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6838         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6839         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6840         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6841         sub<mode>3_compare1): Allow stack pointer for source register.
6842         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6844 2019-02-22  Martin Sebor  <msebor@redhat.com>
6846         PR tree-optimization/88993
6847         PR tree-optimization/88853
6848         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6849         New helper.
6850         (sprintf_dom_walker::call_info::is_string_func): New helper.
6851         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6852         for formatted string functions.
6853         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6855 2019-02-22  Martin Sebor  <msebor@redhat.com>
6857         PR c/89425
6858         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6859         unreachable subexpressions.
6861 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
6862             Hongtao Liu  <hongtao.liu@intel.com>
6863             Sunil K Pandey  <sunil.k.pandey@intel.com>
6865         PR target/87007
6866         * config/i386/i386-passes.def: Add
6867         pass_remove_partial_avx_dependency.
6868         * config/i386/i386-protos.h
6869         (make_pass_remove_partial_avx_dependency): New.
6870         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6871         New function.
6872         (pass_data_remove_partial_avx_dependency): New.
6873         (pass_remove_partial_avx_dependency): Likewise.
6874         (make_pass_remove_partial_avx_dependency): Likewise.
6875         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6876         (*extendsfdf2): Add avx_partial_xmm_update.
6877         (truncdfsf2): Likewise.
6878         (*float<SWI48:mode><MODEF:mode>2): Likewise.
6879         (SF/DF conversion splitters): Disabled for TARGET_AVX.
6881 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
6883         PR middle-end/85598
6884         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6885         analysis for pass.
6887 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
6889         PR target/89444
6890         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6891         (PTA_SKYLAKE): Add PTA_AES.
6892         (PTA_GOLDMONT): Likewise.
6894 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
6896         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6897         instruction if enabled.
6898         (aarch64_override_options): Remove reference to return address key.
6900 2019-02-22  Richard Biener  <rguenther@suse.de>
6902         PR tree-optimization/89440
6903         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6904         not necessary assert.
6906 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
6908         PR fortran/72741
6909         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6910         (oacc_replace_fn_attrib_attr): ... this new function.
6911         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6912         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6914 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6916         * config/arm/arm-cpus.in (ares): Rename to...
6917         (neoverse-n1): ... This.  Add ares as alias.
6918         * config/arm/arm-tables.opt: Regenerate.
6919         * config/arm/arm-tune.md: Likewise.
6920         * doc/invoke.txt (ARM Options): Document neoverse-n1.
6922 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6924         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6925         * config/aarch64/aarch64-tune.md: Regenerate.
6926         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6928 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6930         * config/aarch64/aarch64.c (ares_tunings): Rename to...
6931         (neoversen1_tunings): ... This.
6932         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6933         (neoverse-n1): New CPU.
6934         * config/aarch64/aarch64-tune.md: Regenerate.
6935         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6937 2019-02-22  Richard Biener  <rguenther@suse.de>
6939         PR middle-end/87609
6940         * cfghooks.h (dependence_hash): New typedef.
6941         (struct copy_bb_data): New type.
6942         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6943         (duplicate_block): Likewise.
6944         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6945         (copy_bbs): Create and pass down copy_bb_data.
6946         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6947         (rtl_duplicate_bb): Likewise.
6948         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6949         remap dependence info.
6951 2019-02-22  Richard Biener  <rguenther@suse.de>
6953         PR tree-optimization/87609
6954         * tree-core.h (tree_base): Document special clique values.
6955         * tree-inline.c (remap_dependence_clique): Do not use the
6956         special clique value of one.
6957         (maybe_set_dependence_info): Use clique one.
6958         (clear_dependence_clique): New callback.
6959         (compute_dependence_clique): Clear clique one from all refs
6960         before assigning it (again).
6962 2019-02-21  Martin Sebor  <msebor@redhat.com>
6964         * doc/extend.texi (__clear_cache): Correct signature.
6966 2019-02-21  Ian Lance Taylor  <iant@golang.org>
6968         PR go/89170
6969         * varasm.c (decode_addr_const): Call lookup_constant_def rather
6970         than output_constant_def.
6971         (add_constant_to_table): New static function.
6972         (output_constant_def): Call add_constant_to_table.
6973         (tree_output_constant_def): Likewise.
6975 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
6977         PR c++/89285
6978         * builtins.c (fold_builtin_arith_overflow): If first two args are
6979         INTEGER_CSTs, set intres and ovfres to constants rather than calls
6980         to ifn.
6982 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6984         PR target/87412
6985         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6986         error for -mindirect-branch/-mfunction-return with incompatible
6987         -fcf-protection.
6989 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
6991         PR bootstrap/88714
6992         * constraints.md (q): Remove.
6993         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
6994         instead of q.
6996 2019-02-21  Martin Jambor  <mjambor@suse.cz>
6998         PR hsa/89302
6999         * omp-general.c (omp_extract_for_data): Removed a duplicate call
7000         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7001         (omp_adjust_for_condition): ...here.  Added necessary parameters.
7002         * omp-general.h (omp_adjust_for_condition): Updated declaration.
7003         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7004         proper values to new parameters of omp_adjust_for_condition.
7006 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
7008         PR middle-end/89412
7009         * expr.c (expand_assignment): If result is a MEM, use change_address
7010         instead of simplify_gen_subreg.
7012 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
7013             David Malcolm  <dmalcolm@redhat.com>
7015         PR middle-end/89091
7016         * fold-const.c (decode_field_reference): Return NULL_TREE if
7017         lang_hooks.types.type_for_size returns NULL.  Check it before
7018         overwriting *exp_.  Use return NULL_TREE instead of return 0.
7020 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
7022         PR middle-end/88074
7023         PR middle-end/89415
7024         * toplev.c (do_compile): Double the emin/emax exponents to workaround
7025         buggy mpc_norm.
7027 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7029         PR target/89397
7030         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7031         TARGET_SSE in addition to TARGET_SSE_MATH.
7033         (ix86_excess_precision): Ditto.
7034         (ix86_float_exceptions_rounding_supported_p): Ditto.
7035         (use_rsqrt_p): Ditto.
7036         * config/i386/sse.md (rsqrt<mode>2): Ditto.
7038 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
7040         PR c/89410
7041         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7042         linenum_arith_t when determining if two adjacent line spans are
7043         close enough to merge.
7044         (diagnostic_show_locus): Use linenum_arith_t when iterating over
7045         lines within each line_span.
7047 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
7049         PR target/86487
7050         * lra-constraints.c(uses_hard_regs_p): Fix handling of
7051         paradoxical SUBREGS.
7053 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
7055         PR target/88100
7056         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7057         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7058         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7059         range checking it.
7061 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
7063         * config/gcn/gcn.c (print_operand): Fix typo.
7065 2019-02-19  Richard Biener  <rguenther@suse.de>
7067         PR middle-end/88074
7068         * toplev.c (do_compile): Initialize mpfr's exponent range
7069         based on available float modes.
7071 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
7073         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7074         as long as the epilogue isn't completed.
7076 2019-02-18  Martin Sebor  <msebor@redhat.com>
7078         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7079         __has_cpp_attribute, and __has_include.
7081 2019-02-18  Martin Sebor  <msebor@redhat.com>
7083         * doc/invoke.texi (-Wreturn-type): Correct and expand.
7085 2019-02-18  Martin Sebor  <msebor@redhat.com>
7087         PR middle-end/89294
7088         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7089         expression.
7090         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7092 2019-02-18  Richard Biener  <rguenther@suse.de>
7094         PR tree-optimization/89296
7095         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7096         of no-warning flag to cases that might emit the bogus warning.
7098 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
7100         PR bootstrap/88714
7101         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7102         "q" constraint.
7103         * config/arm/vfp.md (*movdi_vfp): Likewise.
7104         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7105         "q" constraint for operands[0].
7107         PR target/89369
7108         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7109         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7110         pattern in a temporary buffer.
7111         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
7112         than 64-operands[2].
7114         PR target/89361
7115         * config/s390/s390.c (s390_indirect_branch_attrvalue,
7116         s390_indirect_branch_settings): Define unconditionally.
7117         (s390_set_current_function): Likewise, but guard the whole body except
7118         the s390_indirect_branch_settings call with
7119         #if S390_USE_TARGET_ATTRIBUTE.
7120         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7122         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7123         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7124         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7125         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7126         HOST_WIDE_INT_1U instead of 1ULL.
7127         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7128         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7129         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7130         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7131         instead of 1UL.
7132         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7133         instead of 1ul.
7135 2019-02-18  Martin Jambor  <mjambor@suse.cz>
7137         PR tree-optimization/89209
7138         * tree-sra.c (create_access_replacement): New optional parameter
7139         reg_tree.  Use it as a type if non-NULL and access type is not of
7140         a register type.
7141         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7142         to create_access_replacement.
7143         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7144         Check lacc is non-NULL before attempting to re-create it on the RHS.
7146 2019-02-18  Martin Liska  <mliska@suse.cz>
7148         PR ipa/89306
7149         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7150         by default.
7151         (symbol_table::free_edge): Recycle m_summary_id.
7152         * cgraph.h (get_summary_id): New.
7153         (symbol_table::release_symbol): Set m_summary_id to -1
7154         by default.
7155         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7156         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7157         function_summary to fast_function_summary.
7158         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7159         * ipa-pure-const.c (class funct_state_summary_t):
7160         Switch from function_summary to fast_function_summary.
7161         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7162         (class ipa_ref_opt_summary_t): Switch from function_summary
7163         to fast_function_summary.
7164         * symbol-summary.h (class function_summary_base): New class
7165         that is created from base of former function_summary.
7166         (function_summary_base::unregister_hooks): New.
7167         (class function_summary): Inherit from function_summary_base.
7168         (class call_summary_base): New class
7169         that is created from base of former call_summary.
7170         (class call_summary): Inherit from call_summary_base.
7171         (struct is_same): New.
7172         (class fast_function_summary): New summary class.
7173         (class fast_call_summary): New summary class.
7174         * vec.h (vec_safe_grow_cleared): New function.
7176 2019-02-18  Martin Liska  <mliska@suse.cz>
7178         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7179         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7180         * doc/tm.texi: Document new target hook.
7181         * doc/tm.texi.in: Likewise.
7182         * target.def: Add new target macro.
7183         * gcc.c (find_fortran_preinclude_file): Do not search multilib
7184         suffixes.
7186 2019-02-17  Alan Modra  <amodra@gmail.com>
7188         PR target/89271
7189         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7190         output reg on add insn.
7191         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
7193 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
7195         PR target/89372
7196         * config/i386/sse.md (ssedoublemode): Remove V4HI.
7197         (PMULHRSW): Likewise.
7198         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7199         TARGET_AVX2.
7200         (ssse3_pmulhrswv4hi3): New expander.
7202 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
7204         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7205         MMX.  Add isa attribute.
7207 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
7209         PR rtl-optimization/66152
7210         * builtins.h (c_readstr): Declare.
7211         * builtins.c (c_readstr): Remove forward declaration.  Add
7212         null_terminated_p argument, if false, read all bytes from the
7213         string instead of stopping after '\0'.
7214         * expr.c (string_cst_read_str): New function.
7215         (store_expr): Use string_cst_read_str instead of
7216         builtin_strncpy_read_str.  Try to store by pieces the whole
7217         exp_len first, and only if that fails, split it up into
7218         store by pieces followed by clear_storage.  Formatting fix.
7220         * config/i386/i386.md (*movqi_internal): Remove static from
7221         buf variable.  Use output_asm_insn (buf, operands); return "";
7222         instead of return buf;.
7223         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7224         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7225         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7227 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
7229         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7230         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7231         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7232         (CC1_SPEC): Likewise.
7233         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7235 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
7237         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7238         the base address on 64-bit strict-alignment platforms.
7240 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7242         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7244 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7246         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7248 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
7250         PR rtl-optimization/88308
7251         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7252         on copied instruction.
7254 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
7256         * final.c (insn_current_reference_address): Replace test on JUMP_P
7257         with test on jump_to_label_p.
7258         * config/visium/visium-passes.def: New file.
7259         * config/visium/t-visium (PASSES_EXTRA): Define.
7260         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7261         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7262         (TRAMPOLINE_ALIGNMENT): Define.
7263         * config/visium/visium.c (visium_option_override): Do not register
7264         the machine-specific reorg pass here.
7265         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7266         for the GR6.
7267         (output_branch): Adjust threshold for long branch instruction.
7268         * config/visium/visium.md (cpu): Move around.
7269         (length): Adjust for the GR6.
7271 2019-02-15  Richard Biener  <rguenther@suse.de>
7272             Jakub Jelinek  <jakub@redhat.com>
7274         PR tree-optimization/89278
7275         * tree-loop-distribution.c: Include tree-eh.h.
7276         (generate_memset_builtin, generate_memcpy_builtin): Call
7277         rewrite_to_non_trapping_overflow on builtin->size before passing it
7278         to force_gimple_operand_gsi.
7280 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
7282         PR other/89342
7283         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7284         optimize_debug.
7285         * opth-gen.awk: Likewise.
7287 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7289         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7290         Enable MMX, SSE and SSE2 by default.
7291         * config/i386/i386.c (ix86_option_override_internal): Do not
7292         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7294 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
7296         PR rtl-optimization/89354
7297         * combine.c (make_extraction): Punt if extraction_mode is narrower
7298         than len bits.
7300 2019-02-14  Maya Rashish  <coypu@sdf.org>
7302         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7303         * config/netbsd-d.c: New file.
7304         * config/t-netbsd: Add netbsd-d.o
7306 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
7308         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7309         affects_type_identity to true for aarch64_vector_pcs.
7310         (aarch64_comp_type_attributes): New function.
7311         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7313 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
7315         PR target/88850
7316         * config/arm/iterators.md (ANY64): Add V4HF.
7318 2019-02-14  Martin Liska  <mliska@suse.cz>
7320         PR rtl-optimization/89242
7321         * dce.c (delete_unmarked_insns): Call free_dominance_info we
7322         process a transformation.
7324 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
7326         PR tree-optimization/89314
7327         * fold-const.c (fold_binary_loc): Cast strlen argument to
7328         const char * before dereferencing it.  Formatting fixes.
7330         PR middle-end/89284
7331         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7333 2019-02-13  Ian Lance Taylor  <iant@golang.org>
7335         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7336         and set current index for other optimizations.
7338 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7340         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7341         nonimmediate_operand as operand 2 predicate.
7342         (vec_set<VF2_512_256:mode>_0): Ditto.
7343         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7344         (*vec_concatv2si): Remove alternative 2.
7345         (*vec_concatv4si_0): Use vm constraint for alternative 0.
7346         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7347         (vec_concatv2di): Split alternatives 4,5,6 to ...
7348         (*vec_concatv2di_0) ... new pattern.
7350 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
7352         PR target/89190
7353         * config/arm/arm.c (ldm_stm_operation_p) Set
7354         addr_reg_in_reglist correctly for first register.
7355         (load_multiple_sequence): Remove dead base check.
7356         (gen_ldm_seq): Correctly set write_back for Thumb-1.
7358 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
7360         PR target/88847
7361         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7362         Expose as @aarch64_pred_mov.
7363         * config/aarch64/aarch64.c (aarch64_classify_address):
7364         Use expand_insn which legitimizes operands.
7366 2019-02-13  Martin Liska  <mliska@suse.cz>
7368         * builtins.h (expand_builtin_with_bounds): Remove declaration.
7369         * calls.c (struct arg_data): Remove special_slot, pointer_arg
7370         and pointer_offset fields.
7371         (initialize_argument_information): Remove usage of dead
7372         fields.
7373         * cgraph.h (struct cgraph_thunk_info): Remove
7374         add_pointer_bounds_args.
7375         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7376         fields.
7377         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7378         fields.
7379         * config/i386/i386.c (ix86_function_arg_advance): Remove
7380         unrelated comment.
7381         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7382         (def_builtin):  Remove usage of dead
7383         fields.
7384         (ix86_add_new_builtins): Likewise.
7385         * ipa-fnsummary.c (compute_fn_summary): Likewise.
7386         * ipa-icf.c (sem_function::equals_wpa): Likewise.
7387         (sem_function::init): Likewise.
7388         (sem_variable::merge): Likewise.
7389         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7390         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7391         * lto-cgraph.c (lto_output_node): Likewise.
7392         (lto_output_varpool_node): Likewise.
7393         (input_node): Likewise.
7394         (input_varpool_node): Likewise.
7395         * lto-streamer-out.c (lto_output): Likewise.
7396         * tree-inline.c (expand_call_inline): Remove usage of
7397         assign_stmts.
7398         * tree-inline.h (struct copy_body_data): Likewise.
7399         * varpool.c (varpool_node::dump): Likewise.
7401 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
7403         PR middle-end/89303
7404         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7405         into pt->vars_contains_escaped_heap instead of setting
7406         pt->vars_contains_escaped_heap to it.
7408         PR middle-end/89281
7409         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7410         INTVAL (size), compare it to GET_MODE_MASK instead of
7411         1 << GET_MODE_BITSIZE.
7413         PR target/89290
7414         * config/i386/predicates.md (x86_64_immediate_operand): Allow
7415         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7416         -mcmodel=large.
7418 2019-02-13  Martin Liska  <mliska@suse.cz>
7420         PR lto/88858
7421         * cfgrtl.c (remove_barriers_from_footer): New function.
7422         (try_redirect_by_replacing_jump): Use it.
7423         (cfg_layout_redirect_edge_and_branch): Likewise.
7425 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
7427         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7428         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7429         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7430         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7431         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7432         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7433         New BU_CRYPTO_2.
7434         * config/rs6000/rs6000.c (builtin_function_type)
7435         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7436         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7437         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7438         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7439         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7441 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
7443         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7444         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7446 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
7448         PR target/89229
7449         * config/i386/i386.md (*movoi_internal_avx): Revert revision
7450         268678 and revision 268657.
7451         (*movti_internal): Likewise.
7453 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
7455         PR target/89233
7456         * config/s390/s390.c (s390_decompose_address): Update comment.
7457         (s390_check_qrst_address): Reject invalid address forms after
7458         LRA.
7460 2019-02-12  Martin Liska  <mliska@suse.cz>
7462         PR lto/88876
7463         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7464         we need default values of funct_state for a function that
7465         is not optimized.
7467 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
7469         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7470         the object to pick the size of stores on strict-alignment platforms.
7472         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7473         (*movdi_insn_sp32): Likewise.
7474         (*movdi_insn_sp64): Likewise.
7476 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
7478         PR lto/88677
7479         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7480         types that needs constructiong.
7481         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7483 2019-02-12  Richard Biener  <rguenther@suse.de>
7485         PR tree-optimization/89253
7486         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7487         duplicate the loop.
7489 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
7491         PR lto/88147
7492         * input.c (selftest::test_line_offset_overflow): New selftest.
7493         (selftest::input_c_tests): Call it.
7495 2019-02-11  Martin Sebor  <msebor@redhat.com>
7497         PR tree-optimization/88771
7498         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7499         when -Wstringop-overflow is set.
7500         (builtin_memref::builtin_memref): Adjust excessive upper bound
7501         only when lower bound is not excessive.
7502         (maybe_diag_overlap): Detect and diagnose excessive bounds via
7503         -Wstringop-ovefflow.
7504         (maybe_diag_offset_bounds): Rename...
7505         (maybe_diag_access_bounds): ...to this.
7506         (check_bounds_or_overlap): Adjust for name change above.
7508 2019-02-11  Martin Sebor  <msebor@redhat.com>
7510         PR c++/87996
7511         * builtins.c (max_object_size): Move from here...
7512         * builtins.h (max_object_size): ...and here...
7513         * tree.c (max_object_size): ...to here...
7514         * tree.h (max_object_size): ...and here.
7516 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
7518         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7519         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7520         for correct semantics.
7522 2019-02-11  Alan Modra  <amodra@gmail.com>
7524         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7525         -mlongcall and -mpltseq.
7526         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7527         (RS/6000 and PowerPC Options <-mpltseq>): Document.
7528         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7529         * config/rs6000/sysv4.opt (mpltseq): New option.
7530         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7531         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7532         support is lacking.  Don't allow -mpltseq with -mbss-plt.
7533         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7534         -mpltseq given for ELFv1.
7535         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7536         Only use UNSPEC_PLTSEQ for inline PLT calls.
7537         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
7538         use UNSPEC_PLTSEQ for inline PLT calls.
7539         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7540         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7541         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7542         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7543         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7544         (pltseq_mtctr_<mode>): Likewise.
7546 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7548         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7549         Solaris ld.
7550         * configure: Regenerate.
7552 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
7554         PR bootstrap/88714
7555         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7556         instead of r.
7558 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
7560         * function.c (assign_parm_setup_block): Use the stored
7561         size, not the passed size, when allocating stack-space,
7562         also for a parameter with alignment larger than
7563         MAX_SUPPORTED_STACK_ALIGNMENT.
7565 2019-02-11  Martin Liska  <mliska@suse.cz>
7567         PR ipa/89009
7568         * ipa-cp.c (build_toporder_info): Remove usage of a param.
7569         * ipa-inline.c (inline_small_functions): Likewise.
7570         * ipa-pure-const.c (propagate_pure_const): Likewise.
7571         (propagate_nothrow): Likewise.
7572         * ipa-reference.c (propagate): Likewise.
7573         * ipa-utils.c (struct searchc_env): Remove unused field.
7574         (searchc): Always search across AVAIL_INTERPOSABLE.
7575         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7576         the only called IPA pure const can properly not propagate
7577         across interposable boundary.
7578         * ipa-utils.h (ipa_reduced_postorder): Remove param.
7580 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
7582         * config/nds32/nds32.md (call_internal, call_value_internal,
7583         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7585 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
7587         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7588         typo.
7590 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
7592         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7593         in comments
7595 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7597         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7599 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
7601         PR tree-optimization/89268
7602         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7603         if preds is non-NULL.
7605 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
7607         PR lto/89272
7608         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7609         polymorphic types.
7611 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
7613         * config/nds32/nds32.md (trap): New pattern.
7615 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
7617         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7618         dwarf span.
7620 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7622         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7623         to split POST_INC.
7625 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
7627         * ipa-visibility.c (localize_node): Also do not localize
7628         LDPR_PREVAILING_DEF_IRONLY_EXP.
7630 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
7632         PR lto/87957
7633         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7634         instead of type_with_linkage.
7636 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
7638         PR ipa/88755
7639         * params.def (uninlined-function-insns, uninlined-function-time,
7640         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7641         bound so we don't get overflows.
7643 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
7645         * config/rs6000/rs6000-string.c (expand_compare_loop,
7646         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7647         memcmp/strncmp.
7649 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
7651         PR middle-end/89246
7652         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7653         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7654         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7656 2019-02-09  Alan Modra  <amodra@gmail.com>
7658         PR target/88343
7659         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7660         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
7661         setup.
7663 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
7665         PR middle-end/88560
7666         * lra-constraints.c (process_alt_operands): Don't increase reject
7667         for memory when offset memory is required.
7669 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
7671         * config/s390/vector.md: Implement vector copysign.
7673 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
7675         * expr.c (expand_constructor): Correct indentations.
7677 2019-02-08  Richard Biener  <rguenther@suse.de>
7679         PR tree-optimization/89247
7680         * tree-if-conv.c: Include tree-cfgcleanup.h.
7681         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7682         (tree_if_conversion): Pass through predicate vector.
7683         (pass_if_conversion::execute): Do CFG cleanup and SSA update
7684         inline, see if any if-converted loops we refrece in
7685         LOOP_VECTORIZED calls vanished and fixup.
7686         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7688 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
7690         * config/s390/constraints.md (jdd): New constraint.
7692 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
7694         PR target/89229
7695         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7696         upper 16 vector registers without TARGET_AVX512VL.
7697         (*movti_internal): Likewise.
7699 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
7701         PR rtl-optimization/89234
7702         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7703         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7704         (copy_reg_eh_region_note_backward): Likewise.
7706 2019-02-08  Richard Biener  <rguenther@suse.de>
7708         PR middle-end/89223
7709         * tree-data-ref.c (initialize_matrix_A): Fail if constant
7710         doesn't fit in HWI.
7711         (analyze_subscript_affine_affine): Handle failure from
7712         initialize_matrix_A.
7714 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
7716         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7717         cfun everywhere.
7719 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
7721         PR tree-optimization/86637
7722         PR tree-optimization/89235
7723         * tree-vect-loop.c (optimize_mask_stores): Add an
7724         auto_purge_vect_location sentinel to ensure that vect_location is
7725         purged on exit.
7726         * tree-vectorizer.c
7727         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7728         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7729         to ensure that vect_location is purged on exit.
7730         (pass_slp_vectorize::execute): Likewise, replacing the manual
7731         reset.
7732         * tree-vectorizer.h (class auto_purge_vect_location): New class.
7734 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7736         * config/aarch64/iterators.md (max_opp): New code_attr.
7737         (USMAX): New code iterator.
7738         * config/aarch64/predicates.md (aarch64_smin): New predicate.
7739         (aarch64_smax): Likewise.
7740         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7741         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7742         MINUS (MAX MIN).
7744 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
7746         PR target/89229
7747         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7748         for TARGET_AVX512VL.
7749         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7751 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
7753         * config/s390/s390-builtin-types.def: Add new types.
7754         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7755         (s390_vec_xlw4): Make the memory operand into a const pointer.
7756         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7757         float.
7758         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7759         a new vector type with the alignment of the scalar memory operand.
7761 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
7762             Jakub Jelinek  <jakub@redhat.com>
7764         PR bootstrap/88714
7765         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7766         arm_count_ldrdstrd_insns): New declarations.
7767         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7768         MINUS.
7769         (valid_operands_ldrd_strd): New function.
7770         (arm_count_ldrdstrd_insns): New function.
7771         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7772         sets instead of single DImode set and define new insns to match this.
7774 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
7776         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7777         Make it a C initializer.
7779 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
7781         PR/target 88850
7782         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7784 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7786         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7787         Use neon_dot<q> for type.
7788         (neon_<sup>dot_lane<vsi2qi>): Likewise.
7790 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7792         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7793         Use neon_dot<q> for type.
7794         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7795         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7797 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
7799         PR rtl-optimization/89225
7800         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7801         sizes check.
7803 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
7805         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7806         after restoring registers saved to allocate the frame on Windows.
7808 2019-02-06  Richard Biener  <rguenther@suse.de>
7810         PR tree-optimization/89182
7811         * graphite.h (cached_scalar_evolution_in_region): Declare.
7812         * graphite.c (struct seir_cache_key): New.
7813         (struct sese_scev_hash): Likewise.
7814         (seir_cache): New global.
7815         (cached_scalar_evolution_in_region): New function.
7816         (graphite_transform_loops): Allocate and release seir_cache.
7817         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7818         cached_scalar_evolution_in_region.
7819         * graphite-scop-detection.c (scop_detection::can_represent_loop):
7820         Simplify.
7821         (scop_detection::graphite_can_represent_expr: Use
7822         cached_scalar_evolution_in_region.
7823         (scop_detection::stmt_simple_for_scop_p): Likewise.
7824         (find_params_in_bb): Likewise.
7825         (gather_bbs::before_dom_children): Likewise.
7826         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7827         (add_loop_constraints): Likewise.
7829 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
7831         PR middle-end/89210
7832         * fold-const-call.c (fold_const_vec_convert): Pass true as last
7833         operand to new_unary_operation only if both element types are integral
7834         and it isn't a widening conversion.  Return NULL_TREE if
7835         new_unary_operation failed.
7837 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
7839         PR target/88856
7840         * config/s390/s390.md: Remove load and test FP splitter.
7842 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
7844         PR target/89112
7845         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7846         expand_compare_loop, expand_block_compare_gpr,
7847         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7848         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7849         #include "profile-count.h" and "predict.h" for types and functions
7850         needed to work with REG_BR_PROB notes.
7852 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
7854         PR target/89112
7855         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7856         for the long branch case.
7858 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
7860         PR target/89188
7861         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7862         can throw, non-call exceptions are enabled and we can't delete
7863         dead exceptions or alter cfg.  Set must_clean if
7864         delete_insn_and_edges returns true, don't set it blindly for calls.
7865         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7867         PR rtl-optimization/89195
7868         * combine.c (make_extraction): For MEMs, don't extract bytes outside
7869         of the original MEM.
7871 2019-02-05  Martin Liska  <mliska@suse.cz>
7873         PR gcov-profile/89000
7874         * gcov.c (function_summary): Remove argument.
7875         (file_summary): New function.
7876         (print_usage): Replace tabs with spaces.
7877         (generate_results): Use new function file_summary.
7879 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
7881         PR target/89186
7882         * optabs.c (prepare_cmp_insn): Pass x and y to
7883         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7885 2019-02-05  Richard Biener  <rguenther@suse.de>
7887         PR middle-end/89150
7888         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7889         (struct bitmap_element): Drop chain_prev so we properly recurse on
7890         the prev member, supporting tree views.
7891         (struct bitmap_head): GTY skip the obstack member.
7893 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
7895         PR c/88698
7896         * doc/extend.texi (Vector Extensions): Add an example of using vector
7897         types together with x86 intrinsics.
7899 2019-02-04  Alan Modra  <amodra@gmail.com>
7901         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7902         str[] size to 160, and comment.
7904 2019-02-04  Alan Modra  <amodra@gmail.com>
7906         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7907         (rs6000_pltseq_template): Guard output of TLS markers with
7908         TARGET_TLS_MARKERS.
7909         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7910         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7911         to use inline PLT sequences.
7912         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7913         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7914         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7916 2019-02-04  Martin Liska  <mliska@suse.cz>
7918         PR ipa/88985
7919         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7920         out when ipa_fn_summaries does not contain entry for callee.
7922 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
7924         * config/sparc/sparc.h: Remove superfluous blank lines.
7925         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7926         (got_register_rtx): ...this.
7927         (sparc_got): Adjust to above renaming.
7928         (sparc_tls_got): Likewise.
7929         (sparc_delegitimize_address): Likewise.
7930         (sparc_output_mi_thunk): Likewise.
7931         (sparc_init_pic_reg): Likewise.
7932         (save_local_or_in_reg_p): Fix test on the GOT register.
7933         (USE_HIDDEN_LINKONCE): Move around.
7934         (get_pc_thunk_name): Likewise.
7935         (gen_load_pcrel_sym): Likewise.
7936         (load_got_register): Likewise.
7938 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
7940         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7941         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7943 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
7945         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7946         into consideration.
7948 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
7950         * config.gcc (with_nds32_lib, glibc):
7951         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7952         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7953         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7955 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7957         PR target/89071
7958         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7959         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7960         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7961         (*rcpsf2_sse): Ditto.
7962         (*rsqrtsf2_sse): Ditto.
7963         (sse4_1_round<mode<2): Ditto.
7965 2019-02-03  Richard Biener  <rguenther@suse.de>
7967         PR debug/87295
7968         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7969         orig.
7971 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
7973         PR middle-end/87887
7974         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7975         Punt with warning on aggregate return or argument types.  Ignore
7976         type/mode checking for uniform arguments.
7978 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
7980         * combine.c (try_combine): Do not print "Can't combine" messages unless
7981         printing failed combination attempts.
7983 2019-02-01  Martin Jambor  <mjambor@suse.cz>
7985         PR hsa/87863
7986         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7987         segment and global segment variables before making them static.
7989 2019-02-01  Martin Jambor  <mjambor@suse.cz>
7991         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
7992         missed optimization dump with dump_enabled_p.
7994 2019-02-01  Richard Biener  <rguenther@suse.de>
7996         PR middle-end/88597
7997         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
7998         the instantiate cache.
7999         (instantiate_scev_binary): Elide second operand procesing
8000         if equal to the first.
8001         * tree-chrec.c (chrec_contains_symbols): Add visited set.
8002         (chrec_contains_undetermined): Likewise.
8003         (tree_contains_chrecs): Likewise.
8005 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
8007         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8009 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
8011         PR tree-optimization/89143
8012         * wide-int-range.h (wide_int_range_absu): Declare.
8013         * wide-int-range.cc (wide_int_range_absu): New function.
8014         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8016         PR tree-optimization/88107
8017         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8018         instead of assertion that eh_region_outermost is non-NULL, if it
8019         is NULL, set *ALL to true and return NULL.
8020         (move_sese_region_to_fn): Adjust caller, if all is set, call
8021         duplicate_eh_regions with NULL region.
8023 2019-02-01  Richard Biener  <rguenth@suse.de>
8025         PR rtl-optimization/88593
8026         * mode-switching.c (optimize_mode_switching): Free dominators before
8027         calling cleanup_cfg.
8029 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
8031         PR tree-optimization/88932
8032         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8034 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
8036         PR middle-end/89137
8037         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8038         bogus clang warning.
8040 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8042         PR target/89071
8043         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8044         alternative to avoid partial SSE register stall for TARGET_AVX.
8045         (truncdfsf2): Ditto.
8046         (sse4_1_round<mode>2): Ditto.
8048 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
8050         PR tree-optimization/89008
8051         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8052         process anything of the form X * 0.
8054 2019-01-31  Richard Biener  <rguenther@suse.de>
8056         PR tree-optimization/89135
8057         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8058         with abnormal preds.
8060 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
8062         PR sanitizer/89124
8063         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8064         always_inline callees into no_sanitize_address callers.
8066 2019-01-31  Richard Biener  <rguenther@suse.de>
8068         PR rtl-optimization/89115
8069         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8071 2019-01-30  Martin Sebor  <msebor@redhat.com>
8073         PR other/89106
8074         * doc/extend.texi (cast to a union): Correct and expand.
8076 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
8078         PR rtl-optimization/87246
8079         * lra-constraints.c (simplify_operand_subreg): Reload memory
8080         in subreg if the address became invalid.
8082 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
8084         PR target/87064
8085         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8086         Disable for little-endian.
8088 2019-01-30  Richard Biener  <rguenther@suse.de>
8090         PR rtl-optimization/89115
8091         * opts.c (default_options_optimization): Reduce
8092         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8093         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8094         to the default.
8096 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8098         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8099         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
8100         type of vector element when vec_extract is implemented by direct
8101         move.
8103 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
8105         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8107 2019-01-30  Richard Biener  <rguenther@suse.de>
8109         PR tree-optimization/89111
8110         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8111         canonicalization to appropriately sized access types.
8113 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
8115         PR c++/89105
8116         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8117         for arguments to functions that are TU-local and shouldn't be
8118         referenced by assembly.
8120 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
8122         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8123         after '='.
8125 2019-01-29  Martin Sebor  <msebor@redhat.com>
8127         PR c/88956
8128         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8130 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
8132         PR c++/66676
8133         PR ipa/89104
8134         * omp-simd-clone.c (simd_clone_clauses_extract)
8135         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8136         OMP_CLAUSE_ALIGNED_ALIGNMENT.
8138 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
8140         * config.gcc: Force .init_array for ARC.
8142 2019-01-29  Richard Biener  <rguenther@suse.de>
8144         PR debug/87295
8145         * dwarf2out.c (collect_skeleton_dies): New helper.
8146         (copy_decls_for_unworthy_types): Call it.
8147         (build_abbrev_table): Assert we do not try to replace
8148         DW_AT_signature refs with local refs.
8150 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
8152         PR middle-end/89002
8153         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8154         for lastprivate/linear IV, push gimplify context around gimplify_assign
8155         and, if it needed any temporaries, pop it into a gimple bind around the
8156         sequence.
8158 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8160         * common.opt (-Wattribute-alias): Remove "no-" from name.
8161         Make -Wattribute-alias command line option and
8162         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8164 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
8166         PR target/89073
8167         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8168         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8169         x86 ISA options.
8170         (bmi2): Add missing @opindex.
8171         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8172         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
8173         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8174         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8175         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8176         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8177         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8178         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8179         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8180         xsavec, xsaveopt and xsaves options.
8182 2019-01-28  Richard Biener  <rguenther@suse.de>
8184         PR debug/89076
8185         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8186         support removal.
8188 2019-01-28  Richard Biener  <rguenther@suse.de>
8190         PR tree-optimization/88739
8191         * tree-cfg.c (verify_types_in_gimple_reference): Verify
8192         BIT_FIELD_REFs only are applied to mode-precision operands
8193         when they are integral.
8194         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8195         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8196         BIT_FIELD_REFs of non-mode-precision integral operands.
8198 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
8200         PR target/87214
8201         * config/i386/sse.md
8202         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8203         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8204         first constants in pairs are multiples of 2.  Formatting fixes.
8205         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8206         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8207         first constants in each quadruple are multiples of 4.  Formatting fixes.
8209 2019-01-26  Martin Jambor  <mjambor@suse.cz>
8211         PR ipa/88933
8212         * tree-inline.c: Include tree-cfgcleanup.h.
8213         (delete_unreachable_blocks_update_callgraph): Move...
8214         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8215         ...here, make externally visible, make second argument bool, adjust
8216         all callers.
8217         * tree-cfgcleanup.c: Include cgraph.h.
8218         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8219         Declare.
8220         * ipa-prop.c: Include tree-cfgcleanup.h.
8221         (ipcp_transform_function): Call
8222         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8224 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
8226         PR rtl-optimization/88846
8227         * ira.c (process_set_for_memref_referenced_p): New.
8228         (memref_referenced_p): Add new param.  Use
8229         process_set_for_memref_referenced_p.  Add new switch cases.
8230         (memref_used_between_p): Pass new arg to memref_referenced_p.
8232 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
8234         PR target/88469
8235         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8236         argument ABI_BREAK.  Set to true if the calculated alignment has
8237         changed in gcc-9.  Check bit-fields for their base type alignment.
8238         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8239         (aarch64_function_arg_boundary): Likewise.
8240         (aarch64_gimplify_va_arg_expr): Likewise.
8242 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
8244         PR middle-end/89037
8245         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8246         instead of accessing TREE_INT_CST_ELT directly.
8248 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
8250         * doc/sourcebuild.texi (Environment attributes): Add fenv and
8251         fenv_exceptions description.
8253 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
8255         PR rtl-optimization/87763
8256         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8257         Allow SUBREG when matching CC_NZmode compare.
8259 2019-01-25  Richard Biener  <rguenther@suse.de>
8261         PR tree-optimization/89049
8262         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8263         Look at the pattern stmt to determine if the stmt is vectorized.
8265 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
8267         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8268         (pred_mov<mode>): Handle all-register forms using both a new
8269         alternative and a split.
8271 2019-01-25  Richard Biener  <rguenther@suse.de>
8273         PR tree-optimization/86865
8274         * graphite-scop-detection.c (scop_detection::can_represent_loop):
8275         Reject non-do-while loops.
8277 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
8279         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8280         * config/rs6000/constraints.md (Q constraint): Use REG_P.
8281         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8282         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8283         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8284         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8285         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8286         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8287         vlogical_operand, gpc_reg_operand, int_reg_operand,
8288         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8289         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8290         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8291         (save_world_operation, restore_world_operation, lmw_operation,
8292         stmw_operation): Use MEM_P and REG_P.
8293         (tie_operand): Use MEM_P.
8294         (vrsave_operation, crsave_operation): Use REG_P.
8295         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8296         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8297         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8298         (call_operand): Use HARD_REGISTER_P.
8299         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8300         Use CONST_INT_P.
8301         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8302         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8303         quad_aligned_load_p, replace_swapped_aligned_store,
8304         recombine_lvx_pattern, replace_swapped_aligned_load,
8305         recombine_stvx_pattern): Use MEM_P.
8306         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8307         Use MEM_P and SYMBOL_REF_P.
8308         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8309         (insn_is_swappable_p): Use REG_P and MEM_P.
8310         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8311         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8312         Use CONST_INT_P.
8313         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8314         Use CONST_DOUBLE_P.
8315         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8316         CONST_WIDE_INT_P.
8317         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8318         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8319         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8320         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8321         reg_or_subregno:
8322         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8323         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8324         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8325         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8326         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8327         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8328         rs6000_split_logical_di): Use CONST_INT_P.
8329         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8330         REG_P and SYMBOL_REF_P.
8331         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8332         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8333         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8334         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8335         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8336         (small_data_operand, print_operand_address): Use CONST_INT_P and
8337         SYMBOL_REF_P.
8338         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8339         (rs6000_init_hard_regno_mode_ok, direct_move_p):
8340         Use HARD_REGISTER_NUM_P.
8341         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8342         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8343         SUBREG_P and SYMBOL_REF_P.
8344         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8345         and HARD_REGISTER_NUM_P.
8346         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8347         reg_or_subregno.
8348         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8349         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8350         MEM_P and REG_P.
8351         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8352         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8353         find_addr_reg): Use REG_P.
8354         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8355         (rs6000_emit_le_vsx_move): Use SUBREG_P.
8356         (offsettable_ok_by_alignment, constant_pool_expr_p,
8357         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8358         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8359         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8360         rs6000_assemble_integer, create_TOC_reference,
8361         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8362         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8363         (rs6000_split_vec_extract_var): Use reg_or_subregno.
8364         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8365         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8366         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8367         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8368         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8369         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8370         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8371         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8372         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8373         and cbranch<mode>4): Use CONST_INT_P.
8374         (multiple define_splits): Use REG_P and SUBREG_P.
8375         (define_expands call, call_value): Use MEM_P.
8376         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
8377         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8378         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8379         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8380         and HARD_REGISTER_NUM_P.
8381         (multiple define_splits): Use HARD_REGISTER_NUM_P.
8383 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8385         PR rtl-optimization/88948
8386         * rtl.h (prepare_copy_insn): New prototype.
8387         * gcse.c (prepare_copy_insn): New function, split out from
8388         process_insert_insn.
8389         (process_insert_insn): Use prepare_copy_insn.
8390         * store-motion.c (replace_store_insn): Use prepare_copy_insn
8391         instead of gen_move_insn.
8393 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
8395         PR debug/89006
8396         * config/i386/i386.c (ix86_pic_register_p): Return true for
8397         UNSPEC_SET_GOT too.
8399         PR tree-optimization/88964
8400         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8401         punt if HONOR_SNANS (chrec).
8403         PR middle-end/89015
8404         * tree-nested.c (convert_nonlocal_reference_stmt,
8405         convert_local_reference_stmt, convert_tramp_reference_stmt,
8406         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8407         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8408         or GIMPLE_OMP_TASK.
8410         PR tree-optimization/89027
8411         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8412         for "omp simd array" variables.
8414 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
8416         PR target/88469
8417         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8418         force the alignment of m_val.
8420 2019-01-24  Richard Biener  <rguenther@suse.de>
8422         PR lto/87187
8423         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8424         When in "legacy" debug mode make sure to reset self-origins.
8426 2019-01-24  Martin Liska  <mliska@suse.cz>
8428         PR gcov-profile/88994
8429         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8430         result will be always smaller or equal to the original.
8431         * gcov.c (mangle_name): Fix else branch where we should
8432         also copy to PTR and shift the pointer.
8434 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
8436         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8437         * vr-values.c (find_case_label_ranges): Fix a comment typo.
8439 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
8441         * common/config/i386/i386-common.c
8442         (OPTION_MASK_ISA_ENQCMD_SET,
8443         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8444         (ix86_handle_option): Handle -menqcmd.
8445         * config.gcc (enqcmdintrin.h): New header file.
8446         * config/i386/cpuid.h (bit_ENQCMD): New bit.
8447         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8448         -menqcmd.
8449         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8450         function type.
8451         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8452         __builtin_ia32_enqcmds): New builtins.
8453         * config/i386/i386-c.c (__ENQCMD__): New macro.
8454         * config/i386/i386-option.c (ix86_target_string): Add
8455         -menqcmd.
8456         (ix86_valid_target_attribute_inner_p): Likewise.
8457         * config/i386/i386-expand.c
8458         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8459         IX86_BUILTIN_ENQCMDS.
8460         * config/i386/i386.h (TARGET_ENQCMD): New.
8461         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8462         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8463         (movdir64b_<mode>): Parameterize to enable share expansion code
8464         with ENQCMD in function ix86_expand_builtin.
8465         * config/i386/i386.opt: Add -menqcmd.
8466         * config/i386/immintrin.h: Include enqcmdintrin.h.
8467         * config/i386/enqcmdintrin.h: New intrinsic file.
8468         * doc/invoke.texi: Add -menqcmd.
8470 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
8471             Steve Ellcey <sellcey@marvell.com>
8473         PR target/85711
8474         * recog.c (address_operand): Return false on wrong mode for address.
8475         (constrain_operands): Check for mode with 'p' constraint.
8477 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8479         PR target/88998
8480         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8481         Disparage MMX alternative.
8482         (sse2_cvtpd2pi): Ditto.
8483         (sse2_cvttpd2pi): Ditto.
8485 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
8487         PR driver/89014
8488         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8489         use-after-free of the result of
8490         aarch64_get_extension_string_for_isa_flags.
8492 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
8494         PR c/44715
8495         * doc/extend.texi: Document break and continue behavior in
8496         statement expressions.
8498 2019-01-23  Richard Biener  <rguenther@suse.de>
8500         PR tree-optimization/89008
8501         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8502         not leave another stray operand.
8504 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
8506         * BASE-VER: Bump to 9.0.1.
8508 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
8510         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8511         thunk that returns by reference, use the type of the return object
8512         of the thunk instead of that of the alias to build the dereference.
8514 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
8516         * config/arc/atomic.md: Add operand to DMB instruction.
8518 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
8520         PR tree-optimization/88964
8521         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8522         build_zero_cst instead of build_int_cst.  Return false for loop
8523         invariants which honor signed zeros.
8525 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
8527         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8529 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
8531         PR target/88965
8532         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8533         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8534         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8536         PR middle-end/88968
8537         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8538         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8540         PR target/87064
8541         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8542         Disable for little endian.
8544 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
8546         PR target/88469
8547         * config/arm/arm.c (arm_needs_double_word_align): Check
8548         DECL_BIT_FIELD_TYPE.
8550 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
8551             H.J. Lu  <hongjiu.lu@intel.com>
8553         PR target/88909
8554         * config/i386/i386-builtin.def: Add mask2 to all builtin
8555         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8556         SPECIAL_ARGS.
8557         * config/i386/i386.c (BDESC): Add mask2 to the definition.
8558         (BDESC_FIRST): Likewise.
8559         (define_builtin): Add an argument for mask2.  Updated to handle
8560         both ix86_isa_flags and ix86_isa_flags2.
8561         (define_builtin_const): Likewise.
8562         (define_builtin_pure): Likewise.
8563         (define_builtin2): Deleted.
8564         (define_builtin_const2): Likewise.
8565         (builtin_description): Add a member, mask2.
8566         (bdesc_*): Add mask2 to builtin initializations.
8567         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8568         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
8569         support.
8570         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8572 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
8574         PR target/88954
8575         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8576         noplt attribute.
8578 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
8580         PR target/88469
8581         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8582         alignment is dominated by a bitfield with 64-bit aligned base type.
8583         (arm_function_arg): Emit a warning if the alignment has changed since
8584         earlier GCC releases.
8585         (arm_function_arg_boundary): Likewise.
8586         (arm_setup_incoming_varargs): Likewise.
8588 2019-01-22  Richard Biener  <rguenther@suse.de>
8590         PR tree-optimization/88862
8591         * graphite-scop-detection.c
8592         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8594 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
8596         * doc/extend.tex (AMD GCN Function Attributes): New section.
8597         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8598         * doc/invoke.texi (AMD GCN Options): New section.
8599         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8601 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
8603         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8604         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8606 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
8608         PR tree-optimization/88044
8609         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8610         is false in the first iteration, but !every_iteration, return false
8611         instead of true with niter->niter zero.
8613         PR rtl-optimization/88904
8614         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8615         any nonequal registers before processing BB_END (b).
8617         PR target/88905
8618         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8619         GET_MODE (op0).
8620         (expand_binop_directly, expand_doubleword_clz,
8621         expand_doubleword_popcount, expand_ctz, expand_ffs,
8622         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8624         PR rtl-optimization/49429
8625         PR target/49454
8626         PR rtl-optimization/86334
8627         PR target/88906
8628         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8629         addressable from here...
8630         (emit_block_op_via_libcall): ... to here.
8632 2019-01-22  Richard Biener  <rguenther@suse.de>
8634         * tree-vect-loop.c (vect_analyze_loop_operations): Use
8635         auto_vec for cost vector to fix memleak.
8636         (vectorize_fold_left_reduction): Properly gather SLP defs.
8637         (vectorizable_comparison): Do not swap operands to properly
8638         gather SLP defs.
8640 2019-01-22  Alan Modra  <amodra@gmail.com>
8642         PR target/88614
8643         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8644         stays a reg.  Allow a const_int.
8645         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8646         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8647         (IS_NOMARK_TLSGETADDR): Define.
8648         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8649         (rs6000_output_tlsargs): New function.
8650         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8651         __tls_get_addr call takes an arg.
8652         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8653         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8654         delete split..
8655         (call_value_nonlocal_sysv): ..or here, delete split.
8656         (tls_gdld_nomark): Delete.
8657         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8658         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
8659         (call_value_nonlocal_sysv): Likewise.
8660         (call_value_nonlocal_sysv_secure): Likewise.
8661         (call_value_nonlocal_aix): Likewise.
8662         (call_value_indirect_aix): Likewise.
8663         (call_value_indirect_elfv2): Likewise.
8664         (call_value_local32, call_value_local64): Disable for no-mark tls.
8665         (call_value_local_aix): Likewise.
8667 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8669         PR target/88938
8670         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8671         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8673 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
8675         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8676         string contents as hash_map keys.
8678 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8680         PR c/88928
8681         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8682         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
8683         instead of TYPE_ALIGN.
8684         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8685         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
8686         pointer from TYPE_STUB_DECL.
8688 2019-01-21  Richard Biener  <rguenther@suse.de>
8690         PR tree-optimization/88934
8691         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8692         at the possibly non-constant operand.
8693         (vect_get_constant_vectors): Adjust.
8695 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
8697         PR target/71659
8698         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8699         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8700         instead of _X86INTRIN_H_INCLUDED.
8701         * onfig/i386/clwbintrin.h: Likewise.
8702         * config/i386/pkuintrin.h: Likewise.
8703         * config/i386/prfchwintrin.h: Likewise.
8704         * config/i386/rdseedintrin.h: Likewise.
8705         * config/i386/wbnoinvdintrin.h: Likewise.
8706         * config/i386/xsavecintrin.h: Likewise.
8707         * config/i386/xsavesintrin.h: Likewise.
8708         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8709         * config/i386/xsaveintrin.h: Likewise.
8710         * config/i386/xsaveoptintrin.h: Likewise.
8711         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8712         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8713         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8714         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8715         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8716         * config/i386/immintrin.h: Here.
8718 2019-01-20  Martin Jambor  <mjambor@suse.cz>
8720         PR ipa/87615
8721         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8722         with aa_walk_budget.
8723         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8724         aa_walk_budget_p parameter.
8725         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
8726         walk.  Updated all callers.
8727         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8728         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8729         unmodified_parm.
8730         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8731         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
8732         and to unmodified_parm.
8733         (phi_result_unknown_predicate): New parameter fbi, removed parameter
8734         info, updated call to will_be_nonconstant_expr_predicate.
8735         (param_change_prob): New parameter fbi, limit AA walking.
8736         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
8737         calls to various above functions.
8738         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8739         parameter.  Use it to limit AA walking.
8740         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8741         fbi, limit AA walk.
8742         (detect_type_change): New parameter fbi, pass it on to
8743         detect_type_change_from_memory_writes.
8744         (detect_type_change_ssa): Likewise.
8745         (aa_overwalked): Removed.
8746         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8747         accordingly, adjust to the neew AA limiting scheme.
8748         (parm_ref_data_preserved_p): Likewise.
8749         (ipa_compute_jump_functions_for_edge): Adjust call to
8750         get_dynamic_type.
8751         (ipa_analyze_call_uses): Likewise.
8752         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8753         (ipa_analyze_node): Initialize aa_walk_budget.
8754         (ipcp_transform_function): Likewise.
8755         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8756         to get_dynamic_type.
8758 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
8760         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8761         outside of #if CHECKING_P code.
8763 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
8765         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8766         New function, split out from...
8767         (loop_versioning::analyze_stride): ...here.
8768         (loop_versioning::find_per_loop_multiplication): Use gassign.
8769         (loop_versioning::analyze_term_using_scevs): Return a success code.
8770         (loop_versioning::analyze_arbitrary_term): New function.
8771         (loop_versioning::analyze_address_fragment): Use
8772         analyze_arbitrary_term if all else fails.
8774 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
8776         PR target/88892
8777         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8778         operands.
8780 2019-01-18  Richard Biener  <rguenther@suse.de>
8782         PR tree-optimization/88903
8783         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8784         scalar stmts a SLP shift amount is composed of when detecting
8785         shifts by scalars.
8787 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
8789         PR target/88799
8790         * config/arm/arm-cpus.in (mp): New feature.
8791         (sec): New feature.
8792         (fgroup ARMv7ve): Add mp and sec features.
8793         (arch armv7-a): Add options to allow mp and sec extensions.
8794         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8795         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8796         extenstions to the base architecture.
8797         (cpu cortex-a8): Add sec extension to the base architecture.
8798         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8799         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8800         variants down to the base v7-a varaint.
8801         * config/arm/t-multilib (v7_a_arch_variants): New variable.
8802         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8803         of permitted extensions for -march=armv7-a and for
8804         -mcpu=generic-armv7-a.
8806 2019-01-18  Martin Liska  <mliska@suse.cz>
8808         * params.def: Fix comment.
8809         * tree-profile.c (gimple_init_gcov_profiler): Bump function
8810         name.
8811         (gimple_gen_ic_func_profiler): Likewise.
8813 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8815         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8816         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8817         and put in error checks for stack protector guard options.
8818         (aarch64_stack_protect_guard): New.
8819         (TARGET_STACK_PROTECT_GUARD): Define.
8820         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8821         (reg_stack_protect_address<mode>): New.
8822         (stack_protect_set): Adjust for SSP_GLOBAL.
8823         (stack_protect_test): Likewise.
8824         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8825         (-mstack-protector-guard): Likewise.
8826         (-mstack-protector-guard-offset): Likewise.
8828 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
8830         PR tree-optimization/86214
8831         * tree-inline.h (struct copy_body_data): Add
8832         add_clobbers_to_eh_landing_pads member.
8833         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8834         (copy_edges_for_bb): Call it if EH edge destination is <
8835         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
8836         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8837         if flag_stack_reuse != SR_NONE and clear it afterwards.
8839 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
8841         PR target/85596
8842         * doc/install.texi (with-multilib-list): Document for aarch64.
8844 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
8846         PR target/88734
8847         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8848         (("..."))) with ("...").
8850 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8852         * doc/extend.texi (Built-in Functions for Memory Model Aware
8853         Atomic Operations): Document atomic fetch and nand.
8855 2019-01-18  Martin Liska  <mliska@suse.cz>
8856             Richard Biener  <rguenther@suse.de>
8858         PR middle-end/88587
8859         * cgraph.h (create_version_clone_with_body): Add new argument
8860         with attributes.
8861         * cgraphclones.c (cgraph_node::create_version_clone): Add
8862         DECL_ATTRIBUTES to a newly created decl.  And call
8863         valid_attribute_p so that proper cl_target_optimization_node
8864         is set for the newly created declaration.
8865         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8866         for declaration.
8867         (expand_target_clones): Do not call valid_attribute_p, it must
8868         be already done.
8869         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8870         vector types.
8872 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
8874         PR target/88734
8875         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8876         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
8877         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8879 2019-01-17  Martin Sebor  <msebor@redhat.com>
8881         PR middle-end/88273
8882         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8883         Handle anti-ranges the same as no range at all.
8885 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
8887         * config/aarch64/aarch64.c (cgraph.h): New include.
8888         (intl.h): New include.
8889         (supported_simd_type): New function.
8890         (currently_supported_simd_type): Ditto.
8891         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8892         (aarch64_simd_clone_adjust): Ditto.
8893         (aarch64_simd_clone_usable): Ditto.
8894         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8895         (TARGET_SIMD_CLONE_ADJUST): Ditto.
8896         (TARGET_SIMD_CLONE_USABLE): Ditto.
8897         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8898         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8899         call.
8901 2019-01-17  Martin Sebor  <msebor@redhat.com>
8903         PR tree-optimization/88800
8904         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8905         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
8906         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8907         redundant argument.  Add new argument and issue diagnostics under
8908         its control.  Detect out-of-bounds access even with warnings
8909         disabled.
8910         (check_bounds_or_overlap): Change return type.  Add argument.
8911         (wrestrict_dom_walker::check_call): Adjust.
8912         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8913         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8914         check_bounds_or_overlap's return value.
8915         (handle_builtin_stxncpy): Same.
8916         (handle_builtin_strcat): Same.
8918 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8919             Kwok Cheung Yeung  <kcy@codesourcery.com>
8920             Julian Brown  <julian@codesourcery.com>
8921             Tom de Vries  <tom@codesourcery.com>
8923         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8925 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8927         * doc/sourcebuild.texi: Document dg-require-effective-target
8928         llvm_binutils and offload_gcn.
8930 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8931             Kwok Cheung Yeung  <kcy@codesourcery.com>
8932             Julian Brown  <julian@codesourcery.com>
8933             Tom de Vries  <tom@codesourcery.com>
8935         * doc/sourcebuild.texi: Document dg-required-effective-target
8936         exceptions.
8938 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8939             Kwok Cheung Yeung  <kcy@codesourcery.com>
8940             Julian Brown  <julian@codesourcery.com>
8941             Tom de Vries  <tom@codesourcery.com>
8942             Jan Hubicka  <hubicka@ucw.cz>
8943             Martin Jambor  <mjambor@suse.cz>
8945         * config.gcc: Add amdgcn*-*-amdhsa configuration.
8946         * configure.ac: Check for dlopen.
8947         * configure: Regenerate.
8949 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8950             Kwok Cheung Yeung  <kcy@codesourcery.com>
8951             Julian Brown  <julian@codesourcery.com>
8952             Tom de Vries  <tom@codesourcery.com>
8953             Jan Hubicka  <hubicka@ucw.cz>
8954             Martin Jambor  <mjambor@suse.cz>
8956         * common/config/gcn/gcn-common.c: New file.
8957         * config/gcn/driver-gcn.c: New file.
8958         * config/gcn/gcn-builtins.def: New file.
8959         * config/gcn/gcn-hsa.h: New file.
8960         * config/gcn/gcn-modes.def: New file.
8961         * config/gcn/gcn-opts.h: New file.
8962         * config/gcn/gcn-passes.def: New file.
8963         * config/gcn/gcn-protos.h: New file.
8964         * config/gcn/gcn-run.c: New file.
8965         * config/gcn/gcn-tree.c: New file.
8966         * config/gcn/gcn.c: New file.
8967         * config/gcn/gcn.h: New file.
8968         * config/gcn/gcn.opt: New file.
8969         * config/gcn/t-gcn-hsa: New file.
8971 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
8972             Kwok Cheung Yeung  <kcy@codesourcery.com>
8973             Julian Brown  <julian@codesourcery.com>
8974             Tom de Vries  <tom@codesourcery.com>
8975             Jan Hubicka  <hubicka@ucw.cz>
8976             Martin Jambor  <mjambor@suse.cz>
8978         * config/gcn/constraints.md: New file.
8979         * config/gcn/gcn-valu.md: New file.
8980         * config/gcn/gcn.md: New file.
8981         * config/gcn/predicates.md: New file.
8983 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
8985         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8986         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8987         (stmt_uses_0_or_null_in_undefined_way): Likewise.
8988         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8990 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
8992         PR target/88851
8993         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
8994         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
8995         it and document registers.
8997 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8999         * config/aarch64/aarch64.c (ares_tunings): Define.
9000         * config/aarch64/aarch64-cores.def (ares): Use the above.
9002 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
9004         PR target/88794
9005         Revert:
9006         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
9008         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9009         (_mm512_fixupimm_round_pd): Update parameters and builtin.
9010         (_mm512_maskz_fixupimm_round_pd): Ditto.
9011         (_mm512_fixupimm_round_ps): Ditto.
9012         (_mm512_maskz_fixupimm_round_ps): Ditto.
9013         (_mm_fixupimm_round_sd): Ditto.
9014         (_mm_maskz_fixupimm_round_sd): Ditto.
9015         (_mm_fixupimm_round_ss): Ditto.
9016         (_mm_maskz_fixupimm_round_ss): Ditto.
9017         (_mm512_fixupimm_pd): Ditto.
9018         (_mm512_maskz_fixupimm_pd): Ditto.
9019         (_mm512_fixupimm_ps): Ditto.
9020         (_mm512_maskz_fixupimm_ps): Ditto.
9021         (_mm_fixupimm_sd): Ditto.
9022         (_mm_maskz_fixupimm_sd): Ditto.
9023         (_mm_fixupimm_ss): Ditto.
9024         (_mm_maskz_fixupimm_ss): Ditto.
9025         (_mm512_mask_fixupimm_round_pd): Update builtin.
9026         (_mm512_mask_fixupimm_round_ps): Ditto.
9027         (_mm_mask_fixupimm_round_sd): Ditto.
9028         (_mm_mask_fixupimm_round_ss): Ditto.
9029         (_mm512_mask_fixupimm_pd): Ditto.
9030         (_mm512_mask_fixupimm_ps): Ditto.
9031         (_mm_mask_fixupimm_sd): Ditto.
9032         (_mm_mask_fixupimm_ss): Ditto.
9033         * config/i386/avx512vlintrin.h:
9034         (_mm256_fixupimm_pd): Update parameters and builtin.
9035         (_mm256_maskz_fixupimm_pd): Ditto.
9036         (_mm256_fixupimm_ps): Ditto.
9037         (_mm256_maskz_fixupimm_ps): Ditto.
9038         (_mm_fixupimm_pd): Ditto.
9039         (_mm_maskz_fixupimm_pd): Ditto.
9040         (_mm_fixupimm_ps): Ditto.
9041         (_mm_maskz_fixupimm_ps): Ditto.
9042         (_mm256_mask_fixupimm_pd): Update builtin.
9043         (_mm256_mask_fixupimm_ps): Ditto.
9044         (_mm_mask_fixupimm_pd): Ditto.
9045         (_mm_mask_fixupimm_ps): Ditto.
9046         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9047         * config/i386/i386-builtin.def: Update builtin definitions.
9048         * config/i386/i386.c: Handle new builtin types and remove useless ones.
9049         * config/i386/sse.md: Update VFIXUPIMM* patterns.
9050         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9051         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9052         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9053         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9054         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9055         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9056         * config/i386/subst.md:
9057         (round_saeonly_sd_mask_operand4): Add new subst_attr.
9058         (round_saeonly_sd_mask_op4): Ditto.
9059         (round_saeonly_expand_operand5): Ditto.
9060         (round_saeonly_expand): Update.
9062 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
9064         PR target/88794
9065         Revert:
9066         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
9068         * config/i386/sse.md: Combine VFIXUPIMM* patterns
9069         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9070         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9071         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9072         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9073         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9074         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9076 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
9078         PR target/88794
9079         Revert:
9080         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
9082         PR target/88489
9083         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9084         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9085         instead of UNSPEC_FIXUPIMM.
9087 2019-01-17  Richard Biener  <rguenther@suse.de>
9089         PR lto/86736
9090         * dwarf2out.c (want_pubnames): Never generate pubnames sections
9091         and friends for the LTO part of debug info.
9093 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
9095         PR tree-optimization/86214
9096         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9097         if x == y.
9099         PR rtl-optimization/88870
9100         * dce.c (deletable_insn_p): Never delete const/pure calls that can
9101         throw if we can't alter the cfg or delete dead exceptions.
9102         (mark_insn): Don't call find_call_stack_args for such calls.
9104 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
9106         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9107         prototypes for vec_st.
9108         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9109         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9110         mainly on signed/unsigned long long and double.
9112 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
9114         PR target/88861
9115         * combine.c (delete_noop_moves): Convert to "bool" return,
9116         returning true if any edges are eliminated.
9117         (combine_instructions): Also return true if delete_noop_moves
9118         returns true.
9120 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
9122         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9123         correct max nunits for endian swap.
9124         (aarch64_expand_fcmla_builtin): Correct subreg code.
9125         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9126         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9127         lane endianness.
9129 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9131         * config/alpha/alpha.c (alpha_gimplify_va_arg):
9132         Handle split indirect COMPLEX_TYPE arguments.
9134 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
9136         PR target/86891
9137         * config/aarch64/aarch64-modes.def: Add comment about how the carry
9138         bit is set by add and compare.
9139         (CC_ADC): New CC_MODE.
9140         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9141         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
9142         comparison.  Add detection for CC_ADCmode.
9143         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
9144         CC_ADCmode.
9145         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9146         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9147         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
9148         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
9149         to eliminate the need for zero-extending the operands.
9150         (add<mode>3_compareC_imm): Delete.  Merge into ...
9151         (add<mode>3_compareC): ... this.  Restructure the comparison to
9152         eliminate the need for zero-extending the operands.
9153         (add<mode>3_carryin): Use LTU for the overflow detection.
9154         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9155         Reexpress comparison for overflow.
9156         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9157         (add<mode>3_carryinC): Likewise.
9158         (add<mode>3_carryinV): Use LTU for carry between partials.
9159         * config/aarch64/predicates.md (aarch64_carry_operation): Update
9160         handling of CC_Cmode and add CC_ADCmode.
9161         (aarch64_borrow_operation): Likewise.
9163 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
9165         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9166         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9167         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9168         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9170 2019-01-16  Martin Liska  <mliska@suse.cz>
9172         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9173         for GCC driver.
9174         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9175         a new argument.
9176         * gcc.c (add_sysrooted_hdrs_prefix): New function.
9177         (path_prefix_reset): Move up in the source file.
9178         (find_fortran_preinclude_file): Make complex search for the
9179         fortran header files.
9181 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
9183         * godump.c (go_output_typedef): When outputting a typedef, refer
9184         to the underlying type by its name and not its structure.
9186 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
9188         PR c++/88795
9189         * tree.c (build_function_type): Assert that arg_types is not
9190         error_mark_node.
9192 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
9194         PR inline-asm/52813
9195         * doc/extend.texi: Document that listing the stack pointer in the
9196         clobber list of an asm is a deprecated feature.
9197         * common.opt (Wdeprecated): Moved from c-family/c.opt.
9198         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9199         warning instead of an error for clobbers of the stack pointer.
9200         Add a note explaining why.
9202 2019-01-15  Richard Biener  <rguenther@suse.de>
9204         PR debug/88046
9205         * dwarf2out.c (gen_member_die): Do not generate inheritance
9206         DIEs late.
9208 2019-01-15  Richard Biener  <rguenther@suse.de>
9210         PR tree-optimization/88855
9211         * tree-if-conv.c (combine_blocks): Collect
9212         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9214 2019-01-15  Tom de Vries  <tdevries@suse.de>
9216         PR target/80547
9217         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9218         lhs == NULL_TREE for gang-level reduction.
9220 2019-01-15  Richard Biener  <rguenther@suse.de>
9221             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9223         PR ipa/88788
9224         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9225         return true if SSA_NAME is already marked in visited bitmap.
9226         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9228 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
9230         PR tree-optimization/88775
9231         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9232         equal == 0 equality pointer comparisons some more if compared in
9233         integral types and either one points to an automatic var and the
9234         other to a global, or we can prove at least one points to the middle
9235         or both point to start or both point to end.
9237 2019-01-14  Andi Kleen  <ak@linux.intel.com>
9239         * Makefile.in: Lower autofdo sampling rate by 10x.
9240         * Makefile.tpl: Dito.
9242 2019-01-14  Tom Honermann  <tom@honermann.net>
9244         * defaults.h: Define CHAR8_TYPE.
9246 2019-01-14  Martin Sebor  <msebor@redhat.com>
9248         PR target/88638
9249         * doc/extend.texi (Darwin Format Checks): Clarify.
9251 2019-01-14  Richard Biener  <rguenther@suse.de>
9253         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9254         whether we are in (simplify ...) or (match ...) context.
9256 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
9258         PR rtl-optimization/88796
9259         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9260         * cfgexpand.c (stack_protect_prologue): Initialize
9261         crtl->stack_protect_guard_decl.
9262         * function.c (stack_protect_epilogue): Use it instead of calling
9263         targetm.stack_protect_guard again.
9264         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9265         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9266         crtl->stack_protect_guard_decl.
9267         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9268         on the returned MEM_EXPR.
9270 2019-01-12  Tom de Vries  <tdevries@suse.de>
9272         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9273         vector length using -fopenacc-dim.
9275 2019-01-12  Tom de Vries  <tdevries@suse.de>
9277         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9278         lengths into account.
9280 2019-01-12  Svante Signell  <svante.signell@gmail.com>
9282         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9283         (TARGET_CAN_SPLIT_STACK): Define.
9284         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9286 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
9288         * params.def (inline-unit-growth): Set to 40.
9290 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
9292         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9294 2019-01-12  Tom de Vries  <tdevries@suse.de>
9296         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9297         region calling vector-partitionable routine, set default_vector_length
9298         to WARP_SIZE.
9300 2019-01-12  Tom de Vries  <tdevries@suse.de>
9302         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9303         variable default_vector_length.
9305 2019-01-12  Tom de Vries  <tdevries@suse.de>
9307         PR middle-end/88703
9308         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9309         from oacc_default_dims, as oacc_validate_dims would do it, and apply
9310         dimensions limits.
9312 2019-01-12  Tom de Vries  <tdevries@suse.de>
9314         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9315         (nvptx_goacc_validate_dims): Add used parameter.
9316         * doc/tm.texi: Regenerate.
9317         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9318         argument to call to targetm.goacc.validate_dims.
9319         (default_goacc_validate_dims): Add used
9320         parameter.
9321         * target.def (validate_dims): Add used parameter in DEFHOOK.
9322         * targhooks.h (default_goacc_validate_dims): Add used parameter.
9324 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
9326         PR middle-end/85956
9327         PR lto/88733
9328         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9329         field.
9330         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
9331         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9332         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9333         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9335 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
9337         PR rtl-optimization/87305
9338         * lra-assigns.c
9339         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9340         for little endian pseudos used as paradoxical subreg.
9342 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
9344         PR tree-optimization/88693
9345         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9346         for STRING_CSTs that don't contain any NUL characters in the first
9347         TREE_STRING_LENGTH bytes.
9349 2019-01-11  Alan Modra  <amodra@gmail.com>
9351         PR 88777
9352         PR 88614
9353         * genattrtab.c (min_fn): Don't translate values.
9354         (min_attr_value): Return INT_MAX when the value can't be calculated.
9355         Return minimum among any values that can be calculated.
9356         (max_attr_value): Adjust.
9358 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
9360         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9362 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
9364         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9365         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9366         (aarch64_return_call_with_max_clobbers): New function.
9367         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9368         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9369         argument.
9370         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9371         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9372         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9373         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9374         * cselib.c (cselib_process_insn): Add argument to
9375         targetm.hard_regno_call_part_clobbered call.
9376         * ira-conflicts.c (ira_build_conflicts): Ditto.
9377         * ira-costs.c (ira_tune_allocno_costs): Ditto.
9378         * lra-constraints.c (inherit_reload_reg): Ditto.
9379         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9380         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9381         argument.  Call targetm.return_call_with_max_clobbers.
9382         Add argument to targetm.hard_regno_call_part_clobbered call.
9383         (calls_have_same_clobbers_p): New function.
9384         (process_bb_lives): Add call_insn and last_call_insn variables.
9385         Pass call_insn to check_pseudos_live_through_calls.
9386         Modify if stmt to check targetm.return_call_with_max_clobbers.
9387         Update setting of flush variable.
9388         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9389         to false.
9390         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9391         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9392         targetm.hard_regno_call_part_clobbered call.
9393         * reginfo.c (choose_hard_reg_mode): Ditto.
9394         * regrename.c (check_new_reg_p): Ditto.
9395         * reload.c (find_equiv_reg): Ditto.
9396         * reload1.c (emit_reload_insns): Ditto.
9397         * sched-deps.c (deps_analyze_insn): Ditto.
9398         * sel-sched.c (init_regs_for_mode): Ditto.
9399         (mark_unavailable_hard_regs): Ditto.
9400         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9401         * target.def (hard_regno_call_part_clobbered): Add insn argument.
9402         (return_call_with_max_clobbers): New target function.
9403         * doc/tm.texi: Regenerate.
9404         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9405         * hooks.c (hook_bool_uint_mode_false): Change to
9406         hook_bool_insn_uint_mode_false.
9407         * hooks.h (hook_bool_uint_mode_false): Ditto.
9409 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
9411         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9412         (aarch64_remove_extra_call_preserved_regs): New function.
9413         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9414         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9415         * doc/tm.texi: Regenerate.
9416         * final.c (get_call_reg_set_usage): Call new hook.
9417         * target.def (remove_extra_call_preserved_regs): New hook.
9418         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9419         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9421 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
9423         PR bootstrap/88714
9424         * passes.c (finish_optimization_passes): Call print_combine_total_stats
9425         inside of pass_combine_1 dump rather than pass_profile_1.
9427 2019-01-11  Tom de Vries  <tdevries@suse.de>
9429         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9430         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9431         (PTX_NUM_PER_WORKER_BARRIERS): Define.
9432         (nvptx_apply_dim_limits): Prevent vector_length 64 and
9433         num_workers 16.
9435 2019-01-11  Tom de Vries  <tdevries@suse.de>
9437         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9439 2019-01-11  Jan Beulich  <jbeulich@suse.com>
9441         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9442         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9443         sse2_cvtsi2sd): Add {l}.
9444         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9445         syntax.
9447 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
9449         PR target/88785
9450         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9451         define_expand.
9452         (*float<floatunssuffix>v2div2sf2): New define_insn.
9453         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9454         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9455         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9456         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9457         match_operands with "const0_operand" "C".
9459 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
9461         * config/aarch64/aarch64-builtins.c
9462         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9463         (aarch64_init_simd_builtins): ...Here
9465 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
9467         PR rtl-optimization/87305
9468         * lra-assigns.c
9469         (setup_live_pseudos_and_spill_after_risky_transforms): Check
9470         allocation for big endian pseudos used as paradoxical subregs and
9471         spill them if it is wrong.
9472         * lra-constraints.c (lra_constraints): Add a comment.
9474 2019-01-10  Richard Biener  <rguenther@suse.de>
9476         PR tree-optimization/88792
9477         * tree-ssa-pre.c (get_representative_for): Do not return a
9478         value-number here.
9480 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
9482         PR middle-end/84877
9483         PR bootstrap/88450
9484         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9485         (assign_parm_setup_block): Do the argument slot realignment here
9486         instead.
9488 2019-01-10  Stefan Agner  <stefan@agner.ch>
9490         PR target/88648
9491         * config/arm/arm.c (arm_option_override_internal): Force
9492         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9494 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
9496         PR c/88568
9497         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9498         DECL_EXTERNAL.
9500 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
9502         * config/arm/arm-builtins.c
9503         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9504         (MAC_LANE_PAIR_QUALIFIERS): New.
9505         (arm_expand_builtin_args): Use it.
9506         (arm_expand_builtin_1): Likewise.
9507         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9508         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9509         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9510         * config/arm/arm_neon.h:
9511         (vcadd_rot90_f16): New.
9512         (vcaddq_rot90_f16): New.
9513         (vcadd_rot270_f16): New.
9514         (vcaddq_rot270_f16): New.
9515         (vcmla_f16): New.
9516         (vcmlaq_f16): New.
9517         (vcmla_lane_f16): New.
9518         (vcmla_laneq_f16): New.
9519         (vcmlaq_lane_f16): New.
9520         (vcmlaq_laneq_f16): New.
9521         (vcmla_rot90_f16): New.
9522         (vcmlaq_rot90_f16): New.
9523         (vcmla_rot90_lane_f16): New.
9524         (vcmla_rot90_laneq_f16): New.
9525         (vcmlaq_rot90_lane_f16): New.
9526         (vcmlaq_rot90_laneq_f16): New.
9527         (vcmla_rot180_f16): New.
9528         (vcmlaq_rot180_f16): New.
9529         (vcmla_rot180_lane_f16): New.
9530         (vcmla_rot180_laneq_f16): New.
9531         (vcmlaq_rot180_lane_f16): New.
9532         (vcmlaq_rot180_laneq_f16): New.
9533         (vcmla_rot270_f16): New.
9534         (vcmlaq_rot270_f16): New.
9535         (vcmla_rot270_lane_f16): New.
9536         (vcmla_rot270_laneq_f16): New.
9537         (vcmlaq_rot270_lane_f16): New.
9538         (vcmlaq_rot270_laneq_f16): New.
9539         (vcadd_rot90_f32): New.
9540         (vcaddq_rot90_f32): New.
9541         (vcadd_rot270_f32): New.
9542         (vcaddq_rot270_f32): New.
9543         (vcmla_f32): New.
9544         (vcmlaq_f32): New.
9545         (vcmla_lane_f32): New.
9546         (vcmla_laneq_f32): New.
9547         (vcmlaq_lane_f32): New.
9548         (vcmlaq_laneq_f32): New.
9549         (vcmla_rot90_f32): New.
9550         (vcmlaq_rot90_f32): New.
9551         (vcmla_rot90_lane_f32): New.
9552         (vcmla_rot90_laneq_f32): New.
9553         (vcmlaq_rot90_lane_f32): New.
9554         (vcmlaq_rot90_laneq_f32): New.
9555         (vcmla_rot180_f32): New.
9556         (vcmlaq_rot180_f32): New.
9557         (vcmla_rot180_lane_f32): New.
9558         (vcmla_rot180_laneq_f32): New.
9559         (vcmlaq_rot180_lane_f32): New.
9560         (vcmlaq_rot180_laneq_f32): New.
9561         (vcmla_rot270_f32): New.
9562         (vcmlaq_rot270_f32): New.
9563         (vcmla_rot270_lane_f32): New.
9564         (vcmla_rot270_laneq_f32): New.
9565         (vcmlaq_rot270_lane_f32): New.
9566         (vcmlaq_rot270_laneq_f32): New.
9567         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9568         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9569         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9570         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9571         vcmlaq_lane270): New.
9572         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9573         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9574         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9575         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9576         (arm_option_reconfigure_globals): Use them.
9577         * config/arm/iterators.md (VDF, VQ_HSF): New.
9578         (VCADD, VCMLA): New.
9579         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9580         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9581         New.
9582         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9583         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9585 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
9587         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9588         Add qualifier_lane_pair_index.
9589         (emit-rtl.h): Include.
9590         (TYPES_QUADOP_LANE_PAIR): New.
9591         (aarch64_simd_expand_args): Use it.
9592         (aarch64_simd_expand_builtin): Likewise.
9593         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9594         New.
9595         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9596         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9597         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9598         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9599         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9600         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9601         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9602         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9603         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9604         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9605         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9606         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9607         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9608         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9609         Add __ARM_FEATURE_COMPLEX.
9610         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9611         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9612         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9613         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9614         fcmlaq_lane270): New.
9615         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9616         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9617         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9618         * config/aarch64/arm_neon.h:
9619         (vcadd_rot90_f16): New.
9620         (vcaddq_rot90_f16): New.
9621         (vcadd_rot270_f16): New.
9622         (vcaddq_rot270_f16): New.
9623         (vcmla_f16): New.
9624         (vcmlaq_f16): New.
9625         (vcmla_lane_f16): New.
9626         (vcmla_laneq_f16): New.
9627         (vcmlaq_lane_f16): New.
9628         (vcmlaq_rot90_lane_f16): New.
9629         (vcmla_rot90_laneq_f16): New.
9630         (vcmla_rot90_lane_f16): New.
9631         (vcmlaq_rot90_f16): New.
9632         (vcmla_rot90_f16): New.
9633         (vcmlaq_laneq_f16): New.
9634         (vcmla_rot180_laneq_f16): New.
9635         (vcmla_rot180_lane_f16): New.
9636         (vcmlaq_rot180_f16): New.
9637         (vcmla_rot180_f16): New.
9638         (vcmlaq_rot90_laneq_f16): New.
9639         (vcmlaq_rot270_laneq_f16): New.
9640         (vcmlaq_rot270_lane_f16): New.
9641         (vcmla_rot270_laneq_f16): New.
9642         (vcmlaq_rot270_f16): New.
9643         (vcmla_rot270_f16): New.
9644         (vcmlaq_rot180_laneq_f16): New.
9645         (vcmlaq_rot180_lane_f16): New.
9646         (vcmla_rot270_lane_f16): New.
9647         (vcadd_rot90_f32): New.
9648         (vcaddq_rot90_f32): New.
9649         (vcaddq_rot90_f64): New.
9650         (vcadd_rot270_f32): New.
9651         (vcaddq_rot270_f32): New.
9652         (vcaddq_rot270_f64): New.
9653         (vcmla_f32): New.
9654         (vcmlaq_f32): New.
9655         (vcmlaq_f64): New.
9656         (vcmla_lane_f32): New.
9657         (vcmla_laneq_f32): New.
9658         (vcmlaq_lane_f32): New.
9659         (vcmlaq_laneq_f32): New.
9660         (vcmla_rot90_f32): New.
9661         (vcmlaq_rot90_f32): New.
9662         (vcmlaq_rot90_f64): New.
9663         (vcmla_rot90_lane_f32): New.
9664         (vcmla_rot90_laneq_f32): New.
9665         (vcmlaq_rot90_lane_f32): New.
9666         (vcmlaq_rot90_laneq_f32): New.
9667         (vcmla_rot180_f32): New.
9668         (vcmlaq_rot180_f32): New.
9669         (vcmlaq_rot180_f64): New.
9670         (vcmla_rot180_lane_f32): New.
9671         (vcmla_rot180_laneq_f32): New.
9672         (vcmlaq_rot180_lane_f32): New.
9673         (vcmlaq_rot180_laneq_f32): New.
9674         (vcmla_rot270_f32): New.
9675         (vcmlaq_rot270_f32): New.
9676         (vcmlaq_rot270_f64): New.
9677         (vcmla_rot270_lane_f32): New.
9678         (vcmla_rot270_laneq_f32): New.
9679         (vcmlaq_rot270_lane_f32): New.
9680         (vcmlaq_rot270_laneq_f32): New.
9681         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9682         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9683         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9684         (FCADD, FCMLA): New.
9685         (rot): New.
9686         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9688 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
9690         PR other/16615
9692         * config/pa/pa.c: Change "can not" to "cannot".
9693         * gimple-ssa-evrp-analyze.c: Likewise.
9694         * ipa-icf.c: Likewise.
9695         * ipa-polymorphic-call.c: Likewise.
9696         * ipa-pure-const.c: Likewise.
9697         * lra-constraints.c: Likewise.
9698         * lra-remat.c: Likewise.
9699         * reload1.c: Likewise.
9700         * reorg.c: Likewise.
9701         * tree-ssa-uninit.c: Likewise.
9703 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
9705         PR other/16615
9707         * Makefile.in: Mechanically replace "can not" with "cannot".
9708         * alias.c: Likewise.
9709         * builtins.c: Likewise.
9710         * calls.c: Likewise.
9711         * cgraph.c: Likewise.
9712         * cgraph.h: Likewise.
9713         * cgraphclones.c: Likewise.
9714         * cgraphunit.c: Likewise.
9715         * combine-stack-adj.c: Likewise.
9716         * combine.c: Likewise.
9717         * common/config/i386/i386-common.c: Likewise.
9718         * config/aarch64/aarch64.c: Likewise.
9719         * config/alpha/sync.md: Likewise.
9720         * config/arc/arc.c: Likewise.
9721         * config/arc/predicates.md: Likewise.
9722         * config/arm/arm-c.c: Likewise.
9723         * config/arm/arm.c: Likewise.
9724         * config/arm/arm.h: Likewise.
9725         * config/arm/arm.md: Likewise.
9726         * config/arm/cortex-r4f.md: Likewise.
9727         * config/csky/csky.c: Likewise.
9728         * config/csky/csky.h: Likewise.
9729         * config/darwin-f.c: Likewise.
9730         * config/epiphany/epiphany.md: Likewise.
9731         * config/i386/i386.c: Likewise.
9732         * config/i386/sol2.h: Likewise.
9733         * config/m68k/m68k.c: Likewise.
9734         * config/mcore/mcore.h: Likewise.
9735         * config/microblaze/microblaze.md: Likewise.
9736         * config/mips/20kc.md: Likewise.
9737         * config/mips/sb1.md: Likewise.
9738         * config/nds32/nds32.c: Likewise.
9739         * config/nds32/predicates.md: Likewise.
9740         * config/pa/pa.c: Likewise.
9741         * config/rs6000/e300c2c3.md: Likewise.
9742         * config/rs6000/rs6000.c: Likewise.
9743         * config/s390/s390.h: Likewise.
9744         * config/sh/sh.c: Likewise.
9745         * config/sh/sh.md: Likewise.
9746         * config/spu/vmx2spu.h: Likewise.
9747         * cprop.c: Likewise.
9748         * dbxout.c: Likewise.
9749         * df-scan.c: Likewise.
9750         * doc/cfg.texi: Likewise.
9751         * doc/extend.texi: Likewise.
9752         * doc/fragments.texi: Likewise.
9753         * doc/gty.texi: Likewise.
9754         * doc/invoke.texi: Likewise.
9755         * doc/lto.texi: Likewise.
9756         * doc/md.texi: Likewise.
9757         * doc/objc.texi: Likewise.
9758         * doc/rtl.texi: Likewise.
9759         * doc/tm.texi: Likewise.
9760         * dse.c: Likewise.
9761         * emit-rtl.c: Likewise.
9762         * emit-rtl.h: Likewise.
9763         * except.c: Likewise.
9764         * expmed.c: Likewise.
9765         * expr.c: Likewise.
9766         * fold-const.c: Likewise.
9767         * genautomata.c: Likewise.
9768         * gimple-fold.c: Likewise.
9769         * hard-reg-set.h: Likewise.
9770         * ifcvt.c: Likewise.
9771         * ipa-comdats.c: Likewise.
9772         * ipa-cp.c: Likewise.
9773         * ipa-devirt.c: Likewise.
9774         * ipa-fnsummary.c: Likewise.
9775         * ipa-icf.c: Likewise.
9776         * ipa-inline-transform.c: Likewise.
9777         * ipa-inline.c: Likewise.
9778         * ipa-polymorphic-call.c: Likewise.
9779         * ipa-profile.c: Likewise.
9780         * ipa-prop.c: Likewise.
9781         * ipa-pure-const.c: Likewise.
9782         * ipa-reference.c: Likewise.
9783         * ipa-split.c: Likewise.
9784         * ipa-visibility.c: Likewise.
9785         * ipa.c: Likewise.
9786         * ira-build.c: Likewise.
9787         * ira-color.c: Likewise.
9788         * ira-conflicts.c: Likewise.
9789         * ira-costs.c: Likewise.
9790         * ira-int.h: Likewise.
9791         * ira-lives.c: Likewise.
9792         * ira.c: Likewise.
9793         * ira.h: Likewise.
9794         * loop-invariant.c: Likewise.
9795         * loop-unroll.c: Likewise.
9796         * lower-subreg.c: Likewise.
9797         * lra-assigns.c: Likewise.
9798         * lra-constraints.c: Likewise.
9799         * lra-eliminations.c: Likewise.
9800         * lra-lives.c: Likewise.
9801         * lra-remat.c: Likewise.
9802         * lra-spills.c: Likewise.
9803         * lra.c: Likewise.
9804         * lto-cgraph.c: Likewise.
9805         * lto-streamer-out.c: Likewise.
9806         * postreload-gcse.c: Likewise.
9807         * predict.c: Likewise.
9808         * profile-count.h: Likewise.
9809         * profile.c: Likewise.
9810         * recog.c: Likewise.
9811         * ree.c: Likewise.
9812         * reload.c: Likewise.
9813         * reload1.c: Likewise.
9814         * reorg.c: Likewise.
9815         * resource.c: Likewise.
9816         * rtl.def: Likewise.
9817         * rtl.h: Likewise.
9818         * rtlanal.c: Likewise.
9819         * sched-deps.c: Likewise.
9820         * sched-ebb.c: Likewise.
9821         * sched-rgn.c: Likewise.
9822         * sel-sched-ir.c: Likewise.
9823         * sel-sched.c: Likewise.
9824         * shrink-wrap.c: Likewise.
9825         * simplify-rtx.c: Likewise.
9826         * symtab.c: Likewise.
9827         * target.def: Likewise.
9828         * toplev.c: Likewise.
9829         * tree-call-cdce.c: Likewise.
9830         * tree-cfg.c: Likewise.
9831         * tree-complex.c: Likewise.
9832         * tree-core.h: Likewise.
9833         * tree-eh.c: Likewise.
9834         * tree-inline.c: Likewise.
9835         * tree-loop-distribution.c: Likewise.
9836         * tree-nrv.c: Likewise.
9837         * tree-profile.c: Likewise.
9838         * tree-sra.c: Likewise.
9839         * tree-ssa-alias.c: Likewise.
9840         * tree-ssa-dce.c: Likewise.
9841         * tree-ssa-dom.c: Likewise.
9842         * tree-ssa-forwprop.c: Likewise.
9843         * tree-ssa-loop-im.c: Likewise.
9844         * tree-ssa-loop-ivcanon.c: Likewise.
9845         * tree-ssa-loop-ivopts.c: Likewise.
9846         * tree-ssa-loop-niter.c: Likewise.
9847         * tree-ssa-phionlycprop.c: Likewise.
9848         * tree-ssa-phiopt.c: Likewise.
9849         * tree-ssa-propagate.c: Likewise.
9850         * tree-ssa-threadedge.c: Likewise.
9851         * tree-ssa-threadupdate.c: Likewise.
9852         * tree-ssa-uninit.c: Likewise.
9853         * tree-ssanames.c: Likewise.
9854         * tree-streamer-out.c: Likewise.
9855         * tree.c: Likewise.
9856         * tree.h: Likewise.
9857         * vr-values.c: Likewise.
9859 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9861         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9862         (ix86_split_xorsign): Ditto.
9863         * config/i386/i386.c (ix86_expand_xorsign): New function.
9864         (ix86_split_xorsign): Ditto.
9865         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9866         (xorsign<mode>3): New expander.
9867         (xorsign<mode>3_1): New insn_and_split pattern.
9868         * config/i386/sse.md (xorsign<mode>3): New expander.
9870 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
9872         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9873         (*tablejump_sp64): Likewise.
9874         (*tablejump<P:mode>): ...this.
9875         (*call_address_sp32): Merge into...
9876         (*call_address_sp64): Likewise.
9877         (*call_address<P:mode>): ...this.
9878         (*call_symbolic_sp32): Merge into...
9879         (*call_symbolic_sp64): Likewise.
9880         (*call_symbolic<P:mode>): ...this.
9881         (call_value): Remove constraint and add predicate.
9882         (*call_value_address_sp32): Merge into...
9883         (*call_value_address_sp64): Likewise.
9884         (*call_value_address<P:mode>): ...this.
9885         (*call_value_symbolic_sp32): Merge into...
9886         (*call_value_symbolic_sp64): Likewise.
9887         (*call_value_symbolic<P:mode>): ...this.
9888         (*sibcall_symbolic_sp32): Merge into...
9889         (*sibcall_symbolic_sp64): Likewise.
9890         (*sibcall_symbolic<P:mode>): ...this.
9891         (sibcall_value): Remove constraint and add predicate.
9892         (*sibcall_value_symbolic_sp32): Merge into...
9893         (*sibcall_value_symbolic_sp64): Likewise.
9894         (*sibcall_value_symbolic<P:mode>): ...this.
9895         (window_save): Minor tweak.
9896         (*branch_sp32): Merge into...
9897         (*branch_sp64): Likewise.
9898         (*branch<P:mode>): ...this.
9900 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
9901             James Clarke  <jrtc27@jrtc27.com>
9903         PR target/84010
9904         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9905         consistently in TLS address generation and adjust code to the renaming
9906         of patterns.  Mark calls to __tls_get_addr as const.
9907         * config/sparc/sparc.md (tgd_hi22): Turn into...
9908         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9909         (tgd_lo10): Turn into...
9910         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9911         (tgd_add32): Merge into...
9912         (tgd_add64): Likewise.
9913         (tgd_add<P:mode>): ...this and use Pmode throughout.
9914         (tldm_hi22): Turn into...
9915         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9916         (tldm_lo10): Turn into...
9917         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9918         (tldm_add32): Merge into...
9919         (tldm_add64): Likewise.
9920         (tldm_add<P:mode>): ...this and use Pmode throughout.
9921         (tldm_call32): Merge into...
9922         (tldm_call64): Likewise.
9923         (tldm_call<P:mode>): ...this and use Pmode throughout.
9924         (tldo_hix22): Turn into...
9925         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9926         (tldo_lox10): Turn into...
9927         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9928         (tldo_add32): Merge into...
9929         (tldo_add64): Likewise.
9930         (tldo_add<P:mode>): ...this and use Pmode throughout.
9931         (tie_hi22): Turn into...
9932         (tie_hi22<P:mode>): ...this and use Pmode throughout.
9933         (tie_lo10): Turn into...
9934         (tie_lo10<P:mode>): ...this and use Pmode throughout.
9935         (tie_ld64): Use DImode throughout.
9936         (tie_add32): Merge into...
9937         (tie_add64): Likewise.
9938         (tie_add<P:mode>): ...this and use Pmode throughout.
9939         (tle_hix22_sp32): Merge into...
9940         (tle_hix22_sp64): Likewise.
9941         (tle_hix22<P:mode>): ...this and use Pmode throughout.
9942         (tle_lox22_sp32): Merge into...
9943         (tle_lox22_sp64): Likewise.
9944         (tle_lox22<P:mode>): ...this and use Pmode throughout.
9945         (*tldo_ldub_sp32): Merge into...
9946         (*tldo_ldub_sp64): Likewise.
9947         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9948         (*tldo_ldub1_sp32): Merge into...
9949         (*tldo_ldub1_sp64): Likewise.
9950         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9951         (*tldo_ldub2_sp32): Merge into...
9952         (*tldo_ldub2_sp64): Likewise.
9953         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9954         (*tldo_ldsb1_sp32): Merge into...
9955         (*tldo_ldsb1_sp64): Likewise.
9956         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9957         (*tldo_ldsb2_sp32): Merge into...
9958         (*tldo_ldsb2_sp64): Likewise.
9959         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9960         (*tldo_ldub3_sp64): Use DImode throughout.
9961         (*tldo_ldsb3_sp64): Likewise.
9962         (*tldo_lduh_sp32): Merge into...
9963         (*tldo_lduh_sp64): Likewise.
9964         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9965         (*tldo_lduh1_sp32): Merge into...
9966         (*tldo_lduh1_sp64): Likewise.
9967         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9968         (*tldo_ldsh1_sp32): Merge into...
9969         (*tldo_ldsh1_sp64): Likewise.
9970         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9971         (*tldo_lduh2_sp64): Use DImode throughout.
9972         (*tldo_ldsh2_sp64): Likewise.
9973         (*tldo_lduw_sp32): Merge into...
9974         (*tldo_lduw_sp64): Likewise.
9975         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9976         (*tldo_lduw1_sp64): Use DImode throughout.
9977         (*tldo_ldsw1_sp64): Likewise.
9978         (*tldo_ldx_sp64): Likewise.
9979         (*tldo_stb_sp32): Merge into...
9980         (*tldo_stb_sp64): Likewise.
9981         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9982         (*tldo_sth_sp32): Merge into...
9983         (*tldo_sth_sp64): Likewise.
9984         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9985         (*tldo_stw_sp32): Merge into...
9986         (*tldo_stw_sp64): Likewise.
9987         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9988         (*tldo_stx_sp64): Use DImode throughout.
9990 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
9992         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
9993         check configure option to set BTI and Return Address Signing.
9994         * configure.ac: Add --enable-standard-branch-protection and
9995         --disable-standard-branch-protection.
9996         * configure: Regenerated.
9997         * doc/install.texi: Document the same.
9999 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
10000             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10002         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10003         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10004         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10005         if bti is enabled.
10006         * config/aarch64/aarch64-bti-insert.c: New file.
10007         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10008         pass.
10009         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10010         new bti pass.
10011         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10012         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10013         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10014         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10016 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
10018         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10019         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10020         Disable bti for -mbranch-protection=none.
10021         (aarch64_handle_standard_branch_protection): Enable bti for
10022         -mbranch-protection=standard.
10023         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10024         -mbranch-protection.
10025         (aarch64_bti_enabled): Check if bti is enabled.
10026         * config/aarch64/aarch64.opt: Declare target variable.
10027         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10029 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
10031         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10032         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10033         (aarch64_expand_epilogue): Likewise.
10034         (aarch64_output_mi_thunk): Likewise
10035         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10036         TAILCALL_ADDR_REGS to x16 and x17.
10037         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10039 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
10041         * config/aarch64/aarch64-option-extensions.def: Define
10042         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10043         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10044         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10045         (AARCH64_FL_PREDRES): New.
10046         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10047         AARCH64_FL_PREDRES by default.
10048         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10050 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
10052         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10053         ARMv8.5-A.
10054         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10055         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10056         * doc/invoke.texi: Document ARMv8.5-A.
10058 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
10060         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10061         (xorsign<mode>3): Likewise.
10063 2019-01-09  Jelinek  <jakub@redhat.com>
10065         PR middle-end/88758
10066         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10067         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10069         PR rtl-optimization/88331
10070         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10071         not currently_expanding_to_rtl.
10073 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
10075         * doc/invoke.texi (-Os): Remove trailing spaces.
10076         (-finline-functions): Remove reference to -O2.
10078 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
10080         PR rtl-optimization/79593
10081         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10083         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10084         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
10086 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
10088         PR bootstrap/88721
10089         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10090         to -1 on entry.
10092         PR debug/88723
10093         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10094         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10096 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
10098         PR target/88717
10099         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10100         ix86_avx_u128_mode_entry.
10102 2019-01-08  Martin Liska  <mliska@suse.cz>
10104         PR tree-optimization/88753
10105         * tree-switch-conversion.c (switch_conversion::build_one_array):
10106         Come up with local variable constructor.  Convert first to
10107         type of constructor values.
10109 2019-01-08  Richard Biener  <rguenther@suse.de>
10111         PR tree-optimization/86554
10112         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10113         rpo_avail): Move earlier.
10114         (visit_nary_op): When value-numbering to expressions
10115         with different overflow behavior make sure there's an
10116         available expression on the path.
10118 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
10120         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10121         aarch64_parse_branch_protection,
10122         struct aarch64_branch_protect_type,
10123         aarch64_handle_no_branch_protection,
10124         aarch64_handle_standard_branch_protection,
10125         aarch64_validate_mbranch_protection,
10126         aarch64_handle_pac_ret_protection,
10127         aarch64_handle_attr_branch_protection,
10128         accepted_branch_protection_string,
10129         aarch64_pac_ret_subtypes,
10130         aarch64_branch_protect_types,
10131         aarch64_handle_pac_ret_leaf): Define.
10132         (aarch64_override_options_after_change_1, aarch64_override_options):
10133         Add check for accepted_branch_protection_string.
10134         (aarch64_option_save): Save accepted_branch_protection_string.
10135         (aarch64_option_restore): Save accepted_branch_protection_string.
10136         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10137         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10138         msign-return-address.
10139         * doc/invoke.texi: Add mbranch-protection.
10141 2019-01-08  Alan Modra  <amodra@gmail.com>
10143         PR target/88614
10144         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10145         Delete "unknownp" parameter.  Adjust callers.  Handle
10146         CONST_INT, PLUS, MINUS, and MULT.
10147         (attr_value_aligned): Renamed from or_attr_value.
10148         (min_attr_value): Return INT_MIN for unhandled rtl case..
10149         (min_fn): ..and translate to INT_MAX here.
10150         (write_length_unit_log): Modify to cope without "unknown".
10151         (write_attr_value): Handle IF_THEN_ELSE.
10153 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10155         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10156         optimization for masked stores.
10158 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10160         PR middle-end/88567
10161         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10162         output vector directly to duplicate_and_interleave instead of
10163         going through a temporary.  Postpone insertion of ctor_seq to
10164         the end of the loop.
10166 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
10168         PR target/86891
10169         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10170         unsigned_p.  Handle signed and unsigned overflow correction as
10171         required.
10172         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10173         prototype.
10174         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10175         for operand 2.
10176         (add<mode>3_compareV_imm): Make this callable for expanding.
10177         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
10178         aarch64_plus_operand for operand 2.
10179         (subv<GPI:mode>_insn): New insn pattern.
10180         (subv<GPI:mode>_imm): Likewise.
10181         (negv<GPI:mode>3): New expand pattern.
10182         (negv<GPI:mode>_insn): New insn pattern.
10183         (negv<GPI:mode>_cmp_only): Likewise.
10184         (cmpv<GPI:mode>_insn): Likewise.
10185         (subvti4): Use register_operand for operand 1.  Update call to
10186         aarch64_expand_subvti.
10187         (usubvti4): Likewise.
10188         (negvti3): New expand pattern.
10189         (negdi_carryout): New insn pattern.
10190         (negvdi_carryinV): New insn pattern.
10191         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10192         version the named version.
10193         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10194         operands.
10195         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10196         patterns.
10197         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10198         patterns.
10199         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10200         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10201         (sub<mode>3_carryinCV): Delete.
10202         (sub<GPI:mode>3_carryinV): New expand pattern.
10203         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10205 2019-01-07  Richard Biener  <rguenther@suse.de>
10207         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10208         of tree_operand_hash.
10210 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10212         PR tree-optimization/88598
10213         * tree.h (single_nonzero_element): Declare.
10214         * tree.c (single_nonzero_element): New function.
10215         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10216         if I is the only nonzero element of CST.
10218 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10220         PR tree-optimization/88598
10221         * tree.h (initializer_each_zero_or_onep): Declare.
10222         * tree.c (initializer_each_zero_or_onep): New function.
10223         (signed_or_unsigned_type_for): Handle float types too.
10224         (unsigned_type_for, signed_type_for): Update comments accordingly.
10225         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10226         x & { 0 or -1, 0 or -1, ... }.
10228 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
10230         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10231         with x86_64-pc-linux-gnu.
10233 2019-01-07  Tom de Vries  <tdevries@suse.de>
10235         PR target/85486
10236         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10237         function.
10238         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10239         routines.
10241 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
10243         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10244         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10245         TARGET_AVX512F as condition.
10247         PR debug/88723
10248         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10249         const_not_ok_for_debug_p target hook.
10250         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10251         on UNSPEC and subexpressions thereof if all subexpressions of the
10252         UNSPEC are CONSTANT_P.
10254         PR tree-optimization/88676
10255         * tree-ssa-phiopt.c (two_value_replacement): New function.
10256         (tree_ssa_phiopt_worker): Call it.
10258         PR sanitizer/88619
10259         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10260         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10262         PR c++/85052
10263         * tree-vect-generic.c: Include insn-config.h and recog.h.
10264         (expand_vector_piecewise): Add defaulted ret_type argument,
10265         if non-NULL, use that in preference to type for the result type.
10266         (expand_vector_parallel): Formatting fix.
10267         (do_vec_conversion, do_vec_narrowing_conversion,
10268         expand_vector_conversion): New functions.
10269         (expand_vector_operations_1): Call expand_vector_conversion
10270         for VEC_CONVERT ifn calls.
10271         * internal-fn.def (VEC_CONVERT): New internal function.
10272         * internal-fn.c (expand_VEC_CONVERT): New function.
10273         * fold-const-call.c (fold_const_vec_convert): New function.
10274         (fold_const_call): Use it for CFN_VEC_CONVERT.
10275         * doc/extend.texi (__builtin_convertvector): Document.
10277 2019-01-07  Tom de Vries  <tdevries@suse.de>
10279         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10280         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10281         vector_red_partition, vector_red_sym): New global variables.
10282         (nvptx_option_override): Initialize vector_red_sym.
10283         (nvptx_declare_function_name): Restore red_partition register.
10284         (nvptx_file_end): Emit code to declare the vector reduction variables.
10285         (nvptx_output_red_partition): New function.
10286         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10287         large vector reductions.
10288         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10289         (nvptx_init_builtins): Add VECTOR_ADDR.
10290         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10291         Handle nvptx_expand_shared_addr.
10292         (nvptx_get_shared_red_addr): Add vector argument and handle large
10293         vectors.
10294         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10295         large vectors.
10296         (nvptx_goacc_reduction_init): Likewise.
10297         (nvptx_goacc_reduction_fini): Likewise.
10298         (nvptx_goacc_reduction_teardown): Likewise.
10299         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10300         init,fini,teardown}.
10301         (nvptx_init_axis_predicate): Initialize vector_red_partition.
10302         (nvptx_set_current_function): Init vector_red_partition.
10303         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10304         (nvptx_red_partition): New insn.
10305         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10307 2019-01-07  Tom de Vries  <tdevries@suse.de>
10309         PR target/85381
10310         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10311         empty loops.
10313 2019-01-07  Tom de Vries  <tdevries@suse.de>
10315         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10316         (nvptx_option_override): Init oacc_bcast_partition.
10317         (nvptx_init_oacc_workers): New function.
10318         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10319         (nvptx_needs_shared_bcast): New function.
10320         (nvptx_find_par): Generalize to enable vectors to use shared-memory
10321         to propagate state.
10322         (nvptx_shared_propagate): Initialize vector bcast partition and
10323         synchronization state.
10324         (nvptx_single):  Generalize to enable vectors to use shared-memory
10325         to propagate state.
10326         (nvptx_process_pars): Likewise.
10327         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10328         * config/nvptx/nvptx.h (struct machine_function): Add
10329         bcast_partition and sync_bar members.
10331 2019-01-07  Tom de Vries  <tdevries@suse.de>
10333         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10334         (nvptx_apply_dim_limits): New function.
10335         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10336         PTX_WARP_SIZE.
10338 2019-01-07  Tom de Vries  <tdevries@suse.de>
10340         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10341         as late as possible.
10343 2019-01-07  Tom de Vries  <tdevries@suse.de>
10345         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10346         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10347         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10348         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10349         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10351 2019-01-07  Tom de Vries  <tdevries@suse.de>
10353         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10355 2019-01-07  Tom de Vries  <tdevries@suse.de>
10357         * omp-offload.c (oacc_get_min_dim): New function.
10358         * omp-offload.h (oacc_get_min_dim): Declare.
10360 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
10362         PR target/88521
10363         * config/i386/i386.c (function_value_ms_64): Return small sturct in
10364         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10366 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
10368         PR tree-opt/86020
10369         Revert:
10370         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
10372         * ipa-inline.c (edge_badness): Use inlined_time instead of
10373         inline_summaries->get.
10375 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
10377         * opts.c (enable_fdo_optimizations): Enable
10378         version-loops-for-strides, loop-interchange, unrol-and-jam
10379         and tree-loop-distribution.
10380         * invoke.texi: Document newly enabled options.
10382 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
10384         * doc/invoke.texi (max-inline-insns-small): New parameters.
10385         * ipa-inline.c (want_early_inline_function_p): simplify.
10386         (want_inline_small_function_p): Fix pasto from previous patch;
10387         use max-inline-insns-small bound.
10388         * params.def (max-inline-insns-small): New param.
10389         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10390         variables correctly.
10392 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
10394         * doc/invoke.texi: Document max-inline-insns-size,
10395         uninlined-function-insns, uninlined-function-time,
10396         uninlined-thunk-insns and uninlined-thunk-time.
10397         * params.def: Add max-inline-insns-size,
10398         uninlined-function-insns, uninlined-function-time,
10399         uninlined-thunk-insns and uninlined-thunk-time.
10400         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10401         new parameters.
10402         * ipa-inline.c (can_inline_edge_by_limits_p,
10403         want_inline_small_function_p): Use new parameters.
10405 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
10407         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10409 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
10411         PR middle-end/82564
10412         PR target/88620
10413         * expr.c (expand_assignment): For calls returning VLA structures
10414         if to_rtx is not a MEM, force it into a stack temporary.
10416         PR debug/88635
10417         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10418         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10419         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10420         subexpressions of both operands.
10421         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10422         subrtxes are CONSTANT_P.
10423         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10424         2018-11-09 changes.
10426 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
10428         * params.def (hot-bb-count-ws-permille): Set to 990.
10430 2019-01-04  Martin Sebor  <msebor@redhat.com>
10432         PR c/88546
10433         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10434         leaf.
10436 2019-01-04  Martin Sebor  <msebor@redhat.com>
10438         PR c/88363
10439         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10441 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
10443         * gdbinit.in: Turn off pagination for the skip commands, restore
10444         it to previous state afterwards.
10446 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
10448         PR target/88594
10449         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10450         of GET_MODE (opN) as modes of the libcall arguments.
10452 2019-01-04  Jan Beulich  <jbeulich@suse.com>
10454         * config/i386/sse.md
10455         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10456         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10457         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10458         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10459         avx512f_vmcmp<mode>3<round_saeonly_name>,
10460         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10461         avx512f_maskcmp<mode>3,
10462         <avx512>_cvt<ssemodesuffix>2mask<mode>,
10463         <avx512>_cvt<ssemodesuffix>2mask<mode>,
10464         *<avx512>_cvtmask2<ssemodesuffix><mode>,
10465         *<avx512>_cvtmask2<ssemodesuffix><mode>,
10466         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10467         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10468         <avx512>_gt<mode>3<mask_scalar_merge_name>,
10469         <avx512>_gt<mode>3<mask_scalar_merge_name>,
10470         <avx512>_testm<mode>3<mask_scalar_merge_name>,
10471         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10472         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10473         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10474         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10475         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10476         avx512cd_maskb_vec_dup<mode>,
10477         avx512cd_maskw_vec_dup<mode>,
10478         avx512dq_fpclass<mode><mask_scalar_merge_name>,
10479         avx512dq_vmfpclass<mode>,
10480         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10481         instead of =Yk.
10483 2019-01-03  Martin Sebor  <msebor@redhat.com>
10485         PR tree-optimization/88659
10486         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10488 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
10490         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10491         unaligned vsx and avoid lxvd2x/stxvd2x.
10492         (gen_lvx_v4si_move): New function.
10494 2019-01-03  Tom de Vries  <tdevries@suse.de>
10496         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10497         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10498         function.
10499         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10501 2019-01-03  Tom de Vries  <tdevries@suse.de>
10503         * config/nvptx/nvptx.c (struct offload_attrs): New.
10504         (populate_offload_attrs): New function.  Factor mask extraction out of
10505         nvptx_reorg.  Add extraction of dimensions.
10506         (nvptx_reorg): Use populate_offload_attrs.
10508 2019-01-03  Tom de Vries  <tdevries@suse.de>
10510         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10511         cases for oacc_min_dims_p and routine_p.  Add asserts for
10512         oacc_default_dims_p and offload_region_p.
10514 2019-01-03  Tom de Vries  <tdevries@suse.de>
10516         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10517         factored out of ...
10518         (nvptx_goacc_validate_dims): ... here.
10520 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
10522         PR tree-optimization/85574
10523         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10524         structure.
10525         (struct ssa_equip_hash_traits): Declare.
10526         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10528 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
10530         PR debug/88644
10531         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10532         change it to qualified_type.
10534 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
10536         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10537         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10539 2019-01-02  Martin Sebor  <msebor@redhat.com>
10540             Jeff Law  <law@redhat.com>
10542         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10543         (get_range_strlen_tree): Update appropriately.
10544         (get_range_strlen)
10545         * gimple-fold.h (get_range_strlen): Drop unused last argument.
10547         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10548         rather than set_range_info.
10549         * tree-ssa-strlen.c (set_strlen_range): Extracted from
10550         maybe_set_strlen_range.  Handle potentially boundary crossing
10551         cases more conservatively.
10552         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10553         Call set_strlen_range.
10554         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10556         PR middle-end/88663
10557         * gimple-fold.c (get_range_strlen): Update prototype to no longer
10558         need the flexp argument.
10559         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
10560         from calls to get_range_strlen.  Update comments.  Just update
10561         VAL for an unterminated const char array and let the reset of the
10562         code handle it normally.  No longer try to set *flexp.  Adjust
10563         return value.
10564         (get_range_strlen): Update for the new get_range_strlen API.
10565         (get_maxval_strlen): Similarly.
10566         (gimple_fold_builtin_strlen): Handle update meaning of return value
10567         from get_range_strlen.
10568         * gimple-ssa-sprintf.c (get_string_length): Update for the new
10569         get_range_strlen API.
10571 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
10573         PR lto/88130
10574         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10575         false at WPA time when body was removed.
10577 2019-01-02  Martin Liska  <mliska@suse.cz>
10579         PR tree-optimization/88650
10580         * predict.c (set_even_probabilities): Calculate probability
10581         remainer only when really used.
10583 2019-01-02  Richard Biener  <rguenther@suse.de>
10585         PR middle-end/88651
10586         * tree-data-ref.c (analyze_subscript_affine_affine): Use
10587         widest_ints when mangling max_stmt_execution results.
10589 2019-01-02  Richard Biener  <rguenther@suse.de>
10591         PR tree-optimization/88621
10592         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10593         bitfields when canoncalizing.
10595 2019-01-02  Richard Biener  <rguenther@suse.de>
10597         PR target/87545
10598         * config/i386/x86-tune-costs.h (intel_cost): Adjust
10599         cost of cheap SSE instruction.
10601 2019-01-02  Richard Biener  <rguenther@suse.de>
10603         PR ipa/85574
10604         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10605         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10606         function.
10607         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10608         set after UIDs before splitting them.
10610 2019-01-01  Martin Sebor  <msebor@redhat.com>
10611             Jeff Law  <law@redhat.com>
10613         * gimple-fold.c (get_range_strlen_tree): Record if the computed
10614         length is optimistic.  If it is, then arrange to compute the
10615         conservative length as well.
10617         * gimple-fold.h (get_range_strlen): Update prototype.
10618         * builtins.c (check_access): Update call to get_range_strlen to use
10619         c_strlen_data pointer.   Change various variable accesses to instead
10620         pull data from the c_strlen_data structure.
10621         (check_strncat_sizes, expand_builtin_strncat): Likewise.
10622         * calls.c (maybe_warn_nonstring_arg): Likewise.
10623         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
10624         minimum length if maximum lengh is unknown.
10625         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
10626         that used c_strlen, it's no longer needed.  Restructure slightly.
10627         (format_string): Set unlikely range appropriately.
10628         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
10629         formatting issues.
10630         (get_range_strlen):  Accept c_strlen_data pointer for external
10631         call sites as well.  Pass through to call to internal get_range_strlen.
10632         Adjust minlen, maxlen and maxbound as needed.
10633         (get_maxval_strlen): Update comments.
10634         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
10635         to use c_strlen_data pointer.  Change variable accesses to instead
10636         use c_strlen_data data members.
10638         * gimple-fold.c (get_range_strlen): Update prototype.
10639         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
10640         local variables.  Use pdata to return information to caller.
10641         Update calls to get_range_strlen.  Update pdata->maxbound.
10642         (get_range_strlen -- static version): Similarly.
10643         (get_range_strlen -- extern version): Update for internal
10644         get_range_strlen API change.  Convert to external data format.
10645         (get_maxval_strlen): Similarly.
10647 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
10649         * coverage.c (get_coverage_counts): Use current_function_decl.
10650         * profile.c (read_thunk_profile): New function.
10651         (branch_prob): Add THUNK parameter.
10652         * tree-profile.c (tree_profiling): Handle thunks.
10653         * value-prof.c (init_node_map): Handle thunks.
10654         * value-prof.h (branch_prob): Upate prototype.
10655         (read_thunk_profile): Declare.
10657 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10659         Update copyright years.
10661         * gcc.c (process_command): Update copyright notice dates.
10662         * gcov-dump.c (print_version): Ditto.
10663         * gcov.c (print_version): Ditto.
10664         * gcov-tool.c (print_version): Ditto.
10665         * gengtype.c (create_file): Ditto.
10666         * doc/cpp.texi: Bump @copying's copyright year.
10667         * doc/cppinternals.texi: Ditto.
10668         * doc/gcc.texi: Ditto.
10669         * doc/gccint.texi: Ditto.
10670         * doc/gcov.texi: Ditto.
10671         * doc/install.texi: Ditto.
10672         * doc/invoke.texi: Ditto.
10674 Copyright (C) 2019 Free Software Foundation, Inc.
10676 Copying and distribution of this file, with or without modification,
10677 are permitted in any medium without royalty provided the copyright
10678 notice and this notice are preserved.