[RS6000] Fix typos
[official-gcc.git] / gcc / ChangeLog
blob4af4550c824cdb6aa0d1a12cbbf79de34d7ffdf3
1 2019-03-26  Alan Modra  <amodra@gmail.com>
3         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
4         rs6000_vector_mem init.  Correct wI and wJ comment.
6 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
8         PR rtl-optimization/88347
9         PR rtl-optimization/88423
10         * sched-deps.c (sched_analyze_insn): Take into account that for
11         tablejumps the barrier appears after a label and a jump_table_data.
13 2019-03-25  Martin Sebor  <msebor@redhat.com>
15         PR c/89812
16         * c-common.c (check_user_alignment): Rename local.  Correct maximum
17         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
18         convert it to UHWI when it fits.
20 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
22         PR debug/86964
23         * dwarf2out.c (premark_used_variables): New function.
24         (prune_unused_types_walk): Do not mark not premarked external
25         variables.
26         (prune_unused_types): Call premark_used_variables.
28 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
30         PR rtl-optimization/89676
31         * lra-constraints.c (curr_insn_transform): Do match reload for
32         early clobbers when the match was successful only for different
33         registers.
35 2019-03-25  Martin Sebor  <msebor@redhat.com>
37         * doc/extend.texi (Common Type Attributes): Document vector_size.
38         (Common Variable Attributes): Mention size constraint.  Correct
39         quoting and typos.
40         (Vector Extensions): Use @dfn when defining bas type.  Clarify
41         base type and size constraints.
43 2019-03-25  Richard Biener  <rguenther@suse.de>
45         PR tree-optimization/89789
46         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
47         changes from non-undefined back to undefined.
49 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
51         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
52         heap string and a gc string, but since this variable is unknown to
53         ggc the gc string might get reused and corrupted. Fixed by always
54         using a heap string.
56 2019-03-25  Richard Biener  <rguenther@suse.de>
58         PR tree-optimization/89779
59         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
60         to remove IV defs, delay actual removal.
61         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
62         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
63         very end, properly also reset loop control IV information.
65 2019-03-25  Richard Biener  <rguenther@suse.de>
67         PR tree-optimization/89802
68         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
69         move EH data to folded stmt.
71 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
73         * config/s390/s390-builtin-types.def: Remove few unused types and
74         fix sort order for others.
76 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
78         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
79         expected and found types with -mdebug during builtin matching.
81 2019-03-25  Richard Biener  <rguenther@suse.de>
83         PR middle-end/89790
84         * fold-const.c (operand_equal_p): Revert last change with
85         updated comment.
87 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
89         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
90         notes for the result of the __tls_get_addr calls.
91         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
93 2019-03-24  Jeff Law  <law@redhat.com>
95         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
97         PR rtl-optimization/87761
98         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
99         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
100         as needed.
101         (pass_cprop_hardreg::execute): Add df note problem and defer insn
102         rescans.  Reprocess blocks as needed, calling df_analyze before
103         reprocessing.  Always call df_analyze before fixing up debug bind
104         insns.
106 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
108         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
109         big endian.
111 2019-03-22  Andrew Pinski  <apinski@marvell.com>
113         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
114         attrribute for uxtw.
116 2019-03-26  Jeff Law  <law@redhat.com>
118         PR rtl-optimization/87761
119         * config/mips/mips-protos.h (mips_split_move): Add new argument.
120         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
121         (mips_split_move): Accept new INSN argument.  Try to forward SRC
122         into the next instruction.
123         (mips_split_move_insn): Pass INSN through to mips_split_move.
125 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
127         PR rtl-optimization/89676
128         * lra-constraints.c (curr_insn_transform): Do match reload for
129         early clobbers even if the match was successful.
131 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
133         PR c++/87481
134         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
136 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
138         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
140 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
142         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
143         <avx512>_fmsub_<mode>_mask3<round_name>,
144         <avx512>_fnmadd_<mode>_mask3<round_name>,
145         <avx512>_fnmsub_<mode>_mask3<round_name>,
146         avx512f_vmfmadd_<mode>_mask3<round_name>,
147         avx512f_vmfmsub_<mode>_mask3<round_name>,
148         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
149         instead of register_operand and %v instead of v for match_operand 1.
150         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
151         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
152         <round_nimm_predicate> instead of register_operand and %v instead of v
153         for match_operand 1.
155         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
156         <avx512>_fmadd_<mode>_mask3<round_name>,
157         <avx512>_fmsub_<mode>_mask<round_name>,
158         <avx512>_fmsub_<mode>_mask3<round_name>,
159         <avx512>_fnmadd_<mode>_mask<round_name>,
160         <avx512>_fnmadd_<mode>_mask3<round_name>,
161         <avx512>_fnmsub_<mode>_mask<round_name>,
162         <avx512>_fnmsub_<mode>_mask3<round_name>,
163         <avx512>_fmaddsub_<mode>_mask<round_name>,
164         <avx512>_fmaddsub_<mode>_mask3<round_name>,
165         <avx512>_fmsubadd_<mode>_mask<round_name>,
166         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
167         <round_nimm_predicate> instead of nonimmediate_operand.
168         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
169         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
170         Use register_operand instead of <round_nimm_predicate> for the
171         operand that needs to match output.
172         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
173         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
174         Likewise.  Formatting fixes.
176         PR target/89784
177         * config/i386/i386.c (enum ix86_builtins): Remove
178         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
179         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
180         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
181         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
182         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
183         __builtin_ia32_vfmsubss3_mask3): New builtins.
184         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
185         avx512f_vmfmadd_<mode>_mask3<round_name>,
186         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
187         *avx512f_vmfmsub_<mode>_mask<round_name>,
188         avx512f_vmfmsub_<mode>_mask3<round_name>,
189         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
190         *avx512f_vmfnmadd_<mode>_mask<round_name>,
191         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
192         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
193         *avx512f_vmfnmsub_<mode>_mask<round_name>,
194         avx512f_vmfnmsub_<mode>_mask3<round_name>,
195         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
196         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
197         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
198         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
199         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
200         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
201         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
202         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
203         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
204         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
205         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
206         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
207         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
208         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
209         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
210         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
211         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
212         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
213         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
214         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
215         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
216         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
218 2019-03-21  Martin Sebor  <msebor@redhat.com>
220         PR tree-optimization/89350
221         * builtins.c (compute_objsize): Also ignore offsets whose upper
222         bound is negative.
223         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
224         (builtin_memref::builtin_memref): Initialize new member.
225         Allow EXPR to be null.
226         (builtin_memref::extend_offset_range): Replace local with a member.
227         Avoid assuming pointer offsets are unsigned.
228         (builtin_memref::set_base_and_offset): Determine base object
229         before computing offset range.
230         (builtin_access::builtin_access): Handle memset.
231         (builtin_access::generic_overlap): Replace local with a member.
232         (builtin_access::strcat_overlap): Same.
233         (builtin_access::overlap): Same.
234         (maybe_diag_overlap): Same.
235         (maybe_diag_access_bounds): Same.
236         (wrestrict_dom_walker::check_call): Handle memset.
237         (check_bounds_or_overlap): Same.
239 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
240             Jakub Jelinek  <jakub@redhat.com>
242         PR lto/89692
243         * tree.c (fld_type_variant, fld_incomplete_type_of,
244         fld_process_array_type): Call fld->pset.add and don't call
245         add_tree_to_fld_list if it returns true.
246         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
247         non-marked types from TYPE_NEXT_VARIANT list.
248         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
250 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
252         * hash-table.h (hash_table): Add Lazy template parameter defaulted
253         to false, if true, don't alloc_entries during construction, but defer
254         it to the first method that needs m_entries allocated.
255         (hash_table::hash_table, hash_table::~hash_table,
256         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
257         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
258         hash_table::clear_slot, hash_table::traverse_noresize,
259         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
260         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
261         false.
262         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
263         NO_INSERT instead of find_with_hash.
264         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
265         hash_set::m_table): Add Lazy to template params of hash_table.
266         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
267         * attribs.c (test_attribute_exclusions): Likewise.
268         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
269         hash_set.  Add tests for hash_set with Lazy = true.
271 2019-03-21  Richard Biener  <rguenther@suse.de>
273         PR tree-optimization/89779
274         * tree.c (tree_nop_conversion): Consolidate and fix defensive
275         checks with respect to released SSA names now having error_mark_node
276         type.
277         * fold-const.c (operand_equal_p): Likewise.
279 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
281         PR target/89775
282         * config/s390/s390.c (global_not_special_regno_p): Move to make it
283         available to ...
284         (s390_optimize_register_info): Use global_not_special_regno_p to
285         check for global regs.
287 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
289         PR target/89752
290         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
291         update this_alternative nor this_alternative_set.
293 2019-03-19  Jim Wilson  <jimw@sifive.com>
295         PR target/89411
296         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
297         align, size, offset.  Use them to handle a BLKmode reference.  Update
298         comment.
299         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
301 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
303         PR rtl-optimization/89768
304         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
305         instead of GEN_INT.
306         (unroll_loop_runtime_iterations): Likewise.
308 2019-03-19  Martin Sebor  <msebor@redhat.com>
310         PR tree-optimization/89644
311         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
312         rather than endptr as an indicator of nul-termination.
314         PR tree-optimization/89644
315         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
316         arrays in determining sequence sizes in strncpy and stpncpy.
318 2019-03-19  Martin Liska  <mliska@suse.cz>
320         PR middle-end/89737
321         * predict.c (combine_predictions_for_bb): Empty likely_edges and
322         unlikely_edges if there's an edge that belongs to both these sets.
324 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
326         PR target/89746
327         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
328         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
329         go via a stack temporary.
331 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
333         PR target/89378
334         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
335         instead of gen_rtx_SUBREG.
336         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
338 2019-03-19  Richard Biener  <rguenther@suse.de>
340         PR debug/88389
341         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
343 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
345         PR lto/87809
346         PR lto/89335
347         * tree.c (free_lang_data_in_decl): Do not free context of C++
348         destrutors.
350 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
352         PR target/89506
353         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
354         subs for the first alternative except when operands[3] is 1.
356         PR target/89752
357         * gimplify.c (gimplify_asm_expr): For output argument with
358         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
359         diagnose error.
361 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
363         PR rtl-optimization/89753
364         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
365         explicit unrolling factor even more robust.
367 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
369         PR target/89726
370         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
371         compensation use x2 += 1 instead of x2 -= -1 and when honoring
372         signed zeros, do another copysign after the compensation.
374 2019-03-18  Martin Sebor  <msebor@redhat.com>
376         PR tree-optimization/89720
377         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
378         more conservatively, the same as anti-range.
380 2019-03-18  Richard Biener  <rguenther@suse.de>
382         PR middle-end/88945
383         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
384         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
385         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
386         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
388 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
390         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
391         Extend queue to 1024 entries.
392         Add "consumed" field.
393         (gomp_print_output): Remove print_index parameter.
394         Add final parameter.
395         Change limit to unsigned.
396         Use consumed field to implement circular buffer.
397         Detect interrupted print in final pass.
398         Flush output at the end.
399         (run): Update gomp_print_output usage.
400         (main): Initialize kernargs->output_data.consumed.
402 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
404         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
405         calculation of the minimum number of scalar iterations for
406         fully-predicated loops.
408 2019-03-18  Martin Jambor  <mjambor@suse.cz>
410         PR tree-optimization/89546
411         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
412         any propagation to its children took place.
414 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
416         PR target/89627
417         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
418         parameter, and make use of it.
419         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
421 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
423         * config/arc/arc.opt (mcode-density-frame): Get the inital value
424         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
425         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
426         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
427         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
428         match what the ops is doing.
429         (push_multi_fp_blink): Likewise.
430         * config/arc/arc.c (arc_override_options): Enable enter/leave when
431         compiling for size and elf target.
432         (arc_save_callee_enter): Adjust note to match what enter/leave
433         operation does.
435 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
437         * config/arc/arc.md (tst_movb): Fix constraint.
439 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
441         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
443 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
445         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
446         * config/arc/arc.c (arc_conditional_register_usage): Remove all
447         reg_alloc_order references.
448         (size_alloc_order): Define.
449         (arc_adjust_reg_alloc_order): New function.
450         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
451         order.
452         (ADJUST_REG_ALLOC_ORDER): Define.
453         (HONOR_REG_ALLOC_ORDER): Likewise.
455 2019-03-18  Richard Biener  <rguenther@suse.de>
457         PR target/87561
458         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
459         loads and stores a bit more.
461 2019-03-18  Richard Biener  <rguenther@suse.de>
463         PR target/87561
464         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
465         load pessimization to stores as well.
467 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
469         PR middle-end/86979
470         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
471         successor, use NULL as its av set.
473 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
475         PR rtl-optimization/89721
476         * lra-constraints (invariant_p): Return false if side_effects_p holds.
478 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
480         PR target/87532
481         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
482         When handling vec_extract, use modular arithmetic to allow
483         constant selectors greater than vector length.
484         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
485         V1TImode vectors to have constant selector values greater than 0.
486         Use modular arithmetic to compute vector index.
487         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
488         index for in-memory vectors.  Correct code generation for
489         in-register vectors.
490         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
491         compute index.
493 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
495         PR c++/88534
496         PR c++/88537
497         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
498         VAR_DECL args.
500 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
502         PR c++/89709
503         * tree.c (inchash::add_expr): Strip any location wrappers.
504         * fold-const.c (operand_equal_p): Move stripping of location wrapper
505         after hash verification.
507         PR debug/89704
508         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
509         SIGN_EXTEND and ZERO_EXTEND.
511 2019-03-14  Jason Merrill  <jason@redhat.com>
512             Jakub Jelinek  <jakub@redhat.com>
514         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
515         than if is_empty (*slot).
516         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
517         existing elt and for elt removal.
518         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
519         of already removed elt.
521 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
523         PR target/89650
524         * config/i386/i386.c (remove_partial_avx_dependency): Handle
525         REG_EH_REGION note.
527 2019-03-14  Martin Liska  <mliska@suse.cz>
529         PR other/89712
530         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
532 2019-03-14  Richard Biener  <rguenther@suse.de>
534         PR target/89711
535         * config/i386/i386.c (make_resolver_func): Properly set
536         DECL_CONTEXT on the RESULT_DECL.
537         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
539 2019-03-14  Richard Biener  <rguenther@suse.de>
541         * gimple-pretty-print.c: Include cfgloop.h.
542         (dump_gimple_phi): Adjust.
543         (dump_gimple_bb_header): Dump loop header for GIMPLE.
544         (pp_cfg_jump): Adjust.
545         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
546         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
547         (lower_phi_internal_fn): Remove.
548         (verify_gimple_call): Remove IFN_PHI special-casing.
549         (dump_function_to_file): Dump IL state.
550         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
551         done to deal with PHI nodes being present in non-SSA state.
553 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
555         PR ipa/89684
556         * multiple_target.c (create_dispatcher_calls): Change
557         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
558         In the node->iterate_referring loop, push *ref rather than ref, call
559         ref->remove_reference () and always pass 0 to iterate_referring.
561         PR rtl-optimization/89679
562         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
563         would contain a paradoxical SUBREG.
565 2019-03-14  Richard Biener  <rguenther@suse.de>
567         PR tree-optimization/89710
568         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
569         safe_dyn_cast.
571 2019-03-14  Martin Liska  <mliska@suse.cz>
573         * coverage.c (coverage_begin_function): Stream also
574         end_column.
575         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
576         documentation about function declaration location.
577         * gcov-dump.c (tag_function): Print whole range
578         of function declaration.
579         * gcov.c (struct function_info): Add end_column field.
580         (function_info::function_info): Initialize it.
581         (output_json_intermediate_file): Output {start,end}_column
582         fields.
583         (read_graph_file): Read end_column.
585 2019-03-14  Richard Biener  <rguenther@suse.de>
587         PR middle-end/89698
588         * fold-const.c (operand_equal_p): For INDIRECT_REF check
589         that the access types are similar.
591 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
593         PR tree-optimization/89703
594         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
595         aren't compatible also with builtin_decl_explicit.  Check pure
596         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
597         and BUILT_IN_STPNCPY{,_CHK}.
599 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
601         PR target/89523
602         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
603         addr32 prefix to VSIB address for X32.
604         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
605         "%M2" to opcode.
606         (*avx512pf_gatherpf<mode>df_mask): Likewise.
607         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
608         (*avx512pf_scatterpf<mode>df_mask): Likewise.
609         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
610         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
611         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
612         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
613         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
614         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
615         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
616         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
617         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
618         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
619         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
620         (*avx512f_scatterdi<mode>): Likewise.
622 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
624         PR target/85860
625         * lra-constraints.c (inherit_in_ebb): Update
626         potential_reload_hard_regs along with live_hard_regs.
628 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
630         PR debug/89498
631         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
632         DWARF_OFFSET_SIZE.
633         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
635 2019-03-13  Martin Sebor  <msebor@redhat.com>
637         PR tree-optimization/89662
638         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
639         has a size.
641 2019-03-13  Richard Biener  <rguenther@suse.de>
643         PR middle-end/89677
644         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
645         throw FP expressions at tree-affine.
647 2019-03-14  Richard Biener  <rguenther@suse.de>
649         * tree-pretty-print.c (dump_generic_node): For -gimple properly
650         dump negative integer constants using _Literal (type) -num.
652 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
654         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
655         nonlocal_value member.
657         PR middle-end/88588
658         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
659         (ipa_simd_modify_function_body): Handle PHIs.
661 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
663         * config/s390/s390.c (s390_option_override_internal): Use more
664         aggressive inlining parameters.
666 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
668         * config/s390/3906.md: New file.
669         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
670         (LONGRUNNING_THRESHOLD): Remove.
671         (MAX_SCHED_MIX_SCORE): Decrease.
672         (MAX_SCHED_MIX_DISTANCE): Decrease.
673         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
674         (struct s390_sched_state): New struct to hold scheduling state.
675         (S390_SCHED_STATE_NORMAL): Remove.
676         (S390_SCHED_STATE_CRACKED): Remove.
677         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
678         (s390_get_sched_attrmask): Use new attribute.
679         (s390_get_unit_mask): Use new units.
680         (s390_is_fpd): New function.
681         (s390_is_fxd): New function.
682         (s390_is_longrunning): New function.
683         (s390_sched_score): Use new functions.
684         (s390_sched_reorder): Likewise.
685         (s390_sched_variable_issue): Rework and use new functions.
686         (s390_sched_init): Use new functions.
687         * config/s390/s390.h (s390_tune_attr):  Add z14.
688         * config/s390/s390.md: Add z14.
690 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
692         * config/s390/2964.md: Update pipeline description.
693         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
694         (LONGRUNNING_THRESHOLD): Remove.
695         (LATENCY_FACTOR): Remove.
696         (s390_get_unit_mask): Add unit.
697         (s390_sched_score): Use fxd/fpd.
698         (s390_sched_variable_issue): Use fxd/fpd.
700 2019-03-12  Martin Liska  <mliska@suse.cz>
702         * config/i386/i386.c: Reword an error message.
704 2019-03-12  Martin Jambor  <mjambor@suse.cz>
706         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
707         terminate with newline.
709 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
711         PR target/52726
712         * config/s390/s390.md (tabort): Use %wd instead of
713         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
714         letters and periods.
715         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
716         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
717         's with %< and %>.
719         PR middle-end/89663
720         * builtins.c (expand_builtin_int_roundingfn,
721         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
722         gcc_unreachable if validate_arglist fails.
724 2019-03-12  Richard Biener  <rguenther@suse.de>
726         PR tree-optimization/89664
727         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
728         free the occurance tree after the early out.
730 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
732         PR middle-end/89655
733         PR bootstrap/89656
734         * vr-values.c (vr_values::update_value_range): If
735         old_vr->varying_p (), don't update it, make new_vr also VARYING
736         and return false.
738 2019-03-11  Martin Liska  <mliska@suse.cz>
740         * config/aarch64/aarch64.c (aarch64_override_options_internal):
741         Fix double string quoting.
743 2019-03-11  Martin Liska  <mliska@suse.cz>
745         * collect-utils.c (collect_wait): Wrap apostrophes
746         in gcc internal format with %'.
747         * collect2.c (main): Likewise.
748         (scan_prog_file): Likewise.
749         (scan_libraries): Likewise.
750         * config/i386/i386.c (ix86_expand_call): Likewise.
751         (ix86_handle_interrupt_attribute): Likewise.
752         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
753         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
754         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
755         * lto-wrapper.c (find_crtoffloadtable): Likewise.
756         * symtab.c (symtab_node::verify_base): Likewise.
757         * tree-cfg.c (verify_gimple_label): Likewise.
758         * tree.c (verify_type_variant): Likewise.
760 2019-03-11  Martin Liska  <mliska@suse.cz>
762         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
763         in a string format message and fix GNU coding style.
764         (expand_builtin_set_thread_pointer): Likewise.
765         * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
766         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
767         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
768         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
769         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
770         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
771         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
772         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
773         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
774         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
775         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
776         * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
777         (riscv_subset_list::parse_std_ext): Likewise.
778         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
779         (riscv_subset_list::parse): Likewise.
780         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
781         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
782         (aarch64_override_options_internal): Likewise.
783         (aarch64_validate_mcpu): Likewise.
784         (aarch64_validate_march): Likewise.
785         (aarch64_validate_mtune): Likewise.
786         (aarch64_override_options): Likewise.
787         * config/alpha/alpha.c (alpha_option_override): Likewise.
788         * config/arc/arc.c (arc_init): Likewise.
789         (parse_mrgf_banked_regs_option): Likewise.
790         (arc_override_options): Likewise.
791         (arc_expand_builtin_aligned): Likewise.
792         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
793         (arm_expand_builtin): Likewise.
794         * config/arm/arm.c (arm_option_check_internal): Likewise.
795         (arm_configure_build_target): Likewise.
796         (arm_option_override): Likewise.
797         (arm_options_perform_arch_sanity_checks): Likewise.
798         (arm_handle_cmse_nonsecure_entry): Likewise.
799         (arm_handle_cmse_nonsecure_call): Likewise.
800         (arm_tls_referenced_p): Likewise.
801         (thumb1_expand_prologue): Likewise.
802         * config/avr/avr.c (avr_option_override): Likewise.
803         * config/bfin/bfin.c (bfin_option_override): Likewise.
804         * config/c6x/c6x.c (c6x_option_override): Likewise.
805         * config/cr16/cr16.c (cr16_override_options): Likewise.
806         * config/cris/cris.c (cris_option_override): Likewise.
807         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
808         * config/darwin-c.c (macosx_version_as_macro): Likewise.
809         * config/darwin.c (darwin_override_options): Likewise.
810         * config/frv/frv.c (frv_expand_builtin): Likewise.
811         * config/h8300/h8300.c (h8300_option_override): Likewise.
812         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
813         (ix86_option_override_internal): Likewise.
814         (warn_once_call_ms2sysv_xlogues): Likewise.
815         (ix86_expand_prologue): Likewise.
816         (split_stack_prologue_scratch_regno): Likewise.
817         (ix86_warn_parameter_passing_abi): Likewise.
818         * config/ia64/ia64.c (fix_range): Likewise.
819         * config/m68k/m68k.c (m68k_option_override): Likewise.
820         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
821         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
822         (mips_set_compression_mode): Likewise.
823         * config/mmix/mmix.c (mmix_option_override): Likewise.
824         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
825         * config/msp430/msp430.c (msp430_option_override): Likewise.
826         * config/nds32/nds32.c (nds32_option_override): Likewise.
827         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
828         (nios2_option_override): Likewise.
829         (nios2_expand_custom_builtin): Likewise.
830         * config/nvptx/mkoffload.c (main): Likewise.
831         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
832         * config/pa/pa.c (fix_range): Likewise.
833         (pa_option_override): Likewise.
834         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
835         (riscv_option_override): Likewise.
836         * config/rl78/rl78.c (rl78_option_override): Likewise.
837         * config/rs6000/aix61.h: Likewise.
838         * config/rs6000/aix71.h: Likewise.
839         * config/rs6000/aix72.h: Likewise.
840         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
841         * config/rs6000/freebsd64.h: Likewise.
842         * config/rs6000/linux64.h: Likewise.
843         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
844         (rs6000_expand_zeroop_builtin): Likewise.
845         (rs6000_expand_mtfsb_builtin): Likewise.
846         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
847         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
848         (rs6000_invalid_builtin): Likewise.
849         (rs6000_expand_split_stack_prologue): Likewise.
850         * config/rs6000/rtems.h: Likewise.
851         * config/rx/rx.c (valid_psw_flag): Likewise.
852         (rx_expand_builtin): Likewise.
853         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
854         * config/s390/s390.c (s390_expand_builtin): Likewise.
855         (s390_function_profiler): Likewise.
856         (s390_option_override_internal): Likewise.
857         (s390_option_override): Likewise.
858         * config/sh/sh.c (sh_option_override): Likewise.
859         (sh_builtin_saveregs): Likewise.
860         (sh_fix_range): Likewise.
861         * config/sh/vxworks.h: Likewise.
862         * config/sparc/sparc.c (sparc_option_override): Likewise.
863         * config/spu/spu.c (spu_option_override): Likewise.
864         (fix_range): Likewise.
865         * config/visium/visium.c (visium_option_override): Likewise.
866         (visium_handle_interrupt_attr): Likewise.
867         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
868         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
869         (dbg_cnt_process_opt): Likewise.
870         * dwarf2out.c (output_dwarf_version): Likewise.
871         * except.c (expand_eh_return): Likewise.
872         * gcc.c (defined): Likewise.
873         (driver_handle_option): Likewise.
874         (process_command): Likewise.
875         (compare_files): Likewise.
876         (driver::prepare_infiles): Likewise.
877         (driver::do_spec_on_infiles): Likewise.
878         (driver::maybe_run_linker): Likewise.
879         * omp-offload.c (oacc_parse_default_dims): Likewise.
880         * opts-global.c (handle_common_deferred_options): Likewise.
881         * opts.c (parse_sanitizer_options): Likewise.
882         (common_handle_option): Likewise.
883         (enable_warning_as_error): Likewise.
884         * passes.c (enable_disable_pass): Likewise.
885         * plugin.c (parse_plugin_arg_opt): Likewise.
886         (default_plugin_dir_name): Likewise.
887         * targhooks.c (default_expand_builtin_saveregs): Likewise.
888         (default_pch_valid_p): Likewise.
889         * toplev.c (init_asm_output): Likewise.
890         (process_options): Likewise.
891         (toplev::run_self_tests): Likewise.
892         * tree-cfg.c (verify_gimple_call): Likewise.
893         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
894         (tree_inlinable_function_p): Likewise.
895         * var-tracking.c (vt_find_locations): Likewise.
897 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
899         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
900         only on the else branch.
902 2019-03-11  Martin Liska  <mliska@suse.cz>
904         * gcov.c (output_intermediate_json_line): Print function
905         name of each line.
906         (output_json_intermediate_file): Add new argument.
907         * doc/gcov.texi: Document the change.
909 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
911         PR rtl-optimization/89588
912         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
913         explicit unrolling factor more robust.
915 2019-03-11  Richard Biener  <rguenther@suse.de>
917         PR tree-optimization/89649
918         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
919         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
920         on the prolog and epilog loops.
921         (vect_loop_versioning): Return copy of loop.
922         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
923         on the non-vectorized version of the loop.
925 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
927         PR target/68924
928         * config/i386/sse.md (*vec_extractv2di_0_sse):
929         Add (=r,x) alternative and corresponding splitter.
931 2019-03-10  Martin Jambor  <mjambor@suse.cz>
933         PR tree-optimization/85762
934         PR tree-optimization/87008
935         PR tree-optimization/85459
936         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
937         it points to if there is a type changing MEM_REF.  Adjust all callers.
938         (build_accesses_from_assign): Disable total scalarization if
939         contains_vce_or_bfcref_p returns true through the new parameter, for
940         both rhs and lhs.
942 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
944         PR c/88568
945         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
946         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
948         PR target/79645
949         * common.opt (fdiagnostics-show-labels,
950         fdiagnostics-show-line-numbers, fdiagnostics-format=,
951         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
952         gas-locview-support, ginline-points, ginternal-reset-location-views):
953         Terminate description text with a dot.
954         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
955         * config/mcore/mcore.opt (m210, m340): Likewise.
956         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
957         mnops=): Start description text with a capital letter.
958         * config/arc/arc.opt (msize-level=): Likewise.
959         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
960         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
961         mnewlib): Likewise.
962         * config/ft32/ft32.opt (msim): Likewise.
963         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
964         (mnodiv, mnopm): Terminate description text with a dot.
965         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
966         a colon.
967         * config/i386/i386.opt (prefer_vector_width, instrument_return):
968         Likewise.
969         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
970         text.
972         PR rtl-optimization/89634
973         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
974         are modified in BB_END (e->src) instruction.
976 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
978         PR target/79926
979         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
980         messages more amenable to translation, and improve wording.
982 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
984         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
985         ud- and du-chains between phases.
987 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
989         PR debug/89631
990         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
991         instead of POLY_INT_CST.
993 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
995         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
996         requirement.
998 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1000         PR target/68924
1001         PR target/78782
1002         PR target/87558
1003         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
1004         (_mm_storeu_si64): Ditto.
1006 2019-03-08  Martin Liska  <mliska@suse.cz>
1008         PR target/86952
1009         * config/i386/i386.c (ix86_option_override_internal): Disable
1010         jump tables when retpolines are used.
1012 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
1014         PR go/63560
1015         * ipa-split.c (execute_split_functions): Do not split
1016         'noinline' or 'section' function.
1018 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
1020         PR target/79846
1021         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
1022         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
1023         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
1025         PR ipa/80000
1026         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
1027         from diagnostics.  Formatting fixes.
1029         PR target/85665
1030         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
1031         warn_odr diagnostics.
1033         PR other/80058
1034         * lra-constraints.c (process_alt_operands): Avoid one space before
1035         " at the end of line and another after " on another line in a string
1036         literal.
1037         * attribs.c (handle_dll_attribute): Likewise.
1038         * config/avr/avr-devices.c (avr_texinfo): Likewise.
1040         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
1041         warning_at or inform messages in G_() if there is no ?:.
1043         PR tree-optimization/89550
1044         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
1045         returned true.  Formatting fixes.
1046         (expand_builtin_strnlen): Formatting fixes.
1047         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
1048         if warning_at returned true.
1049         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
1051 2019-03-08  Richard Biener  <rguenther@suse.de>
1053         PR middle-end/89578
1054         * cfgloop.h (struct loop): Add owned_clique field.
1055         * cfgloopmanip.c (copy_loop_info): Copy it.
1056         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
1057         cliques.
1058         * tree-inline.c (copy_loops): Remap owned_clique.
1059         * lto-streamer-in.c (input_cfg): Stream owned_clique.
1060         * lto-streamer-out.c (output_cfg): Likewise.
1062 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
1064         PR target/80190
1065         * config/darwin.c: Include intl.h.
1066         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
1067         composing the message out of two separate parts.
1069 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
1071         PR target/80003
1072         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
1073         doesn't start with a capital letter and doesn't end with a dot.
1074         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
1075         with a capital letter.
1076         (ix86_mangle_function_version_assembler_name): Likewise.
1077         (ix86_generate_version_dispatcher_body): Likewise.
1078         (fold_builtin_cpu): Likewise.
1079         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
1080         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
1081         translators, wrap full type name in %qs.
1083         PR translation/79999
1084         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
1085         depend clause with source (or sink) modifier.
1086         * omp-expand.c (expand_omp_ordered_sink): Likewise.
1088         PR target/89602
1089         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
1090         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
1091         (avx512f_load<mode>_mask): New define_expand.
1092         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
1093         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
1094         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
1095         __builtin_ia32_movess_mask): New builtins.
1096         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
1097         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
1098         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
1099         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
1101 2019-03-07  Martin Jambor  <mjambor@suse.cz>
1103         PR lto/87525
1104         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
1105         for extern inline functions.
1107 2019-03-07  Martin Jambor  <mjambor@suse.cz>
1109         PR ipa/88235
1110         * cgraph.h (cgraph_node): New inline method former_thunk_p.
1111         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
1112         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
1113         have multiple callees.  At the end check if declarations match as
1114         opposed to cgraph_nodes.
1116 2019-03-07  Martin Liska  <mliska@suse.cz>
1118         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
1119         which is equivalent to searching for this in clones chain.
1120         * symtab.c (symtab_node::verify_base): Similarly compare ASM
1121         names with a neighbour and special case first node in a chain.
1123 2019-01-25  Jason Merrill  <jason@redhat.com>
1125         PR c++/80916 - spurious "static but not defined" warning.
1126         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
1127         for an internal symbol with DECL_EXTERNAL.
1129 2019-04-07  Richard Biener  <rguenther@suse.de>
1131         PR middle-end/89618
1132         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1133         * tree-inline.c (copy_loops): Simplify.
1135 2019-03-07  Martin Liska  <mliska@suse.cz>
1137         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1139 2019-03-07  Richard Biener  <rguenther@suse.de>
1141         PR tree-optimization/89595
1142         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1143         stmt iterator as reference, take boolean output parameter to
1144         indicate whether the stmt was removed and thus the iterator
1145         already advanced.
1146         (dom_opt_dom_walker::before_dom_children): Re-iterate over
1147         stmts created by folding.
1149 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
1151         PR c++/89585
1152         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1153         at toplevel.
1155 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
1157         PR rtl-optimization/88845
1158         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1159         LRA.
1160         * lra.c (remove_scratches_1): New function.
1161         (remove_scratches): Use it.
1162         (lra_emit_move): Likewise.
1164 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
1166         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1167         unaligned_access variable.
1168         * config/arc/arc.c (arc_override_options): Set unaligned access
1169         default on for HS CPUs.
1170         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1172 2019-03-06  Martin Liska  <mliska@suse.cz>
1174         PR gcov-profile/89577
1175         * doc/gcov.texi: Prefer to use --coverage.
1176         * doc/sourcebuild.texi: Likewise.
1178 2019-03-02  Jason Merrill  <jason@redhat.com>
1180         PR c++/86485 - -Wmaybe-unused with empty class ?:
1181         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1183 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
1185         PR target/89587
1186         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1187         if_multiarch.
1189         PR middle-end/89590
1190         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1191         exactly one argument.
1193 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
1194             Richard Sandiford  <richard.sandiford@arm.com>
1196         PR tree-optimization/89570
1197         * match.pd (vec_cond into cond_op simplification): Don't use
1198         get_conditional_internal_fn, use as_internal_fn (cond_op).
1200 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
1202         PR target/89222
1203         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1204         to decide when to split off a non-zero offset from a symbol.
1205         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1206         in function symbols.
1208 2019-03-05  Richard Biener  <rguenther@suse.de>
1210         PR tree-optimization/89594
1211         * tree-if-conv.c (pass_if_conversion::execute): Handle
1212         case where .LOOP_VECTORIZED_FUNCTION was removed.
1214 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
1216         PR bootstrap/89560
1217         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1218         instead alloca it only when needed with the needed size.
1220         PR tree-optimization/89570
1221         * match.pd (vec_cond into cond_op simplification): Guard with
1222         vectorized_internal_fn_supported_p test and #if GIMPLE.
1224         PR tree-optimization/89566
1225         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1226         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1227         Punt if get_user_idx_format succeeds, but idx_format argument is
1228         not provided or doesn't have pointer type, or if idx_args is above
1229         number of provided arguments.
1231 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
1233         PR tree-optimization/89437
1234         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1236 2019-03-04  Richard Biener  <rguenther@suse.de>
1238         PR middle-end/89572
1239         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1240         safe_dyn_cast.
1242 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
1244         PR tree-optimization/89487
1245         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1246         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1247         (distribute_loop): Don't do runtime alias check if there is non-
1248         addressable data reference.
1249         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1250         is a register variable.
1252 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
1254         PR target/89506
1255         * config/arm/arm.md (cmpsi2_addneg): Use
1256         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1257         If operands[2] is 0 or INT_MIN, force use of subs.
1258         (*compare_scc splitter): Use gen_int_mode.
1259         (*negscc): Likewise.
1260         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1262 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
1263             Monk Chiang  <sh.chiang04@gmail.com>
1265         * common/config/riscv/riscv-common.c: Include sstream.
1266         (riscv_subset_list::to_string): New.
1267         (riscv_arch_str): Likewise.
1268         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1269         * config.in: Regen.
1270         * config/riscv/riscv-protos.h (riscv_arch_str): New.
1271         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1272         (riscv_emit_attribute): New.
1273         (riscv_file_start): Emit attribute if needed.
1274         (riscv_option_override): Init riscv_emit_attribute_p.
1275         * config/riscv/riscv.opt (mriscv-attribute): New option.
1276         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1277         * configure: Regen.
1278         * doc/install.texi: Document --with-riscv-attribute.
1279         * doc/invoke.texi: Document -mriscv-attribute.
1281         * common/config/riscv/riscv-common.c:
1282         Include config/riscv/riscv-protos.h.
1283         (INCLUDE_STRING): Defined.
1284         (RISCV_DONT_CARE_VERSION): Defined.
1285         (riscv_subset_t): Declare.
1286         (riscv_subset_t::riscv_subset_t): New.
1287         (riscv_subset_list): Declare.
1288         (riscv_subset_list::riscv_subset_list): New.
1289         (riscv_subset_list::~riscv_subset_list): Likewise.
1290         (riscv_subset_list::parsing_subset_version): Likewise.
1291         (riscv_subset_list::parse_std_ext): Likewise.
1292         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1293         (riscv_subset_list::add): Likewise.
1294         (riscv_subset_list::lookup): Likewise.
1295         (riscv_subset_list::xlen): Likewise.
1296         (riscv_subset_list::parse): Likewise.
1297         (riscv_supported_std_ext): Likewise.
1298         (current_subset_list): Likewise.
1299         (riscv_parse_arch_string): Using riscv_subset_list::parse to
1300         parse.
1302 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
1304         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1305         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1306         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1308 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
1310         PR rtl-optimization/85899
1311         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1312         fallthru edges leading to the exit block.
1314 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
1316         PR target/89517
1317         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1318         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1320 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
1322         PR tree-optimization/89535
1323         * tree-vect-stmts.c (vectorizable_call): Record the vector types
1324         for each operand.  Calculate the fallback choice for mask operands
1325         and pass it to vect_get_vec_def_for_operand.
1327 2019-03-01  Richard Biener  <rguenther@suse.de>
1329         PR middle-end/89541
1330         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1331         get virtual operands.
1332         (get_expr_operands): Handle CONST_DECL like other decls.
1334 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
1336         PR middle-end/89503
1337         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1338         on DECL_P and EXPR_P.
1340 2019-03-01  Richard Biener  <rguenther@suse.de>
1342         PR middle-end/89497
1343         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1344         argument, defaulted to zero.
1345         * passes.c (execute_function_todo): Pass down SSA update flags
1346         to cleanup_tree_cfg.
1347         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1348         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1349         form if requested.
1350         (cleanup_tree_cfg): Get and pass down SSA update flags.
1352 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
1354         PR bootstrap/89539
1355         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1356         early_lto_debug argument.
1358 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1360         PR tree-optimization/89536
1361         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1362         only whether bit #0 of the value is 0 instead of the entire value.
1364 2019-02-28  Marek Polacek  <polacek@redhat.com>
1366         PR c++/87068 - missing diagnostic with fallthrough statement.
1367         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1368         at the end of a seq, save its location to walk_stmt_info.
1369         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1370         a switch.
1372 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
1374         PR lto/88585
1375         * tree.c (find_atomic_core_type): Move ahead in file.
1376         (check_base_type): Correctly compare alignments of atomic types.
1378 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
1380         PR target/89455
1381         * config/i386/i386.c (get_builtin_code_for_version): Identify
1382         Westmere from PCLMUL, instead of AES.
1384 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
1386         PR target/89434
1387         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1388         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1389         -UINTVAL (...).
1391 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
1393         PR target/88530
1394         * config/aarch64/aarch64-option-extensions.def: Document it.
1395         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1396         if empty hwcaps.
1398 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
1400         PR c/89520
1401         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1402         builtins if they don't have a single scalar floating point argument.
1403         Formatting fixes.
1405 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1407         PR rtl-optimization/89490
1408         * varasm.c (get_block_for_section): Bail out for mergeable sections.
1409         (default_use_anchors_for_symbol_p, output_object_block): Assert the
1410         block section is not mergeable.
1412 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
1414         PR target/70341
1415         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
1416         old define_insn to ...
1417         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
1418         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1419         Rename old define_insn to ...
1420         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
1421         (thumb2_casesi_internal_pic): New define_expand.  Rename old
1422         define_insn to ...
1423         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
1424         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1425         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1427 2019-02-27  Richard Biener  <rguenther@suse.de>
1429         PR debug/88878
1430         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1432 2019-02-27  Richard Biener  <rguenther@suse.de>
1434         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1435         building.
1437 2019-02-27  Richard Biener  <rguenther@suse.de>
1439         PR debug/88878
1440         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1441         parameter, prefix section name with .gnu.debuglto_ if true.
1442         (dwarf2out_finish): Pass false to output_comdat_type_unit.
1443         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1445 2019-02-27  Richard Biener  <rguenther@suse.de>
1447         PR debug/89514
1448         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1449         rather than on use_debug_types, doing what output_die does.
1450         (value_format): Likewise.
1452 2019-02-27  Martin Jambor  <mjambor@suse.cz>
1453             Martin Sebor  <msebor@redhat.com>
1455         * doc/invoke.texi (Warning Options): Reword description of
1456         -Wno-absolute-value.
1458 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
1460         PR tree-optimization/89280
1461         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1462         builtin_setjmp_setup_bb): New functions.
1463         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1464         When visiting __builtin_setjmp_setup block, queue in special
1465         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1466         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
1467         from visited after the loop if they don't have any visited successor
1468         blocks.
1470 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
1472         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1473         New function.
1474         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1476 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1478         PR c++/89507
1479         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1480         with types other than sizetype/ssizetype.
1482 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
1484         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1485         (enum sparc_processor_type): ...this.
1486         (enum sparc_code_model_type): New enumeration type.
1487         (enum sparc_memory_model_type): Tweak comments.
1488         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1489         (mtune): Likewise.
1490         (mcmodel): Use sparc_code_model enumeration and variable.
1491         (sparc_code_model): New enumeration.
1492         (mdebug): Add Undocumented marker.
1493         * config/sparc/sparc.h (enum cmodel): Delete.
1494         (sparc_cmodel): Likewise.
1495         (TARGET_CM_MEDLOW): Adjust to above renaming.
1496         (TARGET_CM_MEDMID): Likewise.
1497         (TARGET_CM_MEDANY): Likewise.
1498         (TARGET_CM_EMBMEDANY): Likewise.
1499         * config/sparc/sparc.c (sparc_cmodel): Delete.
1500         (sparc_option_override): Remove string/value mapping support for the
1501         code model.  Move code and memory model support to after the handling
1502         of target flags.  Do private machine setup last.
1503         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1504         (sparc_legitimize_reload_address): Likewise.
1505         (sparc_output_mi_thunk): Likewise.
1506         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1508 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1510         PR tree-optimization/89500
1511         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1512         (handle_builtin_strlen): Remove noncst_bound variable.  Always
1513         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
1514         cst if the first cst bytes starting at x are known to be non-zero,
1515         even if the string is not zero terminated.  Don't try to modify
1516         *si for strnlen.  Update strlen_to_stridx only for strlen or if
1517         we can prove strnlen returns the same value as strlen would.
1519 2019-02-26  Martin Liska  <mliska@suse.cz>
1521         * alloc-pool.h (struct pool_usage): Remove extra
1522         print_dash_line.
1523         * bitmap.h (struct bitmap_usage): Likewise.
1524         * ggc-common.c (struct ggc_usage): Likewise.
1525         * mem-stats.h (struct mem_usage): Likewise.
1526         (mem_alloc_description::dump): Print dash lines
1527         here and repeat header at the end of a table report.
1528         It's then more readable.
1529         * tree-phinodes.c (phinodes_print_statistics): Make
1530         horizontal alignment.
1531         * tree-ssanames.c (ssanames_print_statistics): Likewise.
1532         * vec.c (struct vec_usage): Remove extra print_dash_line.
1533         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1535 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1537         * doc/extend.texi (__builtin_object_size):
1538         Use @pxref instead of @xref inside parenthesis.
1539         (__builtin_has_attribute): Add missing comma after @xref.
1540         (__builtin_object_size): Ditto.
1541         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1542         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1543         in the list.
1545 2019-02-26  Jeff Law  <law@redhat.com>
1547         PR rtl-optimization/87761
1548         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1549         detect obviously dead insns and delete them.
1551 2019-02-26  Richard Biener  <rguenther@suse.de>
1553         PR tree-optimization/89505
1554         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1555         to handle restrict pointed-to vars with multiple subvars
1556         correctly.
1558 2019-02-26  Richard Biener  <rguenther@suse.de>
1560         PR tree-optimization/89489
1561         * tree-parloops.c (create_loop_fn): Copy over last_clique.
1563 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
1565         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1566         and move around comment.
1567         <BIT_AND_EXPR>: Likewise.
1568         <BIT_NOT_EXPR>: Add specific handling for boolean types.
1570 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1572         PR target/89474
1573         * config/i386/i386.c (remove_partial_avx_dependency): Call
1574         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1575         after changing possibly many instructions to use that pseudo.  Fix up
1576         insertion of v4sf_const0 setter at the start of bb.
1578 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
1580         PR c/80409
1581         * doc/extend.texi (Variadic Pointer Args): New section.
1583 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
1584             Martin Sebor  <msebor@gmail.com>
1586         * common.opt (Wattribute-alias): Likewise.
1587         * doc/invoke.texi (Option Summary): List general form of
1588         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
1589         (-Wmissing-attributes): Invert entry, rewrite and correct default.
1590         Add cross-references.
1591         (-Wattribute-alias): Rewrite and correct default.  Mention
1592         considered attributes (same as for -Wmissing-attributes).
1594 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
1596         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1597         (_mm_cvtpd_ps): Likewise.
1598         (_mm_cvttpd_epi32): Likewise.
1600         PR target/89338
1601         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
1602         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1604         PR target/89339
1605         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1607 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1609         PR target/88530
1610         * common/config/aarch64/aarch64-common.c
1611         (struct aarch64_option_extension): Add is_synthetic.
1612         (all_extensions): Use it.
1613         (TARGET_OPTION_INIT_STRUCT): Define hook.
1614         (struct gcc_targetm_common): Moved to end.
1615         (all_extensions_by_on): New.
1616         (opt_ext_cmp, typedef opt_ext): New.
1617         (aarch64_option_init_struct): New.
1618         (aarch64_contains_opt): New.
1619         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1620         * config/aarch64/aarch64-option-extensions.def
1621         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1622         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1623         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1624         Set is_synthetic to false.
1625         (crypto): Set is_synthetic to true.
1626         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1627         SYNTHETIC.
1629 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1631         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1632         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1633         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1634         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1635         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1636         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1637         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1638         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1639         Rename ...
1640         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1641         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1642         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1643         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1644         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1645         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1646         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1647         vfmlsl_laneq_high_f16): ... To this.
1648         * config/arm/neon.md: Update comments.
1650 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1652         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1653         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1654         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1655         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1656         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1657         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1658         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1659         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1660         Rename ...
1661         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1662         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1663         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1664         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1665         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1666         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1667         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1668         vfmlslq_laneq_high_f16): ... To this.
1670 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
1672         PR rtl-optimization/86096
1673         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1674         comparing mw_order values.
1676 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
1678         PR target/89434
1679         * config/arm/arm.md (*subsi3_carryin_const): Use
1680         arm_neg_immediate_operand predicate instead of
1681         arm_not_immediate_operand, "L" constraint instead of "K" and
1682         print it using %n2 instead of %B2.
1683         (*subsi3_carryin_const0): New define_insn.
1684         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1685         instead of arm_not_operand and "I" constraint instead of "K" and
1686         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
1687         another match_operand and in the condition check that it is negation
1688         of operands[2].
1689         (*subsi3_carryin_compare_const0): New define_ins.
1690         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1691         *subsi3_carryin_const.
1692         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1693         split into *subsi3_carryin_compare_const0 if the highpart is zero.
1695         PR target/89438
1696         * config/arm.vfp.md (*negdf2_vfp): Use
1697         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1698         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1700 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
1702         PR rtl-optimization/89445
1703         * simplify-rtx.c (simplify_ternary_operation): Don't use
1704         simplify_merge_mask on operands that may trap.
1705         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1706         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
1707         second operand is CONST_VECTOR, check if any element could be zero.
1708         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1709         their operands can trap.
1711 2019-02-23  Martin Sebor  <msebor@redhat.com>
1713         * gimple-ssa-sprintf.c (target_strtol): Rename...
1714         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
1715         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
1716         check for range error.
1718 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1720         PR driver/69471
1721         * opts-common.c (prune_options): Also prune joined switches
1722         with Negative and RejectNegative.
1723         * config/i386/i386.opt (march=): Add Negative(march=).
1724         (mtune=): Add Negative(mtune=).
1725         * doc/options.texi: Document Negative used together with Joined
1726         and RejectNegative.
1728 2019-02-22  Martin Sebor  <msebor@redhat.com>
1730         * doc/extend.texi (Other Builtins): Add
1731         __builtin_is_constant_evaluated.
1733 2019-02-22  Richard Biener  <rguenther@suse.de>
1735         PR tree-optimization/87609
1736         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1738 2019-02-22  Jeff Law  <law@redhat.com>
1740         PR rtl-optimization/87761
1741         * config/mips/mips.md: Add new combiner pattern to recognize
1742         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1744 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
1746         PR target/89324
1747         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1748         destination register in peepholes generating patterns for ADDS/SUBS.
1749         (add<mode>3_compare0,
1750         *addsi3_compare0_uxtw, add<mode>3_compareC,
1751         add<mode>3_compareV_imm, add<mode>3_compareV,
1752         *adds_<optab><ALLX:mode>_<GPI:mode>,
1753         *subs_<optab><ALLX:mode>_<GPI:mode>,
1754         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1755         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1756         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1757         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1758         sub<mode>3_compare1): Allow stack pointer for source register.
1759         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1761 2019-02-22  Martin Sebor  <msebor@redhat.com>
1763         PR tree-optimization/88993
1764         PR tree-optimization/88853
1765         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1766         New helper.
1767         (sprintf_dom_walker::call_info::is_string_func): New helper.
1768         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1769         for formatted string functions.
1770         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1772 2019-02-22  Martin Sebor  <msebor@redhat.com>
1774         PR c/89425
1775         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1776         unreachable subexpressions.
1778 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
1779             Hongtao Liu  <hongtao.liu@intel.com>
1780             Sunil K Pandey  <sunil.k.pandey@intel.com>
1782         PR target/87007
1783         * config/i386/i386-passes.def: Add
1784         pass_remove_partial_avx_dependency.
1785         * config/i386/i386-protos.h
1786         (make_pass_remove_partial_avx_dependency): New.
1787         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1788         New function.
1789         (pass_data_remove_partial_avx_dependency): New.
1790         (pass_remove_partial_avx_dependency): Likewise.
1791         (make_pass_remove_partial_avx_dependency): Likewise.
1792         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1793         (*extendsfdf2): Add avx_partial_xmm_update.
1794         (truncdfsf2): Likewise.
1795         (*float<SWI48:mode><MODEF:mode>2): Likewise.
1796         (SF/DF conversion splitters): Disabled for TARGET_AVX.
1798 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
1800         PR middle-end/85598
1801         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1802         analysis for pass.
1804 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
1806         PR target/89444
1807         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1808         (PTA_SKYLAKE): Add PTA_AES.
1809         (PTA_GOLDMONT): Likewise.
1811 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
1813         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1814         instruction if enabled.
1815         (aarch64_override_options): Remove reference to return address key.
1817 2019-02-22  Richard Biener  <rguenther@suse.de>
1819         PR tree-optimization/89440
1820         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1821         not necessary assert.
1823 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1825         PR fortran/72741
1826         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1827         (oacc_replace_fn_attrib_attr): ... this new function.
1828         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1829         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1831 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1833         * config/arm/arm-cpus.in (ares): Rename to...
1834         (neoverse-n1): ... This.  Add ares as alias.
1835         * config/arm/arm-tables.opt: Regenerate.
1836         * config/arm/arm-tune.md: Likewise.
1837         * doc/invoke.txt (ARM Options): Document neoverse-n1.
1839 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1841         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1842         * config/aarch64/aarch64-tune.md: Regenerate.
1843         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1845 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1847         * config/aarch64/aarch64.c (ares_tunings): Rename to...
1848         (neoversen1_tunings): ... This.
1849         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1850         (neoverse-n1): New CPU.
1851         * config/aarch64/aarch64-tune.md: Regenerate.
1852         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1854 2019-02-22  Richard Biener  <rguenther@suse.de>
1856         PR middle-end/87609
1857         * cfghooks.h (dependence_hash): New typedef.
1858         (struct copy_bb_data): New type.
1859         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1860         (duplicate_block): Likewise.
1861         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1862         (copy_bbs): Create and pass down copy_bb_data.
1863         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1864         (rtl_duplicate_bb): Likewise.
1865         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1866         remap dependence info.
1868 2019-02-22  Richard Biener  <rguenther@suse.de>
1870         PR tree-optimization/87609
1871         * tree-core.h (tree_base): Document special clique values.
1872         * tree-inline.c (remap_dependence_clique): Do not use the
1873         special clique value of one.
1874         (maybe_set_dependence_info): Use clique one.
1875         (clear_dependence_clique): New callback.
1876         (compute_dependence_clique): Clear clique one from all refs
1877         before assigning it (again).
1879 2019-02-21  Martin Sebor  <msebor@redhat.com>
1881         * doc/extend.texi (__clear_cache): Correct signature.
1883 2019-02-21  Ian Lance Taylor  <iant@golang.org>
1885         PR go/89170
1886         * varasm.c (decode_addr_const): Call lookup_constant_def rather
1887         than output_constant_def.
1888         (add_constant_to_table): New static function.
1889         (output_constant_def): Call add_constant_to_table.
1890         (tree_output_constant_def): Likewise.
1892 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
1894         PR c++/89285
1895         * builtins.c (fold_builtin_arith_overflow): If first two args are
1896         INTEGER_CSTs, set intres and ovfres to constants rather than calls
1897         to ifn.
1899 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1901         PR target/87412
1902         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1903         error for -mindirect-branch/-mfunction-return with incompatible
1904         -fcf-protection.
1906 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
1908         PR bootstrap/88714
1909         * constraints.md (q): Remove.
1910         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1911         instead of q.
1913 2019-02-21  Martin Jambor  <mjambor@suse.cz>
1915         PR hsa/89302
1916         * omp-general.c (omp_extract_for_data): Removed a duplicate call
1917         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1918         (omp_adjust_for_condition): ...here.  Added necessary parameters.
1919         * omp-general.h (omp_adjust_for_condition): Updated declaration.
1920         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1921         proper values to new parameters of omp_adjust_for_condition.
1923 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1925         PR middle-end/89412
1926         * expr.c (expand_assignment): If result is a MEM, use change_address
1927         instead of simplify_gen_subreg.
1929 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1930             David Malcolm  <dmalcolm@redhat.com>
1932         PR middle-end/89091
1933         * fold-const.c (decode_field_reference): Return NULL_TREE if
1934         lang_hooks.types.type_for_size returns NULL.  Check it before
1935         overwriting *exp_.  Use return NULL_TREE instead of return 0.
1937 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1939         PR middle-end/88074
1940         PR middle-end/89415
1941         * toplev.c (do_compile): Double the emin/emax exponents to workaround
1942         buggy mpc_norm.
1944 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1946         PR target/89397
1947         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1948         TARGET_SSE in addition to TARGET_SSE_MATH.
1950         (ix86_excess_precision): Ditto.
1951         (ix86_float_exceptions_rounding_supported_p): Ditto.
1952         (use_rsqrt_p): Ditto.
1953         * config/i386/sse.md (rsqrt<mode>2): Ditto.
1955 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
1957         PR c/89410
1958         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1959         linenum_arith_t when determining if two adjacent line spans are
1960         close enough to merge.
1961         (diagnostic_show_locus): Use linenum_arith_t when iterating over
1962         lines within each line_span.
1964 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
1966         PR target/86487
1967         * lra-constraints.c(uses_hard_regs_p): Fix handling of
1968         paradoxical SUBREGS.
1970 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
1972         PR target/88100
1973         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1974         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1975         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1976         range checking it.
1978 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
1980         * config/gcn/gcn.c (print_operand): Fix typo.
1982 2019-02-19  Richard Biener  <rguenther@suse.de>
1984         PR middle-end/88074
1985         * toplev.c (do_compile): Initialize mpfr's exponent range
1986         based on available float modes.
1988 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
1990         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1991         as long as the epilogue isn't completed.
1993 2019-02-18  Martin Sebor  <msebor@redhat.com>
1995         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1996         __has_cpp_attribute, and __has_include.
1998 2019-02-18  Martin Sebor  <msebor@redhat.com>
2000         * doc/invoke.texi (-Wreturn-type): Correct and expand.
2002 2019-02-18  Martin Sebor  <msebor@redhat.com>
2004         PR middle-end/89294
2005         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
2006         expression.
2007         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
2009 2019-02-18  Richard Biener  <rguenther@suse.de>
2011         PR tree-optimization/89296
2012         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
2013         of no-warning flag to cases that might emit the bogus warning.
2015 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
2017         PR bootstrap/88714
2018         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
2019         "q" constraint.
2020         * config/arm/vfp.md (*movdi_vfp): Likewise.
2021         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
2022         "q" constraint for operands[0].
2024         PR target/89369
2025         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
2026         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
2027         pattern in a temporary buffer.
2028         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
2029         than 64-operands[2].
2031         PR target/89361
2032         * config/s390/s390.c (s390_indirect_branch_attrvalue,
2033         s390_indirect_branch_settings): Define unconditionally.
2034         (s390_set_current_function): Likewise, but guard the whole body except
2035         the s390_indirect_branch_settings call with
2036         #if S390_USE_TARGET_ATTRIBUTE.
2037         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
2039         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
2040         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
2041         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
2042         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
2043         HOST_WIDE_INT_1U instead of 1ULL.
2044         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
2045         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
2046         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
2047         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
2048         instead of 1UL.
2049         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
2050         instead of 1ul.
2052 2019-02-18  Martin Jambor  <mjambor@suse.cz>
2054         PR tree-optimization/89209
2055         * tree-sra.c (create_access_replacement): New optional parameter
2056         reg_tree.  Use it as a type if non-NULL and access type is not of
2057         a register type.
2058         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
2059         to create_access_replacement.
2060         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
2061         Check lacc is non-NULL before attempting to re-create it on the RHS.
2063 2019-02-18  Martin Liska  <mliska@suse.cz>
2065         PR ipa/89306
2066         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
2067         by default.
2068         (symbol_table::free_edge): Recycle m_summary_id.
2069         * cgraph.h (get_summary_id): New.
2070         (symbol_table::release_symbol): Set m_summary_id to -1
2071         by default.
2072         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
2073         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
2074         function_summary to fast_function_summary.
2075         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
2076         * ipa-pure-const.c (class funct_state_summary_t):
2077         Switch from function_summary to fast_function_summary.
2078         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
2079         (class ipa_ref_opt_summary_t): Switch from function_summary
2080         to fast_function_summary.
2081         * symbol-summary.h (class function_summary_base): New class
2082         that is created from base of former function_summary.
2083         (function_summary_base::unregister_hooks): New.
2084         (class function_summary): Inherit from function_summary_base.
2085         (class call_summary_base): New class
2086         that is created from base of former call_summary.
2087         (class call_summary): Inherit from call_summary_base.
2088         (struct is_same): New.
2089         (class fast_function_summary): New summary class.
2090         (class fast_call_summary): New summary class.
2091         * vec.h (vec_safe_grow_cleared): New function.
2093 2019-02-18  Martin Liska  <mliska@suse.cz>
2095         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
2096         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
2097         * doc/tm.texi: Document new target hook.
2098         * doc/tm.texi.in: Likewise.
2099         * target.def: Add new target macro.
2100         * gcc.c (find_fortran_preinclude_file): Do not search multilib
2101         suffixes.
2103 2019-02-17  Alan Modra  <amodra@gmail.com>
2105         PR target/89271
2106         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
2107         output reg on add insn.
2108         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
2110 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
2112         PR target/89372
2113         * config/i386/sse.md (ssedoublemode): Remove V4HI.
2114         (PMULHRSW): Likewise.
2115         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
2116         TARGET_AVX2.
2117         (ssse3_pmulhrswv4hi3): New expander.
2119 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
2121         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
2122         MMX.  Add isa attribute.
2124 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
2126         PR rtl-optimization/66152
2127         * builtins.h (c_readstr): Declare.
2128         * builtins.c (c_readstr): Remove forward declaration.  Add
2129         null_terminated_p argument, if false, read all bytes from the
2130         string instead of stopping after '\0'.
2131         * expr.c (string_cst_read_str): New function.
2132         (store_expr): Use string_cst_read_str instead of
2133         builtin_strncpy_read_str.  Try to store by pieces the whole
2134         exp_len first, and only if that fails, split it up into
2135         store by pieces followed by clear_storage.  Formatting fix.
2137         * config/i386/i386.md (*movqi_internal): Remove static from
2138         buf variable.  Use output_asm_insn (buf, operands); return "";
2139         instead of return buf;.
2140         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2141         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2142         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2144 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2146         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2147         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2148         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2149         (CC1_SPEC): Likewise.
2150         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2152 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2154         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2155         the base address on 64-bit strict-alignment platforms.
2157 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
2159         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2161 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2163         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2165 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
2167         PR rtl-optimization/88308
2168         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2169         on copied instruction.
2171 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2173         * final.c (insn_current_reference_address): Replace test on JUMP_P
2174         with test on jump_to_label_p.
2175         * config/visium/visium-passes.def: New file.
2176         * config/visium/t-visium (PASSES_EXTRA): Define.
2177         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2178         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2179         (TRAMPOLINE_ALIGNMENT): Define.
2180         * config/visium/visium.c (visium_option_override): Do not register
2181         the machine-specific reorg pass here.
2182         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2183         for the GR6.
2184         (output_branch): Adjust threshold for long branch instruction.
2185         * config/visium/visium.md (cpu): Move around.
2186         (length): Adjust for the GR6.
2188 2019-02-15  Richard Biener  <rguenther@suse.de>
2189             Jakub Jelinek  <jakub@redhat.com>
2191         PR tree-optimization/89278
2192         * tree-loop-distribution.c: Include tree-eh.h.
2193         (generate_memset_builtin, generate_memcpy_builtin): Call
2194         rewrite_to_non_trapping_overflow on builtin->size before passing it
2195         to force_gimple_operand_gsi.
2197 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
2199         PR other/89342
2200         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2201         optimize_debug.
2202         * opth-gen.awk: Likewise.
2204 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2206         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2207         Enable MMX, SSE and SSE2 by default.
2208         * config/i386/i386.c (ix86_option_override_internal): Do not
2209         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2211 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
2213         PR rtl-optimization/89354
2214         * combine.c (make_extraction): Punt if extraction_mode is narrower
2215         than len bits.
2217 2019-02-14  Maya Rashish  <coypu@sdf.org>
2219         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2220         * config/netbsd-d.c: New file.
2221         * config/t-netbsd: Add netbsd-d.o
2223 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
2225         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2226         affects_type_identity to true for aarch64_vector_pcs.
2227         (aarch64_comp_type_attributes): New function.
2228         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2230 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
2232         PR target/88850
2233         * config/arm/iterators.md (ANY64): Add V4HF.
2235 2019-02-14  Martin Liska  <mliska@suse.cz>
2237         PR rtl-optimization/89242
2238         * dce.c (delete_unmarked_insns): Call free_dominance_info we
2239         process a transformation.
2241 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
2243         PR tree-optimization/89314
2244         * fold-const.c (fold_binary_loc): Cast strlen argument to
2245         const char * before dereferencing it.  Formatting fixes.
2247         PR middle-end/89284
2248         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2250 2019-02-13  Ian Lance Taylor  <iant@golang.org>
2252         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2253         and set current index for other optimizations.
2255 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2257         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2258         nonimmediate_operand as operand 2 predicate.
2259         (vec_set<VF2_512_256:mode>_0): Ditto.
2260         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2261         (*vec_concatv2si): Remove alternative 2.
2262         (*vec_concatv4si_0): Use vm constraint for alternative 0.
2263         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2264         (vec_concatv2di): Split alternatives 4,5,6 to ...
2265         (*vec_concatv2di_0) ... new pattern.
2267 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
2269         PR target/89190
2270         * config/arm/arm.c (ldm_stm_operation_p) Set
2271         addr_reg_in_reglist correctly for first register.
2272         (load_multiple_sequence): Remove dead base check.
2273         (gen_ldm_seq): Correctly set write_back for Thumb-1.
2275 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
2277         PR target/88847
2278         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2279         Expose as @aarch64_pred_mov.
2280         * config/aarch64/aarch64.c (aarch64_classify_address):
2281         Use expand_insn which legitimizes operands.
2283 2019-02-13  Martin Liska  <mliska@suse.cz>
2285         * builtins.h (expand_builtin_with_bounds): Remove declaration.
2286         * calls.c (struct arg_data): Remove special_slot, pointer_arg
2287         and pointer_offset fields.
2288         (initialize_argument_information): Remove usage of dead
2289         fields.
2290         * cgraph.h (struct cgraph_thunk_info): Remove
2291         add_pointer_bounds_args.
2292         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2293         fields.
2294         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2295         fields.
2296         * config/i386/i386.c (ix86_function_arg_advance): Remove
2297         unrelated comment.
2298         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2299         (def_builtin):  Remove usage of dead
2300         fields.
2301         (ix86_add_new_builtins): Likewise.
2302         * ipa-fnsummary.c (compute_fn_summary): Likewise.
2303         * ipa-icf.c (sem_function::equals_wpa): Likewise.
2304         (sem_function::init): Likewise.
2305         (sem_variable::merge): Likewise.
2306         * ipa-visibility.c (function_and_variable_visibility): Likewise.
2307         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2308         * lto-cgraph.c (lto_output_node): Likewise.
2309         (lto_output_varpool_node): Likewise.
2310         (input_node): Likewise.
2311         (input_varpool_node): Likewise.
2312         * lto-streamer-out.c (lto_output): Likewise.
2313         * tree-inline.c (expand_call_inline): Remove usage of
2314         assign_stmts.
2315         * tree-inline.h (struct copy_body_data): Likewise.
2316         * varpool.c (varpool_node::dump): Likewise.
2318 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
2320         PR middle-end/89303
2321         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2322         into pt->vars_contains_escaped_heap instead of setting
2323         pt->vars_contains_escaped_heap to it.
2325         PR middle-end/89281
2326         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2327         INTVAL (size), compare it to GET_MODE_MASK instead of
2328         1 << GET_MODE_BITSIZE.
2330         PR target/89290
2331         * config/i386/predicates.md (x86_64_immediate_operand): Allow
2332         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2333         -mcmodel=large.
2335 2019-02-13  Martin Liska  <mliska@suse.cz>
2337         PR lto/88858
2338         * cfgrtl.c (remove_barriers_from_footer): New function.
2339         (try_redirect_by_replacing_jump): Use it.
2340         (cfg_layout_redirect_edge_and_branch): Likewise.
2342 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
2344         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2345         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2346         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2347         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2348         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2349         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2350         New BU_CRYPTO_2.
2351         * config/rs6000/rs6000.c (builtin_function_type)
2352         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2353         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2354         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2355         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2356         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2358 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
2360         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2361         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2363 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
2365         PR target/89229
2366         * config/i386/i386.md (*movoi_internal_avx): Revert revision
2367         268678 and revision 268657.
2368         (*movti_internal): Likewise.
2370 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
2372         PR target/89233
2373         * config/s390/s390.c (s390_decompose_address): Update comment.
2374         (s390_check_qrst_address): Reject invalid address forms after
2375         LRA.
2377 2019-02-12  Martin Liska  <mliska@suse.cz>
2379         PR lto/88876
2380         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2381         we need default values of funct_state for a function that
2382         is not optimized.
2384 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
2386         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2387         the object to pick the size of stores on strict-alignment platforms.
2389         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2390         (*movdi_insn_sp32): Likewise.
2391         (*movdi_insn_sp64): Likewise.
2393 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
2395         PR lto/88677
2396         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2397         types that needs constructiong.
2398         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2400 2019-02-12  Richard Biener  <rguenther@suse.de>
2402         PR tree-optimization/89253
2403         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2404         duplicate the loop.
2406 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
2408         PR lto/88147
2409         * input.c (selftest::test_line_offset_overflow): New selftest.
2410         (selftest::input_c_tests): Call it.
2412 2019-02-11  Martin Sebor  <msebor@redhat.com>
2414         PR tree-optimization/88771
2415         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2416         when -Wstringop-overflow is set.
2417         (builtin_memref::builtin_memref): Adjust excessive upper bound
2418         only when lower bound is not excessive.
2419         (maybe_diag_overlap): Detect and diagnose excessive bounds via
2420         -Wstringop-ovefflow.
2421         (maybe_diag_offset_bounds): Rename...
2422         (maybe_diag_access_bounds): ...to this.
2423         (check_bounds_or_overlap): Adjust for name change above.
2425 2019-02-11  Martin Sebor  <msebor@redhat.com>
2427         PR c++/87996
2428         * builtins.c (max_object_size): Move from here...
2429         * builtins.h (max_object_size): ...and here...
2430         * tree.c (max_object_size): ...to here...
2431         * tree.h (max_object_size): ...and here.
2433 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
2435         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2436         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2437         for correct semantics.
2439 2019-02-11  Alan Modra  <amodra@gmail.com>
2441         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2442         -mlongcall and -mpltseq.
2443         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2444         (RS/6000 and PowerPC Options <-mpltseq>): Document.
2445         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2446         * config/rs6000/sysv4.opt (mpltseq): New option.
2447         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2448         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2449         support is lacking.  Don't allow -mpltseq with -mbss-plt.
2450         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2451         -mpltseq given for ELFv1.
2452         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2453         Only use UNSPEC_PLTSEQ for inline PLT calls.
2454         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
2455         use UNSPEC_PLTSEQ for inline PLT calls.
2456         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2457         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2458         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2459         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2460         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2461         (pltseq_mtctr_<mode>): Likewise.
2463 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2465         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2466         Solaris ld.
2467         * configure: Regenerate.
2469 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
2471         PR bootstrap/88714
2472         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2473         instead of r.
2475 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
2477         * function.c (assign_parm_setup_block): Use the stored
2478         size, not the passed size, when allocating stack-space,
2479         also for a parameter with alignment larger than
2480         MAX_SUPPORTED_STACK_ALIGNMENT.
2482 2019-02-11  Martin Liska  <mliska@suse.cz>
2484         PR ipa/89009
2485         * ipa-cp.c (build_toporder_info): Remove usage of a param.
2486         * ipa-inline.c (inline_small_functions): Likewise.
2487         * ipa-pure-const.c (propagate_pure_const): Likewise.
2488         (propagate_nothrow): Likewise.
2489         * ipa-reference.c (propagate): Likewise.
2490         * ipa-utils.c (struct searchc_env): Remove unused field.
2491         (searchc): Always search across AVAIL_INTERPOSABLE.
2492         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2493         the only called IPA pure const can properly not propagate
2494         across interposable boundary.
2495         * ipa-utils.h (ipa_reduced_postorder): Remove param.
2497 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
2499         * config/nds32/nds32.md (call_internal, call_value_internal,
2500         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2502 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
2504         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2505         typo.
2507 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2509         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2510         in comments
2512 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2514         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2516 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
2518         PR tree-optimization/89268
2519         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2520         if preds is non-NULL.
2522 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2524         PR lto/89272
2525         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2526         polymorphic types.
2528 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
2530         * config/nds32/nds32.md (trap): New pattern.
2532 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
2534         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2535         dwarf span.
2537 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2539         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2540         to split POST_INC.
2542 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2544         * ipa-visibility.c (localize_node): Also do not localize
2545         LDPR_PREVAILING_DEF_IRONLY_EXP.
2547 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2549         PR lto/87957
2550         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2551         instead of type_with_linkage.
2553 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2555         PR ipa/88755
2556         * params.def (uninlined-function-insns, uninlined-function-time,
2557         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2558         bound so we don't get overflows.
2560 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
2562         * config/rs6000/rs6000-string.c (expand_compare_loop,
2563         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2564         memcmp/strncmp.
2566 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
2568         PR middle-end/89246
2569         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2570         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2571         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2573 2019-02-09  Alan Modra  <amodra@gmail.com>
2575         PR target/88343
2576         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2577         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
2578         setup.
2580 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
2582         PR middle-end/88560
2583         * lra-constraints.c (process_alt_operands): Don't increase reject
2584         for memory when offset memory is required.
2586 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
2588         * config/s390/vector.md: Implement vector copysign.
2590 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
2592         * expr.c (expand_constructor): Correct indentations.
2594 2019-02-08  Richard Biener  <rguenther@suse.de>
2596         PR tree-optimization/89247
2597         * tree-if-conv.c: Include tree-cfgcleanup.h.
2598         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2599         (tree_if_conversion): Pass through predicate vector.
2600         (pass_if_conversion::execute): Do CFG cleanup and SSA update
2601         inline, see if any if-converted loops we refrece in
2602         LOOP_VECTORIZED calls vanished and fixup.
2603         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2605 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
2607         * config/s390/constraints.md (jdd): New constraint.
2609 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
2611         PR target/89229
2612         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2613         upper 16 vector registers without TARGET_AVX512VL.
2614         (*movti_internal): Likewise.
2616 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
2618         PR rtl-optimization/89234
2619         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2620         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2621         (copy_reg_eh_region_note_backward): Likewise.
2623 2019-02-08  Richard Biener  <rguenther@suse.de>
2625         PR middle-end/89223
2626         * tree-data-ref.c (initialize_matrix_A): Fail if constant
2627         doesn't fit in HWI.
2628         (analyze_subscript_affine_affine): Handle failure from
2629         initialize_matrix_A.
2631 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
2633         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2634         cfun everywhere.
2636 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
2638         PR tree-optimization/86637
2639         PR tree-optimization/89235
2640         * tree-vect-loop.c (optimize_mask_stores): Add an
2641         auto_purge_vect_location sentinel to ensure that vect_location is
2642         purged on exit.
2643         * tree-vectorizer.c
2644         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2645         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2646         to ensure that vect_location is purged on exit.
2647         (pass_slp_vectorize::execute): Likewise, replacing the manual
2648         reset.
2649         * tree-vectorizer.h (class auto_purge_vect_location): New class.
2651 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2653         * config/aarch64/iterators.md (max_opp): New code_attr.
2654         (USMAX): New code iterator.
2655         * config/aarch64/predicates.md (aarch64_smin): New predicate.
2656         (aarch64_smax): Likewise.
2657         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2658         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2659         MINUS (MAX MIN).
2661 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
2663         PR target/89229
2664         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2665         for TARGET_AVX512VL.
2666         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2668 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
2670         * config/s390/s390-builtin-types.def: Add new types.
2671         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2672         (s390_vec_xlw4): Make the memory operand into a const pointer.
2673         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2674         float.
2675         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2676         a new vector type with the alignment of the scalar memory operand.
2678 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
2679             Jakub Jelinek  <jakub@redhat.com>
2681         PR bootstrap/88714
2682         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2683         arm_count_ldrdstrd_insns): New declarations.
2684         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2685         MINUS.
2686         (valid_operands_ldrd_strd): New function.
2687         (arm_count_ldrdstrd_insns): New function.
2688         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2689         sets instead of single DImode set and define new insns to match this.
2691 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
2693         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2694         Make it a C initializer.
2696 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
2698         PR/target 88850
2699         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2701 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2703         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2704         Use neon_dot<q> for type.
2705         (neon_<sup>dot_lane<vsi2qi>): Likewise.
2707 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2709         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2710         Use neon_dot<q> for type.
2711         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2712         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2714 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
2716         PR rtl-optimization/89225
2717         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2718         sizes check.
2720 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
2722         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2723         after restoring registers saved to allocate the frame on Windows.
2725 2019-02-06  Richard Biener  <rguenther@suse.de>
2727         PR tree-optimization/89182
2728         * graphite.h (cached_scalar_evolution_in_region): Declare.
2729         * graphite.c (struct seir_cache_key): New.
2730         (struct sese_scev_hash): Likewise.
2731         (seir_cache): New global.
2732         (cached_scalar_evolution_in_region): New function.
2733         (graphite_transform_loops): Allocate and release seir_cache.
2734         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2735         cached_scalar_evolution_in_region.
2736         * graphite-scop-detection.c (scop_detection::can_represent_loop):
2737         Simplify.
2738         (scop_detection::graphite_can_represent_expr: Use
2739         cached_scalar_evolution_in_region.
2740         (scop_detection::stmt_simple_for_scop_p): Likewise.
2741         (find_params_in_bb): Likewise.
2742         (gather_bbs::before_dom_children): Likewise.
2743         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2744         (add_loop_constraints): Likewise.
2746 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
2748         PR middle-end/89210
2749         * fold-const-call.c (fold_const_vec_convert): Pass true as last
2750         operand to new_unary_operation only if both element types are integral
2751         and it isn't a widening conversion.  Return NULL_TREE if
2752         new_unary_operation failed.
2754 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
2756         PR target/88856
2757         * config/s390/s390.md: Remove load and test FP splitter.
2759 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
2761         PR target/89112
2762         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2763         expand_compare_loop, expand_block_compare_gpr,
2764         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2765         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2766         #include "profile-count.h" and "predict.h" for types and functions
2767         needed to work with REG_BR_PROB notes.
2769 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
2771         PR target/89112
2772         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2773         for the long branch case.
2775 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
2777         PR target/89188
2778         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2779         can throw, non-call exceptions are enabled and we can't delete
2780         dead exceptions or alter cfg.  Set must_clean if
2781         delete_insn_and_edges returns true, don't set it blindly for calls.
2782         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2784         PR rtl-optimization/89195
2785         * combine.c (make_extraction): For MEMs, don't extract bytes outside
2786         of the original MEM.
2788 2019-02-05  Martin Liska  <mliska@suse.cz>
2790         PR gcov-profile/89000
2791         * gcov.c (function_summary): Remove argument.
2792         (file_summary): New function.
2793         (print_usage): Replace tabs with spaces.
2794         (generate_results): Use new function file_summary.
2796 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
2798         PR target/89186
2799         * optabs.c (prepare_cmp_insn): Pass x and y to
2800         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2802 2019-02-05  Richard Biener  <rguenther@suse.de>
2804         PR middle-end/89150
2805         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2806         (struct bitmap_element): Drop chain_prev so we properly recurse on
2807         the prev member, supporting tree views.
2808         (struct bitmap_head): GTY skip the obstack member.
2810 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
2812         PR c/88698
2813         * doc/extend.texi (Vector Extensions): Add an example of using vector
2814         types together with x86 intrinsics.
2816 2019-02-04  Alan Modra  <amodra@gmail.com>
2818         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2819         str[] size to 160, and comment.
2821 2019-02-04  Alan Modra  <amodra@gmail.com>
2823         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2824         (rs6000_pltseq_template): Guard output of TLS markers with
2825         TARGET_TLS_MARKERS.
2826         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2827         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2828         to use inline PLT sequences.
2829         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2830         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2831         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2833 2019-02-04  Martin Liska  <mliska@suse.cz>
2835         PR ipa/88985
2836         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2837         out when ipa_fn_summaries does not contain entry for callee.
2839 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2841         * config/sparc/sparc.h: Remove superfluous blank lines.
2842         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2843         (got_register_rtx): ...this.
2844         (sparc_got): Adjust to above renaming.
2845         (sparc_tls_got): Likewise.
2846         (sparc_delegitimize_address): Likewise.
2847         (sparc_output_mi_thunk): Likewise.
2848         (sparc_init_pic_reg): Likewise.
2849         (save_local_or_in_reg_p): Fix test on the GOT register.
2850         (USE_HIDDEN_LINKONCE): Move around.
2851         (get_pc_thunk_name): Likewise.
2852         (gen_load_pcrel_sym): Likewise.
2853         (load_got_register): Likewise.
2855 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
2857         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2858         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2860 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2862         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2863         into consideration.
2865 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2867         * config.gcc (with_nds32_lib, glibc):
2868         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2869         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2870         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2872 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2874         PR target/89071
2875         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2876         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2877         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2878         (*rcpsf2_sse): Ditto.
2879         (*rsqrtsf2_sse): Ditto.
2880         (sse4_1_round<mode<2): Ditto.
2882 2019-02-03  Richard Biener  <rguenther@suse.de>
2884         PR debug/87295
2885         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2886         orig.
2888 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
2890         PR middle-end/87887
2891         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2892         Punt with warning on aggregate return or argument types.  Ignore
2893         type/mode checking for uniform arguments.
2895 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
2897         * combine.c (try_combine): Do not print "Can't combine" messages unless
2898         printing failed combination attempts.
2900 2019-02-01  Martin Jambor  <mjambor@suse.cz>
2902         PR hsa/87863
2903         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2904         segment and global segment variables before making them static.
2906 2019-02-01  Martin Jambor  <mjambor@suse.cz>
2908         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2909         missed optimization dump with dump_enabled_p.
2911 2019-02-01  Richard Biener  <rguenther@suse.de>
2913         PR middle-end/88597
2914         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2915         the instantiate cache.
2916         (instantiate_scev_binary): Elide second operand procesing
2917         if equal to the first.
2918         * tree-chrec.c (chrec_contains_symbols): Add visited set.
2919         (chrec_contains_undetermined): Likewise.
2920         (tree_contains_chrecs): Likewise.
2922 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
2924         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2926 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
2928         PR tree-optimization/89143
2929         * wide-int-range.h (wide_int_range_absu): Declare.
2930         * wide-int-range.cc (wide_int_range_absu): New function.
2931         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2933         PR tree-optimization/88107
2934         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2935         instead of assertion that eh_region_outermost is non-NULL, if it
2936         is NULL, set *ALL to true and return NULL.
2937         (move_sese_region_to_fn): Adjust caller, if all is set, call
2938         duplicate_eh_regions with NULL region.
2940 2019-02-01  Richard Biener  <rguenth@suse.de>
2942         PR rtl-optimization/88593
2943         * mode-switching.c (optimize_mode_switching): Free dominators before
2944         calling cleanup_cfg.
2946 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
2948         PR tree-optimization/88932
2949         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2951 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2953         PR middle-end/89137
2954         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2955         bogus clang warning.
2957 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2959         PR target/89071
2960         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2961         alternative to avoid partial SSE register stall for TARGET_AVX.
2962         (truncdfsf2): Ditto.
2963         (sse4_1_round<mode>2): Ditto.
2965 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
2967         PR tree-optimization/89008
2968         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2969         process anything of the form X * 0.
2971 2019-01-31  Richard Biener  <rguenther@suse.de>
2973         PR tree-optimization/89135
2974         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2975         with abnormal preds.
2977 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2979         PR sanitizer/89124
2980         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2981         always_inline callees into no_sanitize_address callers.
2983 2019-01-31  Richard Biener  <rguenther@suse.de>
2985         PR rtl-optimization/89115
2986         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2988 2019-01-30  Martin Sebor  <msebor@redhat.com>
2990         PR other/89106
2991         * doc/extend.texi (cast to a union): Correct and expand.
2993 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
2995         PR rtl-optimization/87246
2996         * lra-constraints.c (simplify_operand_subreg): Reload memory
2997         in subreg if the address became invalid.
2999 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
3001         PR target/87064
3002         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
3003         Disable for little-endian.
3005 2019-01-30  Richard Biener  <rguenther@suse.de>
3007         PR rtl-optimization/89115
3008         * opts.c (default_options_optimization): Reduce
3009         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
3010         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
3011         to the default.
3013 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3015         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
3016         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
3017         type of vector element when vec_extract is implemented by direct
3018         move.
3020 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
3022         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
3024 2019-01-30  Richard Biener  <rguenther@suse.de>
3026         PR tree-optimization/89111
3027         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
3028         canonicalization to appropriately sized access types.
3030 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
3032         PR c++/89105
3033         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
3034         for arguments to functions that are TU-local and shouldn't be
3035         referenced by assembly.
3037 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
3039         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
3040         after '='.
3042 2019-01-29  Martin Sebor  <msebor@redhat.com>
3044         PR c/88956
3045         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
3047 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
3049         PR c++/66676
3050         PR ipa/89104
3051         * omp-simd-clone.c (simd_clone_clauses_extract)
3052         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
3053         OMP_CLAUSE_ALIGNED_ALIGNMENT.
3055 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
3057         * config.gcc: Force .init_array for ARC.
3059 2019-01-29  Richard Biener  <rguenther@suse.de>
3061         PR debug/87295
3062         * dwarf2out.c (collect_skeleton_dies): New helper.
3063         (copy_decls_for_unworthy_types): Call it.
3064         (build_abbrev_table): Assert we do not try to replace
3065         DW_AT_signature refs with local refs.
3067 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
3069         PR middle-end/89002
3070         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
3071         for lastprivate/linear IV, push gimplify context around gimplify_assign
3072         and, if it needed any temporaries, pop it into a gimple bind around the
3073         sequence.
3075 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3077         * common.opt (-Wattribute-alias): Remove "no-" from name.
3078         Make -Wattribute-alias command line option and
3079         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
3081 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
3083         PR target/89073
3084         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
3085         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
3086         x86 ISA options.
3087         (bmi2): Add missing @opindex.
3088         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
3089         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
3090         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
3091         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
3092         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
3093         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
3094         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
3095         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
3096         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
3097         xsavec, xsaveopt and xsaves options.
3099 2019-01-28  Richard Biener  <rguenther@suse.de>
3101         PR debug/89076
3102         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
3103         support removal.
3105 2019-01-28  Richard Biener  <rguenther@suse.de>
3107         PR tree-optimization/88739
3108         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3109         BIT_FIELD_REFs only are applied to mode-precision operands
3110         when they are integral.
3111         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
3112         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
3113         BIT_FIELD_REFs of non-mode-precision integral operands.
3115 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
3117         PR target/87214
3118         * config/i386/sse.md
3119         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
3120         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
3121         first constants in pairs are multiples of 2.  Formatting fixes.
3122         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
3123         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
3124         first constants in each quadruple are multiples of 4.  Formatting fixes.
3126 2019-01-26  Martin Jambor  <mjambor@suse.cz>
3128         PR ipa/88933
3129         * tree-inline.c: Include tree-cfgcleanup.h.
3130         (delete_unreachable_blocks_update_callgraph): Move...
3131         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3132         ...here, make externally visible, make second argument bool, adjust
3133         all callers.
3134         * tree-cfgcleanup.c: Include cgraph.h.
3135         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3136         Declare.
3137         * ipa-prop.c: Include tree-cfgcleanup.h.
3138         (ipcp_transform_function): Call
3139         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3141 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
3143         PR rtl-optimization/88846
3144         * ira.c (process_set_for_memref_referenced_p): New.
3145         (memref_referenced_p): Add new param.  Use
3146         process_set_for_memref_referenced_p.  Add new switch cases.
3147         (memref_used_between_p): Pass new arg to memref_referenced_p.
3149 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
3151         PR target/88469
3152         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3153         argument ABI_BREAK.  Set to true if the calculated alignment has
3154         changed in gcc-9.  Check bit-fields for their base type alignment.
3155         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3156         (aarch64_function_arg_boundary): Likewise.
3157         (aarch64_gimplify_va_arg_expr): Likewise.
3159 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
3161         PR middle-end/89037
3162         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3163         instead of accessing TREE_INT_CST_ELT directly.
3165 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
3167         * doc/sourcebuild.texi (Environment attributes): Add fenv and
3168         fenv_exceptions description.
3170 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
3172         PR rtl-optimization/87763
3173         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3174         Allow SUBREG when matching CC_NZmode compare.
3176 2019-01-25  Richard Biener  <rguenther@suse.de>
3178         PR tree-optimization/89049
3179         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3180         Look at the pattern stmt to determine if the stmt is vectorized.
3182 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
3184         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3185         (pred_mov<mode>): Handle all-register forms using both a new
3186         alternative and a split.
3188 2019-01-25  Richard Biener  <rguenther@suse.de>
3190         PR tree-optimization/86865
3191         * graphite-scop-detection.c (scop_detection::can_represent_loop):
3192         Reject non-do-while loops.
3194 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
3196         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3197         * config/rs6000/constraints.md (Q constraint): Use REG_P.
3198         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3199         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3200         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3201         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3202         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3203         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3204         vlogical_operand, gpc_reg_operand, int_reg_operand,
3205         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3206         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3207         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3208         (save_world_operation, restore_world_operation, lmw_operation,
3209         stmw_operation): Use MEM_P and REG_P.
3210         (tie_operand): Use MEM_P.
3211         (vrsave_operation, crsave_operation): Use REG_P.
3212         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3213         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3214         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3215         (call_operand): Use HARD_REGISTER_P.
3216         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3217         Use CONST_INT_P.
3218         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3219         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3220         quad_aligned_load_p, replace_swapped_aligned_store,
3221         recombine_lvx_pattern, replace_swapped_aligned_load,
3222         recombine_stvx_pattern): Use MEM_P.
3223         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3224         Use MEM_P and SYMBOL_REF_P.
3225         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3226         (insn_is_swappable_p): Use REG_P and MEM_P.
3227         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3228         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3229         Use CONST_INT_P.
3230         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3231         Use CONST_DOUBLE_P.
3232         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3233         CONST_WIDE_INT_P.
3234         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3235         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3236         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3237         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3238         reg_or_subregno:
3239         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3240         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3241         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3242         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3243         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3244         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3245         rs6000_split_logical_di): Use CONST_INT_P.
3246         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3247         REG_P and SYMBOL_REF_P.
3248         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3249         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3250         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3251         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3252         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3253         (small_data_operand, print_operand_address): Use CONST_INT_P and
3254         SYMBOL_REF_P.
3255         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3256         (rs6000_init_hard_regno_mode_ok, direct_move_p):
3257         Use HARD_REGISTER_NUM_P.
3258         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3259         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3260         SUBREG_P and SYMBOL_REF_P.
3261         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3262         and HARD_REGISTER_NUM_P.
3263         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3264         reg_or_subregno.
3265         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3266         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3267         MEM_P and REG_P.
3268         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3269         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3270         find_addr_reg): Use REG_P.
3271         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3272         (rs6000_emit_le_vsx_move): Use SUBREG_P.
3273         (offsettable_ok_by_alignment, constant_pool_expr_p,
3274         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3275         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3276         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3277         rs6000_assemble_integer, create_TOC_reference,
3278         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3279         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3280         (rs6000_split_vec_extract_var): Use reg_or_subregno.
3281         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3282         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3283         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3284         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3285         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3286         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3287         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3288         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3289         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3290         and cbranch<mode>4): Use CONST_INT_P.
3291         (multiple define_splits): Use REG_P and SUBREG_P.
3292         (define_expands call, call_value): Use MEM_P.
3293         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
3294         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3295         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3296         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3297         and HARD_REGISTER_NUM_P.
3298         (multiple define_splits): Use HARD_REGISTER_NUM_P.
3300 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3302         PR rtl-optimization/88948
3303         * rtl.h (prepare_copy_insn): New prototype.
3304         * gcse.c (prepare_copy_insn): New function, split out from
3305         process_insert_insn.
3306         (process_insert_insn): Use prepare_copy_insn.
3307         * store-motion.c (replace_store_insn): Use prepare_copy_insn
3308         instead of gen_move_insn.
3310 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
3312         PR debug/89006
3313         * config/i386/i386.c (ix86_pic_register_p): Return true for
3314         UNSPEC_SET_GOT too.
3316         PR tree-optimization/88964
3317         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3318         punt if HONOR_SNANS (chrec).
3320         PR middle-end/89015
3321         * tree-nested.c (convert_nonlocal_reference_stmt,
3322         convert_local_reference_stmt, convert_tramp_reference_stmt,
3323         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3324         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3325         or GIMPLE_OMP_TASK.
3327         PR tree-optimization/89027
3328         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3329         for "omp simd array" variables.
3331 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
3333         PR target/88469
3334         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3335         force the alignment of m_val.
3337 2019-01-24  Richard Biener  <rguenther@suse.de>
3339         PR lto/87187
3340         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3341         When in "legacy" debug mode make sure to reset self-origins.
3343 2019-01-24  Martin Liska  <mliska@suse.cz>
3345         PR gcov-profile/88994
3346         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3347         result will be always smaller or equal to the original.
3348         * gcov.c (mangle_name): Fix else branch where we should
3349         also copy to PTR and shift the pointer.
3351 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
3353         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3354         * vr-values.c (find_case_label_ranges): Fix a comment typo.
3356 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
3357             Steve Ellcey <sellcey@marvell.com>
3359         PR target/85711
3360         * recog.c (address_operand): Return false on wrong mode for address.
3361         (constrain_operands): Check for mode with 'p' constraint.
3363 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3365         PR target/88998
3366         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3367         Disparage MMX alternative.
3368         (sse2_cvtpd2pi): Ditto.
3369         (sse2_cvttpd2pi): Ditto.
3371 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
3373         PR driver/89014
3374         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3375         use-after-free of the result of
3376         aarch64_get_extension_string_for_isa_flags.
3378 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
3380         PR c/44715
3381         * doc/extend.texi: Document break and continue behavior in
3382         statement expressions.
3384 2019-01-23  Richard Biener  <rguenther@suse.de>
3386         PR tree-optimization/89008
3387         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3388         not leave another stray operand.
3390 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
3392         * BASE-VER: Bump to 9.0.1.
3394 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
3396         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3397         thunk that returns by reference, use the type of the return object
3398         of the thunk instead of that of the alias to build the dereference.
3400 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
3402         * config/arc/atomic.md: Add operand to DMB instruction.
3404 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
3406         PR tree-optimization/88964
3407         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3408         build_zero_cst instead of build_int_cst.  Return false for loop
3409         invariants which honor signed zeros.
3411 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
3413         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3415 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
3417         PR target/88965
3418         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3419         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3420         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3422         PR middle-end/88968
3423         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3424         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3426         PR target/87064
3427         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3428         Disable for little endian.
3430 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
3432         PR target/88469
3433         * config/arm/arm.c (arm_needs_double_word_align): Check
3434         DECL_BIT_FIELD_TYPE.
3436 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
3437             H.J. Lu  <hongjiu.lu@intel.com>
3439         PR target/88909
3440         * config/i386/i386-builtin.def: Add mask2 to all builtin
3441         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3442         SPECIAL_ARGS.
3443         * config/i386/i386.c (BDESC): Add mask2 to the definition.
3444         (BDESC_FIRST): Likewise.
3445         (define_builtin): Add an argument for mask2.  Updated to handle
3446         both ix86_isa_flags and ix86_isa_flags2.
3447         (define_builtin_const): Likewise.
3448         (define_builtin_pure): Likewise.
3449         (define_builtin2): Deleted.
3450         (define_builtin_const2): Likewise.
3451         (builtin_description): Add a member, mask2.
3452         (bdesc_*): Add mask2 to builtin initializations.
3453         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3454         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
3455         support.
3456         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3458 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
3460         PR target/88954
3461         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3462         noplt attribute.
3464 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
3466         PR target/88469
3467         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3468         alignment is dominated by a bitfield with 64-bit aligned base type.
3469         (arm_function_arg): Emit a warning if the alignment has changed since
3470         earlier GCC releases.
3471         (arm_function_arg_boundary): Likewise.
3472         (arm_setup_incoming_varargs): Likewise.
3474 2019-01-22  Richard Biener  <rguenther@suse.de>
3476         PR tree-optimization/88862
3477         * graphite-scop-detection.c
3478         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3480 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
3482         * doc/extend.tex (AMD GCN Function Attributes): New section.
3483         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3484         * doc/invoke.texi (AMD GCN Options): New section.
3485         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3487 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3489         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3490         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3492 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
3494         PR tree-optimization/88044
3495         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3496         is false in the first iteration, but !every_iteration, return false
3497         instead of true with niter->niter zero.
3499         PR rtl-optimization/88904
3500         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3501         any nonequal registers before processing BB_END (b).
3503         PR target/88905
3504         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3505         GET_MODE (op0).
3506         (expand_binop_directly, expand_doubleword_clz,
3507         expand_doubleword_popcount, expand_ctz, expand_ffs,
3508         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3510         PR rtl-optimization/49429
3511         PR target/49454
3512         PR rtl-optimization/86334
3513         PR target/88906
3514         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3515         addressable from here...
3516         (emit_block_op_via_libcall): ... to here.
3518 2019-01-22  Richard Biener  <rguenther@suse.de>
3520         * tree-vect-loop.c (vect_analyze_loop_operations): Use
3521         auto_vec for cost vector to fix memleak.
3522         (vectorize_fold_left_reduction): Properly gather SLP defs.
3523         (vectorizable_comparison): Do not swap operands to properly
3524         gather SLP defs.
3526 2019-01-22  Alan Modra  <amodra@gmail.com>
3528         PR target/88614
3529         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3530         stays a reg.  Allow a const_int.
3531         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3532         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3533         (IS_NOMARK_TLSGETADDR): Define.
3534         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3535         (rs6000_output_tlsargs): New function.
3536         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3537         __tls_get_addr call takes an arg.
3538         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3539         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3540         delete split..
3541         (call_value_nonlocal_sysv): ..or here, delete split.
3542         (tls_gdld_nomark): Delete.
3543         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3544         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
3545         (call_value_nonlocal_sysv): Likewise.
3546         (call_value_nonlocal_sysv_secure): Likewise.
3547         (call_value_nonlocal_aix): Likewise.
3548         (call_value_indirect_aix): Likewise.
3549         (call_value_indirect_elfv2): Likewise.
3550         (call_value_local32, call_value_local64): Disable for no-mark tls.
3551         (call_value_local_aix): Likewise.
3553 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3555         PR target/88938
3556         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3557         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3559 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
3561         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3562         string contents as hash_map keys.
3564 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3566         PR c/88928
3567         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3568         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
3569         instead of TYPE_ALIGN.
3570         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3571         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
3572         pointer from TYPE_STUB_DECL.
3574 2019-01-21  Richard Biener  <rguenther@suse.de>
3576         PR tree-optimization/88934
3577         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3578         at the possibly non-constant operand.
3579         (vect_get_constant_vectors): Adjust.
3581 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3583         PR target/71659
3584         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3585         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3586         instead of _X86INTRIN_H_INCLUDED.
3587         * onfig/i386/clwbintrin.h: Likewise.
3588         * config/i386/pkuintrin.h: Likewise.
3589         * config/i386/prfchwintrin.h: Likewise.
3590         * config/i386/rdseedintrin.h: Likewise.
3591         * config/i386/wbnoinvdintrin.h: Likewise.
3592         * config/i386/xsavecintrin.h: Likewise.
3593         * config/i386/xsavesintrin.h: Likewise.
3594         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3595         * config/i386/xsaveintrin.h: Likewise.
3596         * config/i386/xsaveoptintrin.h: Likewise.
3597         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3598         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3599         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3600         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3601         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3602         * config/i386/immintrin.h: Here.
3604 2019-01-20  Martin Jambor  <mjambor@suse.cz>
3606         PR ipa/87615
3607         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3608         with aa_walk_budget.
3609         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3610         aa_walk_budget_p parameter.
3611         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
3612         walk.  Updated all callers.
3613         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3614         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3615         unmodified_parm.
3616         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3617         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
3618         and to unmodified_parm.
3619         (phi_result_unknown_predicate): New parameter fbi, removed parameter
3620         info, updated call to will_be_nonconstant_expr_predicate.
3621         (param_change_prob): New parameter fbi, limit AA walking.
3622         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
3623         calls to various above functions.
3624         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3625         parameter.  Use it to limit AA walking.
3626         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3627         fbi, limit AA walk.
3628         (detect_type_change): New parameter fbi, pass it on to
3629         detect_type_change_from_memory_writes.
3630         (detect_type_change_ssa): Likewise.
3631         (aa_overwalked): Removed.
3632         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3633         accordingly, adjust to the neew AA limiting scheme.
3634         (parm_ref_data_preserved_p): Likewise.
3635         (ipa_compute_jump_functions_for_edge): Adjust call to
3636         get_dynamic_type.
3637         (ipa_analyze_call_uses): Likewise.
3638         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3639         (ipa_analyze_node): Initialize aa_walk_budget.
3640         (ipcp_transform_function): Likewise.
3641         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3642         to get_dynamic_type.
3644 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
3646         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3647         outside of #if CHECKING_P code.
3649 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
3651         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3652         New function, split out from...
3653         (loop_versioning::analyze_stride): ...here.
3654         (loop_versioning::find_per_loop_multiplication): Use gassign.
3655         (loop_versioning::analyze_term_using_scevs): Return a success code.
3656         (loop_versioning::analyze_arbitrary_term): New function.
3657         (loop_versioning::analyze_address_fragment): Use
3658         analyze_arbitrary_term if all else fails.
3660 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
3662         PR target/88892
3663         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3664         operands.
3666 2019-01-18  Richard Biener  <rguenther@suse.de>
3668         PR tree-optimization/88903
3669         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3670         scalar stmts a SLP shift amount is composed of when detecting
3671         shifts by scalars.
3673 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
3675         PR target/88799
3676         * config/arm/arm-cpus.in (mp): New feature.
3677         (sec): New feature.
3678         (fgroup ARMv7ve): Add mp and sec features.
3679         (arch armv7-a): Add options to allow mp and sec extensions.
3680         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3681         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3682         extenstions to the base architecture.
3683         (cpu cortex-a8): Add sec extension to the base architecture.
3684         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3685         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3686         variants down to the base v7-a varaint.
3687         * config/arm/t-multilib (v7_a_arch_variants): New variable.
3688         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3689         of permitted extensions for -march=armv7-a and for
3690         -mcpu=generic-armv7-a.
3692 2019-01-18  Martin Liska  <mliska@suse.cz>
3694         * params.def: Fix comment.
3695         * tree-profile.c (gimple_init_gcov_profiler): Bump function
3696         name.
3697         (gimple_gen_ic_func_profiler): Likewise.
3699 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3701         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3702         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3703         and put in error checks for stack protector guard options.
3704         (aarch64_stack_protect_guard): New.
3705         (TARGET_STACK_PROTECT_GUARD): Define.
3706         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3707         (reg_stack_protect_address<mode>): New.
3708         (stack_protect_set): Adjust for SSP_GLOBAL.
3709         (stack_protect_test): Likewise.
3710         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3711         (-mstack-protector-guard): Likewise.
3712         (-mstack-protector-guard-offset): Likewise.
3714 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
3716         PR tree-optimization/86214
3717         * tree-inline.h (struct copy_body_data): Add
3718         add_clobbers_to_eh_landing_pads member.
3719         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3720         (copy_edges_for_bb): Call it if EH edge destination is <
3721         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
3722         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3723         if flag_stack_reuse != SR_NONE and clear it afterwards.
3725 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
3727         PR target/85596
3728         * doc/install.texi (with-multilib-list): Document for aarch64.
3730 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
3732         PR target/88734
3733         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3734         (("..."))) with ("...").
3736 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3738         * doc/extend.texi (Built-in Functions for Memory Model Aware
3739         Atomic Operations): Document atomic fetch and nand.
3741 2019-01-18  Martin Liska  <mliska@suse.cz>
3742             Richard Biener  <rguenther@suse.de>
3744         PR middle-end/88587
3745         * cgraph.h (create_version_clone_with_body): Add new argument
3746         with attributes.
3747         * cgraphclones.c (cgraph_node::create_version_clone): Add
3748         DECL_ATTRIBUTES to a newly created decl.  And call
3749         valid_attribute_p so that proper cl_target_optimization_node
3750         is set for the newly created declaration.
3751         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3752         for declaration.
3753         (expand_target_clones): Do not call valid_attribute_p, it must
3754         be already done.
3755         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3756         vector types.
3758 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
3760         PR target/88734
3761         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3762         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
3763         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3765 2019-01-17  Martin Sebor  <msebor@redhat.com>
3767         PR middle-end/88273
3768         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3769         Handle anti-ranges the same as no range at all.
3771 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
3773         * config/aarch64/aarch64.c (cgraph.h): New include.
3774         (intl.h): New include.
3775         (supported_simd_type): New function.
3776         (currently_supported_simd_type): Ditto.
3777         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3778         (aarch64_simd_clone_adjust): Ditto.
3779         (aarch64_simd_clone_usable): Ditto.
3780         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3781         (TARGET_SIMD_CLONE_ADJUST): Ditto.
3782         (TARGET_SIMD_CLONE_USABLE): Ditto.
3783         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3784         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3785         call.
3787 2019-01-17  Martin Sebor  <msebor@redhat.com>
3789         PR tree-optimization/88800
3790         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3791         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
3792         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3793         redundant argument.  Add new argument and issue diagnostics under
3794         its control.  Detect out-of-bounds access even with warnings
3795         disabled.
3796         (check_bounds_or_overlap): Change return type.  Add argument.
3797         (wrestrict_dom_walker::check_call): Adjust.
3798         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3799         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3800         check_bounds_or_overlap's return value.
3801         (handle_builtin_stxncpy): Same.
3802         (handle_builtin_strcat): Same.
3804 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3805             Kwok Cheung Yeung  <kcy@codesourcery.com>
3806             Julian Brown  <julian@codesourcery.com>
3807             Tom de Vries  <tom@codesourcery.com>
3809         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3811 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3813         * doc/sourcebuild.texi: Document dg-require-effective-target
3814         llvm_binutils and offload_gcn.
3816 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3817             Kwok Cheung Yeung  <kcy@codesourcery.com>
3818             Julian Brown  <julian@codesourcery.com>
3819             Tom de Vries  <tom@codesourcery.com>
3821         * doc/sourcebuild.texi: Document dg-required-effective-target
3822         exceptions.
3824 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3825             Kwok Cheung Yeung  <kcy@codesourcery.com>
3826             Julian Brown  <julian@codesourcery.com>
3827             Tom de Vries  <tom@codesourcery.com>
3828             Jan Hubicka  <hubicka@ucw.cz>
3829             Martin Jambor  <mjambor@suse.cz>
3831         * config.gcc: Add amdgcn*-*-amdhsa configuration.
3832         * configure.ac: Check for dlopen.
3833         * configure: Regenerate.
3835 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3836             Kwok Cheung Yeung  <kcy@codesourcery.com>
3837             Julian Brown  <julian@codesourcery.com>
3838             Tom de Vries  <tom@codesourcery.com>
3839             Jan Hubicka  <hubicka@ucw.cz>
3840             Martin Jambor  <mjambor@suse.cz>
3842         * common/config/gcn/gcn-common.c: New file.
3843         * config/gcn/driver-gcn.c: New file.
3844         * config/gcn/gcn-builtins.def: New file.
3845         * config/gcn/gcn-hsa.h: New file.
3846         * config/gcn/gcn-modes.def: New file.
3847         * config/gcn/gcn-opts.h: New file.
3848         * config/gcn/gcn-passes.def: New file.
3849         * config/gcn/gcn-protos.h: New file.
3850         * config/gcn/gcn-run.c: New file.
3851         * config/gcn/gcn-tree.c: New file.
3852         * config/gcn/gcn.c: New file.
3853         * config/gcn/gcn.h: New file.
3854         * config/gcn/gcn.opt: New file.
3855         * config/gcn/t-gcn-hsa: New file.
3857 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3858             Kwok Cheung Yeung  <kcy@codesourcery.com>
3859             Julian Brown  <julian@codesourcery.com>
3860             Tom de Vries  <tom@codesourcery.com>
3861             Jan Hubicka  <hubicka@ucw.cz>
3862             Martin Jambor  <mjambor@suse.cz>
3864         * config/gcn/constraints.md: New file.
3865         * config/gcn/gcn-valu.md: New file.
3866         * config/gcn/gcn.md: New file.
3867         * config/gcn/predicates.md: New file.
3869 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3871         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3872         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3873         (stmt_uses_0_or_null_in_undefined_way): Likewise.
3874         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3876 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
3878         PR target/88851
3879         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3880         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3881         it and document registers.
3883 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3885         * config/aarch64/aarch64.c (ares_tunings): Define.
3886         * config/aarch64/aarch64-cores.def (ares): Use the above.
3888 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3890         PR target/88794
3891         Revert:
3892         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
3894         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3895         (_mm512_fixupimm_round_pd): Update parameters and builtin.
3896         (_mm512_maskz_fixupimm_round_pd): Ditto.
3897         (_mm512_fixupimm_round_ps): Ditto.
3898         (_mm512_maskz_fixupimm_round_ps): Ditto.
3899         (_mm_fixupimm_round_sd): Ditto.
3900         (_mm_maskz_fixupimm_round_sd): Ditto.
3901         (_mm_fixupimm_round_ss): Ditto.
3902         (_mm_maskz_fixupimm_round_ss): Ditto.
3903         (_mm512_fixupimm_pd): Ditto.
3904         (_mm512_maskz_fixupimm_pd): Ditto.
3905         (_mm512_fixupimm_ps): Ditto.
3906         (_mm512_maskz_fixupimm_ps): Ditto.
3907         (_mm_fixupimm_sd): Ditto.
3908         (_mm_maskz_fixupimm_sd): Ditto.
3909         (_mm_fixupimm_ss): Ditto.
3910         (_mm_maskz_fixupimm_ss): Ditto.
3911         (_mm512_mask_fixupimm_round_pd): Update builtin.
3912         (_mm512_mask_fixupimm_round_ps): Ditto.
3913         (_mm_mask_fixupimm_round_sd): Ditto.
3914         (_mm_mask_fixupimm_round_ss): Ditto.
3915         (_mm512_mask_fixupimm_pd): Ditto.
3916         (_mm512_mask_fixupimm_ps): Ditto.
3917         (_mm_mask_fixupimm_sd): Ditto.
3918         (_mm_mask_fixupimm_ss): Ditto.
3919         * config/i386/avx512vlintrin.h:
3920         (_mm256_fixupimm_pd): Update parameters and builtin.
3921         (_mm256_maskz_fixupimm_pd): Ditto.
3922         (_mm256_fixupimm_ps): Ditto.
3923         (_mm256_maskz_fixupimm_ps): Ditto.
3924         (_mm_fixupimm_pd): Ditto.
3925         (_mm_maskz_fixupimm_pd): Ditto.
3926         (_mm_fixupimm_ps): Ditto.
3927         (_mm_maskz_fixupimm_ps): Ditto.
3928         (_mm256_mask_fixupimm_pd): Update builtin.
3929         (_mm256_mask_fixupimm_ps): Ditto.
3930         (_mm_mask_fixupimm_pd): Ditto.
3931         (_mm_mask_fixupimm_ps): Ditto.
3932         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3933         * config/i386/i386-builtin.def: Update builtin definitions.
3934         * config/i386/i386.c: Handle new builtin types and remove useless ones.
3935         * config/i386/sse.md: Update VFIXUPIMM* patterns.
3936         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3937         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3938         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3939         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3940         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3941         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3942         * config/i386/subst.md:
3943         (round_saeonly_sd_mask_operand4): Add new subst_attr.
3944         (round_saeonly_sd_mask_op4): Ditto.
3945         (round_saeonly_expand_operand5): Ditto.
3946         (round_saeonly_expand): Update.
3948 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3950         PR target/88794
3951         Revert:
3952         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
3954         * config/i386/sse.md: Combine VFIXUPIMM* patterns
3955         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3956         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3957         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3958         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3959         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3960         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3962 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3964         PR target/88794
3965         Revert:
3966         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
3968         PR target/88489
3969         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3970         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3971         instead of UNSPEC_FIXUPIMM.
3973 2019-01-17  Richard Biener  <rguenther@suse.de>
3975         PR lto/86736
3976         * dwarf2out.c (want_pubnames): Never generate pubnames sections
3977         and friends for the LTO part of debug info.
3979 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
3981         PR tree-optimization/86214
3982         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3983         if x == y.
3985         PR rtl-optimization/88870
3986         * dce.c (deletable_insn_p): Never delete const/pure calls that can
3987         throw if we can't alter the cfg or delete dead exceptions.
3988         (mark_insn): Don't call find_call_stack_args for such calls.
3990 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
3992         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3993         prototypes for vec_st.
3994         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3995         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3996         mainly on signed/unsigned long long and double.
3998 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
4000         PR target/88861
4001         * combine.c (delete_noop_moves): Convert to "bool" return,
4002         returning true if any edges are eliminated.
4003         (combine_instructions): Also return true if delete_noop_moves
4004         returns true.
4006 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
4008         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
4009         correct max nunits for endian swap.
4010         (aarch64_expand_fcmla_builtin): Correct subreg code.
4011         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4012         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
4013         lane endianness.
4015 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4017         * config/alpha/alpha.c (alpha_gimplify_va_arg):
4018         Handle split indirect COMPLEX_TYPE arguments.
4020 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
4022         PR target/86891
4023         * config/aarch64/aarch64-modes.def: Add comment about how the carry
4024         bit is set by add and compare.
4025         (CC_ADC): New CC_MODE.
4026         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
4027         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
4028         comparison.  Add detection for CC_ADCmode.
4029         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
4030         CC_ADCmode.
4031         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
4032         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
4033         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
4034         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
4035         to eliminate the need for zero-extending the operands.
4036         (add<mode>3_compareC_imm): Delete.  Merge into ...
4037         (add<mode>3_compareC): ... this.  Restructure the comparison to
4038         eliminate the need for zero-extending the operands.
4039         (add<mode>3_carryin): Use LTU for the overflow detection.
4040         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
4041         Reexpress comparison for overflow.
4042         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
4043         (add<mode>3_carryinC): Likewise.
4044         (add<mode>3_carryinV): Use LTU for carry between partials.
4045         * config/aarch64/predicates.md (aarch64_carry_operation): Update
4046         handling of CC_Cmode and add CC_ADCmode.
4047         (aarch64_borrow_operation): Likewise.
4049 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
4051         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
4052         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
4053         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
4054         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
4056 2019-01-16  Martin Liska  <mliska@suse.cz>
4058         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
4059         for GCC driver.
4060         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
4061         a new argument.
4062         * gcc.c (add_sysrooted_hdrs_prefix): New function.
4063         (path_prefix_reset): Move up in the source file.
4064         (find_fortran_preinclude_file): Make complex search for the
4065         fortran header files.
4067 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
4069         * godump.c (go_output_typedef): When outputting a typedef, refer
4070         to the underlying type by its name and not its structure.
4072 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
4074         PR c++/88795
4075         * tree.c (build_function_type): Assert that arg_types is not
4076         error_mark_node.
4078 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4080         PR inline-asm/52813
4081         * doc/extend.texi: Document that listing the stack pointer in the
4082         clobber list of an asm is a deprecated feature.
4083         * common.opt (Wdeprecated): Moved from c-family/c.opt.
4084         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
4085         warning instead of an error for clobbers of the stack pointer.
4086         Add a note explaining why.
4088 2019-01-15  Richard Biener  <rguenther@suse.de>
4090         PR debug/88046
4091         * dwarf2out.c (gen_member_die): Do not generate inheritance
4092         DIEs late.
4094 2019-01-15  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/88855
4097         * tree-if-conv.c (combine_blocks): Collect
4098         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
4100 2019-01-15  Tom de Vries  <tdevries@suse.de>
4102         PR target/80547
4103         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
4104         lhs == NULL_TREE for gang-level reduction.
4106 2019-01-15  Richard Biener  <rguenther@suse.de>
4107             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4109         PR ipa/88788
4110         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
4111         return true if SSA_NAME is already marked in visited bitmap.
4112         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
4114 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
4116         PR tree-optimization/88775
4117         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
4118         equal == 0 equality pointer comparisons some more if compared in
4119         integral types and either one points to an automatic var and the
4120         other to a global, or we can prove at least one points to the middle
4121         or both point to start or both point to end.
4123 2019-01-14  Andi Kleen  <ak@linux.intel.com>
4125         * Makefile.in: Lower autofdo sampling rate by 10x.
4126         * Makefile.tpl: Dito.
4128 2019-01-14  Tom Honermann  <tom@honermann.net>
4130         * defaults.h: Define CHAR8_TYPE.
4132 2019-01-14  Martin Sebor  <msebor@redhat.com>
4134         PR target/88638
4135         * doc/extend.texi (Darwin Format Checks): Clarify.
4137 2019-01-14  Richard Biener  <rguenther@suse.de>
4139         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4140         whether we are in (simplify ...) or (match ...) context.
4142 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
4144         PR rtl-optimization/88796
4145         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4146         * cfgexpand.c (stack_protect_prologue): Initialize
4147         crtl->stack_protect_guard_decl.
4148         * function.c (stack_protect_epilogue): Use it instead of calling
4149         targetm.stack_protect_guard again.
4150         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4151         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4152         crtl->stack_protect_guard_decl.
4153         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4154         on the returned MEM_EXPR.
4156 2019-01-12  Tom de Vries  <tdevries@suse.de>
4158         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4159         vector length using -fopenacc-dim.
4161 2019-01-12  Tom de Vries  <tdevries@suse.de>
4163         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4164         lengths into account.
4166 2019-01-12  Svante Signell  <svante.signell@gmail.com>
4168         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4169         (TARGET_CAN_SPLIT_STACK): Define.
4170         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4172 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4174         * params.def (inline-unit-growth): Set to 40.
4176 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
4178         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4180 2019-01-12  Tom de Vries  <tdevries@suse.de>
4182         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4183         region calling vector-partitionable routine, set default_vector_length
4184         to WARP_SIZE.
4186 2019-01-12  Tom de Vries  <tdevries@suse.de>
4188         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4189         variable default_vector_length.
4191 2019-01-12  Tom de Vries  <tdevries@suse.de>
4193         PR middle-end/88703
4194         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4195         from oacc_default_dims, as oacc_validate_dims would do it, and apply
4196         dimensions limits.
4198 2019-01-12  Tom de Vries  <tdevries@suse.de>
4200         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4201         (nvptx_goacc_validate_dims): Add used parameter.
4202         * doc/tm.texi: Regenerate.
4203         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4204         argument to call to targetm.goacc.validate_dims.
4205         (default_goacc_validate_dims): Add used
4206         parameter.
4207         * target.def (validate_dims): Add used parameter in DEFHOOK.
4208         * targhooks.h (default_goacc_validate_dims): Add used parameter.
4210 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
4212         PR middle-end/85956
4213         PR lto/88733
4214         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4215         field.
4216         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
4217         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4218         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4219         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4221 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
4223         PR rtl-optimization/87305
4224         * lra-assigns.c
4225         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4226         for little endian pseudos used as paradoxical subreg.
4228 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
4230         PR tree-optimization/88693
4231         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4232         for STRING_CSTs that don't contain any NUL characters in the first
4233         TREE_STRING_LENGTH bytes.
4235 2019-01-11  Alan Modra  <amodra@gmail.com>
4237         PR 88777
4238         PR 88614
4239         * genattrtab.c (min_fn): Don't translate values.
4240         (min_attr_value): Return INT_MAX when the value can't be calculated.
4241         Return minimum among any values that can be calculated.
4242         (max_attr_value): Adjust.
4244 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
4246         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4248 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
4250         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4251         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4252         (aarch64_return_call_with_max_clobbers): New function.
4253         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4254         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4255         argument.
4256         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4257         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4258         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4259         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4260         * cselib.c (cselib_process_insn): Add argument to
4261         targetm.hard_regno_call_part_clobbered call.
4262         * ira-conflicts.c (ira_build_conflicts): Ditto.
4263         * ira-costs.c (ira_tune_allocno_costs): Ditto.
4264         * lra-constraints.c (inherit_reload_reg): Ditto.
4265         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4266         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4267         argument.  Call targetm.return_call_with_max_clobbers.
4268         Add argument to targetm.hard_regno_call_part_clobbered call.
4269         (calls_have_same_clobbers_p): New function.
4270         (process_bb_lives): Add call_insn and last_call_insn variables.
4271         Pass call_insn to check_pseudos_live_through_calls.
4272         Modify if stmt to check targetm.return_call_with_max_clobbers.
4273         Update setting of flush variable.
4274         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4275         to false.
4276         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4277         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4278         targetm.hard_regno_call_part_clobbered call.
4279         * reginfo.c (choose_hard_reg_mode): Ditto.
4280         * regrename.c (check_new_reg_p): Ditto.
4281         * reload.c (find_equiv_reg): Ditto.
4282         * reload1.c (emit_reload_insns): Ditto.
4283         * sched-deps.c (deps_analyze_insn): Ditto.
4284         * sel-sched.c (init_regs_for_mode): Ditto.
4285         (mark_unavailable_hard_regs): Ditto.
4286         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4287         * target.def (hard_regno_call_part_clobbered): Add insn argument.
4288         (return_call_with_max_clobbers): New target function.
4289         * doc/tm.texi: Regenerate.
4290         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4291         * hooks.c (hook_bool_uint_mode_false): Change to
4292         hook_bool_insn_uint_mode_false.
4293         * hooks.h (hook_bool_uint_mode_false): Ditto.
4295 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
4297         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4298         (aarch64_remove_extra_call_preserved_regs): New function.
4299         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4300         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4301         * doc/tm.texi: Regenerate.
4302         * final.c (get_call_reg_set_usage): Call new hook.
4303         * target.def (remove_extra_call_preserved_regs): New hook.
4304         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4305         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4307 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
4309         PR bootstrap/88714
4310         * passes.c (finish_optimization_passes): Call print_combine_total_stats
4311         inside of pass_combine_1 dump rather than pass_profile_1.
4313 2019-01-11  Tom de Vries  <tdevries@suse.de>
4315         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4316         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4317         (PTX_NUM_PER_WORKER_BARRIERS): Define.
4318         (nvptx_apply_dim_limits): Prevent vector_length 64 and
4319         num_workers 16.
4321 2019-01-11  Tom de Vries  <tdevries@suse.de>
4323         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4325 2019-01-11  Jan Beulich  <jbeulich@suse.com>
4327         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4328         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4329         sse2_cvtsi2sd): Add {l}.
4330         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4331         syntax.
4333 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
4335         PR target/88785
4336         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4337         define_expand.
4338         (*float<floatunssuffix>v2div2sf2): New define_insn.
4339         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4340         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4341         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4342         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4343         match_operands with "const0_operand" "C".
4345 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
4347         * config/aarch64/aarch64-builtins.c
4348         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4349         (aarch64_init_simd_builtins): ...Here
4351 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
4353         PR rtl-optimization/87305
4354         * lra-assigns.c
4355         (setup_live_pseudos_and_spill_after_risky_transforms): Check
4356         allocation for big endian pseudos used as paradoxical subregs and
4357         spill them if it is wrong.
4358         * lra-constraints.c (lra_constraints): Add a comment.
4360 2019-01-10  Richard Biener  <rguenther@suse.de>
4362         PR tree-optimization/88792
4363         * tree-ssa-pre.c (get_representative_for): Do not return a
4364         value-number here.
4366 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
4368         PR middle-end/84877
4369         PR bootstrap/88450
4370         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4371         (assign_parm_setup_block): Do the argument slot realignment here
4372         instead.
4374 2019-01-10  Stefan Agner  <stefan@agner.ch>
4376         PR target/88648
4377         * config/arm/arm.c (arm_option_override_internal): Force
4378         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4380 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
4382         PR c/88568
4383         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4384         DECL_EXTERNAL.
4386 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
4388         * config/arm/arm-builtins.c
4389         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4390         (MAC_LANE_PAIR_QUALIFIERS): New.
4391         (arm_expand_builtin_args): Use it.
4392         (arm_expand_builtin_1): Likewise.
4393         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4394         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4395         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4396         * config/arm/arm_neon.h:
4397         (vcadd_rot90_f16): New.
4398         (vcaddq_rot90_f16): New.
4399         (vcadd_rot270_f16): New.
4400         (vcaddq_rot270_f16): New.
4401         (vcmla_f16): New.
4402         (vcmlaq_f16): New.
4403         (vcmla_lane_f16): New.
4404         (vcmla_laneq_f16): New.
4405         (vcmlaq_lane_f16): New.
4406         (vcmlaq_laneq_f16): New.
4407         (vcmla_rot90_f16): New.
4408         (vcmlaq_rot90_f16): New.
4409         (vcmla_rot90_lane_f16): New.
4410         (vcmla_rot90_laneq_f16): New.
4411         (vcmlaq_rot90_lane_f16): New.
4412         (vcmlaq_rot90_laneq_f16): New.
4413         (vcmla_rot180_f16): New.
4414         (vcmlaq_rot180_f16): New.
4415         (vcmla_rot180_lane_f16): New.
4416         (vcmla_rot180_laneq_f16): New.
4417         (vcmlaq_rot180_lane_f16): New.
4418         (vcmlaq_rot180_laneq_f16): New.
4419         (vcmla_rot270_f16): New.
4420         (vcmlaq_rot270_f16): New.
4421         (vcmla_rot270_lane_f16): New.
4422         (vcmla_rot270_laneq_f16): New.
4423         (vcmlaq_rot270_lane_f16): New.
4424         (vcmlaq_rot270_laneq_f16): New.
4425         (vcadd_rot90_f32): New.
4426         (vcaddq_rot90_f32): New.
4427         (vcadd_rot270_f32): New.
4428         (vcaddq_rot270_f32): New.
4429         (vcmla_f32): New.
4430         (vcmlaq_f32): New.
4431         (vcmla_lane_f32): New.
4432         (vcmla_laneq_f32): New.
4433         (vcmlaq_lane_f32): New.
4434         (vcmlaq_laneq_f32): New.
4435         (vcmla_rot90_f32): New.
4436         (vcmlaq_rot90_f32): New.
4437         (vcmla_rot90_lane_f32): New.
4438         (vcmla_rot90_laneq_f32): New.
4439         (vcmlaq_rot90_lane_f32): New.
4440         (vcmlaq_rot90_laneq_f32): New.
4441         (vcmla_rot180_f32): New.
4442         (vcmlaq_rot180_f32): New.
4443         (vcmla_rot180_lane_f32): New.
4444         (vcmla_rot180_laneq_f32): New.
4445         (vcmlaq_rot180_lane_f32): New.
4446         (vcmlaq_rot180_laneq_f32): New.
4447         (vcmla_rot270_f32): New.
4448         (vcmlaq_rot270_f32): New.
4449         (vcmla_rot270_lane_f32): New.
4450         (vcmla_rot270_laneq_f32): New.
4451         (vcmlaq_rot270_lane_f32): New.
4452         (vcmlaq_rot270_laneq_f32): New.
4453         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4454         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4455         vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4456         vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4457         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4458         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4459         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4460         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4461         (arm_option_reconfigure_globals): Use them.
4462         * config/arm/iterators.md (VDF, VQ_HSF): New.
4463         (VCADD, VCMLA): New.
4464         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4465         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4466         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4467         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4469 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
4471         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4472         (emit-rtl.h): Include.
4473         (TYPES_QUADOP_LANE_PAIR): New.
4474         (aarch64_simd_expand_args): Use it.
4475         (aarch64_simd_expand_builtin): Likewise.
4476         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4477         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4478         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4479         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4480         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4481         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4482         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4483         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4484         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4485         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4486         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4487         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4488         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4489         fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4490         fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4491         fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4492         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4493         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4494         aarch64_fcmla<rot><mode>): New.
4495         * config/aarch64/arm_neon.h:
4496         (vcadd_rot90_f16): New.
4497         (vcaddq_rot90_f16): New.
4498         (vcadd_rot270_f16): New.
4499         (vcaddq_rot270_f16): New.
4500         (vcmla_f16): New.
4501         (vcmlaq_f16): New.
4502         (vcmla_lane_f16): New.
4503         (vcmla_laneq_f16): New.
4504         (vcmlaq_lane_f16): New.
4505         (vcmlaq_rot90_lane_f16): New.
4506         (vcmla_rot90_laneq_f16): New.
4507         (vcmla_rot90_lane_f16): New.
4508         (vcmlaq_rot90_f16): New.
4509         (vcmla_rot90_f16): New.
4510         (vcmlaq_laneq_f16): New.
4511         (vcmla_rot180_laneq_f16): New.
4512         (vcmla_rot180_lane_f16): New.
4513         (vcmlaq_rot180_f16): New.
4514         (vcmla_rot180_f16): New.
4515         (vcmlaq_rot90_laneq_f16): New.
4516         (vcmlaq_rot270_laneq_f16): New.
4517         (vcmlaq_rot270_lane_f16): New.
4518         (vcmla_rot270_laneq_f16): New.
4519         (vcmlaq_rot270_f16): New.
4520         (vcmla_rot270_f16): New.
4521         (vcmlaq_rot180_laneq_f16): New.
4522         (vcmlaq_rot180_lane_f16): New.
4523         (vcmla_rot270_lane_f16): New.
4524         (vcadd_rot90_f32): New.
4525         (vcaddq_rot90_f32): New.
4526         (vcaddq_rot90_f64): New.
4527         (vcadd_rot270_f32): New.
4528         (vcaddq_rot270_f32): New.
4529         (vcaddq_rot270_f64): New.
4530         (vcmla_f32): New.
4531         (vcmlaq_f32): New.
4532         (vcmlaq_f64): New.
4533         (vcmla_lane_f32): New.
4534         (vcmla_laneq_f32): New.
4535         (vcmlaq_lane_f32): New.
4536         (vcmlaq_laneq_f32): New.
4537         (vcmla_rot90_f32): New.
4538         (vcmlaq_rot90_f32): New.
4539         (vcmlaq_rot90_f64): New.
4540         (vcmla_rot90_lane_f32): New.
4541         (vcmla_rot90_laneq_f32): New.
4542         (vcmlaq_rot90_lane_f32): New.
4543         (vcmlaq_rot90_laneq_f32): New.
4544         (vcmla_rot180_f32): New.
4545         (vcmlaq_rot180_f32): New.
4546         (vcmlaq_rot180_f64): New.
4547         (vcmla_rot180_lane_f32): New.
4548         (vcmla_rot180_laneq_f32): New.
4549         (vcmlaq_rot180_lane_f32): New.
4550         (vcmlaq_rot180_laneq_f32): New.
4551         (vcmla_rot270_f32): New.
4552         (vcmlaq_rot270_f32): New.
4553         (vcmlaq_rot270_f64): New.
4554         (vcmla_rot270_lane_f32): New.
4555         (vcmla_rot270_laneq_f32): New.
4556         (vcmlaq_rot270_lane_f32): New.
4557         (vcmlaq_rot270_laneq_f32): New.
4558         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4559         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4560         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4561         (FCADD, FCMLA): New.
4562         (rot): New.
4563         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4565 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4567         PR other/16615
4569         * config/pa/pa.c: Change "can not" to "cannot".
4570         * gimple-ssa-evrp-analyze.c: Likewise.
4571         * ipa-icf.c: Likewise.
4572         * ipa-polymorphic-call.c: Likewise.
4573         * ipa-pure-const.c: Likewise.
4574         * lra-constraints.c: Likewise.
4575         * lra-remat.c: Likewise.
4576         * reload1.c: Likewise.
4577         * reorg.c: Likewise.
4578         * tree-ssa-uninit.c: Likewise.
4580 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4582         PR other/16615
4584         * Makefile.in: Mechanically replace "can not" with "cannot".
4585         * alias.c: Likewise.
4586         * builtins.c: Likewise.
4587         * calls.c: Likewise.
4588         * cgraph.c: Likewise.
4589         * cgraph.h: Likewise.
4590         * cgraphclones.c: Likewise.
4591         * cgraphunit.c: Likewise.
4592         * combine-stack-adj.c: Likewise.
4593         * combine.c: Likewise.
4594         * common/config/i386/i386-common.c: Likewise.
4595         * config/aarch64/aarch64.c: Likewise.
4596         * config/alpha/sync.md: Likewise.
4597         * config/arc/arc.c: Likewise.
4598         * config/arc/predicates.md: Likewise.
4599         * config/arm/arm-c.c: Likewise.
4600         * config/arm/arm.c: Likewise.
4601         * config/arm/arm.h: Likewise.
4602         * config/arm/arm.md: Likewise.
4603         * config/arm/cortex-r4f.md: Likewise.
4604         * config/csky/csky.c: Likewise.
4605         * config/csky/csky.h: Likewise.
4606         * config/darwin-f.c: Likewise.
4607         * config/epiphany/epiphany.md: Likewise.
4608         * config/i386/i386.c: Likewise.
4609         * config/i386/sol2.h: Likewise.
4610         * config/m68k/m68k.c: Likewise.
4611         * config/mcore/mcore.h: Likewise.
4612         * config/microblaze/microblaze.md: Likewise.
4613         * config/mips/20kc.md: Likewise.
4614         * config/mips/sb1.md: Likewise.
4615         * config/nds32/nds32.c: Likewise.
4616         * config/nds32/predicates.md: Likewise.
4617         * config/pa/pa.c: Likewise.
4618         * config/rs6000/e300c2c3.md: Likewise.
4619         * config/rs6000/rs6000.c: Likewise.
4620         * config/s390/s390.h: Likewise.
4621         * config/sh/sh.c: Likewise.
4622         * config/sh/sh.md: Likewise.
4623         * config/spu/vmx2spu.h: Likewise.
4624         * cprop.c: Likewise.
4625         * dbxout.c: Likewise.
4626         * df-scan.c: Likewise.
4627         * doc/cfg.texi: Likewise.
4628         * doc/extend.texi: Likewise.
4629         * doc/fragments.texi: Likewise.
4630         * doc/gty.texi: Likewise.
4631         * doc/invoke.texi: Likewise.
4632         * doc/lto.texi: Likewise.
4633         * doc/md.texi: Likewise.
4634         * doc/objc.texi: Likewise.
4635         * doc/rtl.texi: Likewise.
4636         * doc/tm.texi: Likewise.
4637         * dse.c: Likewise.
4638         * emit-rtl.c: Likewise.
4639         * emit-rtl.h: Likewise.
4640         * except.c: Likewise.
4641         * expmed.c: Likewise.
4642         * expr.c: Likewise.
4643         * fold-const.c: Likewise.
4644         * genautomata.c: Likewise.
4645         * gimple-fold.c: Likewise.
4646         * hard-reg-set.h: Likewise.
4647         * ifcvt.c: Likewise.
4648         * ipa-comdats.c: Likewise.
4649         * ipa-cp.c: Likewise.
4650         * ipa-devirt.c: Likewise.
4651         * ipa-fnsummary.c: Likewise.
4652         * ipa-icf.c: Likewise.
4653         * ipa-inline-transform.c: Likewise.
4654         * ipa-inline.c: Likewise.
4655         * ipa-polymorphic-call.c: Likewise.
4656         * ipa-profile.c: Likewise.
4657         * ipa-prop.c: Likewise.
4658         * ipa-pure-const.c: Likewise.
4659         * ipa-reference.c: Likewise.
4660         * ipa-split.c: Likewise.
4661         * ipa-visibility.c: Likewise.
4662         * ipa.c: Likewise.
4663         * ira-build.c: Likewise.
4664         * ira-color.c: Likewise.
4665         * ira-conflicts.c: Likewise.
4666         * ira-costs.c: Likewise.
4667         * ira-int.h: Likewise.
4668         * ira-lives.c: Likewise.
4669         * ira.c: Likewise.
4670         * ira.h: Likewise.
4671         * loop-invariant.c: Likewise.
4672         * loop-unroll.c: Likewise.
4673         * lower-subreg.c: Likewise.
4674         * lra-assigns.c: Likewise.
4675         * lra-constraints.c: Likewise.
4676         * lra-eliminations.c: Likewise.
4677         * lra-lives.c: Likewise.
4678         * lra-remat.c: Likewise.
4679         * lra-spills.c: Likewise.
4680         * lra.c: Likewise.
4681         * lto-cgraph.c: Likewise.
4682         * lto-streamer-out.c: Likewise.
4683         * postreload-gcse.c: Likewise.
4684         * predict.c: Likewise.
4685         * profile-count.h: Likewise.
4686         * profile.c: Likewise.
4687         * recog.c: Likewise.
4688         * ree.c: Likewise.
4689         * reload.c: Likewise.
4690         * reload1.c: Likewise.
4691         * reorg.c: Likewise.
4692         * resource.c: Likewise.
4693         * rtl.def: Likewise.
4694         * rtl.h: Likewise.
4695         * rtlanal.c: Likewise.
4696         * sched-deps.c: Likewise.
4697         * sched-ebb.c: Likewise.
4698         * sched-rgn.c: Likewise.
4699         * sel-sched-ir.c: Likewise.
4700         * sel-sched.c: Likewise.
4701         * shrink-wrap.c: Likewise.
4702         * simplify-rtx.c: Likewise.
4703         * symtab.c: Likewise.
4704         * target.def: Likewise.
4705         * toplev.c: Likewise.
4706         * tree-call-cdce.c: Likewise.
4707         * tree-cfg.c: Likewise.
4708         * tree-complex.c: Likewise.
4709         * tree-core.h: Likewise.
4710         * tree-eh.c: Likewise.
4711         * tree-inline.c: Likewise.
4712         * tree-loop-distribution.c: Likewise.
4713         * tree-nrv.c: Likewise.
4714         * tree-profile.c: Likewise.
4715         * tree-sra.c: Likewise.
4716         * tree-ssa-alias.c: Likewise.
4717         * tree-ssa-dce.c: Likewise.
4718         * tree-ssa-dom.c: Likewise.
4719         * tree-ssa-forwprop.c: Likewise.
4720         * tree-ssa-loop-im.c: Likewise.
4721         * tree-ssa-loop-ivcanon.c: Likewise.
4722         * tree-ssa-loop-ivopts.c: Likewise.
4723         * tree-ssa-loop-niter.c: Likewise.
4724         * tree-ssa-phionlycprop.c: Likewise.
4725         * tree-ssa-phiopt.c: Likewise.
4726         * tree-ssa-propagate.c: Likewise.
4727         * tree-ssa-threadedge.c: Likewise.
4728         * tree-ssa-threadupdate.c: Likewise.
4729         * tree-ssa-uninit.c: Likewise.
4730         * tree-ssanames.c: Likewise.
4731         * tree-streamer-out.c: Likewise.
4732         * tree.c: Likewise.
4733         * tree.h: Likewise.
4734         * vr-values.c: Likewise.
4736 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4738         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4739         (ix86_split_xorsign): Ditto.
4740         * config/i386/i386.c (ix86_expand_xorsign): New function.
4741         (ix86_split_xorsign): Ditto.
4742         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4743         (xorsign<mode>3): New expander.
4744         (xorsign<mode>3_1): New insn_and_split pattern.
4745         * config/i386/sse.md (xorsign<mode>3): New expander.
4747 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4749         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4750         (*tablejump_sp64): Likewise.
4751         (*tablejump<P:mode>): ...this.
4752         (*call_address_sp32): Merge into...
4753         (*call_address_sp64): Likewise.
4754         (*call_address<P:mode>): ...this.
4755         (*call_symbolic_sp32): Merge into...
4756         (*call_symbolic_sp64): Likewise.
4757         (*call_symbolic<P:mode>): ...this.
4758         (call_value): Remove constraint and add predicate.
4759         (*call_value_address_sp32): Merge into...
4760         (*call_value_address_sp64): Likewise.
4761         (*call_value_address<P:mode>): ...this.
4762         (*call_value_symbolic_sp32): Merge into...
4763         (*call_value_symbolic_sp64): Likewise.
4764         (*call_value_symbolic<P:mode>): ...this.
4765         (*sibcall_symbolic_sp32): Merge into...
4766         (*sibcall_symbolic_sp64): Likewise.
4767         (*sibcall_symbolic<P:mode>): ...this.
4768         (sibcall_value): Remove constraint and add predicate.
4769         (*sibcall_value_symbolic_sp32): Merge into...
4770         (*sibcall_value_symbolic_sp64): Likewise.
4771         (*sibcall_value_symbolic<P:mode>): ...this.
4772         (window_save): Minor tweak.
4773         (*branch_sp32): Merge into...
4774         (*branch_sp64): Likewise.
4775         (*branch<P:mode>): ...this.
4777 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4778             James Clarke  <jrtc27@jrtc27.com>
4780         PR target/84010
4781         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4782         consistently in TLS address generation and adjust code to the renaming
4783         of patterns.  Mark calls to __tls_get_addr as const.
4784         * config/sparc/sparc.md (tgd_hi22): Turn into...
4785         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4786         (tgd_lo10): Turn into...
4787         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4788         (tgd_add32): Merge into...
4789         (tgd_add64): Likewise.
4790         (tgd_add<P:mode>): ...this and use Pmode throughout.
4791         (tldm_hi22): Turn into...
4792         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4793         (tldm_lo10): Turn into...
4794         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4795         (tldm_add32): Merge into...
4796         (tldm_add64): Likewise.
4797         (tldm_add<P:mode>): ...this and use Pmode throughout.
4798         (tldm_call32): Merge into...
4799         (tldm_call64): Likewise.
4800         (tldm_call<P:mode>): ...this and use Pmode throughout.
4801         (tldo_hix22): Turn into...
4802         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4803         (tldo_lox10): Turn into...
4804         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4805         (tldo_add32): Merge into...
4806         (tldo_add64): Likewise.
4807         (tldo_add<P:mode>): ...this and use Pmode throughout.
4808         (tie_hi22): Turn into...
4809         (tie_hi22<P:mode>): ...this and use Pmode throughout.
4810         (tie_lo10): Turn into...
4811         (tie_lo10<P:mode>): ...this and use Pmode throughout.
4812         (tie_ld64): Use DImode throughout.
4813         (tie_add32): Merge into...
4814         (tie_add64): Likewise.
4815         (tie_add<P:mode>): ...this and use Pmode throughout.
4816         (tle_hix22_sp32): Merge into...
4817         (tle_hix22_sp64): Likewise.
4818         (tle_hix22<P:mode>): ...this and use Pmode throughout.
4819         (tle_lox22_sp32): Merge into...
4820         (tle_lox22_sp64): Likewise.
4821         (tle_lox22<P:mode>): ...this and use Pmode throughout.
4822         (*tldo_ldub_sp32): Merge into...
4823         (*tldo_ldub_sp64): Likewise.
4824         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4825         (*tldo_ldub1_sp32): Merge into...
4826         (*tldo_ldub1_sp64): Likewise.
4827         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4828         (*tldo_ldub2_sp32): Merge into...
4829         (*tldo_ldub2_sp64): Likewise.
4830         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4831         (*tldo_ldsb1_sp32): Merge into...
4832         (*tldo_ldsb1_sp64): Likewise.
4833         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4834         (*tldo_ldsb2_sp32): Merge into...
4835         (*tldo_ldsb2_sp64): Likewise.
4836         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4837         (*tldo_ldub3_sp64): Use DImode throughout.
4838         (*tldo_ldsb3_sp64): Likewise.
4839         (*tldo_lduh_sp32): Merge into...
4840         (*tldo_lduh_sp64): Likewise.
4841         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4842         (*tldo_lduh1_sp32): Merge into...
4843         (*tldo_lduh1_sp64): Likewise.
4844         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4845         (*tldo_ldsh1_sp32): Merge into...
4846         (*tldo_ldsh1_sp64): Likewise.
4847         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4848         (*tldo_lduh2_sp64): Use DImode throughout.
4849         (*tldo_ldsh2_sp64): Likewise.
4850         (*tldo_lduw_sp32): Merge into...
4851         (*tldo_lduw_sp64): Likewise.
4852         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4853         (*tldo_lduw1_sp64): Use DImode throughout.
4854         (*tldo_ldsw1_sp64): Likewise.
4855         (*tldo_ldx_sp64): Likewise.
4856         (*tldo_stb_sp32): Merge into...
4857         (*tldo_stb_sp64): Likewise.
4858         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4859         (*tldo_sth_sp32): Merge into...
4860         (*tldo_sth_sp64): Likewise.
4861         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4862         (*tldo_stw_sp32): Merge into...
4863         (*tldo_stw_sp64): Likewise.
4864         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4865         (*tldo_stx_sp64): Use DImode throughout.
4867 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4869         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4870         check configure option to set BTI and Return Address Signing.
4871         * configure.ac: Add --enable-standard-branch-protection and
4872         --disable-standard-branch-protection.
4873         * configure: Regenerated.
4874         * doc/install.texi: Document the same.
4876 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4877             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4879         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4880         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4881         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4882         if bti is enabled.
4883         * config/aarch64/aarch64-bti-insert.c: New file.
4884         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4885         pass.
4886         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4887         new bti pass.
4888         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4889         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4890         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4891         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4893 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4895         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4896         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4897         Disable bti for -mbranch-protection=none.
4898         (aarch64_handle_standard_branch_protection): Enable bti for
4899         -mbranch-protection=standard.
4900         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4901         -mbranch-protection.
4902         (aarch64_bti_enabled): Check if bti is enabled.
4903         * config/aarch64/aarch64.opt: Declare target variable.
4904         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4906 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4908         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4909         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4910         (aarch64_expand_epilogue): Likewise.
4911         (aarch64_output_mi_thunk): Likewise
4912         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4913         TAILCALL_ADDR_REGS to x16 and x17.
4914         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4916 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4918         * config/aarch64/aarch64-option-extensions.def: Define
4919         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4920         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4921         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4922         (AARCH64_FL_PREDRES): New.
4923         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4924         AARCH64_FL_PREDRES by default.
4925         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4927 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4929         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4930         ARMv8.5-A.
4931         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4932         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4933         * doc/invoke.texi: Document ARMv8.5-A.
4935 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
4937         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4938         (xorsign<mode>3): Likewise.
4940 2019-01-09  Jelinek  <jakub@redhat.com>
4942         PR middle-end/88758
4943         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4944         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4946         PR rtl-optimization/88331
4947         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4948         not currently_expanding_to_rtl.
4950 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4952         * doc/invoke.texi (-Os): Remove trailing spaces.
4953         (-finline-functions): Remove reference to -O2.
4955 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
4957         PR rtl-optimization/79593
4958         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4960         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4961         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
4963 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
4965         PR bootstrap/88721
4966         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4967         to -1 on entry.
4969         PR debug/88723
4970         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4971         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4973 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
4975         PR target/88717
4976         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4977         ix86_avx_u128_mode_entry.
4979 2019-01-08  Martin Liska  <mliska@suse.cz>
4981         PR tree-optimization/88753
4982         * tree-switch-conversion.c (switch_conversion::build_one_array):
4983         Come up with local variable constructor.  Convert first to
4984         type of constructor values.
4986 2019-01-08  Richard Biener  <rguenther@suse.de>
4988         PR tree-optimization/86554
4989         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4990         rpo_avail): Move earlier.
4991         (visit_nary_op): When value-numbering to expressions
4992         with different overflow behavior make sure there's an
4993         available expression on the path.
4995 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
4997         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4998         aarch64_parse_branch_protection,
4999         struct aarch64_branch_protect_type,
5000         aarch64_handle_no_branch_protection,
5001         aarch64_handle_standard_branch_protection,
5002         aarch64_validate_mbranch_protection,
5003         aarch64_handle_pac_ret_protection,
5004         aarch64_handle_attr_branch_protection,
5005         accepted_branch_protection_string,
5006         aarch64_pac_ret_subtypes,
5007         aarch64_branch_protect_types,
5008         aarch64_handle_pac_ret_leaf): Define.
5009         (aarch64_override_options_after_change_1, aarch64_override_options):
5010         Add check for accepted_branch_protection_string.
5011         (aarch64_option_save): Save accepted_branch_protection_string.
5012         (aarch64_option_restore): Save accepted_branch_protection_string.
5013         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
5014         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
5015         msign-return-address.
5016         * doc/invoke.texi: Add mbranch-protection.
5018 2019-01-08  Alan Modra  <amodra@gmail.com>
5020         PR target/88614
5021         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
5022         Delete "unknownp" parameter.  Adjust callers.  Handle
5023         CONST_INT, PLUS, MINUS, and MULT.
5024         (attr_value_aligned): Renamed from or_attr_value.
5025         (min_attr_value): Return INT_MIN for unhandled rtl case..
5026         (min_fn): ..and translate to INT_MAX here.
5027         (write_length_unit_log): Modify to cope without "unknown".
5028         (write_attr_value): Handle IF_THEN_ELSE.
5030 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
5032         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
5033         optimization for masked stores.
5035 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
5037         PR middle-end/88567
5038         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
5039         output vector directly to duplicate_and_interleave instead of
5040         going through a temporary.  Postpone insertion of ctor_seq to
5041         the end of the loop.
5043 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
5045         PR target/86891
5046         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
5047         unsigned_p.  Handle signed and unsigned overflow correction as
5048         required.
5049         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
5050         prototype.
5051         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
5052         for operand 2.
5053         (add<mode>3_compareV_imm): Make this callable for expanding.
5054         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
5055         aarch64_plus_operand for operand 2.
5056         (subv<GPI:mode>_insn): New insn pattern.
5057         (subv<GPI:mode>_imm): Likewise.
5058         (negv<GPI:mode>3): New expand pattern.
5059         (negv<GPI:mode>_insn): New insn pattern.
5060         (negv<GPI:mode>_cmp_only): Likewise.
5061         (cmpv<GPI:mode>_insn): Likewise.
5062         (subvti4): Use register_operand for operand 1.  Update call to
5063         aarch64_expand_subvti.
5064         (usubvti4): Likewise.
5065         (negvti3): New expand pattern.
5066         (negdi_carryout): New insn pattern.
5067         (negvdi_carryinV): New insn pattern.
5068         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
5069         version the named version.
5070         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
5071         operands.
5072         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
5073         patterns.
5074         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
5075         patterns.
5076         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
5077         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
5078         (sub<mode>3_carryinCV): Delete.
5079         (sub<GPI:mode>3_carryinV): New expand pattern.
5080         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
5082 2019-01-07  Richard Biener  <rguenther@suse.de>
5084         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
5085         of tree_operand_hash.
5087 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
5089         PR tree-optimization/88598
5090         * tree.h (single_nonzero_element): Declare.
5091         * tree.c (single_nonzero_element): New function.
5092         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
5093         if I is the only nonzero element of CST.
5095 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
5097         PR tree-optimization/88598
5098         * tree.h (initializer_each_zero_or_onep): Declare.
5099         * tree.c (initializer_each_zero_or_onep): New function.
5100         (signed_or_unsigned_type_for): Handle float types too.
5101         (unsigned_type_for, signed_type_for): Update comments accordingly.
5102         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
5103         x & { 0 or -1, 0 or -1, ... }.
5105 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
5107         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
5108         with x86_64-pc-linux-gnu.
5110 2019-01-07  Tom de Vries  <tdevries@suse.de>
5112         PR target/85486
5113         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
5114         function.
5115         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
5116         routines.
5118 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
5120         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
5121         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
5122         TARGET_AVX512F as condition.
5124         PR debug/88723
5125         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
5126         const_not_ok_for_debug_p target hook.
5127         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
5128         on UNSPEC and subexpressions thereof if all subexpressions of the
5129         UNSPEC are CONSTANT_P.
5131         PR tree-optimization/88676
5132         * tree-ssa-phiopt.c (two_value_replacement): New function.
5133         (tree_ssa_phiopt_worker): Call it.
5135         PR sanitizer/88619
5136         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5137         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5139         PR c++/85052
5140         * tree-vect-generic.c: Include insn-config.h and recog.h.
5141         (expand_vector_piecewise): Add defaulted ret_type argument,
5142         if non-NULL, use that in preference to type for the result type.
5143         (expand_vector_parallel): Formatting fix.
5144         (do_vec_conversion, do_vec_narrowing_conversion,
5145         expand_vector_conversion): New functions.
5146         (expand_vector_operations_1): Call expand_vector_conversion
5147         for VEC_CONVERT ifn calls.
5148         * internal-fn.def (VEC_CONVERT): New internal function.
5149         * internal-fn.c (expand_VEC_CONVERT): New function.
5150         * fold-const-call.c (fold_const_vec_convert): New function.
5151         (fold_const_call): Use it for CFN_VEC_CONVERT.
5152         * doc/extend.texi (__builtin_convertvector): Document.
5154 2019-01-07  Tom de Vries  <tdevries@suse.de>
5156         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5157         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5158         vector_red_partition, vector_red_sym): New global variables.
5159         (nvptx_option_override): Initialize vector_red_sym.
5160         (nvptx_declare_function_name): Restore red_partition register.
5161         (nvptx_file_end): Emit code to declare the vector reduction variables.
5162         (nvptx_output_red_partition): New function.
5163         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5164         large vector reductions.
5165         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5166         (nvptx_init_builtins): Add VECTOR_ADDR.
5167         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5168         Handle nvptx_expand_shared_addr.
5169         (nvptx_get_shared_red_addr): Add vector argument and handle large
5170         vectors.
5171         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5172         large vectors.
5173         (nvptx_goacc_reduction_init): Likewise.
5174         (nvptx_goacc_reduction_fini): Likewise.
5175         (nvptx_goacc_reduction_teardown): Likewise.
5176         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5177         init,fini,teardown}.
5178         (nvptx_init_axis_predicate): Initialize vector_red_partition.
5179         (nvptx_set_current_function): Init vector_red_partition.
5180         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5181         (nvptx_red_partition): New insn.
5182         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5184 2019-01-07  Tom de Vries  <tdevries@suse.de>
5186         PR target/85381
5187         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5188         empty loops.
5190 2019-01-07  Tom de Vries  <tdevries@suse.de>
5192         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5193         (nvptx_option_override): Init oacc_bcast_partition.
5194         (nvptx_init_oacc_workers): New function.
5195         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5196         (nvptx_needs_shared_bcast): New function.
5197         (nvptx_find_par): Generalize to enable vectors to use shared-memory
5198         to propagate state.
5199         (nvptx_shared_propagate): Initialize vector bcast partition and
5200         synchronization state.
5201         (nvptx_single):  Generalize to enable vectors to use shared-memory
5202         to propagate state.
5203         (nvptx_process_pars): Likewise.
5204         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5205         * config/nvptx/nvptx.h (struct machine_function): Add
5206         bcast_partition and sync_bar members.
5208 2019-01-07  Tom de Vries  <tdevries@suse.de>
5210         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5211         (nvptx_apply_dim_limits): New function.
5212         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5213         PTX_WARP_SIZE.
5215 2019-01-07  Tom de Vries  <tdevries@suse.de>
5217         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5218         as late as possible.
5220 2019-01-07  Tom de Vries  <tdevries@suse.de>
5222         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5223         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5224         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5225         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5226         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5228 2019-01-07  Tom de Vries  <tdevries@suse.de>
5230         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5232 2019-01-07  Tom de Vries  <tdevries@suse.de>
5234         * omp-offload.c (oacc_get_min_dim): New function.
5235         * omp-offload.h (oacc_get_min_dim): Declare.
5237 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
5239         PR target/88521
5240         * config/i386/i386.c (function_value_ms_64): Return small sturct in
5241         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5243 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
5245         PR tree-opt/86020
5246         Revert:
5247         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
5249         * ipa-inline.c (edge_badness): Use inlined_time instead of
5250         inline_summaries->get.
5252 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
5254         * opts.c (enable_fdo_optimizations): Enable
5255         version-loops-for-strides, loop-interchange, unrol-and-jam
5256         and tree-loop-distribution.
5257         * invoke.texi: Document newly enabled options.
5259 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
5261         * doc/invoke.texi (max-inline-insns-small): New parameters.
5262         * ipa-inline.c (want_early_inline_function_p): simplify.
5263         (want_inline_small_function_p): Fix pasto from previous patch;
5264         use max-inline-insns-small bound.
5265         * params.def (max-inline-insns-small): New param.
5266         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5267         variables correctly.
5269 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
5271         * doc/invoke.texi: Document max-inline-insns-size,
5272         uninlined-function-insns, uninlined-function-time,
5273         uninlined-thunk-insns and uninlined-thunk-time.
5274         * params.def: Add max-inline-insns-size,
5275         uninlined-function-insns, uninlined-function-time,
5276         uninlined-thunk-insns and uninlined-thunk-time.
5277         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5278         new parameters.
5279         * ipa-inline.c (can_inline_edge_by_limits_p,
5280         want_inline_small_function_p): Use new parameters.
5282 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
5284         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5286 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
5288         PR middle-end/82564
5289         PR target/88620
5290         * expr.c (expand_assignment): For calls returning VLA structures
5291         if to_rtx is not a MEM, force it into a stack temporary.
5293         PR debug/88635
5294         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5295         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5296         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5297         subexpressions of both operands.
5298         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5299         subrtxes are CONSTANT_P.
5300         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5301         2018-11-09 changes.
5303 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
5305         * params.def (hot-bb-count-ws-permille): Set to 990.
5307 2019-01-04  Martin Sebor  <msebor@redhat.com>
5309         PR c/88546
5310         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5311         leaf.
5313 2019-01-04  Martin Sebor  <msebor@redhat.com>
5315         PR c/88363
5316         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5318 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
5320         * gdbinit.in: Turn off pagination for the skip commands, restore
5321         it to previous state afterwards.
5323 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
5325         PR target/88594
5326         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5327         of GET_MODE (opN) as modes of the libcall arguments.
5329 2019-01-04  Jan Beulich  <jbeulich@suse.com>
5331         * config/i386/sse.md
5332         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5333         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5334         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5335         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5336         avx512f_vmcmp<mode>3<round_saeonly_name>,
5337         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5338         avx512f_maskcmp<mode>3,
5339         <avx512>_cvt<ssemodesuffix>2mask<mode>,
5340         <avx512>_cvt<ssemodesuffix>2mask<mode>,
5341         *<avx512>_cvtmask2<ssemodesuffix><mode>,
5342         *<avx512>_cvtmask2<ssemodesuffix><mode>,
5343         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5344         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5345         <avx512>_gt<mode>3<mask_scalar_merge_name>,
5346         <avx512>_gt<mode>3<mask_scalar_merge_name>,
5347         <avx512>_testm<mode>3<mask_scalar_merge_name>,
5348         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5349         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5350         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5351         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5352         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5353         avx512cd_maskb_vec_dup<mode>,
5354         avx512cd_maskw_vec_dup<mode>,
5355         avx512dq_fpclass<mode><mask_scalar_merge_name>,
5356         avx512dq_vmfpclass<mode>,
5357         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5358         instead of =Yk.
5360 2019-01-03  Martin Sebor  <msebor@redhat.com>
5362         PR tree-optimization/88659
5363         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5365 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
5367         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5368         unaligned vsx and avoid lxvd2x/stxvd2x.
5369         (gen_lvx_v4si_move): New function.
5371 2019-01-03  Tom de Vries  <tdevries@suse.de>
5373         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5374         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5375         function.
5376         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5378 2019-01-03  Tom de Vries  <tdevries@suse.de>
5380         * config/nvptx/nvptx.c (struct offload_attrs): New.
5381         (populate_offload_attrs): New function.  Factor mask extraction out of
5382         nvptx_reorg.  Add extraction of dimensions.
5383         (nvptx_reorg): Use populate_offload_attrs.
5385 2019-01-03  Tom de Vries  <tdevries@suse.de>
5387         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5388         cases for oacc_min_dims_p and routine_p.  Add asserts for
5389         oacc_default_dims_p and offload_region_p.
5391 2019-01-03  Tom de Vries  <tdevries@suse.de>
5393         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5394         factored out of ...
5395         (nvptx_goacc_validate_dims): ... here.
5397 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
5399         PR tree-optimization/85574
5400         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5401         structure.
5402         (struct ssa_equip_hash_traits): Declare.
5403         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5405 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
5407         PR debug/88644
5408         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5409         change it to qualified_type.
5411 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
5413         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5414         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5416 2019-01-02  Martin Sebor  <msebor@redhat.com>
5417             Jeff Law  <law@redhat.com>
5419         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5420         (get_range_strlen_tree): Update appropriately.
5421         (get_range_strlen)
5422         * gimple-fold.h (get_range_strlen): Drop unused last argument.
5424         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5425         rather than set_range_info.
5426         * tree-ssa-strlen.c (set_strlen_range): Extracted from
5427         maybe_set_strlen_range.  Handle potentially boundary crossing
5428         cases more conservatively.
5429         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5430         Call set_strlen_range.
5431         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5433         PR middle-end/88663
5434         * gimple-fold.c (get_range_strlen): Update prototype to no longer
5435         need the flexp argument.
5436         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
5437         from calls to get_range_strlen.  Update comments.  Just update
5438         VAL for an unterminated const char array and let the reset of the
5439         code handle it normally.  No longer try to set *flexp.  Adjust
5440         return value.
5441         (get_range_strlen): Update for the new get_range_strlen API.
5442         (get_maxval_strlen): Similarly.
5443         (gimple_fold_builtin_strlen): Handle update meaning of return value
5444         from get_range_strlen.
5445         * gimple-ssa-sprintf.c (get_string_length): Update for the new
5446         get_range_strlen API.
5448 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
5450         PR lto/88130
5451         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5452         false at WPA time when body was removed.
5454 2019-01-02  Martin Liska  <mliska@suse.cz>
5456         PR tree-optimization/88650
5457         * predict.c (set_even_probabilities): Calculate probability
5458         remainer only when really used.
5460 2019-01-02  Richard Biener  <rguenther@suse.de>
5462         PR middle-end/88651
5463         * tree-data-ref.c (analyze_subscript_affine_affine): Use
5464         widest_ints when mangling max_stmt_execution results.
5466 2019-01-02  Richard Biener  <rguenther@suse.de>
5468         PR tree-optimization/88621
5469         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5470         bitfields when canoncalizing.
5472 2019-01-02  Richard Biener  <rguenther@suse.de>
5474         PR target/87545
5475         * config/i386/x86-tune-costs.h (intel_cost): Adjust
5476         cost of cheap SSE instruction.
5478 2019-01-02  Richard Biener  <rguenther@suse.de>
5480         PR ipa/85574
5481         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5482         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5483         function.
5484         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5485         set after UIDs before splitting them.
5487 2019-01-01  Martin Sebor  <msebor@redhat.com>
5488             Jeff Law  <law@redhat.com>
5490         * gimple-fold.c (get_range_strlen_tree): Record if the computed
5491         length is optimistic.  If it is, then arrange to compute the
5492         conservative length as well.
5494         * gimple-fold.h (get_range_strlen): Update prototype.
5495         * builtins.c (check_access): Update call to get_range_strlen to use
5496         c_strlen_data pointer.   Change various variable accesses to instead
5497         pull data from the c_strlen_data structure.
5498         (check_strncat_sizes, expand_builtin_strncat): Likewise.
5499         * calls.c (maybe_warn_nonstring_arg): Likewise.
5500         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
5501         minimum length if maximum lengh is unknown.
5502         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
5503         that used c_strlen, it's no longer needed.  Restructure slightly.
5504         (format_string): Set unlikely range appropriately.
5505         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
5506         formatting issues.
5507         (get_range_strlen):  Accept c_strlen_data pointer for external
5508         call sites as well.  Pass through to call to internal get_range_strlen.
5509         Adjust minlen, maxlen and maxbound as needed.
5510         (get_maxval_strlen): Update comments.
5511         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
5512         to use c_strlen_data pointer.  Change variable accesses to instead
5513         use c_strlen_data data members.
5515         * gimple-fold.c (get_range_strlen): Update prototype.
5516         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
5517         local variables.  Use pdata to return information to caller.
5518         Update calls to get_range_strlen.  Update pdata->maxbound.
5519         (get_range_strlen -- static version): Similarly.
5520         (get_range_strlen -- extern version): Update for internal
5521         get_range_strlen API change.  Convert to external data format.
5522         (get_maxval_strlen): Similarly.
5524 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
5526         * coverage.c (get_coverage_counts): Use current_function_decl.
5527         * profile.c (read_thunk_profile): New function.
5528         (branch_prob): Add THUNK parameter.
5529         * tree-profile.c (tree_profiling): Handle thunks.
5530         * value-prof.c (init_node_map): Handle thunks.
5531         * value-prof.h (branch_prob): Upate prototype.
5532         (read_thunk_profile): Declare.
5534 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5536         Update copyright years.
5538         * gcc.c (process_command): Update copyright notice dates.
5539         * gcov-dump.c (print_version): Ditto.
5540         * gcov.c (print_version): Ditto.
5541         * gcov-tool.c (print_version): Ditto.
5542         * gengtype.c (create_file): Ditto.
5543         * doc/cpp.texi: Bump @copying's copyright year.
5544         * doc/cppinternals.texi: Ditto.
5545         * doc/gcc.texi: Ditto.
5546         * doc/gccint.texi: Ditto.
5547         * doc/gcov.texi: Ditto.
5548         * doc/install.texi: Ditto.
5549         * doc/invoke.texi: Ditto.
5551 Copyright (C) 2019 Free Software Foundation, Inc.
5553 Copying and distribution of this file, with or without modification,
5554 are permitted in any medium without royalty provided the copyright
5555 notice and this notice are preserved.