re PR target/90991 (_mm_loadu_ps instrinsic translates to vmovaps in combination...
[official-gcc.git] / gcc / ChangeLog
blob73c0be048aceedbf60ba57a6c73ba9bd6976a66c
1 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
3         PR target/90991
4         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
5         instead of register_operand for operands[1], add m to its constraints
6         if operands[2] uses "C" constraint.  Ensure in condition that if
7         operands[2] is not 0, then operands[1] is not a MEM.  For last two
8         alternatives, use unaligned loads instead of aligned if operands[1] is
9         misaligned_operand.
11 2019-06-27  Martin Liska  <mliska@suse.cz>
13         * asan.c (asan_emit_allocas_unpoison): Remove obviously
14         dead assignments.
15         * bt-load.c (move_btr_def): Likewise.
16         * builtins.c (expand_builtin_apply_args_1): Likewise.
17         (expand_builtin_apply): Likewise.
18         * cfgexpand.c (expand_asm_stmt): Likewise.
19         (construct_init_block): Likewise.
20         * cfghooks.c (verify_flow_info): Likewise.
21         * cfgloopmanip.c (remove_path): Likewise.
22         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
24         * combine.c (simplify_if_then_else): Likewise.
25         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
26         (choose_basereg): Likewise.
27         (ix86_expand_prologue): Likewise.
28         (ix86_preferred_output_reload_class): Likewise.
29         * cselib.c (cselib_record_sets): Likewise.
30         * df-scan.c (df_scan_alloc): Likewise.
31         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
32         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
33         * emit-rtl.c (try_split): Likewise.
34         * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
35         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
36         * ira-color.c (setup_profitable_hard_regs): Likewise.
37         * ira.c (rtx_moveable_p): Likewise.
38         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
39         * read-rtl.c (read_subst_mapping): Likewise.
40         * regrename.c (scan_rtx): Likewise.
41         * reorg.c (fill_slots_from_thread): Likewise.
42         * tree-inline.c (tree_function_versioning): Likewise.
43         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
44         * tree-ssa-sink.c (statement_sink_location): Likewise.
45         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
46         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
47         (vect_create_epilog_for_reduction): Likewise.
48         * tree.c (build_nonstandard_integer_type): Likewise.
50 2019-06-27  Richard Biener  <rguenther@suse.de>
52         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
54 2019-06-27  Jun Ma <JunMa@linux.alibaba.com>
56         PR tree-optimization/89772
57         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
58         out-of-bound accesses checking.
60 2019-06-27  Martin Liska  <mliska@suse.cz>
62         PR tree-optimization/91014
63         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
64         when LHS is NULL_TREE.
66 2019-06-27  Martin Liska  <mliska@suse.cz>
68         * symbol-summary.h (traverse): Pass
69         argument a to the call of callback.
70         (gt_ggc_mx): Mark arguments as unused.
71         (gt_pch_nx): Likewise.
73 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
75         PR target/62147
76         * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
77         finiteness.
79 2019-06-26  Jeff Law  <law@redhat.com>
81         PR tree-optimization/90883
82         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
83         (delete_dead_or_redundant_assignment): Likewise.
85         PR tree-optimization/90883
86         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
87         * tree-ssa-dse.c: Update various comments to distinguish between
88         dead and redundant stores.
89         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
90         (dse_optimize_redundant_stores): New function.
91         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
92         Distinguish between dead and redundant calls in dump output.  All
93         callers updated.
94         (delete_dead_or_redundant_assignment): Similarly for assignments.
95         (dse_optimize_stmt): Handle _CHK variants.  For statements which
96         store 0 into multiple memory locations, try to prove a subsequent
97         store is redundant.
99 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
101         PR target/89021
102         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
103         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
105 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
107         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
108         (branch_islands): New extern.
109         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
110         * config/rs6000/rs6000.c: .. here.
112 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
114         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
115         (powerpc*-*-*) ... to here.
117 2019-06-26  Jeff Law  <law@redhat.com>
119         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
120         memcpy, memmove and memset builtins.
121         (maybe_trim_memstar_call): Likewise.
123 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
125         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
127 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
129         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
131 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
133         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
134         declaration.
135         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
136         "static".
137         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
138         declaration.
140 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
142         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
144 2019-06-26  Richard Biener  <rguenther@suse.de>
146         PR ipa/90982
147         * tree-inline.c (remap_ssa_name): Copy SSA range info.
149 2019-06-26  Richard Biener  <rguenther@suse.de>
151         * lto-streamer.h (lto_bitmap_alloc): Remove.
152         (lto_bitmap_free): Likewise.
153         * lto-streamer.c (lto_bitmap_alloc): Remove.
154         (lto_bitmap_free): Likewise.
155         (lto_obstack): Likewise.
156         (lto_obstack_initialized): Likewise.
157         * lto-streamer-out.c (lto_output): Use own obstack for local
158         bitmap, free it consistently.
160 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
162         PR target/90991
163         * config/i386/sse.md
164         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
165         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
166         insns if operands[2] is misaligned_operand.
168 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
170         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
171         TARGET_POWERPC64.
172         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
173         to GPR.
175 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
177         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
179 2019-06-26  Martin Liska  <mliska@suse.cz>
181         PR tree-optimization/90973
182         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
183         epilogue_cost_vec instead of prologue_cost_vec for
184         a epilogue cost.
186 2019-06-26  Martin Liska  <mliska@suse.cz>
188         * bb-reorder.c (connect_better_edge_p): Add missing else
189         statement in the middle of if-else statements.
191 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
192         is_better_edge = true;
193         ^                ~~~~
194 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
195         is_better_edge = false;
196         ^                ~~~~~
198 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
199             H.J. Lu  <hongjiu.lu@intel.com>
200             Olga Makhotina  <olga.makhotina@intel.com>
202         * common/config/i386/i386-common.c
203         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
204         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
205         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
206         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
207         (ix86_handle_option): Handle -mavx512vp2intersect.
208         * config/i386/avx512vp2intersectintrin.h: New.
209         * config/i386/avx512vp2intersectvlintrin.h: New.
210         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
211         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
212         AVX512VP2INTERSECT.
213         * config/i386/i386-builtin-types.def: Add new types.
214         * config/i386/i386-builtin.def: Add new builtins.
215         * config/i386/i386-builtins.c: (enum processor_features): Add
216         F_AVX512VP2INTERSECT.
217         (static const _isa_names_table isa_names_table): Ditto.
218         * config/i386/i386-c.c (ix86_target_macros_internal): Define
219         __AVX512VP2INTERSECT__.
220         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
221         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
222         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
223         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
224         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
225         * config/i386/i386-options.c (ix86_target_string): Add
226         -mavx512vp2intersect.
227         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
228         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
229         P2HImode and P2QImode.
230         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
231         number for P2QImode and P2HImode.
232         (ix86_regmode_natural_size): New function.
233         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
234         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
235         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
236         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
237         * config/i386/i386.opt: Add -mavx512vp2intersect.
238         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
239         avx512vp2intersectvlintrin.h.
240         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
241         (define_mode_iterator VI48_AVX512VP2VL): New.
242         (avx512vp2intersect_2intersect<mode>,
243         avx512vp2intersect_2intersectv16si): New define_insn patterns.
244         * config.gcc: Add avx512vp2intersectvlintrin.h and
245         avx512vp2intersectintrin.h to extra_headers.
246         * doc/invoke.texi: Document -mavx512vp2intersect.
248 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
250         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
252 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
254         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
255         savres_routine_syms, savres_routine_name, morestack_ref,
256         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
257         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
258         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
259         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
260         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
261         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
262         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
263         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
264         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
265         get_stack_clash_protection_probe_interval,
266         get_stack_clash_protection_guard_size,
267         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
268         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
269         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
270         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
271         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
272         gen_frame_mem_offset, rs6000_savres_routine_name,
273         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
274         ptr_regno_for_savres, rs6000_emit_savres_rtx,
275         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
276         rs6000_global_entry_point_prologue_needed_p,
277         rs6000_get_separate_components, rs6000_components_for_bb,
278         rs6000_disqualify_components, rs6000_emit_prologue_components,
279         rs6000_emit_epilogue_components, rs6000_set_handled_components,
280         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
281         rs6000_output_savres_externs, rs6000_output_function_prologue,
282         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
283         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
284         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
285         rs6000_output_function_epilogue, gen_add3_const,
286         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
287         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
288         to rs6000-logue.c.
289         (machine_function): Moved to rs6000.h.
290         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
291         rs6000-internal.h.
292         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
293         savres_routine_syms, savres_routine_name, morestack_ref,
294         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
295         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
296         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
297         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
298         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
299         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
300         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
301         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
302         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
303         get_stack_clash_protection_probe_interval,
304         get_stack_clash_protection_guard_size,
305         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
306         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
307         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
308         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
309         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
310         gen_frame_mem_offset, rs6000_savres_routine_name,
311         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
312         ptr_regno_for_savres, rs6000_emit_savres_rtx,
313         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
314         rs6000_global_entry_point_prologue_needed_p,
315         rs6000_get_separate_components, rs6000_components_for_bb,
316         rs6000_disqualify_components, rs6000_emit_prologue_components,
317         rs6000_emit_epilogue_components, rs6000_set_handled_components,
318         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
319         rs6000_output_savres_externs, rs6000_output_function_prologue,
320         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
321         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
322         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
323         rs6000_output_function_epilogue, gen_add3_const,
324         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
325         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
326         to here from rs6000.c.
327         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
328         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
329         quad_address_offset_p) Moved to here from rs6000.c.
330         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
331         * config/config.gcc: Add new source file rs6000-logue.c to garbage
332         collector.
334 2019-06-25  Martin Liska  <mliska@suse.cz>
336         * hash-table.c (hashtab_chk_error): Move here from ...
337         * hash-table.h (hashtab_chk_error): ... here.
339 2019-06-25  Martin Liska  <mliska@suse.cz>
341         PR tree-optimization/90978
342         * df-scan.c (df_update_entry_block_defs): Remove dead else
343         branch.
344         (df_update_exit_block_uses): Likewise.
346 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
347             Andrew Stubbs  <ams@codesourcery.com>
349         * config.gcc (thread_file): Set to gcn for AMD GCN.
350         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
351         (TARGET_EMUTLS_VAR_INIT): New hook.
353 2019-06-25  Martin Jambor  <mjambor@suse.cz>
355         PR ipa/90939
356         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
358 2019-06-25  Richard Biener  <rguenther@suse.de>
360         PR tree-optimization/90930
361         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
362         into parallel form in the last pass instance.
364 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
366         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
367         (arc_legitimize_pic_address): Simplify and cleanup the function.
368         (SYMBOLIC_CONST): Remove.
369         (prepare_pic_move): Likewise.
370         (prepare_move_operands): Handle complex mov cases here.
371         (arc_legitimize_address_0): Remove call to
372         arc_legitimize_pic_address.
373         (arc_legitimize_address): Remove call to
374         arc_legitimize_tls_address.
375         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
376         (movhi_insn): Likewise.
378 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
380         * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
381         alternate "__intN__" name for "__intN" types.
382         * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
383         * gcc/cp/lex.c (init_reswords): Likewise.
384         * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
385         PTRDIFF_TYPE.
386         * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
387         * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
388         C incompatibility if alternate "__intN__" form is used.
389         * gcc/cp/decl.c (grokdeclarator): Likewise.
390         * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
391         decl_specs->int_n_alt if "__intN__" form is used.
392         * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
393         format of "__intN" types for UINTMAX_TYPE.
394         * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
395         format of "__intN" types for SIZE_TYPE.
396         * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
397         * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
398         format of "__intN" types for SIZETYPE.
399         * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
400         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
401         * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
402         warnings.
404 2019-06-25  Jan Hubicka  <jh@suse.cz>
406         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
407         base2_alias_set is non-zero before doing TBAA based disambiguation.
409 2019-06-25  Martin Liska  <mliska@suse.cz>
411         PR tree-optimization/90973
412         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
413         of prologue and epilogue.
415 2019-06-24  Jan Hubicka  <jh@suse.cz>
417         * ipa-utils.h (type_with_linkage_p): Verify that type is
418         CXX_ODR_P.
419         (odr_type_p): Remove extra return.
420         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
421         hash STRING_FLAG only for arrays and integers.
422         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
423         Update analogously.
424         * tree-streamer-out.c (pack_ts_type_common_value_fields):
425         Likewise.
426         * print-tree.c (print_node): Print cxx-odr-p
427         and string-flag.
428         * tree.c (need_assembler_name_p): Also check that type
429         is CXX_ODR_TYPE_P
430         (verify_type_variant): Update verification of SRING_FLAG;
431         also check CXX_ODR_P.
432         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
433         (TYPE_STRING_FLAG): Use it.
434         (TYPE_CXX_ODR_P): New macro.
435         * dwarf2out.c (gen_array_type_die): First check that type
436         is an array and then test string flag.
438 2019-06-24  Richard Biener  <rguenther@suse.de>
440         PR tree-optimization/90972
441         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
442         in common code, dealing with STRING_CST properly.
444 2019-06-24  Richard Biener  <rguenther@suse.de>
446         PR tree-optimization/90930
447         PR tree-optimization/90316
448         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
449         decrement of limit.
451 2019-06-24  Martin Sebor  <msebor@redhat.com>
453         * tree-pretty-print.h: Remove unnecessary punctuation characters
454         from a diagnostic.
455         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
457 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
459         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
460         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
461         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
463 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
465         * config/rs6000/darwin.h: Handle GCC target pragma.
467 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
469         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
471 2019-06-22  Jeff Law  <law@redhat.com>
473         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
475 2019-06-22  Jan Hubicka  <jh@suse.cz>
477         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
478         give up on bitfields; continue searching for different refs
479         appearing later.
481 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
483         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
484         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
485         containing the offset as possible simd lane access.  Look through
486         widening conversion.  Move the
487         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
489 2019-06-21  Richard Biener  <rguenther@suse.de>
491         PR tree-optimization/90930
492         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
493         flag on new stmts to avoid re-processing them.
495 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
497         PR c++/90875 - added -Wswitch-outside-range option
498         * doc/invoke.texi (Wswitch-outside-range): Document.
500 2019-06-21  Jeff Law  <law@redhat.com>
502         PR tree-optimization/90949
503         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
504         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
506 2019-06-21  Richard Biener  <rguenther@suse.de>
508         PR debug/90914
509         * dwarf2out.c (prune_unused_types_walk): Always consider
510         function-local extern declarations as used.
512 2019-06-21  Richard Biener  <rguenther@suse.de>
514         PR tree-optimization/90913
515         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
516         the scalar variant of if-conversion versioning.
518 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
520         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
521         create another "omp scan inscan exclusive" array if
522         !ctx->scan_inclusive.
523         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
524         (lower_omp_scan): Likewise.
525         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
526         2-bit bitfield for simd_lane_access_p member.
527         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
528         aux == (void *)-4 as simd lane access.
529         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
530         comment with permutations to show the canonical permutation order.
531         (vectorizable_scan_store): Handle exclusive scan.
532         (vectorizable_store): Call vectorizable_scan_store even for
533         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
535         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
536         "omp simd array" arrays with one byte elements.
538 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
540         * config/alpha/alpha.md (@unaligned_store<mode>):
541         Rename from unaligned_store<mode>.
542         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
543         * config/alpha/sync.md (@load_locked_<mode>): Rename
544         from load_locked_<mode>.
545         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
546         (@atomic_compare_and_swap<mode>_1): Rename
547         from atomic_compare_and_swap<mode>_1.
548         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
549         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
550         Use gen_reload_in_aligned and gen_unaligned_store.
551         (emit_load_locked): Remove.
552         (emit_store_conditional): Ditto.
553         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
554         (alpha_split_compare_and_swap): Ditto.
555         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
556         (alpha_split_compare_and_swap_12): Use gen_load_locked
557         and gen_store_conditional.
558         (alpha_split_atomic_exchange): Ditto.
559         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
560         (alpha_split_atomic_exchange_12): Use gen_load_locked
561         and gen_store_conditional.
563 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
565         * config/aarch64/aarch64-errata.h: New file.
566         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
567         (CA53_ERR_843419_SPEC): Delete.
568         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
569         * config/aarch64/aarch64-linux.h: Likewise.
570         * config/aarch64/aarch64-netbsd.h: Likewise.
571         * config/aarch64/aarch64-freebsd.h: Likewise.
573 2019-06-20  Marek Polacek  <polacek@redhat.com>
575         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
577 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
579         * config/rs6000/rs6000.md (isa attribute): Add support for
580         for a future processor.
582 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
584         PR target/54855
585         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
586         standard scalar operation pattern for V2DF.
587         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
588         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
589         (*ieee_<ieee_maxmin><mode>3): Likewise.
590         (vec_setv2df_0): Likewise.
592 2019-06-20  Jan Hubicka  <jh@suse.cz>
594         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
595         parameter; it has no use in gimple memory model.
596         (indirect_ref_may_alias_decl_p): Update.
598 2019-06-20  Martin Liska  <mliska@suse.cz>
600         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
601         to 10.
603 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
605         * tree-vect-stmts.c (enum scan_store_kind): New type.
606         (scan_store_can_perm_p): Change last argument from int * to
607         vec<enum scan_store_kind> *, record precisely which permutations
608         need whole vector left shift or that plus VEC_COND_EXPR.
609         (vectorizable_scan_store): Adjust caller, use whole vector left shift
610         and additional VEC_COND_EXPR only for those iterations that need it.
612 2019-06-20  Alexandre Oliva <oliva@adacore.com>
614         * config.gcc: Fix ARM --with-fpu checking and error message.
616 2019-06-19  Marek Polacek  <polacek@redhat.com>
618         PR c++/60364 - noreturn after first decl not diagnosed.
619         * attribs.c (get_attribute_namespace): No longer static.
620         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
621         attributes.
622         (attr_noreturn_exclusions): Make it extern.
623         * attribs.h (get_attribute_namespace): Declare.
624         * tree-inline.c (function_attribute_inlinable_p): Use
625         get_attribute_name.
627 2019-06-19  Martin Sebor  <msebor@redhat.com>
629         PR tree-optimization/90626
630         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
632         PR tree-optimization/90626
633         * tree-ssa-strlen.c (strxcmp_unequal): New function.
634         (handle_builtin_string_cmp): Call it.
636 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
638         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
639         and DARWIN_NOPIE_SPEC.
640         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
641         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
642         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
643         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
644         (DARWIN_EXPORT_DYNAMIC): Delete.
645         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
646         and pie options processing to  darwin.h.
647         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
649 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
651         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
652         in computing the number of options to be moved.
654 2019-06-19  Maya Rashish  <coypu@sdf.org>
656         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
657         (CLEAR_INSN_CACHE) Use it.
659 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
661         * config/i386/i386.md (cmpstrnsi): Remove dead code.
663 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
665         PR middle-end/84521
666         * builtins.c (expand_builtin_setjmp_setup): Save
667         hard_frame_pointer_rtx.
668         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
669         restore fp.
670         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
671         non-local goto.
672         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
673         elimination code.
674         (remove_reg_equal_offset_note): Remove unused function.
675         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
676         code.
677         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
678         (arc_builtin_setjmp_frame_value): Remove function.
679         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
680         (avr_builtin_setjmp_frame_value): Remove function.
681         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
682         (ix86_builtin_setjmp_frame_value): Remove function.
683         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
684         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
685         (sparc_builtin_setjmp_frame_value): Remove function.
686         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
687         (vax_builtin_setjmp_frame_value): Remove function.
688         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
689         pointer if has_nonlocal_label.
691 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
693         * doc/md.texi: Document vec_shl_<mode> pattern.
694         * optabs.def (vec_shl_optab): New optab.
695         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
696         argument, if == vec_shl_optab, check for left whole vector shift
697         pattern rather than right shift.
698         (expand_vec_perm_const): Add vec_shl_optab support.
699         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
700         in the comment.
701         * tree-vect-generic.c (lower_vec_perm): Support permutations which
702         can be handled by vec_shl_optab.
703         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
704         (check_scan_store): Use it.
705         (vectorizable_scan_store): If target can't do normal permutations,
706         try to use whole vector left shifts and if needed a VEC_COND_EXPR
707         after it.
708         * config/i386/sse.md (vec_shl_<mode>): New expander.
710         * omp-low.c (lower_rec_input_clauses): Handle references properly
711         in inscan clauses.
712         (lower_omp_scan): Likewise.
714 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
716         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
717         mem_mode is BLKmode.
719 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
721         PR target/90922
722         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
723         pointer adjustment for the case of no callee-saved registers and
724         stack frame bigger than 128 bytes.
726 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
728         PR middle-end/90862
729         * omp-low.c (check_omp_nesting_restrictions): Handle
730         GF_OMP_TARGET_KIND_OACC_DECLARE.
732 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
734         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
735         (@add<mode>3_carry): Rename from add<mode>3_carry.
736         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
737         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
738         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
739         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
740         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
741         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
742         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
743         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
744         (cmpstrnsi): Use gen_cmp_1.
745         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
746         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
747         (@umonitor_<mode>): Rename from umonitor_<mode>.
748         * config/i386/i386-expand.c (ix86_expand_copysign):
749         Use gen_copysign3_const and gen_copysign3_var.
750         (ix86_expand_xorsign): Use gen_xorsign3_1.
751         (ix86_expand_branch): Use gen_sub3_carry_ccc,
752         gen_sub3_carry_ccgz and gen_cmp1.
753         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
754         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
755         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
756         (ix86_split_lshr): Ditto.
757         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
759 2019-06-18  Jason Merrill  <jason@redhat.com>
761         * tree.c (build_constructor): Add MEM_STAT_DECL.
763 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
765         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
766         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
767         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
768         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
769         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
770         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
771         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
772         Use CC_NZC instead of CC.
773         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
774         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
775         (aarch64_print_operand): Handle E_CC_NZCmode.
776         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
777         of gen_set_clobber_cc.
779 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
781         * config/aarch64/aarch64-sve.md: Tabify file.
783 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
785         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
786         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
787         * config/aarch64/aarch64-sve.md: Use it.
789 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
791         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
792         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
793         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
794         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
795         (aarch64_expand_sve_vec_cmp_int): Use it.
796         (aarch64_expand_sve_vec_cmp_float): Likewise.
797         * config/aarch64/aarch64-sve.md: Likewise throughout.
799 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
800             Kugan Vivekanandarajah  <kuganv@linaro.org>
802         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
803         (*cond_<optab><mode>_z): Fold into...
804         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
805         operand 4 can be tied to operand 0 (either inherently or via RA).
807 2019-06-18  Richard Biener  <rguenther@suse.de>
809         PR debug/90900
810         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
811         as if optimized away.
813 2019-06-18  Tom de Vries  <tdevries@suse.de>
815         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
816         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
817         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
818         Rename to ...
819         (define_insn "@set_softstack_<mode>"): ... this.
820         (define_insn "omp_simt_enter_<mode>"): Rename to ...
821         (define_insn "@omp_simt_enter_<mode>"): ... this.
822         (define_insn "omp_simt_exit_<mode>"): Rename to ...
823         (define_insn "@omp_simt_exit_<mode>"): ... this.
825 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
827         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
828         vf parameter.  Restore the previous iv step of nscalars_step,
829         but give it iv_type rather than compare_type.  Tweak code order
830         to match the comments.
831         (vect_set_loop_condition_masked): Update accordingly.
832         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
833         for iv_precision.  Tweak comment formatting.
835 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
837         * config/darwin.c: Strip trailing whitespace.
839 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
841         * config/darwin.c (darwin_emit_unwind_label): New default to false.
842         (darwin_override_options): Set darwin_emit_unwind_label as needed.
844 2019-06-18  Martin Jambor  <mjambor@suse.cz>
846         PR ipa/90889
847         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
848         caller does not have flag_ipa_cp set.
850 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
852         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
853         from "*fold_left_plus_<mode>", updated operands order.
854         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
855         * internal-fn.c (mask_fold_left_direct): New define.
856         (expand_mask_fold_left_optab_fn): Likewise.
857         (direct_mask_fold_left_optab_supported_p): Likewise.
858         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
859         * optabs.def (mask_fold_left_plus_optab): New optab.
860         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
861         masked internal_fn for a reduction ifn.
862         (vectorize_fold_left_reduction): Add support for masking reductions.
864 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
866         PR middle-end/80791
867         * target.def (predict_doloop_p): New hook.
868         * targhooks.h (default_predict_doloop_p): New declaration.
869         * targhooks.c (default_predict_doloop_p): New function.
870         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
871         * doc/tm.texi: Regenerate.
872         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
873         (TARGET_PREDICT_DOLOOP_P): New macro.
874         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
876 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
878         * omp-low.c (struct omp_context): Add scan_inclusive field.
879         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
880         if inclusive scan.
881         (struct omplow_simd_context): Add lastlane member.
882         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
883         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
884         1 or 2 argument.
885         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
886         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
887         (lower_omp_scan): New function.
888         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
889         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
890         check 3rd argument if present rather than 2nd.
891         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
892         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
893         2-bit bitfield.
894         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
895         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
896         than 2nd.
897         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
898         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
899         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
900         init.
901         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
902         IFN_GOMP_SIMD_LANE argument.
903         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
904         encoded ->aux value.
905         * tree-vect-stmts.c: Include attribs.h.
906         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
907         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
908         functions.
909         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
910         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
912 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
914         PR target/62055
915         * config/i386/i386.md (*nabstf2_1): New insn pattern.
916         (*nabs<mode>2_1): Ditto.
917         (nabs sse-reg splitter): New splitter.
918         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
920 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
922         PR bootstrap/90873.
923         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
924         TMR index check.
926 2019-06-17  Tom de Vries  <tdevries@suse.de>
928         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
929         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
930         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
931         ...
932         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
933         match_operand 0.
934         (define_insn "omp_simt_enter_insn"): Rename to ...
935         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
936         match_operand 0, 1 and 2, as well as the unspec_volatile result.
937         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
938         gen_omp_simt_enter_si.
939         (define_expand "omp_simt_exit"): New.
940         (define_insn "omp_simt_exit"): Rename to ...
941         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
942         match_operand 0.
944 2019-06-17  Matthew Green  <mrg@eterna.com.au>
945             Maya Rashish  <coypu@sdf.org>
947         * config.gcc (aarch64*-*-netbsd*): New target.
948         * config/aarch64/aarch64-netbsd.h: New file.
949         * config/aarch64/t-aarch64-netbsd: Likewise.
951 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
953         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
954         the access path from base to first VIEW_CONVERT_EXPR or
955         BIT_FIELD_REF.
957 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
959         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
960         access path on BIT_FIELD_REFs.
962 2019-06-17  Martin Liska  <mliska@suse.cz>
964         PR ipa/90874
965         * ipa-utils.h (odr_type_p): Remove dead code.
967 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
969         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
970         alternative Solaris 11.4 format.
971         * configure: Regenerate.
973 2019-06-17  Tom de Vries  <tdevries@suse.de>
975         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
976         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
977         match_operand 0.
978         (define_insn "call_value_insn"): Rename to ...
979         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
980         match_operand 0.
981         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
982         DI.
984 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
986         PR middle-end/64242
987         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
988         frame clobbers and schedule block.
989         (builtin_longjmp): Likewise.
991 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
993         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
994         describe how to perform MSPABI compliant 64-bit shift.
995         * config/msp430/msp430.md (ashldi3): New define_expand.
996         (ashrdi3): New define_expand.
997         (lshrdi3): New define_expand.
999 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1001         * doc/sourcebuild.texi: Document new effective target keyword
1002         longlong64.
1004 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
1006         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
1007         indirect_refs_may_alias_p): Revert accidental commits.
1009         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
1010         at the end of structures.
1012 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
1014         * config/darwin.c (machopic_indirect_call_target): Use renamed
1015         darwin_picsymbol_stubs to decide on output.
1016         (darwin_override_options): Handle darwin_picsymbol_stubs.
1017         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
1018         (LD64_VERSION): Revise default.
1019         * config/darwin.opt: (mpic-symbol-stubs): New option.
1020         (darwin_picsymbol_stubs): New variable.
1021         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
1022         rename to TARGET_MACHO_PICSYM_STUBS.
1023         * config/i386/i386.c (output_pic_addr_const): Likewise.
1024         * config/i386/i386.h Likewise.
1025         * config/rs6000/darwin.h: Likewise.
1026         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
1027         darwin_picsymbol_stubs.
1029 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
1031         * config/darwin.opt (prebind, noprebind, seglinkedit,
1032         noseglinkedit): Add RejectNegative.
1034 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
1036         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
1037         in my previous patch.
1039 2019-06-16  Tom de Vries  <tdevries@suse.de>
1041         PR tree-optimization/89376
1042         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
1044 2019-06-15  Maya Rashish  <coypu@sdf.org>
1046         * doc/invoke.texi (Spec Files): Update location of the
1047         Fortran spec file.
1049 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
1051         * doc/extend.texi (Common Function Attributes): Clarify
1052         no_sanitize.  Fix grammar.
1054 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
1056         * tree-ssa-alias.c (alias_stats): Add
1057         nonoverlapping_component_refs_p_may_alias,
1058         nonoverlapping_component_refs_p_no_alias,
1059         nonoverlapping_component_refs_of_decl_p_may_alias,
1060         nonoverlapping_component_refs_of_decl_p_no_alias.
1061         (dump_alias_stats): Dump them.
1062         (nonoverlapping_component_refs_of_decl_p): Add stats.
1063         (nonoverlapping_component_refs_p): Add stats; do not stop on first
1064         ARRAY_REF.
1066 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
1068         * config/i386/i386.md (and<mode>3): Generate zero-extends for
1069         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
1070         only.
1071         (*anddi3_doubleword): Split before reload. Merge with
1072         anddi->zext pre-reload splitter.
1073         (*andndi3_doubleword): Split before reload.
1074         (*<code>di3_doubleword): Ditto.
1075         (*one_cmpldi2_doubleword): Ditto.
1077 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
1079         PR middle-end/90779
1080         * gimplify.c: Include omp-offload.h and context.h.
1081         (gimplify_bind_expr): Add "omp declare target" attributes
1082         to static block scope variables inside of target region or target
1083         functions.
1085 2019-06-15  Tom de Vries  <tdevries@suse.de>
1087         PR tree-optimization/90009
1088         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
1089         Return NULL if bb contains IFN_UNIQUE.
1091 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
1093         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
1094         (un): New define_mode_attr.
1095         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
1096         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
1097         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
1098         merge into ...
1099         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
1101 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
1103         * config/darwin.opt: Add RejectNegative where needed, reorder
1104         and add minimal functional descriptions.
1106 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1108         PR rtl-optimization/90765
1109         * calls.c (update_stack_alignment_for_call): New function.
1110         (expand_call): Call update_stack_alignment_for_call when
1111         outgoing parameter is passed in the stack.
1112         (emit_library_call_value_1): Likewise.
1113         * function.c (locate_and_pad_parm): Don't update
1114         stack_alignment_needed and preferred_stack_boundary.
1116 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1118         PR target/90877
1119         * config/i386/i386-features.c
1120         (dimode_scalar_chain::compute_convert_gain): Replace
1121         mmxsse_to_integer with sse_to_integer.
1122         * config/i386/i386.c (ix86_register_move_cost): Verify that
1123         moves between MMX and non-MMX units require secondary memory.
1124         Correct costs of moves between SSE and integer units.
1125         * config/i386/i386.h (processor_costs): Rename cost of moving
1126         SSE register to integer to sse_to_integer.  Rename cost of
1128 2019-06-14  Matt Thomas  <matt@3am-software.com>
1129             Matthew Green  <mrg@eterna.com.au>
1130             Nick Hudson  <skrll@netbsd.org>
1131             Maya Rashish  <coypu@sdf.org>
1132             Richard Earnshaw  <rearnsha@arm.com>
1134         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
1135         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
1136         * config/arm/netbsd-eabi.h: New file.
1137         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
1138         redefining.
1139         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
1140         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
1141         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
1142         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
1144 2019-06-14  Richard Biener  <rguenther@suse.de>
1146         * tree-loop-distribution.c (classify_partition): Return
1147         whether a reduction appeared in all partitions and do not
1148         stop builtin detection because of this.
1149         (distribute_loop): Sort a non-builtin partition last if
1150         there's a reduction in all partitions and make sure the
1151         partition prevailing as last is not a builtin.
1153 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
1155         PR ipa/90401
1156         * ipa-prop.c (add_to_agg_contents_list): New function.
1157         (clobber_by_agg_contents_list_p): Likewise.
1158         (extract_mem_content): Likewise.
1159         (get_place_in_agg_contents_list): Delete.
1160         (determine_known_aggregate_parts): Renamed from
1161         determine_locally_known_aggregate_parts.  New parameter
1162         aa_walk_budget_p.
1164 2019-06-13  Martin Sebor  <msebor@redhat.com>
1166         PR tree-optimization/90662
1167         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
1168         to the same type.
1170 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
1172         PR bootstrap/90873
1173         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
1174         dbase is not TARGET_MEM_REF.
1176 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
1178         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
1179         Update all uses.
1180         (and<mode>3): Use gen_extend_insn instead of indirect functions.
1181         Do not generate DImode extends for 32bit targets.
1182         (and->zext post-reload splitter): Use gen_extend_insn
1183         instead of indirect functions.
1184         (anddi->zext pre-reload splitter): New.
1185         (*zext<mode>_doubleword_and): Remove.
1186         (*zext<mode>_doubleword): Ditto.
1187         (*zextsi_doubleword): Dittto.
1189 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
1191         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
1192         Use gen_sub3_insn instead of indirect function.
1193         (ix86_expand_ashl_const): Use gen_add2_insn instead of
1194         indirect function.
1195         (ix86_adjust_counter): Ditto.
1197 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
1198             Lijia He  <helijia@linux.ibm.com>
1200         PR tree-optimization/77820
1201         * tree-ssa-threadedge.c
1202         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
1203         function.
1204         (thread_across_edge): Add call to
1205         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
1207 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
1209         * config/darwin-driver.c (validate_macosx_version_min): New.
1210         (darwin_default_min_version): Cleanup and validate supplied version.
1211         (darwin_driver_init): Likewise and push cleaned version into opts.
1213 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
1215         PR tree-optimization/90869
1216         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
1217         converts in MEM_REF referencing decl rather than view converts
1218         from decl type to MEM_REF type.
1220 2019-06-13  Richard Biener  <rguenther@suse.de>
1222         PR tree-optimization/90856
1223         * tree-sra.c (build_ref_for_model): Only use
1224         build_reconstructed_reference when address-spaces are the same.
1226 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
1228         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
1229         wrap ei variable name in the declaration in ()s.
1230         (nvptx_single): Actually use mode_label variable.  Formatting fix.
1232 2019-06-13  Richard Biener  <rguenther@suse.de>
1234         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
1235         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
1236         also return the condition stmt.
1237         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
1238         loop we can version and version that, reusing the loop version
1239         created by if-conversion instead of versioning again.
1241 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
1243         * gimple-loop-versioning.cc (prune_loop_conditions): Use
1244         may_contain_p.
1245         * tree-vrp (value_range_base::may_contain_p): Call into
1246         value_inside_range.
1247         (value_inside_range): Make private inside value_range_base class.
1248         Take min/max from *this.
1249         (range_includes_p): Remove.
1250         * tree-vrp.h (value_range_base): Add value_inside_range.
1251         (range_includes_p): Remove.
1252         (range_includes_zero_p): Call may_contain_p.
1253         * vr-values.c (compare_range_with_value): Same.
1255 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
1257         * doc/extend.texi (ARC Function Attributes): Update info.
1259 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
1261         PR tree-optimization/89713
1262         * doc/invoke.texi (-ffinite-loops): Document new option.
1263         * common.opt (-ffinite-loops): New option.
1264         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
1265         IFN_GOACC_LOOP calls as necessary.
1266         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
1267         is finite.
1268         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
1269         IFN_GOACC_LOOP call is not used.
1270         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
1272 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
1274         PR target/88838
1275         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
1276         compare_type is not with Pmode size, we will create an IV with
1277         Pmode size with truncated use (i.e. converted to the correct type).
1278         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
1279         (vect_iv_limit_for_full_masking): New. Factored out of
1280         vect_set_loop_condition_masked.
1281         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
1282         (vect_iv_limit_for_full_masking): Declare.
1284 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
1286         PR target/88834
1287         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
1288         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
1289         (get_alias_ptr_type_for_ptr_address): Likewise.
1290         (add_iv_candidate_for_use): Add scaled index candidate if useful.
1291         * tree-ssa-address.c (preferred_mem_scale_factor): New.
1292         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
1293         allow_reg_index_p.
1295 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
1297         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
1299 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
1301         * common/config/pru/pru-common.c: New file.
1302         * config.gcc: Add PRU target.
1303         * config/pru/alu-zext.md: New file.
1304         * config/pru/constraints.md: New file.
1305         * config/pru/predicates.md: New file.
1306         * config/pru/pru-opts.h: New file.
1307         * config/pru/pru-passes.c: New file.
1308         * config/pru/pru-pragma.c: New file.
1309         * config/pru/pru-protos.h: New file.
1310         * config/pru/pru.c: New file.
1311         * config/pru/pru.h: New file.
1312         * config/pru/pru.md: New file.
1313         * config/pru/pru.opt: New file.
1314         * config/pru/t-pru: New file.
1315         * doc/extend.texi: Document PRU pragmas.
1316         * doc/invoke.texi: Document PRU-specific options.
1317         * doc/md.texi: Document PRU asm constraints.
1319 2019-06-12  Martin Sebor  <msebor@redhat.com>
1321         PR middle-end/90676
1322         * tree-pretty-print.c (dump_mem_ref): New function.  Include
1323         MEM_REF type in output when different size than operand.
1324         (dump_generic_node): Move code to dump_mem_ref and call it.
1326 2019-06-12  Martin Sebor  <msebor@redhat.com>
1328         PR tree-optimization/90662
1329         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
1330         to arrays.
1332 2019-06-12  Tom de Vries  <tdevries@suse.de>
1334         PR tree-optimization/90009
1335         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
1337 2019-06-12  Martin Liska  <mliska@suse.cz>
1339         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
1340         the created map.
1341         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
1342         * mem-stats.h (mem_alloc_description::mem_alloc_description):
1343         Do not sanitize created maps.
1345 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
1347         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
1348         value_range::singleton_p.
1349         * tree-vrp.c (value_range_constant_singleton): Remove.
1350         * tree-vrp.h (value_range_constant_singleton): Remove.
1351         * vr-values.c (vr_values::singleton): Use
1352         value_range::singleton_p.
1354 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
1356         PR target/90811
1357         * cfgexpand.c (align_local_variable): Add really_expand argument,
1358         don't SET_DECL_ALIGN if it is false.
1359         (add_stack_var): Add really_expand argument, pass it through to
1360         align_local_variable.
1361         (expand_one_stack_var_1): Pass true as really_expand to
1362         align_local_variable.
1363         (expand_one_ssa_partition): Pass true as really_expand to
1364         add_stack_var.
1365         (expand_one_var): Pass really_expand through to add_stack_var.
1367 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
1369         * config/arm/iterators.md (VABAL): New int iterator.
1370         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
1371         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
1372         values.
1374 2019-06-12  Martin Liska  <mliska@suse.cz>
1376         * value-prof.c (stream_out_histogram_value): Only first value
1377         can't be negative.
1379 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
1381         PR c/90760
1382         * symtab.c (symtab_node::set_section): Allow being called on aliases
1383         as long as they aren't analyzed yet.
1385 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
1387         * config/mips/mips.c (mips_final_postscan_insn): Modify call
1388         to `mips_set_text_contents_type' to indicate whether a
1389         non-debug insn follows.
1391 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
1393         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
1394         enabling -mpcrel by default.
1395         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
1396         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
1397         that the test against -mcpu=future is done first.  Then test if
1398         -mprefixed-addr is on for -mpcrel.
1399         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
1401 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
1403         PR target/90811
1404         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
1405         instead of and.u%d.
1407 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
1409         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
1411 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
1413         PR c++/90449 - add -Winaccessible-base option.
1414         * doc/invoke.texi (Winaccessible-base): Document.
1416 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
1418         PR tree-optimization/62041
1419         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
1421 2019-06-11  Jason Merrill  <jason@redhat.com>
1423         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
1424         * tree.c (get_tree_code_name): Likewise.
1425         * print-tree.c (print_node): Only briefly print a node with an
1426         invalid code.
1428 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
1430         PR bootstrap/90819
1431         * trans-mem.c (tm_memopt_compute_available): Add assertion
1432         that blocks is not empty.  Formatting fix.
1434 2019-06-11  Martin Liska  <mliska@suse.cz>
1436         PR c++/87847
1437         * hash-table.h: Extend create_gcc, add one parameter
1438         that is passed into hash_table::hash_table.
1440 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
1442         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
1443         New prototype.
1444         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
1445         Emit clobber also for non-sse operations.
1446         (ix86_split_fp_absneg_operator): New function.
1447         * config/i386/i386.md (SSEMODEF): New mode iterator.
1448         (ssevecmodef): New mode attribute.
1449         (<code>tf2): Use absneg code iterator.
1450         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
1451         Add three-operand AVX alternatives.
1452         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
1453         Use absneg code iterator and X87MODEF mode iterator.
1454         (absneg fp_reg non-sse splitter): Call absneg code iterator
1455         and X87MODEF mode iterator.
1456         (absneg general_reg non-sse splitter): Use absneg code iterator
1457         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
1458         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
1459         code iterator.  Add three-operand AVX alternative.
1460         (absneg sse_reg splitter): Use absneg code iterator
1461         and SSEMODEF mode iterator.  Handle AVX operands.
1462         (absneg fp_reg splitter): Use absneg code iterator
1463         and MODEF mode iterator.
1464         (absneg general_reg splitter): Merge splitters using MODEF mode
1465         iterator.  Use absneg code iterator.  Call
1466         ix86_split_fp_absneg_operator.
1467         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
1468         Do not enable for non-sse modes before reload.
1469         (CSGNMODE): Remove.
1470         (CSGNVMODE): Ditto.
1471         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
1472         ssevecmodef mode attribute instaed of CSGNVMODE.
1473         (copysign<mode>3_const): Ditto.
1474         (copysign<mode>3_var): Ditto.
1475         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
1476         Use absneg code iterator.  Simplify code using std::swap.
1477         * config/i386/predicates.md (absneg_operator): Remove.
1479 2019-06-10  Martin Sebor  <msebor@redhat.com>
1481         * gimple-fold.c (get_range_strlen): Update comment that didn't
1482         make it into r267503 or related commits.
1484 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
1486         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
1487         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
1489 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
1491         * tree.def (OMP_SCAN): New tree code.
1492         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
1493         OMP_CLAUSE_EXCLUSIVE.
1494         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
1495         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
1496         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
1497         OMP_CLAUSE_{IN,EX}CLUSIVE.
1498         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
1499         * tree-nested.c (convert_nonlocal_reference_stmt,
1500         convert_local_reference_stmt, convert_gimple_call): Handle
1501         GIMPLE_OMP_SCAN.
1502         * tree-pretty-print.c (dump_omp_clause): Handle
1503         OMP_CLAUSE_{IN,EX}CLUSIVE.
1504         (dump_generic_node): Handle OMP_SCAN.
1505         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
1506         * gimple.h (gomp_scan): New type.
1507         (is_a_helper <gomp_scan *>::test,
1508         is_a_helper <const gomp_scan *>::test): New templates.
1509         (gimple_build_omp_scan): Declare.
1510         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
1511         gimple_omp_scan_set_clauses): New inline functions.
1512         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
1513         * gimple.c (gimple_build_omp_scan): New function.
1514         (gimple_copy): Handle GIMPLE_OMP_SCAN.
1515         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
1516         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
1517         GIMPLE_OMP_TASKGROUP.
1518         (dump_gimple_omp_scan): New function.
1519         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
1520         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
1521         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
1522         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
1523         (is_gimple_stmt): Handle OMP_SCAN.
1524         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
1525         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
1526         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
1527         mentioned in nested #pragma omp scan.  Handle
1528         OMP_CLAUSE_{IN,EX}CLUSIVE.
1529         (gimplify_expr): Handle OMP_SCAN.
1530         * omp-low.c (check_omp_nesting_restrictions): For parent context,
1531         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
1532         simd constructs.
1533         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
1534         GIMPLE_OMP_SCAN.
1536 2019-06-10  Martin Liska  <mliska@suse.cz>
1538         * ipa-cp.c (ignore_edge_p): New function.
1539         (build_toporder_info): Use it.
1540         * ipa-inline.c (ignore_edge_p): New function.
1541         (inline_small_functions): Use it.
1542         * ipa-pure-const.c (ignore_edge_for_nothrow):
1543         Verify opt_for_fn for caller and callee.
1544         (ignore_edge_for_pure_const): Likewise.
1545         * ipa-reference.c (ignore_edge_p): Extend to check
1546         for opt_for_fn.
1547         * ipa-utils.c (searchc): Refactor.
1548         * ipa-utils.h: Fix coding style.
1550 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
1552         * config/arc/arc.c (arc_rtx_costs): Update costs.
1554 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
1556         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
1557         (arc_split_ior): Likewise.
1558         (arc_check_mov_const): Likewise.
1559         (arc_split_mov_const): Likewise.
1560         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
1561         (arc_rtx_costs): Replace check Crr with Cax constraint.
1562         (prepare_move_operands): Cleanup, remove unused code.
1563         (arc_split_ior): New function.
1564         (arc_check_ior_const): Likewise.
1565         (arc_split_mov_const): Likewise.
1566         (arc_check_mov_const): Likewise.
1567         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
1568         in define_insn_and_split pattern.
1569         (iorsi3): Likewise.
1570         (mulsi3_v2): Add new matching variant.
1571         (andsi3_i): Cleanup pattern.
1572         (rotrsi3_cnt1): Update pattern.
1573         (rotrsi3_cnt8): New pattern.
1574         (ashlsi2_cnt8): Likewise.
1575         (ashlsi2_cnt16): Likewise.
1576         * config/arc/constraints.md (C0p): Update constraint.
1577         (Crr): Remove it.
1578         (C0x): New pattern.
1579         (Cax): New pattern.
1581 2019-06-10  Martin Liska  <mliska@suse.cz>
1583         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
1584         Update coding style.
1585         (sem_item_optimizer::dump_cong_classes):
1586         Print how many items are in a non-singular class.  Improve
1587         coding style.
1589 2019-06-10  Martin Liska  <mliska@suse.cz>
1591         * value-prof.c (dump_histogram_value): Change dump format.
1592         (gimple_mod_subtract_transform): Remove legacy comment.
1594 2019-06-10  Martin Liska  <mliska@suse.cz>
1596         * value-prof.c (dump_histogram_value): Print histogram values
1597         only if present.
1599 2019-06-10  Martin Liska  <mliska@suse.cz>
1601         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
1602         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
1603         * ipa-profile.c (ipa_profile_generate_summary):
1604         Use get_most_common_single_value.
1605         * tree-profile.c (gimple_init_gcov_profiler):
1606         Instrument with __gcov_one_value_profiler_v2
1607         and __gcov_indirect_call_profiler_v4.
1608         * value-prof.c (dump_histogram_value):
1609         Print all values for HIST_TYPE_SINGLE_VALUE.
1610         (stream_out_histogram_value): Update assert for
1611         N values.
1612         (stream_in_histogram_value): Set number of
1613         counters for HIST_TYPE_SINGLE_VALUE.
1614         (get_most_common_single_value): New.
1615         (gimple_divmod_fixed_value_transform):
1616         Use get_most_common_single_value.
1617         (gimple_ic_transform): Likewise.
1618         (gimple_stringops_transform): Likewise.
1619         (gimple_find_values_to_profile): Set number
1620         of counters for HIST_TYPE_SINGLE_VALUE.
1621         * value-prof.h (get_most_common_single_value):
1622         New.
1624 2019-06-10  Martin Liska  <mliska@suse.cz>
1626         * hash-map.h: Pass default value to hash_table ctor.
1627         * hash-table.h: Add default value to call of a ctor.
1629 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
1631         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
1632         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
1634 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
1636         PR target/90751
1637         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
1638         Call pa_output_function_label.
1639         (TARGET_ASM_FUNCTION_PROLOGUE): define.
1640         * config/pa/pa-protos.h (pa_output_function_label): Declare.
1641         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
1642         to declaration.
1643         (pa_linux_output_function_prologue): Declare.
1644         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
1645         (pa_output_function_label): New.
1646         (pa_output_function_prologue): Revise to use pa_output_function_label.
1647         (pa_linux_output_function_prologue): New.
1648         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
1650 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
1652         * tree-vrp.h (value_range_base::intersect): New.
1653         (value_range::intersect_helper): Move from here...
1654         (value_range_base::intersect_helper): ...to here.
1655         * tree-vrp.c (value_range::intersect_helper): Rename to...
1656         (value_range_base::intersect_helper): ...this, and rewrite to
1657         return a value instead of modifying THIS in place.
1658         Also, move equivalence handling...
1659         (value_range::intersect): ...here, while calling intersect_helper.
1660         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
1661         calling intersect.
1662         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
1663         Same.
1664         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
1666 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
1668         * Makefile.in (genprogerr): Add condmd.
1669         (genprog): Remove it here.
1671 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
1673         * doc/invoke.texi (AMD GCN Options): Add gfx906.
1675 2019-06-07  Richard Biener  <rguenther@suse.de>
1677         PR debug/90574
1678         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
1679         that appear after user labels.
1681 2019-06-07  Martin Liska  <mliska@suse.cz>
1683         * cselib.c (cselib_init): Disable hash table
1684         sanitization.
1685         * hash-set.h: Pass new default argument to m_table.
1686         * hash-table.c: Add global variable with hash table
1687         sanitization limit.
1688         * hash-table.h (Allocator>::hash_table): Add new argument
1689         to ctor.
1690         (hashtab_chk_error): New.
1691         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
1692         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
1693         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
1695 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
1697         * common.opt (flto-odr-type-merging): Ignore.
1698         * invoke.texi (-flto-odr-type-merging): Remove.
1699         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
1700         (can_be_vtable_hashed_p): Remove.
1701         (hash_odr_vtable): Remove.
1702         (odr_vtable_hasher::hash): Remove.
1703         (types_same_for_odr): Remove.
1704         (types_odr_comparable): Remove.
1705         (odr_vtable_hasher::equal): Remove.
1706         (odr_vtable_hash_type, odr_vtable_hash): Remove.        
1707         (add_type_duplicate): Do not synchronize vtable and name hashtables.
1708         (get_odr_type): Do not use vtable hash.
1709         (dump_odr_type): Remove commented out code.
1710         (build_type_inheritance_graph): Do not allocate vtable hash.
1711         (rebuild_type_inheritance_graph): Do not delete vtable hash.
1712         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
1713         (odr_type_p): Likewise.
1714         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
1715         test.
1717 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
1719         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
1720         immediately after same_types_for_tbaa_p returns -1 and continue
1721         looking for possible exact match; if matching types are arrays
1722         watch for partial overlaps.
1723         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
1724         (indirect_refs_may_alias_p): Do type based disambiguation first;
1725         update comment.
1727 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
1729         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
1731 2019-06-07  Martin Liska  <mliska@suse.cz>
1733         * doc/invoke.texi: Remove param.
1734         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
1735         Remove.
1736         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
1737         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
1738         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
1739         * profile.c (instrument_values): Remove
1740         HIST_TYPE_INDIR_CALL_TOPN.
1741         * tree-profile.c (init_ic_make_global_vars):
1742         Always build __gcov_indirect_call only.
1743         (gimple_init_gcov_profiler): Remove usage
1744         of PARAM_INDIR_CALL_TOPN_PROFILE.
1745         (gimple_gen_ic_profiler): Likewise.
1746         * value-prof.c (dump_histogram_value): Likewise.
1747         (stream_in_histogram_value): Likewise.
1748         (gimple_indirect_call_to_profile): Likewise.
1749         (gimple_find_values_to_profile): Likewise.
1750         * value-prof.h (enum hist_type): Likewise.
1752 2019-06-07  Martin Liska  <mliska@suse.cz>
1754         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
1755         function.
1757 2019-06-07  Martin Liska  <mliska@suse.cz>
1759         PR tree-optimization/78902
1760         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
1761         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
1762         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
1763         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
1764         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
1765         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
1766         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
1767         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
1768         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
1769         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
1770         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
1771         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST):  Remove.
1772         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
1773         New.
1774         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
1775         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
1776         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
1777         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
1778         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
1779         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
1780         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
1781         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
1782         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
1783         warn_unused_result attribute.
1784         (BUILT_IN_STRDUP): Likewise.
1785         (BUILT_IN_STRNDUP): Likewise.
1786         (BUILT_IN_ALLOCA): Likewise.
1787         (BUILT_IN_CALLOC): Likewise.
1788         (BUILT_IN_MALLOC): Likewise.
1789         (BUILT_IN_REALLOC): Likewise.
1791 2019-06-06  Jim Wilson  <jimw@sifive.com>
1793         PR target/89955
1794         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
1795         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
1796         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
1798 2019-06-06  Martin Sebor  <msebor@redhat.com>
1800         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
1801         (handle_builtin_malloc): Remove trailing spaces.
1802         (handle_builtin_memset): Same.
1803         (handle_builtin_memcmp): Same.
1804         (compute_string_length): Same.
1805         (determine_min_objsize): Same.
1806         (handle_builtin_string_cmp): Same.
1807         (handle_char_store): Same.  Break up excessively long line.
1809 2019-06-06  Martin Jambor  <mjambor@suse.cz>
1811         * tree-sra.c (build_reconstructed_reference): Drop the alignment
1812         check.
1814 2019-06-06  Martin Jambor  <mjambor@suse.cz>
1816         * tree-sra.c (struct access): New field grp_same_access_path.
1817         (dump_access): Dump it.
1818         (build_reconstructed_reference): New function.
1819         (build_ref_for_model): Use it if possible.
1820         (path_comparable_for_same_access): New function.
1821         (same_access_path_p): Likewise.
1822         (sort_and_splice_var_accesses): Set the new flag.
1823         (analyze_access_subtree): Likewise.
1824         (propagate_subaccesses_across_link): Propagate zero value of the new
1825         flag down the access tree.
1827 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
1829         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
1830         * config/gcn/gcn.opt (gpu_type): Add gfx906.
1831         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
1832         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
1833         Add gfx906.
1835 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1837         PR tree-optimization/90332
1838         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
1839         Handle VALS containing two vectors.
1840         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
1841         to...
1842         (@aarch64_combinez<mode>): ... This.
1843         (*aarch64_combinez_be<mode>): Rename to...
1844         (@aarch64_combinez_be<mode>): ... This.
1845         (vec_init<mode><Vhalf>): New define_expand.
1846         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
1848 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1850         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
1851         library functions only when not optimizing for size.
1852         (ashlsi3): Likewise.
1853         (ashrhi3): Likewise.
1854         (ashrsi3): Likewise.
1855         (lshrhi3): Likewise.
1856         (lshrsi3): Likewise.
1858 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
1860         PR rtl-optimization/88751
1861         * ira.c (ira): Use the number of the actually referenced registers
1862         when calculating the threshold.
1864 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
1866         * configure: Regenerate.
1868 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1870         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
1871         register if it is in memory, so the shift can be emulated with a rotate
1872         instruction.
1873         (ashrhi3): Likewise.
1874         (lshrhi3): Likewise.
1876 2019-06-06  Martin Liska  <mliska@suse.cz>
1878         PR tree-optimization/87954
1879         * match.pd: Simplify mult where both arguments are 0 or 1.
1881 2019-06-06  Richard Biener  <rguenther@suse.de>
1883         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
1884         put equivalences on UNDEFINED ranges.
1885         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
1886         Make sure to drop defs of stmts added during simplification
1887         to VARYING.
1889 2019-06-06  Richard Biener  <rguenther@suse.de>
1891         * tree-ssa-structalias.c: Include tree-cfg.h.
1892         (make_heapvar): Do not make heap vars artificial.
1893         (find_func_aliases_for_builtin_call): Handle stack allocation
1894         functions.
1895         (find_func_aliases): Delay processing of simple enough returns
1896         in non-IPA mode.
1897         (set_uids_in_ptset): Adjust.
1898         (find_what_var_points_to): Likewise.
1899         (solve_constraints): Do not dump points-to sets here.
1900         (compute_points_to_sets): Post-process return statements,
1901         amending the escaped solution.  Dump points-to sets afterwards.
1902         (ipa_pta_execute): Dump points-to sets.
1904 2019-06-06  Martin Liska  <mliska@suse.cz>
1906         PR web/87933
1907         * doc/install.texi: Fix HTML headers and
1908         titles for 'Installing GCC' pages.
1910 2019-06-06  Martin Liska  <mliska@suse.cz>
1912         * ipa-icf-gimple.h (dump_message_1): Remove.
1913         (dump_message): Likewise.
1914         (return_false_with_message_1): Print also file.
1915         (return_false_with_msg): Likewise.
1916         (return_with_result): Likewise.
1917         (return_with_debug): Likewise.
1918         * ipa-icf.c (sem_function::equals_private): Remove call
1919         to dump_message.
1921 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
1923         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
1924         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
1925         memory operand for it.
1926         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
1928 2019-06-05  Martin Sebor  <msebor@redhat.com>
1930         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
1931         Adjust quoting and hyphenation.
1932         * convert.c (convert_to_real_1): Same.
1933         * gcc.c (driver_wrong_lang_callback): Same.
1934         (driver::handle_unrecognized_options): Same.
1935         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
1936         * opts-common.c (cmdline_handle_error): Same.
1937         (read_cmdline_option): Same.
1938         * opts-global.c (complain_wrong_lang): Same.
1939         (print_ignored_options): Same.
1940         (handle_common_deferred_options): Same.
1941         * pretty-print.h: Same.
1942         * print-rtl.c (debug_bb_n_slim): Same.
1943         * sched-rgn.c (make_pass_sched_fusion): Same.
1944         * tree-cfg.c (verify_gimple_assign_unary): Same.
1945         (verify_gimple_label): Same.
1946         * tree-ssa-operands.c (verify_ssa_operands): Same.
1947         * varasm.c (do_assemble_alias): Same.
1948         (assemble_alias): Same.
1950 2019-06-05  Richard Henderson  <rth@twiddle.net>
1952         * config/alpha/alpha.c (direct_return): Move down after
1953         struct machine_function definition; use saved frame_size;
1954         return bool.
1955         (struct machine_function): Add sa_mask, sa_size, frame_size.
1956         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
1957         (alpha_compute_frame_layout): ... new function.
1958         (TARGET_COMPUTE_FRAME_LAYOUT): New.
1959         (alpha_initial_elimination_offset): Use saved sa_size.
1960         (alpha_vms_initial_elimination_offset): Likewise.
1961         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
1962         (alpha_expand_prologue): Use saved frame data.  Merge integer
1963         and fp register save loops.
1964         (alpha_expand_epilogue): Likewise.
1965         (alpha_start_function): Use saved frame data.
1966         * config/alpha/alpha-protos.h (direct_return): Update.
1967         (alpha_sa_size): Remove.
1969 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
1971         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
1972         multiplication by a power-of-two value.
1973         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
1974         and turn the modulo operation into a masking operation.
1976 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
1978         PR debug/90733
1979         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
1980         with VOIDmode inner operands.
1982 2019-06-05  Richard Biener  <rguenther@suse.de>
1984         PR middle-end/90726
1985         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1986         turn an expression graph into a tree.
1988 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
1990         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
1991         member.
1992         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
1993         treat it like explicit monotonic schedule modifier.
1994         (expand_omp_for): Initialize has_lastprivate_conditional.
1995         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
1996         schedule modifier.
1998         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
1999         references, lookup in in hash map MEM_REF operand instead of the
2000         MEM_REF itself.
2001         (lower_omp_1): When looking for lastprivate conditional assignments,
2002         handle MEM_REFs with REFERENCE_TYPE operands.
2004         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
2005         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
2006         and references a VLA.  Handle references to non-VLAs if is_simd
2007         all privatization clauses like reductions.
2008         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
2009         If omp_is_reference, use always omp simd arrays and set
2010         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
2011         fails, emit reference initialization.
2013 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
2015         PR target/89803
2016         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
2017         _mm_mask_fpclass_sd_mask): New intrinsics.
2018         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
2019         * config/i386/i386-builtin.def
2020         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
2021         New builtins.
2022         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
2023         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
2024         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
2025         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
2026         case QI_FTYPE_V2SF_INT): Ditto.
2027         * config/i386/sse.md
2028         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
2029         Extended to insnstructions with mask operands.
2031 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2033         * config/rs6000/constraints.md (define_register_constraint "wp"):
2034         Delete.
2035         (define_register_constraint "wq"): Delete.
2036         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2037         (rs6000_init_hard_regno_mode_ok): Adjust.
2038         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2039         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
2040         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
2041         (define_mode_attr VSa): Delete.
2042         (define_mode_attr VSisa): New.
2043         (rest of file): Adjust.
2044         * doc/md.texi (Machine Constraints): Adjust.
2046 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2048         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
2049         (define_attr "enabled"): Handle those new isa values.
2051 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2053         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
2054         (define_mode_attr VSr5): Delete.
2055         (define_mode_attr VStype_sqrt): Delete.
2056         (define_mode_iterator VSX_SPDP): Delete.
2057         (define_mode_attr VS_spdp_res): Delete.
2058         (define_mode_attr VS_spdp_insn): Delete.
2059         (define_mode_attr VS_spdp_type): Delete.
2060         (*vsx_sqrt<mode>2): Adjust.
2061         (vsx_<VS_spdp_insn>): Delete, split to...
2062         (vsx_xscvdpsp): ... this.  New.  And...
2063         (vsx_xvcvspdp): ... this.  New.  And...
2064         (vsx_xvcvdpsp): ... this.  New.
2066 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2068         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
2069         and V2DF.
2070         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
2071         (rest of file): Adjust.
2073 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2075         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
2076         (vsx_extract_<mode>_var): Ditto.
2078 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2080         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
2081         with just "wa".
2083 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2085         * config/rs6000/constraints.md (define_register_constraint "ww"):
2086         Delete.
2087         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2088         (rs6000_init_hard_regno_mode_ok): Adjust.
2089         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2090         RS6000_CONSTRAINT_ww.
2091         * config/rs6000/rs6000.md: Adjust.
2092         * config/rs6000/vsx.md: Adjust.
2093         * doc/md.texi (Machine Constraints): Adjust.
2095 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2097         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
2098         (define_mode_attr sd): New.
2099         (define_mode_attr s): New.
2100         (define_mode_attr Ftrad): Delete.
2101         (define_mode_attr Fvsx): Delete.
2102         (define_mode_attr Fs): Delete.
2103         (rest of file): Use the new mode attributes.
2104         * config.rs6000/vsx.md: Use the new mode attributes.
2106 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2108         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
2109         with just "wa".
2111 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2113         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
2114         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
2115         used with VSX_B, VSX_D, or VSX_F, with just "wa".
2117 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
2119         PR target/78263
2120         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
2121         C++ with strict ANSI requirements.
2123 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
2125         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
2126         computations when step is 1.
2128 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2130         * config/rs6000/constraints.md (define_register_constraint "wf"):
2131         Delete.
2132         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2133         (rs6000_init_hard_regno_mode_ok): Adjust.
2134         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2135         RS6000_CONSTRAINT_wf.
2136         * config/rs6000/rs6000.md: Adjust.
2137         * config/rs6000/vsx.md: Adjust.
2138         * doc/md.texi (Machine Constraints): Adjust.
2140 2019-06-04  Andrew Pinski  <apinski@marvell.com>
2142         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
2143         Fix ILP32 value.
2145 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2147         * config/rs6000/constraints.md (define_register_constraint "wd"):
2148         Delete.
2149         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2150         (rs6000_init_hard_regno_mode_ok): Adjust.
2151         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2152         RS6000_CONSTRAINT_wd.
2153         * config/rs6000/rs6000.md: Adjust.
2154         * config/rs6000/vsx.md: Adjust.
2155         * doc/md.texi (Machine Constraints): Adjust.
2157 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2159         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
2160         (rest of file): Adjust.
2162 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2164         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
2165         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
2166         (vsx_splat_<mode>_reg): Adjust.
2168 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2170         * config/rs6000/constraints.md (define_register_constraint "ws"):
2171         Delete.
2172         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2173         (rs6000_init_hard_regno_mode_ok): Adjust.
2174         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2175         RS6000_CONSTRAINT_ws.
2176         * config/rs6000/rs6000.md: Adjust.
2177         * config/rs6000/vsx.md: Adjust.
2178         * doc/md.texi (Machine Constraints): Adjust.
2180 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2182         * config/rs6000/constraints.md (define_register_constraint "wv"):
2183         Delete.
2184         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2185         (rs6000_init_hard_regno_mode_ok): Adjust.
2186         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2187         RS6000_CONSTRAINT_wv.
2188         * config/rs6000/rs6000.md: Adjust.
2189         * config/rs6000/vsx.md: Adjust.
2190         * doc/md.texi (Machine Constraints): Adjust.
2192 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
2194         * config/rs6000/constraints.md (define_register_constraint "wi"):
2195         Delete.
2196         (define_register_constraint "wt"): Delete.
2197         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2198         (rs6000_init_hard_regno_mode_ok): Adjust.
2199         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2200         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
2201         * config/rs6000/rs6000.md: Adjust.
2202         * config/rs6000/vsx.md: Adjust.
2203         * doc/md.texi (Machine Constraints): Adjust.
2205 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2207         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
2208         const.
2209         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
2210         default_elf_asm_output_external.
2212 2019-06-04  Martin Liska  <mliska@suse.cz>
2214         * ipa-icf.c (INCLUDE_LIST): Remove.
2215         (sem_item_optimizer::execute): Remove call to init_wpa.
2216         * ipa-icf.h (init_wpa): Remove.
2218 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
2220         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
2221         conditional on combined for simd.
2222         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
2223         member.
2224         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
2225         constructs, don't remove lastprivate_conditional_map, but instead set
2226         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
2227         to parent construct temporaries.
2228         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
2229         like !ctx->lastprivate_conditional_map.
2230         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
2231         use up->outer context instead of up.
2232         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
2233         gimple_omp_for_combined_p.
2234         (expand_omp_for_static_nochunk): Likewise.
2235         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
2236         probably moved over into expand_omp_for_generic rather than being copied
2237         there.
2239 2019-06-04  Martin Liska  <mliska@suse.cz>
2241         * value-prof.c (dump_histogram_value): Fix typo.
2242         (gimple_mod_subtract_transform): Likewise.
2244 2019-06-04  Richard Biener  <rguenther@suse.de>
2246         PR middle-end/90726
2247         * tree-chrec.c (chrec_contains_symbols): Add to visited.
2248         (tree_contains_chrecs): Likewise.
2249         (chrec_contains_symbols_defined_in_loop): Move here and avoid
2250         exponential behaivor from ...
2251         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2252         ... here.
2253         (expression_expensive_p): Avoid exponential behavior and compute
2254         expanded size, rejecting any expansion.
2255         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
2256         (idx_contains_abnormal_ssa_name_p): Likewise.
2257         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
2258         (contains_abnormal_ssa_name_p): Simplify and use
2259         walk_tree_without_duplicates.
2261 2019-06-04  Richard Biener  <rguenther@suse.de>
2263         PR tree-optimization/90738
2264         Revert
2265         2019-06-03  Richard Biener  <rguenther@suse.de>
2267         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
2268         full reference tree and record in ref->ref.
2269         (vn_reference_lookup_3): Pass in original ref to
2270         ao_ref_init_from_vn_reference.
2271         (vn_reference_lookup): Likewise.
2272         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
2273         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2274         Handle non-decl bases in the original reference.
2276 2019-06-04  Martin Liska  <mliska@suse.cz>
2278         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
2279         number of references.
2280         (sem_item_optimizer::do_congruence_step):
2281         (sem_item_optimizer::worklist_push): Dump how references
2282         a class has.
2283         (sem_item_optimizer::worklist_pop): Use heap.
2284         (sem_item_optimizer::process_cong_reduction): Likewise.
2285         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
2287 2019-06-04  Martin Liska  <mliska@suse.cz>
2289         * ipa-icf.h (struct sem_usage_pair_hash): New.
2290         (sem_usage_pair_hash::hash): Likewise.
2291         (sem_usage_pair_hash::equal): Likewise.
2292         (struct sem_usage_hash): Likewise.
2293         * ipa-icf.c (sem_item::sem_item): Initialize
2294         referenced_by_count.
2295         (sem_item::add_reference): Register a reference
2296         in ref_map and not in target->usages.
2297         (sem_item::setup): Remove initialization of
2298         dead vectors.
2299         (sem_item::~sem_item): Remove usage of dead vectors.
2300         (sem_item::dump): Remove dump of references.
2301         (sem_item_optimizer::sem_item_optimizer): Initialize
2302         m_references.
2303         (sem_item_optimizer::read_section): Remove useless
2304         dump.
2305         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
2306         (sem_item_optimizer::build_graph): Pass m_references
2307         to ::add_reference.
2308         (sem_item_optimizer::verify_classes): Remove usage of dead
2309         vectors.
2310         (sem_item_optimizer::traverse_congruence_split): Return true
2311         when a class is split.
2312         (sem_item_optimizer::do_congruence_step_for_index): Use
2313         hash_map for look up of (sem_item *, index). That brings
2314         significant speed up.
2315         (sem_item_optimizer::do_congruence_step): Return true
2316         when a split is done.
2317         (congruence_class::is_class_used): Use referenced_by_count.
2319 2019-06-04  Alan Modra  <amodra@gmail.com>
2321         PR target/90689
2322         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
2323         error.
2325 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
2327         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
2328         * config/rs6000/rs6000.c (direct_move_p): Adjust.
2329         (rs6000_secondary_reload_simple_move): Adjust.
2330         (rs6000_opt_masks): Neuter the "mfpgpr" option.
2331         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
2332         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
2333         comment.
2334         (power6x): Adjust.
2335         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
2336         (floatunssi<mode>2_lfiwzx): Adjust.
2337         (fix_trunc<mode>si2_stfiwx): Adjust.
2338         (fixuns_trunc<mode>si2_stfiwx): Adjust.
2339         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
2340         (mfpgpr): Mark as deprecated.
2341         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
2342         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
2343         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
2345 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
2347         * config/rs6000/constraints.md (define_register_constraint "wg"):
2348         Delete.
2349         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2350         RS6000_CONSTRAINT_wg.
2351         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2352         (rs6000_init_hard_regno_mode_ok): Adjust.
2353         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
2354         Delete "wg" alternatives.
2355         * doc/md.texi (Machine Constraints): Adjust.
2357 2019-06-03  Alan Modra  <amodra@gmail.com>
2359         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
2360         (get_uncond_jump_length): Assert length less than INT_MAX and
2361         non-negative.
2363 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
2365         PR middle-end/64242
2366         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
2367         block.
2368         (expand_builtin_nonlocal_goto): Likewise.
2370 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2372         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
2373         (aarch64_asm_output_external): Declare.
2374         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
2375         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
2376         (aarch64_asm_output_alias): New.
2377         (aarch64_asm_output_external): New.
2378         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2379         (ASM_OUTPUT_EXTERNAL): Define.
2381 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
2382         * tree-vrp.h (value_range_base::nonzero_p): New.
2383         (value_range_base::set_nonnull): Rename to...
2384         (value_range_base::set_nonzero): ...this.
2385         (value_range_base::set_null): Rename to...
2386         (value_range_base::set_zero): ...this.
2387         (value_range::set_nonnull): Remove.
2388         (value_range::set_null): Remove.
2389         * tree-vrp.c (range_is_null): Remove.
2390         (range_is_nonnull): Remove.
2391         (extract_range_from_binary_expr): Use value_range_base::*zero_p
2392         instead of range_is_*null.
2393         (extract_range_from_unary_expr): Same.
2394         (value_range_base::set_nonnull): Rename to...
2395         (value_range_base::set_nonzero): ...this.
2396         (value_range::set_nonnull): Remove.
2397         (value_range_base::set_null): Rename to...
2398         (value_range_base::set_zero): ...this.
2399         (value_range::set_null): Remove.
2400         (extract_range_from_binary_expr): Rename set_*null uses to
2401         set_*zero.
2402         (extract_range_from_unary_expr): Same.
2403         (union_helper): Same.
2404         * vr-values.c (get_value_range): Use set_*zero instead of
2405         set_*null.
2406         (vr_values::extract_range_from_binary_expr): Same.
2407         (vr_values::extract_range_basic): Same.
2409 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
2411         PR driver/90684
2412         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
2414 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2416         * config/aarch64/iterators.md (MAX_OPP): New code attr.
2417         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
2418         (aarch64_<su>abd<mode>_3): ... This.
2419         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
2421 2019-06-03  Richard Biener  <rguenther@suse.de>
2423         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
2424         full reference tree and record in ref->ref.
2425         (vn_reference_lookup_3): Pass in original ref to
2426         ao_ref_init_from_vn_reference.
2427         (vn_reference_lookup): Likewise.
2428         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
2429         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2430         Handle non-decl bases in the original reference.
2432 2019-06-03  Martin Liska  <mliska@suse.cz>
2434         * doc/generic.texi: Remove Java Trees.
2436 2019-06-03  Martin Liska  <mliska@suse.cz>
2438         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
2439         returns 0 when operands are equal.
2441 2019-06-03  Richard Biener  <rguenther@suse.de>
2443         PR tree-optimization/90716
2444         * tree-loop-distribution.c (destroy_loop): Process blocks in
2445         correct order.
2447 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2449         PR target/88837
2450         * vector-builder.h (vector_builder::count_dups): New method.
2451         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
2452         Declare prototype.
2453         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
2454         (vec_init<mode><Vel>): New pattern.
2455         * config/aarch64/aarch64.c (emit_insr): New function.
2456         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
2457         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
2458         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
2459         (aarch64_sve_expand_vector_init): Define two overloaded functions.
2461 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
2463         PR tree-optimization/90681
2464         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
2465         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
2466         special case for SLP, but fail on non-groupped loads.
2468 2019-06-03  Martin Liska  <mliska@suse.cz>
2470         * cfg.c (debug): Use TDF_DETAILS for debug and
2471         print edge info only once.
2473 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
2475         PR fortran/90539
2476         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
2478 2019-06-01  Martin Sebor  <msebor@redhat.com>
2480         PR middle-end/90694
2481         * tree-pretty-print.c (dump_generic_node): Add parentheses.
2483 2019-05-31  Jan Hubicka  <jh@suse.cz>
2485         * alias.c: Include ipa-utils.h.
2486         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
2487         * ipa-devirt.c (prevailing_odr_type): New.
2488         * ipa-utils.h (previaling_odr_type): Declare.
2490 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2491             Hongtao Liu  <hongtao.liu@intel.com>
2493         PR target/89355
2494         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
2495         NOTE_INSN_DELETED_LABEL check.
2497 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
2498             Robert Suchanek  <robert.suchanek@mips.com>
2500         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
2501         and 3rd operands of the fmadd/fmsub/maddv builtin.
2503 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
2505         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
2506         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
2507         on OMP_SIMD if not nested inside of worksharing loop that also has
2508         lastprivate conditional clause for the same decl.
2509         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
2510         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
2511         on simd.
2512         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
2513         on simd construct.
2514         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
2515         on simd construct.
2516         (lower_lastprivate_clauses): Likewise.
2517         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
2518         calling lower_rec_input_clauses.
2519         (lower_omp_for): Likewise.
2520         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
2521         clause on simd construct.
2522         * omp-expand.c (expand_omp_simd): Initialize cond_var if
2523         OMP_CLAUSE__CONDTEMP_ clause is present.
2525         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
2526         ivar and lvar.
2528 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
2530         PR c/43673
2531         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
2532         TEX_D32, TEX_D64 or TEX_D128.
2534 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
2536         * match.pd (~(vec?cst1:cst2)): New transformation.
2538 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
2540         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
2541         ((size_t)(A /[ex] B) CMP C): New transformation.
2543 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
2545         * doc/md.texi: Document define_insn_and_rewrite.
2546         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
2547         * gensupport.c (queue_elem): Update comment.
2548         (replace_operands_with_dups): New function.
2549         (gen_rewrite_sequence): Likewise.
2550         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
2551         * read-rtl.c (apply_subst_iterator): Likewise.
2552         (add_condition_to_rtx, named_rtx_p): Likewise.
2553         (rtx_reader::read_rtx_operand): Likewise.
2554         * config/aarch64/aarch64-sve.md
2555         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
2556         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
2557         define_insn_and_rewrite.
2558         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
2559         Remove separate define_split.
2561 2019-05-31  Jan Hubicka  <jh@suse.cz>
2563         * tree-ssa-alias.c (type_has_components_p): New function.
2564         (aliasing_component_refs_p): Use it.
2566 2019-05-31  Martin Liska  <mliska@suse.cz>
2568         * gdbhooks.py: Add const_tree to TreePrinter.
2570 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
2572         PR debug/86964
2573         * common.opt (feliminate-unused-debug-symbols): Enable by default.
2574         * doc/invoke.texi (Debugging Options): Document new default of
2575         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
2577 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
2579         PR tree-optimization/90671
2580         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
2581         template_block used to be empty on the first call, don't use
2582         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
2583         seq with bb_seq and set it with set_bb_seq.
2585 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
2587         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
2589 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
2590             Michael Meissner  <meissner@linux.ibm.com>
2592         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
2593         (prefixed_mem_operand): Likewise.
2594         (non_prefixed_mem_operand): Likewise.
2595         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
2596         prototype.
2597         * config/rs6000/rs6000.c (print_operand_address): Handle
2598         PC-relative addresses.
2599         (mode_supports_prefixed_address_p): New function.
2600         (rs6000_prefixed_address): New function.
2601         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
2602         (SYMBOL_REF_PCREL_P): Likewise.
2604 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
2606         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
2607         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
2608         (gimplify_omp_for): If worksharing loop with lastprivate conditional
2609         is nested inside of parallel region, add _condtemp_ clause to both.
2610         * tree-nested.c (convert_nonlocal_omp_clauses,
2611         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
2612         assertion failure.
2613         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
2614         member.
2615         * omp-general.c (omp_extract_for_data): Compute it.
2616         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
2617         (lower_rec_input_clauses): Likewise.
2618         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
2619         clause is already present, just add one further one after it.
2620         (lower_lastprivate_clauses): Handle cond_ptr with array type.
2621         (lower_send_shared_vars): Clear _condtemp_ vars.
2622         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
2623         or section or taskgroup.
2624         * omp-expand.c (determine_parallel_type): Disallow combining only if
2625         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
2626         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
2627         (expand_omp_for_generic, expand_omp_for_static_nochunk,
2628         expand_omp_for_static_chunk, expand_omp_for): Use
2629         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
2630         determine if a special set of API routines are needed and if condtemp
2631         needs to be initialized, while always initialize cond_var if
2632         fd->lastprivate_conditional is non-zero.
2634 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
2635             Michael Meissner  <meissner@linux.ibm.com>
2637         * config/rs6000/constraints.md (eI): New constraint.
2638         * config/rs6000/predicates.md (cint34_operand): New predicate.
2639         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
2640         (SIGNED_34BIT_OFFSET_P): Likewise.
2641         * doc/md.texi (eI): Document constraint.
2643 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
2645         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
2647 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
2648             Michael Meissner  <meissner@linux.ibm.com>
2650         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
2651         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
2652         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
2653         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
2654         (OTHER_FUTURE_MASKS): Likewise.
2655         (POWERPC_MASKS): Likewise.
2656         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
2657         specified without -mprefixed-addr or -mcpu=future.  Error if
2658         -mprefixed-addr is specified without -mcpu=future.
2659         (rs6000_opt_masks): Add entry for prefixed-addr.
2660         * rs6000.opt (mprefixed-addr): New option.
2662 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
2664         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add 
2665         cfun->is_thunk check.
2667 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
2669         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
2670         to length.
2672 2019-05-30  Martin Liska  <mliska@suse.cz>
2674         * gdbinit.in: Fix 'ptc' command.  Add trt
2675         that prints TREE_TYPE($).
2677 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
2678             Alan Modra  <amodra@gmail.com>
2680         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
2681         calls here...
2682         (rs6000_indirect_call_template_1): ...and here.
2683         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
2684         plt16_ha, plt16_lo, mtctr indirect calls.  Use
2685         rs6000_pltseq_enum.
2686         (rs6000_decl_ok_for_sibcall): New function.
2687         (rs6000_function_ok_for_sibcall): Refactor.
2688         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
2689         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
2690         when pcrel.  Reorganize.
2691         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
2692         * rs6000.h (rs6000_pltseq_enum): New enum.
2693         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
2694         (*pltseq_tocsave): Use rs6000_pltseq_enum.
2695         (*pltseq_plt16_ha): Likewise.
2696         (*pltseq_plt16_lo): Likewise.
2697         (*pltseq_mtctr): Likewise.
2698         (*pltseq_plt_pcrel): New insn.
2699         (*call_local_aix): Handle @notoc calls.
2700         (*call_value_local_aix): Likewise.
2701         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
2702         (*call_value_nonlocal_aix): Likewise.
2703         (*call_indirect_pcrel): New insn.
2704         (*call_value_indirect_pcrel): Likewise.
2707 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
2709         * config/i386/sse.md (*save_multiple<mode>): Rename from
2710         save_multiple<mode>.
2711         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
2712         (*restore_multiple_and_return<mode>): Rename from
2713         restore_multiple_and_return<mode>.
2714         (*restore_multiple_leave_return<mode>): Rename from
2715         restore_multiple_leave_return<mode>.
2717 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
2719         * config.gcc (rx-*-linux*): New target.
2720         * config/rx/elf.opt: New file.
2721         * config/rx/linux.h: Likewise.
2722         * config/rx/t-linux: Likewise.
2723         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
2724         make it zero.
2725         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
2726         (ASM_APP_OFF): Likewise.
2727         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
2728         moved elsewhere.
2730 2019-05-29  Jan Hubicka  <jh@suse.cz>
2732         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
2733         variants are pointer equivalent.
2735 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
2737         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
2738         * config/aarch64/aarch64-sve2.md: New file.
2739         (<u>avg<mode>3_floor): New pattern.
2740         (<u>avg<mode>3_ceil): Likewise.
2741         (*<sur>h<addsub><mode>): Likewise.
2742         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
2743         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
2745 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
2747         PR bootstrap/90543
2748         * optc-save-gen.awk: In cl_optimization_print, use correct condition
2749         for var_opt_string printing.  In cl_optimization_print_diff, print
2750         (null) instead of invoking undefined behavior if one of the
2751         var_opt_string pointers is NULL and use && instead of first || in the
2752         guarding condition.  For var_target_other options, handle const char *
2753         target variables similarly to const char * optimize node variables.
2755 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
2757         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
2758         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
2759         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
2760         Add autib1716 and pacib1716 initialisation.
2761         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
2762         for autib1716 and pacib1716.
2763         * config/aarch64/aarch64-protos.h (aarch64_key_type,
2764         aarch64_post_cfi_startproc): Define.
2765         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
2766         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
2767         aarch64_handle_pac_ret_protection): Set default sign key to A.
2768         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
2769         aarch64_expand_prologue): Add check for b-key.
2770         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
2771         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
2772         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
2773         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
2774         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
2775         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
2776         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
2777         * config/aarch64/aarch64.md (do_return): Add check for b-key.
2778         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
2779         pauth_hint_num_a with pauth_hint_num.
2780         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
2781         pauth_hint_num_a with pauth_hint_num.
2782         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
2783         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
2784         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
2785         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
2786         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
2787         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
2788         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
2789         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
2790         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
2791         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
2792         UNSPEC_AUTIA1716 respectively.
2793         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
2794         and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
2795         * doc/invoke.texi (-mbranch-protection): Add b-key type.
2796         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
2797         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
2799 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
2801         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
2802         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
2803         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
2804         explicit clause on combined parallel into implicit shared clause.
2805         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
2806         and firstprivate if the decl has one too from combined parallel to
2807         the worksharing construct.
2809 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
2810             Michael Meissner  <meissner@linux.ibm.com>
2812         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
2814 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
2816         * rtl.h (LABEL_REF_P): New #define.
2818 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
2820         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
2822 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
2824         * internal-fn.c: Marked mask_load_direct as vectorizable.
2825         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
2826         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
2827         combined even if masks different with allow_slp_p param.
2828         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
2829         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
2830         dissolve SLP-only vectorizable groups when SLP has been discarded.
2831         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
2832         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
2833         masks.
2834         (vect_build_slp_tree_1): Fixed comment typo.
2835         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
2836         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
2837         loads for SLP only.
2838         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
2839         vectorizable.
2840         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
2842 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2844         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
2845         Remove obsolete use_thunk reference.
2846         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2847         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2848         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2849         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2850         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2851         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2852         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2853         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2854         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2856 2019-05-28  Nathan Sidwell  <nathan@acm.org>
2858         * tree.h (IDENTIFIER_ANON_P): New.
2859         (anon_aggrname_format, anon_aggname_p): Don't declare.
2860         (make_anon_name): Declare.
2861         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
2862         (hash_tree): Likewise.
2863         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
2864         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
2865         (anon_cnt, make_anon_name): New.
2867 2019-05-28  Martin Liska  <mliska@suse.cz>
2869         PR other/90315
2870         * opts-global.c (decode_options): Print help for all
2871         help_option_arguments.
2872         * opts.c (print_help): Add new argument.
2873         (common_handle_option): Remember all values into
2874         help_option_arguments.
2875         * opts.h (print_help): Add new argument.
2877 2019-05-28  Martin Liska  <mliska@suse.cz>
2879         PR ipa/90555
2880         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
2881         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
2882         (func_checker::compare_bb): Call compare_loops.
2884 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
2886         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
2887         on sections construct.
2888         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
2889         construct.
2890         (lower_omp_sections): Handle lastprivate conditional.
2891         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
2892         lastprivate_conditional_map.
2893         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
2895         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
2896         critical, taskgroup and section regions when looking for a region
2897         with non-NULL lastprivate_conditional_map.
2899 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
2901         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
2902         (*ix86_gen_sub3): Ditto.
2903         (*ix86_gen_sub3_carry): Ditto.
2904         (*ix86_gen_one_cmpl2): Ditto.
2905         (*ix86_gen_andsp): Ditto.
2906         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
2907         (gen_and2_insn): New static function.
2908         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
2909         Use gen_add3_insn instead of ix86_gen_add3.
2910         (ix86_expand_split_stack_prologue): Use gen_add2_insn
2911         instead of ix86_gen_add3.
2912         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
2913         Use gen_sub3_insn instead of ix86_gen_sub3.
2914         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
2915         instead of ix86_gen_add3.
2916         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
2917         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
2918         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
2919         * config/i386/i386-options.c (ix86_option_override_internal):
2920         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
2921         ix86_gen_one_cmpl2 and ix86_gen_andsp.
2923 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2925         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
2926         and DW_OP_GNU_const_index opcodes.
2928 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
2930         * config/i386/i386.h (STACK_SIZE_MODE): Define.
2932 2019-05-27  Richard Biener  <rguenther@suse.de>
2934         PR tree-optimization/90637
2935         * tree-ssa-sink.c (statement_sink_location): Honor the
2936         computed sink location for single-uses.
2938 2019-05-27  Richard Biener  <rguenther@suse.de>
2940         PR middle-end/90610
2941         * match.pd (vec_perm): Avoid clobbering op0 when not generating
2942         a bit-insert.
2944 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
2946         * config/i386/i386.md (@sub<mode>3_carry): Rename
2947         from sub<mode>3_carry.
2948         (@leave_<mode>): New expander.
2949         (*leave): Rename from leave.
2950         (*leave_rex64): Rename from leave_rex64.
2951         (@monitorx_<mode>): Rename from monitorx_<mode>.
2952         (@clzero_<mode>): Rename from clzero_<mode>.
2953         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
2954         from sse3_monitor_<mode>.
2955         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
2956         (*ix86_gen_leave): Ditto.
2957         (*ix86_gen_monitor): Ditto.
2958         (*ix86_gen_monitorx): Ditto.
2959         (*ix86_gen_clzero): Ditto.
2960         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
2961         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
2962         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
2963         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
2964         Use gen_sse3_monitor instead of ix86_gen_monitor.
2965         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
2966         instead of ix86_gen_monitorx.
2967         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
2968         instead of ix86_gen_clzero.
2969         * config/i386/i386-options.c (ix86_option_override_internal):
2970         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
2971         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
2973 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
2975         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
2976         Rename from tls_global_dynamic_64_<mode>.
2977         (@tls_local_dynamic_base_64_<mode>): Rename from
2978         tls_local_dynamic_base_64_<mode>.
2979         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
2980         Remove indirect function.
2981         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
2982         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
2983         instead of ix86_gen_tls_global_dynamic_64.
2984         Use gen_tls_local_dynamic_base_64 instead of
2985         ix86_gen_tls_local_dynamic_base_64.
2986         * config/i386/i386-options.c (ix86_option_override_internal):
2987         Do not initialize ix86_gen_tls_global_dynamic_64 and
2988         ix86_gen_tls_local_dynamic_base_64.
2990 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
2992         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
2993         Rename from pro_epilogue_adjust_stack_<mode>_add.
2994         (@pro_epilogue_adjust_stack_sub_<mode>)
2995         Rename from pro_epilogue_adjust_stack_<mode>_sub.
2996         (@allocate_stack_worker_probe_<mode>):
2997         Rename from allocate_stack_worker_probe_<mode>.
2998         (allocate_stack): Use gen_allocate_stack_worker_probe.
2999         (probe_stack): Use gen_probe_stack_1.
3000         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
3001         (@adjust_stack_and_probe_<mode>): Rename from
3002         adjust_stack_and_probe<mode>.
3003         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
3004         (stack_protect_set): Use gen_stack_protect_set_1.
3005         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
3006         (stack_protect_test): Use gen_stack_protect_test_1.
3007         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
3008         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
3009         Remove indirect function.
3010         (*ix86_gen_adjust_stack_and_probe): Ditto.
3011         (*ix86_gen_probe_stack_range): Ditto.
3012         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
3013         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
3014         (ix86_adjust_stack_and_probe_stack_clash): Use
3015         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
3016         (ix86_adjust_stack_and_probe): Ditto.
3017         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
3018         of ix86_gen_probe_stack_range.
3019         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
3020         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
3021         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
3022         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
3023         CODE_FOR_stack_protect_test_{si,di}.
3024         * config/i386/i386-options.c (ix86_option_override_internal):
3025         Do not initialize ix86_gen_allocate_stack_worker,
3026         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
3028 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
3030         * doc/invoke.texi (Link Options): Many editorial changes around
3031         -flinker-output.
3033 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3035         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
3036         pre-Solaris 11 referene and most Studio compiler details.
3038 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
3040         PR target/90530
3041         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
3042         DImode to SImode in floating-point registers on 64-bit target.
3043         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
3044         register_operand in xmpyu patterns.
3046 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
3048         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
3049         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
3050         OMP_CLAUSE__REDUCTEMP_.
3051         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3052         OMP_CLAUSE__CONDTEMP_.
3053         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
3054         * tree-pretty-print.c (dump_omp_clause): Likewise.
3055         * tree-nested.c (convert_nonlocal_omp_clauses,
3056         convert_local_omp_clauses): Likewise.
3057         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
3058         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
3059         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
3060         on OMP_FOR.
3061         (gimplify_omp_for): Warn and disable conditional modifier from
3062         lastprivate on loop iterators.
3063         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
3064         member.
3065         * omp-general.c (omp_extract_for_data): Initialize it.
3066         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
3067         member.
3068         (delete_omp_context): Delete it.
3069         (lower_lastprivate_conditional_clauses): New function.
3070         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
3071         handle lastprivate conditional clauses.
3072         (lower_reduction_clauses): Add CLIST argument, emit it into
3073         the critical section if any.
3074         (lower_omp_sections): Adjust lower_lastprivate_clauses and
3075         lower_reduction_clauses callers.
3076         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
3077         to lower_lastprivate_clauses.
3078         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
3079         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
3080         clist into a critical section if not emitted there already by
3081         lower_reduction_clauses.
3082         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
3083         callers.
3084         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
3085         conditional variables.
3086         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
3087         clause is present.
3088         (expand_omp_for_generic, expand_omp_for_static_nochunk,
3089         expand_omp_for_static_chunk): Handle lastprivate conditional.
3090         (expand_omp_for): Handle fd.lastprivate_conditional like
3091         fd.have_reductemp.
3093 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
3095         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
3096         kernel does not exit cleanly.
3097         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
3099 2019-05-24  Jason Merrill  <jason@redhat.com>
3101         Revert:
3102         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
3104 2019-05-24  Richard Biener  <rguenther@suse.de>
3106         PR testsuite/90607
3107         * tree-loop-distribution.c (struct partition): Add location
3108         member.
3109         (partition_alloc): Initialize all fields.
3110         (generate_memset_builtin): Use the location recorded in the
3111         partition for the generated call.
3112         (generate_memcpy_builtin): Likewise.
3113         (classify_partition): Record the location of a single store
3114         as location for the partition.
3116 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
3118         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
3119         for lo-part.
3121 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
3123         PR target/90588
3124         * common/config/aarch64/aarch64-common.c
3125         (aarch64_rewrite_selected_cpu): Change local temporary variable
3126         type from unsigned long to uint64_t.
3127         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
3128         aarch64_get_extension_string_for_isa_flags): Change declaration to
3129         match new definition by replacing unsigned long with uint64_t.
3131 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
3133         PR target/90568
3134         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
3135         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
3136         Handle stack_protect_test_<mode> codegen similarly to corresponding
3137         sub instruction.
3139 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
3141        * config/i386/darwin.h: Reject -mfentry*.
3142        * doc/sourcebuild.texi: Document mfentry target support.
3144 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
3146         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
3147         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
3148         false for PC-relative functions.
3149         (rs6000_output_function_prologue): Change called function name to
3150         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
3151         name,1" for PC-relative functions.
3152         (rs6000_elf_declare_function_name): Change called function name to
3153         rs6000_global_entry_point_prologue_needed_p.
3155 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
3157         PR target/90552
3158         * config/i386/i386.c (gen_rtx_cost):
3159         Use ix86_tune_cost instead of ix86_cost.
3161 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
3162             Michael Meissner  <meissner@linux.ibm.com>
3163             Segher Boessenkool  <segher@kernel.crashing.org>
3165         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
3166         OPTION_MASK_PCREL.
3167         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
3168         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
3169         (rs6000_fndecl_pcrel_p): Likewise.
3170         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
3171         error if -mpcrel is requested without -mcpu=future.
3172         (rs6000_opt_masks): Add entry for pcrel.
3173         (rs6000_fndecl_pcrel_p): New function.
3174         (rs6000_pcrel_p): Likewise.
3175         * config/rs6000/rs6000.opt (mpcrel): New option.
3176         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
3178 2019-05-23  Jan Hubicka  <jh@suse.cz>
3179             Martin Liska  <mliska@suse.cz>
3181         PR tree-optimization/90576
3182         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
3183         poly_int_tree_p.
3184         (aliasing_component_refs_p): Fix three way size compare conditional;
3185         give up earlier in case we can not decide on equivalence.
3187 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
3188             Michael Meissner  <meissner@linux.ibm.com>
3189             Segher Boessenkool  <segher@kernel.crashing.org>
3191         * config.gcc: Add future cpu.
3192         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
3193         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
3194         #define.
3195         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
3196         (RS6000_CPU): New instantiation for future cpu.
3197         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3198         PROCESSOR_FUTURE.
3199         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
3200         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
3201         * config/rs6000/rs6000-tables.opt: Regenerate.
3202         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
3203         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
3204         (rs6000_machine_from_flags): Handle future cpu.
3205         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
3206         PROCESSOR_POWER9 for now.
3207         (rs6000_adjust_cost): Likewise.
3208         (rs6000_issue_rate): Likewise.
3209         (rs6000_register_move_cost): Likewise.
3210         (rs6000_opt_masks): Add entry for future.
3211         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
3212         (MASK_FUTURE): New #define.
3213         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
3214         * config/rs6000/rs6000.opt (mfuture): New target option.
3215         * doc/invoke.texi (mcpu): Add future cpu.
3217 2019-05-23  Martin Liska  <mliska@suse.cz>
3219         PR c++/90587
3220         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
3221         operation points to a temporary (pointed via tree_to_wide_ref)
3222         that is out of scope after the &.
3224 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
3226         PR c++/90592
3227         * doc/extend.texi (Function Names): Add missing word.
3229 2019-05-23  Richard Biener  <rguenther@suse.de>
3231         PR tree-optimization/88440
3232         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
3233         at -O[2s]+.
3234         * tree-loop-distribution.c (generate_memset_builtin): Fold the
3235         generated call.
3236         (generate_memcpy_builtin): Likewise.
3237         (distribute_loop): Pass in whether to only distribute patterns.
3238         (prepare_perfect_loop_nest): Also allow size optimization.
3239         (pass_loop_distribution::execute): When optimizing a loop
3240         nest for size allow pattern replacement.
3242 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
3244         PR target/90568
3245         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
3246         of xor.
3248 2019-05-23  Martin Liska  <mliska@suse.cz>
3250         PR sanitizer/90570
3251         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
3252         expression similarly to gimplify_decl_expr.
3254 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3256         * cse.c (cse_dump_path): s/dump_file/f.
3258 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
3260         PR c++/90462
3261         * diagnostic-format-json.cc: Include "selftest.h".
3262         (json_from_expanded_location): Only add "file" key for non-NULL
3263         file strings.
3264         (json_from_location_range): Don't add "start" and "finish"
3265         children if they are UNKNOWN_LOCATION.
3266         (selftest::test_unknown_location): New selftest.
3267         (selftest::test_bad_endpoints): New selftest.
3268         (selftest::diagnostic_format_json_cc_tests): New function.
3269         * json.cc (json::object::get): New function.
3270         (selftest::test_object_get): New selftest.
3271         (selftest::json_cc_tests): Call it.
3272         * json.h (json::object::get): New decl.
3273         * selftest-run-tests.c (selftest::run_tests): Call
3274         selftest::diagnostic_format_json_cc_tests.
3275         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
3276         decl.
3278 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
3279             Andrew Stubbs  <amd@codesourcery.com>
3281         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
3282         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
3283         (kernel): Rename to...
3284         (main_kernel): ... this.
3285         (load_image): Load _init_array and _fini_array kernels.
3286         (run): Add argument for kernel to run.
3287         (main): Run init_array_kernel before main_kernel, and
3288         fini_array_kernel after.
3289         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
3290         amdgpu_hsa_kernel attribute on functions.
3291         (gcn_disable_constructors): Delete.
3292         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
3293         * config/gcn/crt0.c (size_t): Define.
3294         (_init_array, _fini_array): New.
3295         (__preinit_array_start, __preinit_array_end,
3296         __init_array_start, __init_array_end,
3297         __fini_array_start, __fini_array_end): Declare weak references.
3299 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
3301         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
3303 2019-05-22  Jason Merrill  <jason@redhat.com>
3305         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
3307 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3309         PR target/88483
3310         * config/i386/i386-options.c (ix86_init_machine_status): Set
3311         stack_frame_required to true.
3312         * config/i386/i386.c (ix86_get_frame_size): New function.
3313         (ix86_frame_pointer_required): Replace get_frame_size with
3314         ix86_get_frame_size.
3315         (ix86_compute_frame_layout): Likewise.
3316         (ix86_find_max_used_stack_alignment): Changed to void.  Set
3317         stack_frame_required.
3318         (ix86_finalize_stack_frame_flags): Always call
3319         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
3320         ix86_get_frame_size.
3321         * config/i386/i386.h (machine_function): Add stack_frame_required.
3323 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
3325         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
3327 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
3329         * common/config/aarch64/aarch64-common.c
3330         (struct aarch64_option_extension, struct processor_name_to_arch,
3331         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
3332         aarch64_contains_opt,
3333         aarch64_get_extension_string_for_isa_flags): Change type of
3334         variables storing flags to uint64_t.
3335         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
3336         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
3337         * config/aarch64/aarch64.c (struct processor,
3338         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
3339         aarch64_validate_march, aarch64_override_options,
3340         aarch64_option_print, aarch64_handle_attr_isa_flags,
3341         aarch64_declare_function_name, aarch64_start_file): Make flag
3342         variables uint64_t.
3343         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
3344         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
3345         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
3346         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
3347         * config/aarch64/driver-aarch64.c
3348         (struct aarch64_arch_extension, struct aarch64_core_data,
3349         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
3350         flag variables uint64_t.
3351         * doc/invoke.texi: Add documentation for new arguments.
3353 2019-05-22  Richard Biener  <rguenther@suse.de>
3355         * alias.c (ao_ref_from_mem): Move stack-slot sharing
3356         rewrite ...
3357         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
3359 2019-05-22  Martin Liska  <mliska@suse.cz>
3361         PR lto/90500
3362         * doc/extend.texi: Document the change.
3364 2019-05-22  Richard Biener  <rguenther@suse.de>
3366         PR tree-optimization/90450
3367         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
3368         (mem_ref_hasher::equal): Check it.
3369         (mem_ref_alloc): Initialize it.
3370         (gather_mem_refs_stmt): Set it.
3372 2019-05-22  Richard Biener  <rguenther@suse.de>
3374         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
3375         Add ABS_EXPR.
3376         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
3377         as ABSU_EXPR.
3379 2019-05-22  Alan Modra  <amodra@gmail.com>
3381         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
3382         (ASM_CPU_SPEC): Conditionally add -many.
3383         * config/rs6000/rs6000.c (rs6000_machine): New static var.
3384         (rs6000_machine_from_flags, emit_asm_machine): New functions..
3385         (rs6000_file_start): ..extracted from here, and modified to
3386         test all ISA bits.
3387         (rs6000_output_function_prologue): Emit .machine as necessary.
3388         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
3389         power mnemonics.
3390         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
3391         added by check_vect_support_and_set_flags.
3392         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
3393         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
3395 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
3397         PR middle-end/90553
3398         * ira-lives.c (process_bb_node_lives): Consider defs
3399         for a call insn to be die before the call, not after.
3401         * function.c (assign_parm_setup_block): Raise alignment of
3402         stacked parameter only for STRICT_ALIGNMENT targets.
3404 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3406         * config/rs6000/constraints.md (define_register_constraint "wz"):
3407         Delete.
3408         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3409         RS6000_CONSTRAINT_wz.
3410         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3411         (rs6000_init_hard_regno_mode_ok): Adjust.
3412         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
3413         * doc/md.texi (Machine Constraints): Adjust.
3415 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3417         * config/rs6000/constraints.md (define_register_constraint "wl"):
3418         Delete.
3419         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3420         RS6000_CONSTRAINT_wl.
3421         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3422         (rs6000_init_hard_regno_mode_ok): Adjust.
3423         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
3424         * doc/md.texi (Machine Constraints): Adjust.
3426 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3428         * config/rs6000/constraints.md (define_register_constraint "wm"):
3429         Delete.
3430         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3431         RS6000_CONSTRAINT_wm.
3432         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3433         (rs6000_init_hard_regno_mode_ok): Adjust.
3434         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
3435         * doc/md.texi (Machine Constraints): Adjust.
3437 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3439         * config/rs6000/constraints.md (define_register_constraint "wk"):
3440         Delete.
3441         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3442         RS6000_CONSTRAINT_wk.
3443         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3444         (rs6000_init_hard_regno_mode_ok): Adjust.
3445         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
3446         * doc/md.texi (Machine Constraints): Adjust.
3448 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3450         * config/rs6000/constraints.md (define_register_constraint "wj"):
3451         Delete.
3452         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3453         RS6000_CONSTRAINT_wj.
3454         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3455         (rs6000_init_hard_regno_mode_ok): Adjust.
3456         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
3457         (VS_64dm): Delete.
3458         * config/rs6000/vsx.md: Ditto.
3459         * doc/md.texi (Machine Constraints): Adjust.
3461 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
3463         * config/rs6000/constraints.md (define_register_constraint "wh"):
3464         Delete.
3465         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3466         RS6000_CONSTRAINT_wh.
3467         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3468         (rs6000_init_hard_regno_mode_ok): Adjust.
3469         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
3470         * doc/md.texi (Machine Constraints): Adjust.
3472 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
3474         PR target/90547
3475         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3476         Avoid calling gen_lowpart with CONST operand.
3478 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
3480         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
3481         field template_last_to_copy.
3482         (ssa_create_duplicates): Set it, and use it.  Attempt to
3483         preserve more debug stmts.
3485 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
3487         * config/i386/sse.md (VF1_AVX2): New mode iterator.
3488         (signbit<mode>2): New expander
3490 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
3492         PR bootstrap/87338
3493         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
3494         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
3496 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
3498         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
3499         %ebx and %ecx bafore calling cpuid with leaf 1 or
3500         non-constant leaf argument.
3502 2019-05-21  Alan Modra  <amodra@gmail.com>
3504         PR target/90545
3505         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
3506         power9 direct move cost.
3507         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
3508         Correct comments and rename functions to suit parameters.
3510 2019-05-21  Richard Biener  <rguenther@suse.de>
3512         PR middle-end/90510
3513         * fold-const.c (fold_read_from_vector): New function.
3514         * fold-const.h (fold_read_from_vector): Declare.
3515         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
3516         single-element insert permutations.  Canonicalize selector
3517         further and fix issue with last commit.
3519 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
3521         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
3522         parameter with default value false to declaration.
3523         (split_edges_for_insertion): New inline function.  Wrapper for
3524         split_critical_edges with for_edge_insertion_p = true.
3525         * tree-cfg.c (split_critical_edges): Don't split non-critical
3526         edges if for_edge_insertion_p is false.  Fix whitespace.
3527         * tree-ssa-pre.c (pass_pre::execute): Call
3528         split_edges_for_insertion instead of split_critical_edges.
3529         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
3530         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
3531         (pass_data_sink_code): Update function name in the comment.
3533 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
3535         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
3536         around is_value_included_in that knows how to handle BIT_AND_EXPR.
3537         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
3538         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
3539         positives.
3541 2019-05-21  Martin Liska  <mliska@suse.cz>
3543         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
3544         an extra newline.
3545         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
3546         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
3547         vec_lvsr.
3548         * config/rs6000/rs6000.c (rs6000_option_override_internal):
3549         Quote a C type.
3550         (rs6000_function_arg): Likewise.
3551         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
3552         (rs6000_expand_ternop_builtin): Use interval syntax.
3553         (get_element_number): Likewise.
3554         (altivec_expand_builtin): Likewise.
3555         (rs6000_get_function_versions_dispatcher): Quote target_clones.
3557 Fix test-suite.
3559 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
3561         PR c++/59813
3562         PR target/90418
3563         * function.h (struct function): Add calls_eh_return member.
3564         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
3565         gimplifying __builtin_eh_return call.
3566         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
3567         to cfun.
3568         (expand_call_inline): Or in src_cfun->calls_eh_return into
3569         dst_cfun->calls_eh_return.
3570         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
3571         cfun->calls_eh_return.
3572         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
3573         * lto-streamer-out.c (output_struct_function_base): Write
3574         calls_eh_return.
3576 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
3578         PR rtl-optimization/43147
3579         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
3580         IX86_BUILTIN_SHUFPD.
3582 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
3584         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
3585         (refs_may_alias_p_1): ... here; update stats.
3586         (refs_may_alias_p): Do not update stats here.
3588 2019-05-20  Richard Biener  <rguenther@suse.de>
3590         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
3591         doesn't produce pointers.
3592         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
3593         the first operand points to.
3595 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
3597         * tree-ssa-alias.c (compare_sizes): New function.
3598         (sompare_type_sizes): New function
3599         (aliasing_component_refs_p): Use it.
3600         (indirect_ref_may_alias_decl_p): Likewise.
3602 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3604         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
3606 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3608         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
3609         (LIBLSAN_EARLY_SPEC): Likewise.
3610         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
3612 2019-05-20  Martin Liska  <mliska@suse.cz>
3614         * config/i386/i386.c (ix86_libc_has_fast_function):
3615         Add ATTRIBUTE_UNUSED for the argument.
3617 2019-05-20  Richard Biener  <rguenther@suse.de>
3619         * gimple-match-head.c: Include vec-perm-indices.h.
3620         * generic-match-head.c: Likewise.
3621         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
3622         is included.
3623         * fold-const.c (fold_vec_perm): Export.
3624         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
3625         (match.pd): ...here.
3627 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
3629         * cfgloop.h (struct loop): Add simdlen member.
3630         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
3631         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
3632         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
3633         as new argument to autovectorize_vector_sizes target hook.  If
3634         loop->simdlen, pick up vector size where the vectorization factor
3635         is equal to loop->simd, and if there is none, fall back to the first
3636         successful one.
3637         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
3638         caller.
3639         * omp-low.c (omp_clause_aligned_alignment): Likewise.
3640         * omp-general.c (omp_max_vf): Likewise.
3641         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
3642         * tree-vect-slp.c (vect_slp_bb): Likewise.
3643         * target.def (autovectorize_vector_sizes): Add ALL argument and
3644         document it.
3645         * doc/tm.texi: Adjust documentation.
3646         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
3647         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
3648         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
3649         bool argument.
3650         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
3651         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
3652         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
3653         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
3654         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
3655         preferred vector size is not 512-bit or 256-bit, just put those
3656         unpreferred ones last.
3658 2019-05-20  Martin Liska  <mliska@suse.cz>
3660         * targhooks.c (default_libc_has_fast_function): New function.
3661         * targhooks.h (default_libc_has_fast_function): Likewise.
3663 2019-05-20  Martin Liska  <mliska@suse.cz>
3665         PR middle-end/90263
3666         * builtins.c (expand_builtin_memory_copy_args): When having a
3667         target with fast mempcpy implementation do now use memcpy.
3668         * config/i386/i386.c (ix86_libc_has_fast_function): New.
3669         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
3670         * doc/tm.texi: Likewise.
3671         * doc/tm.texi.in: Likewise.
3672         * target.def:
3673         * expr.c (emit_block_move_hints): Add 2 new arguments.
3674         * expr.h (emit_block_move_hints): Bail out when libcall
3675         to memcpy would be used.
3677 2019-05-20  Martin Liska  <mliska@suse.cz>
3679         * profile-count.c: Add vertical spacing in order
3680         to separate functions.
3681         * profile-count.h: Likewise.
3683 2019-05-20  Martin Liska  <mliska@suse.cz>
3685         * profile-count.h: Do not use full qualified
3686         names if possible.
3687         * profile-count.c (profile_count::to_frequency): Likewise.
3689 2019-05-20  Martin Liska  <mliska@suse.cz>
3691         * profile-count.h (enum profile_quality): Use capital letters
3692         for enum value names.  Use the adjusted names.
3693         * profile-count.c: Use the adjusted names.
3695 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3697         * config/rs6000/constraints.md (define_register_constraint "wH"):
3698         Delete.
3699         (define_register_constraint "wI"): Delete.
3700         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3701         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
3702         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3703         (rs6000_init_hard_regno_mode_ok): Adjust.
3704         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
3705         resp. "d", or with "wa" as appropriate, all with "p8v".
3706         * config/rs6000/vsx.md: Ditto.
3707         * doc/md.texi (Machine Constraints): Adjust.
3709 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3711         * config/rs6000/constraints.md (define_register_constraint "wy"):
3712         Delete.
3713         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3714         RS6000_CONSTRAINT_wy.
3715         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3716         (rs6000_init_hard_regno_mode_ok): Adjust.
3717         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
3718         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
3719         (define_mode_attr Fisa): New.
3720         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
3721         * doc/md.texi (Machine Constraints): Adjust.
3723 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3725         * config/rs6000/constraints.md (define_register_constraint "wu"):
3726         Delete.
3727         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3728         RS6000_CONSTRAINT_wu.
3729         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3730         (rs6000_init_hard_regno_mode_ok): Adjust.
3731         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
3732         both with "p8v".
3733         (define_mode_attr Fa): Delete.
3734         * config/rs6000/vsx.md: Ditto.
3735         * doc/md.texi (Machine Constraints): Adjust.
3737 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3739         * config/rs6000/constraints.md (define_register_constraint "wJ"):
3740         Delete.
3741         (define_register_constraint "wK"): Delete.
3742         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3743         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
3744         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3745         (rs6000_init_hard_regno_mode_ok): Adjust.
3746         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
3747         Replace "wK" constraint by "wH" with "p9v".
3748         * config/rs6000/vsx.md: Ditto.
3749         * doc/md.texi (Machine Constraints): Adjust.
3751 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3753         * config/rs6000/constraints.md (define_register_constraint "wb"):
3754         Delete.
3755         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3756         RS6000_CONSTRAINT_wb.
3757         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3758         (rs6000_init_hard_regno_mode_ok): Adjust.
3759         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
3760         * config/rs6000/vsx.md: Ditto.
3761         * doc/md.texi (Machine Constraints): Adjust.
3763 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3765         * config/rs6000/constraints.md (define_register_constraint "wo"):
3766         Delete.
3767         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3768         RS6000_CONSTRAINT_wo.
3769         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3770         (rs6000_init_hard_regno_mode_ok): Adjust.
3771         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
3772         * config/rs6000/altivec.md: Ditto.
3773         * doc/md.texi (Machine Constraints): Adjust.
3775 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
3777         * config/darwin-c.c (darwin_register_objc_includes): Do not
3778         prepend the sysroot when building gnu-runtime header search
3779         paths.
3781 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
3783         * config/darwin.c (darwin_file_end): Use switch_to_section ()
3784         instead of direct output of the asm.
3786 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
3788         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
3789         argument to be type bool (was int before).
3790         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
3791         at first use.  Use type bool for some variables.  Fix a theoretical
3792         eh_return bug for svr4.
3794 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
3796         * config/rs6000/rs6000.md (isa): New attribute.
3797         (enabled): New attribute.
3799 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
3801         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
3802         assemble_start_function and assemble_end_function.
3804 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
3806         PR middle-end/89433
3807         * omp-general.c (oacc_verify_routine_clauses): Change formal
3808         parameters.  Add checking if already marked with an OpenACC
3809         'routine' directive.  Adjust all users.
3811         PR middle-end/89433
3812         * omp-general.c (oacc_build_routine_dims): Move some of its
3813         processing into...
3814         (oacc_verify_routine_clauses): ... this new function.
3815         * omp-general.h (oacc_verify_routine_clauses): New prototype.
3817 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
3819         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
3820         formating of picbase labels to match other ports.
3822 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
3824         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
3825         in the generated code.
3827 2019-05-16  Martin Sebor  <msebor@redhat.com>
3829         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
3830         identifiers, keywords, operators, and types in diagnostics.  Correct
3831         quoting, spelling, and sentence capitalization issues.
3832         (expand_builtin_atomic_is_lock_free): Same.
3833         (fold_builtin_next_arg): Same.
3834         * cfgexpand.c (expand_one_var): Same.
3835         (tree_conflicts_with_clobbers_p): Same.
3836         (expand_asm_stmt): Same.
3837         (verify_loop_structure): Same.
3838         * cgraphunit.c (process_function_and_variable_attributes): Same.
3839         * collect-utils.c (collect_execute): Same.
3840         * collect2.c (maybe_run_lto_and_relink): Same.
3841         (is_lto_object_file): Same.
3842         (scan_prog_file): Same.
3843         * convert.c (convert_to_real_1): Same.
3844         * dwarf2out.c (dwarf2out_begin_prologue): Same.
3845         * except.c (verify_eh_tree): Same.
3846         * gcc.c (execute): Same.
3847         (eval_spec_function): Same.
3848         (run_attempt): Same.
3849         (driver::set_up_specs): Same.
3850         (compare_debug_auxbase_opt_spec_function): Same.
3851         * gcov-tool.c (unlink_gcda_file): Same.
3852         (do_merge): Same.
3853         (do_rewrite): Same.
3854         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
3855         * gimplify.c (gimplify_asm_expr): Same.
3856         (gimplify_adjust_omp_clauses): Same.
3857         * hsa-gen.c (gen_hsa_addr_insns): Same.
3858         (gen_hsa_insns_for_load): Same.
3859         (gen_hsa_cmp_insn_from_gimple): Same.
3860         (gen_hsa_insns_for_operation_assignment): Same.
3861         (gen_get_level): Same.
3862         (gen_hsa_alloca): Same.
3863         (omp_simple_builtin::generate): Same.
3864         (gen_hsa_atomic_for_builtin): Same.
3865         (gen_hsa_insns_for_call): Same.
3866         * input.c (dump_location_info): Same.
3867         * ipa-devirt.c (compare_virtual_tables): Same.
3868         * ira.c (ira_setup_eliminable_regset): Same.
3869         * lra-assigns.c (lra_assign): Same.
3870         * lra-constraints.c (lra_constraints): Same.
3871         * lto-streamer-in.c (lto_input_mode_table): Same.
3872         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
3873         (merge_and_complain): Same.
3874         (compile_offload_image): Same.
3875         (compile_images_for_offload_targets): Same.
3876         (debug_objcopy): Same.
3877         (run_gcc): Same.
3878         (main): Same.
3879         * opts.c (print_specific_help): Same.
3880         (parse_no_sanitize_attribute): Same.
3881         (print_help): Same.
3882         (handle_param): Same.
3883         * plugin.c (add_new_plugin): Same.
3884         (parse_plugin_arg_opt): Same.
3885         (try_init_one_plugin): Same.
3886         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
3887         operators, and types in diagnostics.  Correct quoting and spelling
3888         issues.
3889         * read-rtl-function.c (parse_edge_flag_token): Same.
3890         (function_reader::parse_enum_value): Same.
3891         * reg-stack.c (check_asm_stack_operands): Same.
3892         * regcprop.c (validate_value_data): Same.
3893         * sched-rgn.c (make_pass_sched_fusion): Same.
3894         * stmt.c (check_unique_operand_names): Same.
3895         * targhooks.c (default_target_option_pragma_parse): Same.
3896         * tlink.c (recompile_files): Same.
3897         * toplev.c (process_options): Same.
3898         (do_compile): Same.
3899         * trans-mem.c (diagnose_tm_1): Same.
3900         (ipa_tm_scan_irr_block): Same.
3901         (ipa_tm_diagnose_transaction): Same.
3902         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
3903         format a tree code name in a diagnostic.
3904         (verify_types_in_gimple_min_lval): Same.
3905         (verify_types_in_gimple_reference): Same.
3906         (verify_gimple_call): Same.
3907         (verify_gimple_assign_unary): Same.
3908         (verify_gimple_assign_binary): Same.
3909         (verify_gimple_assign_ternary): Same.
3910         (verify_gimple_assign_single): Same.
3911         (verify_gimple_switch): Same.
3912         (verify_gimple_label): Same.
3913         (verify_gimple_phi): Same.
3914         (verify_gimple_in_seq): Same.
3915         (verify_eh_throw_stmt_node): Same.
3916         (collect_subblocks): Same.
3917         (gimple_verify_flow_info): Same.
3918         (do_warn_unused_result): Same.
3919         * tree-inline.c (expand_call_inline): Same.
3920         * tree-into-ssa.c (update_ssa): Same.
3921         * tree.c (tree_int_cst_elt_check_failed): Same.
3922         (tree_vec_elt_check_failed): Same.
3923         (omp_clause_operand_check_failed): Same.
3924         (verify_type_variant): Same.
3925         (verify_type): Same.
3926         * value-prof.c (verify_histograms): Same.
3927         * varasm.c (assemble_start_function): Same.
3929 2019-05-16  Martin Sebor  <msebor@redhat.com>
3931         * config/i386/i386-expand.c (get_element_number): Quote keywords
3932         and other internal names in diagnostics.  Adjust other diagnostic
3933         formatting issues noted by -Wformat-diag.
3934         * config/i386/i386-features.c
3935         (ix86_mangle_function_version_assembler_name): Same.
3936         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
3937         * config/i386/i386.c (ix86_function_type_abi): Same.
3938         (ix86_function_ms_hook_prologue): Same.
3939         (classify_argument): Same.
3940         (ix86_expand_prologue): Same.
3941         (ix86_md_asm_adjust): Same.
3942         (ix86_memmodel_check): Same.
3944 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
3946         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
3947         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
3948         and fpxx modes.
3950 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3952         PR target/90497
3953         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
3954         intrinsics without SSE/SSE2/SSSE3.
3955         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
3956         check.
3957         (*mmx_uavgv8qi3): Likewise.
3959 2019-05-17  Richard Biener  <rguenther@suse.de>
3961         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
3962         VEC_PERM_EXPR as __VEC_PERM with -gimple.
3964 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
3966         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
3967         vec_sldw insn pattern.
3969 2019-05-17  Richard Biener  <rguenther@suse.de>
3971         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
3973 2019-05-17  Martin Liska  <mliska@suse.cz>
3975         PR driver/90496
3976         * toplev.c (output_stack_usage): With LTO and sanitizer it
3977         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
3978         has no file location.
3980 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
3982         PR c++/90484
3983         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
3984         sz0 is equal to sz1, instead return false in that case.
3986         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
3987         has non-constant expression, force sctx.lane and use two
3988         argument IFN_GOMP_SIMD_LANE instead of single argument.
3989         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
3990         two argument IFN_GOMP_SIMD_LANE without lhs.
3991         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
3992         member.
3993         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
3994         Define.
3995         (LOOP_REQUIRES_VERSIONING): Or in
3996         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
3997         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3998         simd_if_cond.
3999         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
4000         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
4001         from simd if clause if needed.
4003 2019-05-16  Richard Biener  <rguenther@suse.de>
4005         * tree-affine.c (expr_to_aff_combination): New function split
4006         out from...
4007         (tree_to_aff_combination): ... here.
4008         (aff_combination_expand): Avoid building a GENERIC tree.
4010 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
4012         * cgraphunit.c (cgraph_node::expand_thunk): Remove
4013         assemble_start_function and assemble_end_function calls.
4014         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4015         assemble_start_function and assemble_end_function.
4016         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
4017         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
4018         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
4019         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
4020         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
4021         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
4022         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
4023         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
4024         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
4025         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4026         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4027         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
4028         Likewise.
4029         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4030         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
4031         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
4032         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
4033         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
4034         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
4035         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
4036         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
4037         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4038         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4039         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4040         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4041         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
4042         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
4043         Likewise.
4044         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
4045         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
4046         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
4048 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
4050         * tree-ssa-alias.c (alias_stats): Add
4051         aliasing_component_refs_p_may_alias and
4052         aliasing_component_refs_p_no_alias.
4053         (dump_alias_stats): Print aliasing_component_refs_p stats.
4054         (aliasing_component_refs_p): Update stats.
4056 2019-05-16  Martin Liska  <mliska@suse.cz>
4058         PR lto/90500
4059         * multiple_target.c (expand_target_clones): Do not allow
4060         target_clones being used with a symbol that is an alias.
4062 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
4064         PR tree-optimization/90394
4065         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
4066         positives rather than ICE for cases where (code2 == NE_EXPR
4067         && code1 == BIT_AND_EXPR).
4069 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
4071         PR fortran/90329
4072         * tree-core.h (struct tree_decl_common): Document
4073         decl_nonshareable_flag for PARM_DECLs.
4074         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
4075         * calls.c (expand_call): Don't try tail call if caller
4076         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
4077         passed on the stack and callee needs to pass any arguments on the
4078         stack.
4079         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
4080         else if instead of series of mutually exclusive ifs.  Handle
4081         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
4082         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4084         * lto-streamer.h (LTO_major_version): Bump to 9.
4086 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
4088         PR tree-optimization/90106
4089         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
4090         new parameter as new internal function call, also move it to new
4091         basic block.
4092         (use_internal_fn): Pass internal function call to
4093         shrink_wrap_one_built_in_call_with_conds.
4095 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
4097         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
4098         max_vf to 1.
4099         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
4100         safelen_int and set loop->dont_vectorize.
4102 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4104         PR target/89021
4105         * config/i386/i386-builtin.def: Enable MMX intrinsics with
4106         SSE/SSE2/SSSE3.
4107         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
4108         Likewise.
4109         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
4110         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
4111         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
4112         is defined.
4114 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4116         PR target/89021
4117         * config/i386/mmx.md (*vec_dupv2sf): Changed to
4118         define_insn_and_split to support SSE emulation.
4119         (*vec_extractv2sf_0): Likewise.
4120         (*vec_extractv2sf_1): Likewise.
4121         (*vec_extractv2si_0): Likewise.
4122         (*vec_extractv2si_1): Likewise.
4123         (*vec_extractv2si_zext_mem): Likewise.
4124         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
4125         (vec_extractv2sf_1 splitter): Likewise.
4126         (vec_extractv2sfsf): Likewise.
4127         (vec_setv2si): Likewise.
4128         (vec_extractv2si_1 splitter): Likewise.
4129         (vec_extractv2sisi): Likewise.
4130         (vec_setv4hi): Likewise.
4131         (vec_extractv4hihi): Likewise.
4132         (vec_setv8qi): Likewise.
4133         (vec_extractv8qiqi): Likewise.
4134         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
4135         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
4136         (vec_extractv2sisi): Likewise.
4137         (vec_extractv4hihi): Likewise.
4138         (vec_extractv8qiqi): Likewise.
4139         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
4140         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
4141         (vec_initv2sisi): Likewise.
4142         (vec_initv4hihi): Likewise.
4143         (vec_initv8qiqi): Likewise.
4144         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
4145         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
4146         (vec_setv4hi): Likewise.
4147         (vec_setv8qi): Likewise.
4149 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4151         PR target/89021
4152         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
4153         TARGET_MMX_WITH_SSE.
4154         (MMXMODE:*mov<mode>_internal): Likewise.
4155         (MMXMODE:movmisalign<mode>): Likewise.
4157 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
4159         PR target/89021
4160         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
4161         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
4162         (sse2_cvtpd2pi): Ditto.
4163         (sse2_cvttpd2pi): Ditto.
4164         (*vec_concatv2sf_sse4_1): Ditto.
4165         (*vec_concatv2sf_sse): Ditto.
4166         (*vec_concatv2si_sse4_1): Ditto.
4167         (*vec_concatv2si): Ditto.
4168         (*vec_concatv4si_0): Ditto.
4169         (*vec_concatv2di_0): Ditto.
4171 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4173         PR target/89021
4174         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
4176 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4178         PR target/89021
4179         * config/i386/sse.md (ssse3_palignrdi): Changed to
4180         define_insn_and_split to support SSE emulation.
4182 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4184         PR target/89021
4185         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
4187 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4189         PR target/89021
4190         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
4191         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
4192         SSE emulation.
4194 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4196         PR target/89021
4197         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
4198         or TARGET_MMX_WITH_SSE.
4199         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
4201 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4203         PR target/89021
4204         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
4206 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4208         PR target/89021
4209         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
4210         Changed to define_insn_and_split to support SSE emulation.
4212 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4214         PR target/89021
4215         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
4216         Changed to define_insn_and_split to support SSE emulation.
4218 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4220         PR target/89021
4221         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
4222         (*mmx_<emms>): This.
4223         (mmx_<emms>): New expander.
4225 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4227         PR target/89021
4228         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
4229         support.
4230         (*sse2_umulv1siv1di3): Add SSE2 emulation.
4232 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4234         PR target/89021
4235         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
4237 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4239         PR target/89021
4240         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
4242 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4244         PR target/89021
4245         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
4246         TARGET_MMX_WITH_SSE.
4247         (*mmx_uavgv4hi3): Add SSE emulation.
4249 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4251         PR target/89021
4252         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
4253         and TARGET_MMX_WITH_SSE.
4254         (*mmx_uavgv8qi3): Add SSE emulation.
4256 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4258         PR target/89021
4259         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
4260         maskmovdqu for __MMX_WITH_SSE__.
4262 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4264         PR target/89021
4265         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
4266         TARGET_MMX and TARGET_MMX_WITH_SSE.
4267         (*mmx_umulv4hi3_highpart): Add SSE emulation.
4269 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4271         PR target/89021
4272         * config/i386/mmx.md (mmx_pmovmskb): Changed to
4273         define_insn_and_split to support SSE emulation.
4275 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4277         PR target/89021
4278         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
4279         and TARGET_MMX_WITH_SSE.
4280         (mmx_<code>v8qi3): Likewise.
4281         (smaxmin:<code>v4hi3): New.
4282         (umaxmin:<code>v8qi3): Likewise.
4283         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
4284         (umaxmin:*mmx_<code>v8qi3): Likewise.
4286 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4288         PR target/89021
4289         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
4290         TARGET_MMX_WITH_SSE.
4291         (*mmx_pinsrw): Add SSE emulation.
4293 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4295         PR target/89021
4296         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
4298 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4300         PR target/89021
4301         * config/i386/sse.md (sse_cvtpi2ps): Changed to
4302         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
4303         SSE emulation.
4305 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4307         PR target/89021
4308         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
4309         (sse_cvttps2pi): Likewise.
4311 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4313         PR target/89021
4314         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
4315         TARGET_MMX_WITH_SSE.
4316         (mmx_pshufw_1): Add SSE emulation.
4317         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
4318         TARGET_MMX_WITH_SSE to support SSE emulation.
4320 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4322         PR target/89021
4323         * config/i386/constraints.md (Yw): New constraint.
4324         * config/i386/mmx.md (*vec_dupv2si): Changed to
4325         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
4326         support SSE emulation.
4328 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4330         PR target/89021
4331         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
4332         TARGET_MMX_WITH_SSE.
4333         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
4334         support.
4335         (mmx_gt<mode>3): Likewise.
4337 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4339         PR target/89021
4340         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
4341         TARGET_MMX_WITH_SSE.  Add SSE support.
4343 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4345         PR target/89021
4346         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
4347         TARGET_MMX_WITH_SSE.
4348         (any_logic:<code><mode>3): New.
4349         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
4350         Add SSE support.
4352 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4354         PR target/89021
4355         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
4356         TARGET_MMX_WITH_SSE.  Add SSE emulation.
4357         (mmx_<shift_insn><mode>3): Likewise.
4358         (ashr<mode>3): New.
4359         (<shift_insn><mode>3): Likewise.
4361 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4363         PR target/89021
4364         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
4365         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
4367 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4369         PR target/89021
4370         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
4371         TARGET_MMX_WITH_SSE.
4372         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
4373         SSE support.
4375 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4377         PR target/89021
4378         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
4379         TARGET_MMX_WITH_SSE.
4380         (mulv4hi3): New.
4381         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
4382         support.
4384 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4386         PR target/89021
4387         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
4388         (plusminus:mmx_<plusminus_insn><mode>3): Check
4389         TARGET_MMX_WITH_SSE.
4390         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
4391         (<plusminus_insn><mode>3): New.
4392         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
4393         (*mmx_<plusminus_insn><mode>3): Likewise.
4395 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4397         PR target/89021
4398         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
4399         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
4400         prototype.
4401         * config/i386/mmx.m (mmx_punpckhbw): Changed to
4402         define_insn_and_split to support SSE emulation.
4403         (mmx_punpcklbw): Likewise.
4404         (mmx_punpckhwd): Likewise.
4405         (mmx_punpcklwd): Likewise.
4406         (mmx_punpckhdq): Likewise.
4407         (mmx_punpckldq): Likewise.
4409 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4410             Uros Bizjak  <ubizjak@gmail.com>
4412         PR target/89021
4413         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
4414         New function.
4415         (ix86_split_mmx_pack): Likewise.
4416         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
4417         New prototype.
4418         (ix86_split_mmx_pack): Likewise.
4419         * config/i386/i386.md (mmx_isa): New.
4420         (enabled): Also check mmx_isa.
4421         * config/i386/mmx.md (any_s_truncate): New code iterator.
4422         (s_trunsuffix): New code attr.
4423         (mmx_packsswb): Removed.
4424         (mmx_packssdw): Likewise.
4425         (mmx_packuswb): Likewise.
4426         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
4427         MMX packsswb/packuswb with SSE2.
4428         (mmx_packssdw): Likewise.
4429         * config/i386/predicates.md (register_mmxmem_operand): New.
4431 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4433         PR target/89021
4434         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4435         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
4436         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
4437         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
4438         (ix86_vector_mode_supported_p): Likewise.
4439         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
4441 2019-05-15  Martin Liska  <mliska@suse.cz>
4443         PR middle-end/90478
4444         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
4445         Check for overflow.
4447 2019-05-15  Richard Biener  <rguenther@suse.de>
4449         * tree-into-ssa.c (pass_build_ssa::execute): Run
4450         update_address_taken before going into SSA.
4452 2019-05-15  Richard Biener  <rguenther@suse.de>
4454         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
4455         as __BIT_FIELD_REF with type with -gimple.
4457 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
4459         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
4460         semantically equivalent branches (left over after prior refactorings).
4462 2019-05-15  Richard Biener  <rguenther@suse.de>
4464         PR tree-optimization/88828
4465         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
4466         bogus check.
4468 2019-05-14  Richard Biener  <rguenther@suse.de>
4470         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
4471         as __VIEW_CONVERT with -gimple.
4473 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
4475         PR target/82920
4476         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
4477         Darwin.
4479 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
4481         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
4482         define_split to become a define_insn_and_split.
4484 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
4486         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
4487         arguments.
4488         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
4489         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
4490         (sibcall_epilogue): Adjust.
4491         (epilogue): Adjust.
4493 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4495         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
4496         to unsupported ones.
4497         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
4498         * config.host: Likewise.
4499         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
4500         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
4501         __svr4__]: Remove "brand" fallback.
4502         [!KSTAT_DATA_STRING]: Remove.
4503         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
4504         to *-*-solaris2*.
4505         (comdat_group): Likewise.
4506         (set_have_as_tls): Likewise.
4507         (gcc_cv_target_dl_iterate_phdr): Likewise.
4508         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
4509         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
4510         * configure: Regenerate.
4511         * doc/install.texi: Simplify Solaris target triplets.
4512         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
4513         (Specific, *-*-solaris2*): Document Solaris 10 removal.
4514         Remove Solaris 10 references.
4515         Remove obsolete Solaris bug reference.
4516         (Specific, sparc-sun-solaris2.10): Remove.
4518 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
4520         * config/i386/i386.md (any_div): New code iterator.
4521         (paired_mod): New code attribute.
4522         (sgnprefix): Handle DIV and UDIV RTXes.
4523         (u): Ditto.
4524         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
4525         and udivmod<mode>4 patterns using any_div code iterator.
4526         (divmod splitters): Macroize splitters using any_div code iterator.
4527         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
4528         (*udivmodsi4_pow2_zext_2): Ditto.
4529         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
4530         and *udivmod<mode>4_noext patterns using any_div code iterator.
4531         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
4532         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
4533         patterns using any_div code iterator.
4534         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
4535         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
4536         patterns using any_div code iterator.
4537         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
4538         udivmodhiqi3 patterns using any_extend code iterator.
4540 2019-05-14  Richard Biener  <rguenther@suse.de>
4541             H.J. Lu  <hongjiu.lu@intel.com>
4543         PR tree-optimization/88828
4544         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4545         permuting in a single non-constant element not extracted
4546         from a vector.
4548 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
4550         * internal-fn.def (SIGNBIT): New.
4551         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
4552         defined.
4553         (signbitv4sf2): Likewise.
4555 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
4557         PR target/90357
4558         * config/mips/mips.c (mips_split_move): Skip forward SRC into
4559         next insn when the SRC reg is dead.
4561 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
4563         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
4564         (alloc_cand_and_find_basis): Ditto.
4565         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
4566         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
4567         (create_add_imm_cand, slsr_process_cast): Ditto.
4568         (slsr_process_copy, replace_mult_candidate): Ditto.
4569         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
4570         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
4571         (pass_strength_reduction::execute): Init the first NULL element.
4573 2019-05-13  Nathan Sidwell  <nathan@acm.org>
4575         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
4576         (run_attempt): Reformat line break.
4578 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
4580         PR target/90418
4581         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
4582         data registers in sibcall epilogues.
4583         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
4585 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
4587         PR target/89221
4588         * configure.ac (--enable-frame-pointer):
4589         Disable by default for cygwin and mingw.
4590         * configure: Regenerate.
4592 2019-05-13  Nathan Sidwell  <nathan@acm.org>
4594         * dwarf2out.c (breakout_comdat_types): Move comment to correct
4595         piece of code.
4596         (const_ok_for_output_1): Balance parens around #if/#else/#endif
4597         (gen_member_die): Move abstract origin check earlier.  Only VARs
4598         can be static_inline_p.  Simplify splicing control flow.
4600 2019-05-13  Richard Biener  <rguenther@suse.de>
4602         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
4603         VIEW_CONVERT_EXPR.
4604         (vect_build_slp_tree_1): Likewise.
4606 2019-05-13  Richard Biener  <rguenther@suse.de>
4608         PR tree-optimization/90402
4609         * tree-if-conv.c (tree_if_conversion): Value number only
4610         the loop body by making the latch an exit of the region
4611         as well.
4612         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
4613         processing PHIs.
4614         (do_rpo_vn): Deal with multiple edges into the entry block
4615         that are not backedges inside the region by skipping PHIs
4616         of the entry block.
4618 2019-05-13  Richard Biener  <rguenther@suse.de>
4620         PR tree-optimization/90316
4621         * tree-ssa-pre.c (insert_aux): Fold into ...
4622         (insert): ... this function.  Use a RPO walk to reduce the
4623         number of required iterations.
4625 2019-05-13  Martin Liska  <mliska@suse.cz>
4627         PR tree-optimization/90416
4628         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
4629         string instead of passing the second part as va_arg argument.
4631 2019-05-13  Martin Liska  <mliska@suse.cz>
4633         PR gcov-profile/90380
4634         * gcov.c (handle_cycle): Do not support zero cycle count,
4635         it should not be possible.
4636         (path_contains_zero_cycle_arc): New function.
4637         (circuit): Ignore zero cycle arc counts.
4639 2019-05-13  Martin Liska  <mliska@suse.cz>
4641         PR gcov-profile/90380
4642         * gcov.c (enum loop_type): Remove the enum and
4643         the operator.
4644         (handle_cycle): Assert that we should not reach
4645         a negative count.
4646         (circuit): Use loop_found instead of a tri-state loop_type.
4647         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
4648         happen.
4650 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
4652         PR target/82920
4653         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
4654         (ix86_output_indirect_branch_via_reg): Use output mechanism
4655         accounting for __USER_LABEL_PREFIX__.
4656         (ix86_output_indirect_branch_via_push): Likewise.
4657         (ix86_output_function_return): Likewise.
4658         (ix86_output_indirect_function_return): Likewise.
4660 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
4662         * doc/md.texi: Document use of code attributes in rtx patterns.
4663         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
4664         * read-rtl.c (find_code): Split out search loops into...
4665         (maybe_find_code): ...this new function.
4666         (check_code_iterator): Make the error message more informative.
4667         (check_code_attribute): New function.
4668         (rtx_reader::rtx_alloc_for_name): Likewise.
4669         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
4670         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
4671         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
4672         <max_opp> directly as an rtx code instead of via a match_operator.
4673         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
4674         (<su>abd<mode>_3): Update accordingly.
4676 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
4678         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
4679         is given, print the state of the EH "save world" computation for
4680         Darwin.
4682 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
4684         PR c++/59813
4685         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
4686         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
4688 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
4690         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
4691         Use pinsrd for TARGET_SSE4_1.
4692         * config/i386/sse.md (movdi_to_sse): Ditto.
4694 2019-05-10  Richard Biener  <rguenther@suse.de>
4696         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
4697         (do_rpo_vn): Initialize next_value_id.
4699 2019-05-10  Martin Liska  <mliska@suse.cz>
4701         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
4702         Fix plural form.
4704 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
4706         PR tree-optimization/90385
4707         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
4708         arguments of the exit phis.
4710         PR c++/90383
4711         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
4712         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
4713         id->do_not_fold.
4714         (copy_tree_body_r): Likewise.
4715         (copy_fn): Set id.do_not_fold to true.
4717 2019-05-10  Martin Liska  <mliska@suse.cz>
4719         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
4720         Reapply changes from r269790.
4722 2019-05-10  Martin Liska  <mliska@suse.cz>
4724         PR middle-end/90340
4725         * doc/invoke.texi: New params.
4726         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
4727         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
4728         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
4729         Use it.
4730         * tree-switch-conversion.h (struct jump_table_cluster):
4731         Likewise.
4733 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
4735         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
4737 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
4739         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
4741 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
4743         PR rtl-optimization/88879
4744         * sel-sched.c (sel_target_adjust_priority): Remove assert.
4746 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
4748         PR target/90405
4749         * config/arm/arm.c (callee_saved_reg_p): Move before
4750         thumb_find_work_register.
4751         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
4752         thumb_find_work_register.  Only call df_get_live_out once.
4753         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
4754         (thumb_find_work_register): Use
4755         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
4756         algorithms to locate a spare call clobbered reg.
4758 2019-05-09  Martin Liska  <mliska@suse.cz>
4760         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
4761         and MAX_EXPR in GIMPLE FE format.
4763 2019-05-09  Martin Liska  <mliska@suse.cz>
4765         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
4766         * gimple-pretty-print.c (dump_gimple_bb_header):
4767         Dump BB count.
4768         (pp_cfg_jump): Dump edge probability.
4769         * profile-count.c (profile_quality_as_string): Simplify
4770         with a static array.
4771         (parse_profile_quality): New function.
4772         (profile_count::dump): Simplify with a static array.
4773         (profile_count::from_gcov_type): Add new argument.
4774         * profile-count.h (parse_profile_quality): Likewise.
4775         * predict.h (set_hot_bb_threshold): New.
4776         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
4777         New param.
4778         * predict.c (get_hot_bb_threshold): Set from the new param.
4779         (set_hot_bb_threshold): New.
4781 2019-05-09  Richard Biener  <rguenther@suse.de>
4783         PR tree-optimization/90395
4784         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
4785         rewrite vector stores that throw internally.
4787 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
4789         * cif-code.def (CHKP): Remove.
4791         PR target/89221
4792         * configure.ac (--enable-frame-pointer): Disable by default for
4793         GNU systems.
4794         * configure: Regenerate.
4796 2019-05-09  Alan Modra  <amodra@gmail.com>
4798         PR target/89271
4799         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
4800         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
4801         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
4802         cost for general <-> vsx when direct moves are available.
4803         Cost union classes at minimal cost for any reg in the class.
4804         Correct calculation for moves between vsx, float, and altivec.
4805         Don't return a low cost for moves between special regs.  Don't
4806         use hard coded register numbers.
4807         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
4808         (rs6000_ira_change_pseudo_allocno_class): New function.
4809         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
4810         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
4811         alternatives.
4812         (movsi_internal1): Don't disparage vector alternatives.
4813         (mov<mode>_internal): Likewise, excepting alternative that
4814         will be split.
4815         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
4816         we <- b alternative.
4818 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
4820         PR c++/59813
4821         PR tree-optimization/89060
4822         * tree-ssa-live.h (live_vars_map): New typedef.
4823         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
4824         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
4825         (struct compute_live_vars_data): New type.
4826         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
4827         live_vars_at_stmt, destroy_live_vars): New functions.
4828         * tree-tailcall.c: Include tree-ssa-live.h.
4829         (live_vars, live_vars_vec): New global variables.
4830         (find_tail_calls): Perform variable life analysis before punting.
4831         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
4832         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
4833         member.
4834         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
4835         Perform variable life analysis to select variables that really need
4836         clobbers added.
4837         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
4838         instead set id->eh_landing_pad_dest and assert it is the same.
4839         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
4841 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
4842             Richard Earnshaw  <rearnsha@arm.com>
4844         PR target/88167
4845         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
4846         function.
4847         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
4848         (thumb1_compute_save_core_reg_mask): Don't force a spare work
4849         register if both the epilogue and prologue can use call-clobbered
4850         regs.
4851         (thumb1_unexpanded_epilogue): Use
4852         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
4853         picking temporaries for restoring high regs to match that of the
4854         prologue where possible.
4855         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
4856         the list of work registers.  Detect if the return address is still live
4857         at the end of the prologue and avoid using it for a work register if so.
4858         If the return address is not live, add LR to the list of pushable regs
4859         after the first pass.
4861 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
4863         PR tree-optimization/90078
4864         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
4865         (INFTY): Increase the value for infinite cost.
4866         (struct comp_cost): Promote type of members to int64_t.
4867         (infinite_cost): Don't set complexity in initialization.
4868         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
4869         overflows to infinite_cost.
4870         (adjust_setup_cost): Promote type of parameter and cost computation
4871         to int64_t.
4872         (struct ainc_cost_data, struct iv_ca): Promote type of member to
4873         int64_t.
4874         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
4875         cost computation to int64_t.
4876         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
4877         int64_t's format specifier in dump.
4879 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
4881         PR tree-optimization/90240
4882         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
4883         with respect to scaling factor pre-computed for each basic block.
4884         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
4885         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
4886         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
4887         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
4888         live range for array of loop's basic blocks.  Cleanup aux field of
4889         loop's basic blocks.
4891 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
4893         PR tree-optimization/90356
4894         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
4896 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
4898         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
4899         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
4900         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
4901         (ix86_handle_option): Handle -mavx512bf16.
4902         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
4903         to extra_headers.
4904         * config/i386/avx512bf16vlintrin.h: New.
4905         * config/i386/avx512bf16intrin.h: New.
4906         * config/i386/cpuid.h (bit_AVX512BF16): New.
4907         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
4908         * config/i386/i386-builtin-types.def: Add new types.
4909         * config/i386/i386-builtin.def: Add new builtins.
4910         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4911         __AVX512BF16__.
4912         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
4913         (ix86_option_override_internal): Handle BF16.
4914         (ix86_valid_target_attribute_inner_p): Ditto.
4915         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
4916         * config/i386/i386-builtin.c (enum processor_features): Add
4917         F_AVX512BF16.
4918         (static const _isa_names_table isa_names_table): Ditto.
4919         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
4920         (PTA_AVX512BF16): Ditto.
4921         * config/i386/i386.opt: Add -mavx512bf16.
4922         * config/i386/immintrin.h: Include avx512bf16intrin.h
4923         and avx512bf16vlintrin.h.
4924         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
4925         avx512f_cvtneps2bf16_<mode><mask_name>,
4926         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
4927         * config/i386/subst.md (mask_half): Add new subst.
4928         * doc/invoke.texi: Document -mavx512bf16.
4930 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
4932         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
4933         Delete declaration.
4934         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
4935         (rs6000_debug_legitimize_reload_address): Delete.
4936         (rs6000_legitimize_reload_address_ptr): Delete.
4937         (rs6000_option_override_internal): Adjust.
4938         (mem_operand_gpr): Adjust comment.
4939         (legitimate_lo_sum_address_p): Ditto.
4940         (rs6000_legitimize_reload_address): Delete.
4941         (rs6000_debug_legitimize_reload_address): Delete.
4942         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
4944 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4946         PR target/89765
4947         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4948         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
4949         to compute vector element selector for both constant and variable
4950         operands.
4952 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
4954         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
4955         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
4956         ashrdi3_cvt using SWI48 mode iterator.
4958 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
4960         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
4961         (aarch64_<su>abd<mode>_3): Likewise.
4962         (*aarch64_<su>abd<mode>_3): New define_insn.
4963         (<sur>sad<vsi2qi>): New define_expand.
4964         * config/aarch64/iterators.md: Added MAX_OPP attribute.
4965         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
4966         (build_vect_cond_expr): Likewise.
4968 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
4970         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
4971         clobbers outside of accessible_reg_set.
4972         * config/i386/i386.c (ix86_conditional_register_usage):
4973         Disable register sets by clearing corresponding bits in
4974         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
4975         call_used_regs and don't clear corresponding reg_names array members.
4977 2019-05-07  Richard Biener  <rguenther@suse.de>
4979         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
4980         not specified still compute a comp_vectype for invariant
4981         compares.
4983 2019-05-07  Richard Biener  <rguenther@suse.de>
4985         PR tree-optimization/90316
4986         * tree-ssa-pre.c (translate_vuse_through_block): When
4987         same_valid is NULL do not bother to search for a virtual
4988         PHI continuation.
4989         (phi_translate_1): When operands changed we cannot keep
4990         the same value-number so do not bother to ask whether
4991         that's possible from translate_vuse_through_block.
4993 2019-05-07  Martin Liska  <mliska@suse.cz>
4995         * bitmap.c (bitmap_register): Come up with
4996         alloc_descriptor_max_uid and assign it for
4997         a new bitmap.
4998         (register_overhead): Use get_descriptor as
4999         a descriptor.
5000         (release_overhead): New.
5001         (bitmap_elem_to_freelist): Call it.
5002         (bitmap_elt_clear_from): Likewise.
5003         (bitmap_obstack_free): Likewise.
5004         (bitmap_move): Sensitively release memory.
5005         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
5006         (bitmap_initialize): Initialize alloc_descriptor to zero.
5007         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
5009 2019-05-07  Richard Biener  <rguenther@suse.de>
5011         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
5012         we build a SLP node.  Remove max_size and limiting.
5013         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
5015 2019-05-07  Richard Biener  <rguenther@suse.de>
5017         PR tree-optimization/90316
5018         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
5019         limit by reference.
5020         (walk_non_aliased_vuses): Take walking limit argument.
5021         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
5022         walking if it is reached instead of just counting.
5023         (get_continuation_for_phi): Likewise.
5024         (walk_non_aliased_vuses): Likewise, instead of leaving counter
5025         limiting to the callback.
5026         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
5027         (vn_reference_lookup_3): Likewise.
5028         (vn_reference_lookup_pieces): Likewise.
5029         (vn_reference_lookup): Likewise.
5030         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
5031         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
5032         (avail_exprs_stack::lookup_avail_expr): Likewise.
5034 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
5036         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
5037         for comparaible types in the second direction even if first one
5038         hits incomparable type.
5040 2019-05-07  Richard Biener  <rguenther@suse.de>
5042         PR lto/90369
5043         * lto-wrapper.c (debug_objcopy): Use the original filename
5044         including archive offset for the filename used for -save-temps.
5046 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
5048         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
5049         detection.
5051 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5052             Hongtao Liu  <hongtao.liu@intel.com>
5054         PR target/89750
5055         PR target/86444
5056         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
5057         Modified, original implementation isn't correct.
5059 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
5061         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
5062         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
5063         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
5064         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
5065         (FRAME_POINTER_REGNUM): Change numbering.
5066         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
5067         (alt_reg_names): Adjust.
5068         (rs6000_conditional_register_usage): Don't mark hard register 64 as
5069         fixed.
5070         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5071         (DWARF_FRAME_REGISTERS): Delete.
5072         (DWARF2_FRAME_REG_OUT): Fix whitespace.
5073         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5074         Adjust.
5075         (REG_ALLOC_ORDER): Adjust.
5076         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
5077         (REG_CLASS_CONTENTS): Adjust.
5078         (RETURN_ADDR_RTX): Change comment.
5079         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
5080         instead of 67.
5081         (REGISTER_NAMES): Adjust.
5082         (ADDITIONAL_REGISTER_NAMES): Adjust.
5083         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5085 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
5087         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
5088         Delete.
5089         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5090         (DWARF_FRAME_REGISTERS): Adjust.
5091         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5092         Adjust.
5093         (REG_ALLOC_ORDER): Adjust.
5094         (enum reg_class): Delete SPR_REGS.
5095         (REG_CLASS_NAMES): Delete SPR_REGS.
5096         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
5097         (REGISTER_NAMES): Adjust.
5098         (ADDITIONAL_REGISTER_NAMES): Adjust.
5099         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5100         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
5101         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
5102         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
5103         (htm_spr_regno): Delete.
5104         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
5105         argument.
5106         (rs6000_dbx_register_number): Adjust.
5108 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
5110         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
5112 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
5114         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
5115         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
5117 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
5119         PR tree-optimization/88709
5120         PR tree-optimization/90271
5121         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
5122         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
5123         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
5124         variable.
5125         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
5126         of the store merging group is larger than
5127         PARAM_STORE_MERGING_MAX_SIZE parameter.
5128         (split_group): Add bzero_first argument.  If set, always emit first
5129         the first store which must be = {} of the whole area and then for the
5130         rest of the stores consider all zero bytes as paddings.
5131         (imm_store_chain_info::output_merged_store): Check if first store
5132         is = {} of the whole area and if yes, determine which setting of
5133         bzero_first for split_group gives smaller number of stores.  Adjust
5134         split_group callers.
5135         (lhs_valid_for_store_merging_p): Allow decls.
5136         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
5137         no elts.
5138         (pass_store_merging::process_store): Likewise.
5140 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5142         PR target/89424
5143         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5144         handling of V1TImode.
5146 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
5148         PR target/89221
5149         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
5150         and enable_frame_pointer ...
5151         * configure.ac: ... here.  Update help strings for
5152         --enable-frame-pointer.
5153         * configure: Regenerate.
5154         * config/i386/i386-options.c (ix86_option_override_internal): Remove
5155         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
5156         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
5157         (USE_X86_64_FRAME_POINTER): Ditto.
5159 2019-05-06  Martin Liska  <mliska@suse.cz>
5161         * config.gcc: Append to target_gtfiles and fix indentation.
5163 2019-05-06  Richard Biener  <rguenther@suse.de>
5165         PR tree-optimization/90358
5166         * tree-vect-stmts.c (get_group_load_store_type): Properly
5167         detect unused upper half of load.
5168         (vectorizable_load): Likewise.
5170 2019-05-06  Richard Biener  <rguenther@suse.de>
5172         PR tree-optimization/88828
5173         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
5174         (simplify_vector_constructor): ...here.  Handle constants in
5175         the constructor.
5177 2019-05-06  Richard Biener  <rguenther@suse.de>
5179         PR tree-optimization/90328
5180         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
5181         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
5182         is valid in the loop nest before using it.
5183         (initialize_data_dependence_relation): Adjust.
5184         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
5185         loop as loop-nest to dr_may_alias_p.
5187 2019-05-06  Richard Biener  <rguenther@suse.de>
5189         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
5191 2019-05-06  Richard Biener  <rguenther@suse.de>
5193         PR tree-optimization/90316
5194         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
5195         compute target on demand.
5196         (get_continuation_for_phi): Remove code walking stmts to
5197         get to a target virtual operand which could end up being
5198         quadratic.
5200 2019-05-06  Martin Liska  <mliska@suse.cz>
5202         PR sanitizer/90312
5203         * config/i386/i386-options.c (ix86_option_override_internal): Error only
5204         when -mabi is selected to a non-default version.
5206 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
5207             Martin Liska  <mliska@suse.cz>
5209         * Makefile.in: Add lto-dump.texi.
5210         * cgraph.h: Add new functions get_visibility_string and
5211         get_symtab_type_string.
5212         * doc/gcc.texi: Include lto-dump section.
5213         * doc/lto-dump.texi: New file.
5214         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
5215         (parse_dump_option): Factor out this function.
5216         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
5217         (parse_dump_option): Export the function.
5218         * symtab.c (symtab_node::get_visibility_string): New function.
5219         (symtab_node::get_symtab_type_string): Likewise.
5221 2019-05-06  Martin Liska  <mliska@suse.cz>
5223         * config/i386/i386-builtins.c: New file.
5224         * config/i386/i386-builtins.h: New file.
5225         * config/i386/i386-expand.c: New file.
5226         * config/i386/i386-expand.h: New file.
5227         * config/i386/i386-features.c: New file.
5228         * config/i386/i386-features.h: New file.
5229         * config/i386/i386-options.c: New file.
5230         * config/i386/i386-options.h: New file.
5231         * config.gcc: Add new files into extra_objs and
5232         target_gtfiles.
5233         * config/i386/i386.c: Split content of the file
5234         into newly introduced files.
5235         * config/i386/i386.h: Declare common variables
5236         and macros.
5237         * config/i386/t-i386: Define dependencies for new files.
5239 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
5241         PR target/89400
5242         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
5243         Restrict 'all' variant to 32-bit configurations.
5244         (unaligned_loadhiu): Likewise.
5245         (unaligned_storehi): Likewise.
5246         (unaligned_storesi): Likewise.
5247         (unaligned_loadhis): Disable when compiling for thumb1.
5249 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
5251         PR tree-optimization/90269
5252         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
5253         Ignore clobbers.
5255 2019-05-03  Martin Liska  <mliska@suse.cz>
5257         * hash-map.h: Add is_empty function.
5258         * hash-set.h: Likewise.
5259         * hash-table.h: Likewise.
5260         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
5261         elements () == 0 (and similar usages).
5262         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
5263         * gimplify.c (gimplify_bind_expr): Likewise.
5264         (gimplify_switch_expr): Likewise.
5265         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
5266         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
5267         * postreload-gcse.c (dump_hash_table): Likewise.
5268         (gcse_after_reload_main): Likewise.
5269         * predict.c (combine_predictions_for_bb): Likewise.
5270         * tree-parloops.c (reduction_phi): Likewise.
5271         (separate_decls_in_region): Likewise.
5272         (transform_to_exit_first_loop): Likewise.
5273         (gen_parallel_loop): Likewise.
5274         (gather_scalar_reductions): Likewise.
5275         (try_create_reduction_list): Likewise.
5276         * var-tracking.c (dump_vars): Likewise.
5277         (emit_notes_for_changes): Likewise.
5278         (vt_emit_notes): Likewise.
5280 2019-05-03  Richard Biener  <rguenther@suse.de>
5282         PR tree-optimization/90316
5283         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
5284         before running VN.
5286 2019-05-03  Richard Biener  <rguenther@suse.de>
5288         * tree-vect-stmts.c (get_group_load_store_type): Avoid
5289         peeling for gaps by loading only lower halves of vectors
5290         if possible.
5291         (vectorizable_load): Likewise.
5293 2019-05-03  Richard Biener  <rguenther@suse.de>
5295         PR middle-end/89518
5296         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
5298 2019-05-03  Richard Biener  <rguenther@suse.de>
5300         PR middle-end/87314
5301         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
5302         Handle STRING_CST vs DECL or STRING_CST.
5304 2019-05-03  Richard Biener  <rguenther@suse.de>
5306         PR tree-optimization/88963
5307         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
5308         vector loads feeding only BIT_FIELD_REFs to component
5309         loads.  Rewrite stores fed by CONSTRUCTORs to component
5310         stores.
5312 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
5314         * opts.h (finish_options): Remove lang_mask argument.
5315         (print_help, help_option_argument): Declare.
5316         * opts.c (print_help): Remove forward declaration, no longer static.
5317         (finish_options): Remove lang_mask argument, don't call print_help
5318         here.
5319         * opts-global.c (decode_options): Adjust finish_option caller, call
5320         print_help here.
5322         PR tree-optimization/90303
5323         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
5324         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
5326 2019-05-03  Richard Biener  <rguenther@suse.de>
5328         PR tree-optimization/89698
5329         * gimple-fold.c (canonicalize_constructor_val): Early out
5330         for constants, handle unfolded INTEGER_CSTs as they appear in
5331         C++ virtual table ctors.
5333 2019-05-03  Richard Biener  <rguenther@suse.de>
5335         * passes.c (execute_function_todo): Remove dead code.
5337 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
5339         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
5340         the internal register number, for any "real" register.
5342 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
5344         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
5345         correct numbers for TFHAR, TFIAR, TEXASR.
5347 2019-05-02  Richard Biener  <rguenther@suse.de>
5349         PR tree-optimization/89653
5350         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
5351         update-address-taken before the pass.
5352         * passes.def (pass_tree_loop_init): Put comment before it.
5354 2019-05-02  Richard Biener  <rguenther@suse.de>
5356         PR tree-optimization/89509
5357         * tree-ssa-structalias.c (compute_dependence_clique): Look
5358         at the first subvar when determining whether it is restrict.
5360 2019-05-02  Richard Biener  <rguenther@suse.de>
5362         PR tree-optimization/90273
5363         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
5364         useless debug stmts.
5366 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5368         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
5369         ACLE branch.
5370         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
5371         SVE ACLE branch.
5372         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
5373         VEC_COND_EXPR be inserted to emulate a conditional internal function.
5374         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
5375         (vectorizable_reduction): Use the functions above to vectorize in a
5376         fully masked loop codes that don't have a conditional internal
5377         function.
5379 2019-05-02  Martin Liska  <mliska@suse.cz>
5381         * cgraphclones.c: Call valid_attribute_p with 1 for
5382         target_clone.
5383         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
5384         it's for target attribute.
5385         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
5386         Add new boolean argument.
5387         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5388         Likewise.
5389         (ix86_valid_target_attribute_tree): Pass target_clone_attr
5390         to ix86_valid_target_attribute_inner_p.
5391         (ix86_valid_target_attribute_p): Pass flags argument to
5392         ix86_valid_target_attribute_inner_p.
5393         (get_builtin_code_for_version): Use 0 as it's target attribute.
5395 2019-05-02  Martin Liska  <mliska@suse.cz>
5397         * gcc.c (process_command): Add dummy file only
5398         if n_infiles == 0.
5399         * opts-global.c (decode_options): Pass lang_mask.
5400         * opts.c (print_help): New function.
5401         (finish_options): Print --help if help_option_argument
5402         is set.
5403         (common_handle_option): Factor out content of OPT__help_
5404         into print_help.
5405         * opts.h (finish_options): Add new argument.
5407 2019-05-02  Martin Liska  <mliska@suse.cz>
5409         PR target/88809
5410         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
5411         With -minline-all-stringops use inline expansion using 4B loop.
5412         * doc/invoke.texi: Document the change of
5413         -minline-all-stringops.
5415 2019-05-01  Jeff Law  <law@redhat.com>
5417         PR tree-optimization/88797
5418         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
5419         PHI feeds a conditional on the RHS of an assignment.
5421 2019-04-30  Andrew Waterman  <andrew@sifive.com>
5422             Jim Wilson  <jimw@sifive.com>
5424         * config/riscv/constraints.md (L): New.
5425         * config/riscv/predicates.md (lui_operand): New.
5426         (sfb_alu_operand): New.
5427         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
5428         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
5429         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
5430         * config/riscv/risc.md (type): Add sfb_alu.
5431         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
5432         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
5433         (branch_zero<mode>): Delete.
5434         (mov<mode>cc): New.
5435         (mov<GPR:mode><X:mode>cc): Likewise.
5436         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
5438 2019-04-30  Nathan Sidwell  <nathan@acm.org>
5440         * tree.h (MARK_TS_EXP): New.
5442 2019-04-30  Martin Liska  <mliska@suse.cz>
5444         * opts.c (enable_warning_as_error): Provide hints
5445         for unknown options.
5447 2019-04-30  Martin Liska  <mliska@suse.cz>
5449         PR debug/90288
5450         * doc/invoke.texi: Add missing dash for gas-locview-support
5451         and gno-as-locview-support.
5453 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
5455         PR target/89093
5456         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
5457         whitespace at the start of target attribute string.
5459 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5461         PR target/86538
5462         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5463         Define __ARM_FEATURE_ATOMICS.
5465 2019-04-30  Martin Liska  <mliska@suse.cz>
5467         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
5468         into built_in_function enum. Remove code for endp == 2 and
5469         use BUILT_IN_* constants.
5470         (gimple_fold_builtin): Call the function with fcode.
5472 2019-04-30  Martin Liska  <mliska@suse.cz>
5474         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
5475         DECL_FUNCTION_CODE into ix86_builtins enum before
5476         the switch statement.
5478 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
5480         PR tree-optimization/89475
5481         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
5482         calls.
5484 2019-04-30  Martin Liska  <mliska@suse.cz>
5486         PR translation/90274
5487         * opts.c (print_filtered_help): Wrap string in _(...).
5489 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
5491         PR tree-optimization/90240
5492         Revert:
5493         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
5495         PR tree-optimization/90078
5496         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
5497         checks for infinite_cost overflow.
5499 2019-04-29  Jeff Law  <law@redhat.com>
5501         * passes.def: Move -Wrestrict pass after copy propagation.
5503 2019-04-29  Maya Rashish  <coypu@sdf.org>
5505         * config.gcc (default_gnu_indirect_function): Default to yes
5506         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
5507         sparc*-*-netbsd*, x86_64-*-netbsd*.
5509 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
5511         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
5512         where cond2 is NE_EXPR.
5513         (is_value_included_in): Update comment.
5515 2019-04-29  Richard Biener  <rguenther@suse.de>
5517         PR tree-optimization/90278
5518         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
5519         EH on comparison simplification.
5521 2019-04-29  Jason Merrill  <jason@redhat.com>
5523         PR c++/82081 - tail call optimization breaks noexcept
5524         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
5525         nothrow function to a might-throw function into a tail call.
5527 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
5529         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
5530         (DDR_INNER_LOOP): Likewise.
5531         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
5532         (initialize_data_dependence_relation): Likewise.
5533         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
5535 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
5537         PR rtl-optimization/90257
5538         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
5539         return value.
5541         Revert the revert:
5542         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
5544         PR target/90178
5545         Revert:
5546         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
5548         Revert the revert:
5549         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
5551         Revert:
5552         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
5554         * lra-spills.c (lra_final_code_change): Remove useless move insns.
5556 2019-04-29  Richard Biener  <rguenther@suse.de>
5558         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
5559         rhs issue a reset.
5561 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
5563         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
5564         varasm.h, and netbsd-protos.h.
5566 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
5568         PR target/89261
5569         * config/i386/i386-protos.h (ix86_data_alignment): Change
5570         the second argument type to unsigned int.
5571         * config/i386/i386.c (ix86_data_alignment): Change "align"
5572         argument type to unsigned int.
5574 2019-04-27  Martin Liska  <mliska@suse.cz>
5576         PR middle-end/90258
5577         * opt-suggestions.c (option_proposer::build_option_suggestions):
5578         When get_valid_option_values returns empty values, add the
5579         misspelling candidate.
5581 2019-04-26  Jim Wilson  <jimw@sifive.com>
5583         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
5584         parameter.
5585         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
5586         Pass orig_mode to riscv_build_integer.
5587         (riscv_split_integer): Pass mode to riscv_move_integer.
5588         (riscv_legitimize_const_move): Likewise.
5589         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
5590         promoted_mode.  Replace force_reg call with code to load constant into
5591         promoted reg and then subreg it for the store.
5592         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
5593         riscv_move_integer.
5595 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
5597         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
5598         corrupt codes.
5600 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
5602         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
5603         commentary about the encoding of precision.
5605 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
5607         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
5608         * config/i386/t-freebsd64: New file.
5609         * config.gcc: Add the t-freebsd64 for multilib support.
5611 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
5613         * doc/extend.texi (vector_size): Add missing comma after @xref.
5615 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
5617         * BASE-VER: Set to 10.0.0.
5619 2019-04-25  Richard Biener  <rguenther@suse.de>
5621         PR middle-end/89765
5622         * gimplify.c (gimplify_expr): Avoid turning a lvalue
5623         VIEW_CONVERT_EXPR into one operating on an rvalue.
5625 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
5627         PR target/89929
5628         * config/i386/i386.c (feature_priority): Moved to file scope.
5629         (processor_features): Likewise.
5630         (processor_model): Likewise.
5631         (_arch_names_table): Likewise.
5632         (arch_names_table): Likewise.
5633         (_feature_list): Removed.
5634         (feature_list): Likewise.
5635         (_isa_names_table): Moved to file scope.  Add priority.
5636         (isa_names_table): Likewise.
5637         (get_builtin_code_for_version): Replace feature_list with
5638         isa_names_table.  Update error message for P_ZERO priority.
5640 2019-04-25  Richard Biener  <rguenther@suse.de>
5642         * tree-pass.h (make_pass_phi_only_cprop): Remove.
5643         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
5645 2019-04-24  Jeff Law  <law@redhat.com>
5647         PR tree-optimization/90037
5648         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
5649         * passes.def: Replace all instance of phi-only cprop with the
5650         lattice propagator.  Move propagation pass from after erroneous
5651         path isolation to before erroneous path isolation.
5652         * tree-ssa-phionlycprop.c: Remove.
5654 2019-04-24  Richard Biener  <rguenther@suse.de>
5656         PR middle-end/90213
5657         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
5658         by size and BITS_PER_UNIT on poly-wide-ints.
5660 2019-04-25  Richard Biener  <rguenther@suse.de>
5662         PR middle-end/90194
5663         * match.pd: Add pattern to simplify view-conversion of an
5664         empty constructor.
5666 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
5668         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
5669         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
5670         for Go on 32 bit AIX.
5671         * config/rs6000/aix72.h: Likewise.
5673 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
5675         PR target/90193
5676         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
5677         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
5679 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
5681         PR target/89952
5682         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
5683         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
5684         for restored hard frame pointer.
5685         (s390_sched_dependencies_evaluation): Implement new target hook.
5686         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
5688 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
5690         * config/arc/arc-options.def: Fix typos and spelling mistakes.
5691         * config/arc/arc.c (arc_init): Cleanup warning message.
5692         (arc_override_options): Likewise.
5694 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
5696         PR target/90187
5697         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
5698         a register if both if_true and if_false are MEMs.
5700         PR tree-optimization/90208
5701         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
5702         after labels of new_bb, not before them.
5704         PR tree-optimization/90211
5705         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
5706         which are not SSA_NAMEs.
5708 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
5710         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
5711         AArch64.
5712         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
5714 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
5716         PR rtl-optimization/87979
5717         * modulo-sched.c (sms_schedule): Start ii value "mii" should
5718         not equal zero.
5720 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
5722         PR rtl-optimization/84032
5723         * modulo-sched.c (ps_insn_find_column): Change condition so that
5724         branch will always be the last insn in a row inside partial
5725         schedule.
5727 2019-04-23  Richard Biener  <rguenther@suse.de>
5729         PR debug/90131
5730         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
5731         dest_single_pred_p argument.
5732         (remove_forwarder_block): Adjust.
5733         (remove_forwarder_block_with_phi): Likewise.
5735 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5736             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5737             Jakub Jelinek  <jakub@redhat.com>
5739         PR target/89093
5740         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
5741         if used with general-regs-only.
5742         (arm_conditional_register_usage): Don't add non-general regs if
5743         general-regs-only.
5744         (arm_valid_target_attribute_rec): Handle general-regs-only.
5745         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
5746         general-regs-only.
5747         (TARGET_HARD_FLOAT_SUB): Define.
5748         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
5749         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
5750         (TARGET_REALLY_IWMMXT2): Likewise.
5751         * config/arm/arm.opt: Add -mgeneral-regs-only.
5752         * doc/extend.texi: Document ARM general-regs-only target.
5753         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
5755 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
5757         PR tree-optimization/90078
5758         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
5759         checks for infinite_cost overflow.
5761 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
5763         PR tree-optimization/90021
5764         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
5765         and check univariate against it.
5766         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
5767         * tree-data-ref.c (add_other_self_distances): Pass new argument.
5769 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
5771         PR target/90178
5772         Revert:
5773         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
5775         Revert the revert:
5776         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
5778         Revert:
5779         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
5781         * lra-spills.c (lra_final_code_change): Remove useless move insns.
5783 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
5785         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
5786         names using operand format, rather than hard-wired.
5787         (speculation_barrier): Likewise.
5789 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
5791         PR tree-optimization/88055
5792         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
5793         (gen_one_condition): Use it if !HONOR_NANS.
5795 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
5797         PR middle-end/90139
5798         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
5799         assign_temp instead of gen_reg_rtx.
5801 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
5803         PR translation/90118
5804         * config/aarch64/aarch64.c (aarch64_override_options_internal):
5805         Add missing space before %<.
5807 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
5809         PR rtl-optimization/87871
5810         * ira-lives.c (make_object_dead): Don't add conflicts to
5811         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
5813 2019-04-18  Martin Sebor  <msebor@redhat.com>
5815         PR middle-end/89797
5816         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
5817         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
5818         assuming type size fits in SHWI.
5820 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
5822         PR ipa/85051
5823         * ipa-inline.c (flatten_function): New parameter UPDATE.
5824         (ipa_inline, early_inliner): Use it.
5826 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
5828         * fold-const.c (int_const_binop): Return early on failure.
5830 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
5832         PR middle-end/85164
5833         * combine.c (force_int_to_mode): Cast the argument rather than
5834         the result of known_alignment.
5835         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
5837 2019-04-18  Richard Biener  <rguenther@suse.de>
5839         PR debug/90131
5840         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
5841         out from ...
5842         (remove_forwarder_block): ... here.
5843         (remove_forwarder_block_with_phi): Also move debug stmts here.
5845 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
5847         PR translation/79183
5848         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
5849         inform where appropriate.
5851 2019-04-18  Richard Biener  <rguenther@suse.de>
5853         * tree.c (get_qualified_type): Put found type variants at the
5854         head of the variant list.
5856 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
5858         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
5860 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
5862         PR target/90125
5863         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
5864         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
5865         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
5866         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
5867         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
5869 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
5871         * ira-conflicts.c (print_allocno_conflicts): Always print something,
5872         even for allocno's with no conflicts.
5873         (print_conflicts): Print an extra newline.
5875 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
5877         * auto-inc-dec.c (attempt_change): Set the alignment of the
5878         temporary memory to that of the original.
5880 2019-04-17  Joao Moreira  <jmoreira@suse.de>
5882         * targhooks.c (default_print_patchable_function_entry): Emit
5883         __patchable_function_entries section with writable flags to allow
5884         relocation resolution.
5886 2019-04-17  Jonny Grant  <jg@jguk.org>
5888         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
5890 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
5892         PR middle-end/90095
5893         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
5894         on lowpart SUBREGs.
5896 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
5898         * config/arc/arc.c (arc_init): Format diagnostic string.
5899         (arc_override_options): Likewise.
5900         (check_if_valid_regno_const): Likewise.
5901         (arc_reorg): Likewise.
5903 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
5905         PR target/17108
5906         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
5907         name.
5908         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
5909         name.
5910         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
5911         (*movdi_update1): Use Pmode.
5912         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
5913         (movdi_<mode>_update_stack): Rename to ...
5914         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
5915         use Pmode.
5916         (*movsi_update1): Use Pmode.
5917         (*movsi_update2): Use Pmode.
5918         (movsi_update): Rename to ...
5919         (movsi_<mode>_update): ... this.  Use Pmode.
5920         (movsi_update_stack): Fix condition.
5921         (*movhi_update1): Use Pmode.  Fix argument to
5922         avoiding_indexed_address_p.
5923         (*movhi_update2): Ditto.
5924         (*movhi_update3): Ditto.
5925         (*movhi_update4): Ditto.
5926         (*movqi_update1): Ditto.
5927         (*movqi_update2): Ditto.
5928         (*movqi_update3): Ditto.
5929         (*movsf_update1, *movdf_update1): Merge, rename to...
5930         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
5931         avoiding_indexed_address_p.  Add "size" attribute.
5932         (*movsf_update2, *movdf_update2): Merge, rename to...
5933         (*mov<mode>_update2): This.  Ditto.
5934         (*movsf_update3): Use Pmode.  Fix argument to
5935         avoiding_indexed_address_p.
5936         (*movsf_update4): Ditto.
5937         (allocate_stack): Simplify condition.  Adjust pattern names.
5939 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
5941         PR target/89093
5942         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
5943         whitespace at the start of target attribute string.
5945 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
5947         PR target/84369
5948         * config/rs6000/power9.md: Add store forwarding bypass.
5950 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
5952         PR debug/89528
5953         * valtrack.c (dead_debug_insert_temp): Reset debug references
5954         to the return value of a call being removed.
5956 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
5958         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
5959         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
5960         implement target hook.
5961         (arc_memory_move_cost): New function.
5962         (TARGET_REGISTER_MOVE_COST): Define.
5963         (TARGET_MEMORY_MOVE_COST): Likewise.
5964         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
5965         (MEMORY_MOVE_COST): Likewise.
5967 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
5969         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
5970         (sibcall_value_insn): Likewise.
5971         * config/arc/constraints.md (Rs5): Remove.
5973 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
5975         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
5976         for last two fake registers.
5977         (arc_conditional_register_usage): Make sure fake frame and arg
5978         pointer regs are in general regs class.
5979         (FRAME_POINTER_MASK): Remove.
5980         (RETURN_ADDR_MASK): Remove.
5981         (arc_must_save_register): Use hard frame regnum.
5982         (frame_restore_reg): Use hard_frame_pointer_rtx.
5983         (arc_save_callee_saves): Likewise.
5984         (arc_restore_callee_saves): Likewise.
5985         (arc_save_callee_enter): Likewise.
5986         (arc_restore_callee_leave): Likewise.
5987         (arc_save_callee_milli): Likewise.
5988         (arc_eh_return_address_location): Likewise.
5989         (arc_check_multi): Use hard frame regnum.
5990         (arc_can_eliminate): Likewise.
5991         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
5992         for register allocator.
5993         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
5994         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
5995         (FRAME_POINTER_REGNUM): Change it to a fake register.
5996         (HARD_FRAME_POINTER_REGNUM): Defined.
5997         (ARG_POINTER_REGNUM): Change it to a new fake register.
5998         (ELIMINABLE_REGS): Update.
5999         (REGISTER_NAMES): Update names.
6000         * config/arc/arc.md (LP_START): Remove.
6001         (LP_END): Likewise.
6002         (shift_si3_loop): Update pattern.
6004 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
6006         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
6007         to avoid delay slot scheduling.
6008         (arc_must_save_register): Don't save SP.
6009         * config/arc/arc.md (stack_tie): Remove.
6010         (UNSPEC_ARC_STKTIE): Likewise.
6012 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
6013             Shiva Chen  <shiva0217@gmail.com>
6015         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
6016         code gen with large shift amount.
6018 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
6020         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
6021         subreg.
6023 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
6025         PR target/90096
6026         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
6027         print -m64/-mx32/-m32 if it is true.
6028         (ix86_debug_options, ix86_function_specific_print): Pass true as
6029         ADD_ABI_P to ix86_target_string.
6030         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
6031         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
6032         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
6034         PR rtl-optimization/90082
6035         * dce.c (can_delete_call): New function.
6036         (deletable_insn_p, mark_insn): Use it.
6038         PR tree-optimization/90090
6039         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
6040         throw internally.
6041         (is_division_by_square): Likewise.  Formatting fix.
6043 2019-04-16  Richard Biener  <rguenther@suse.de>
6045         PR tree-optimization/56049
6046         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
6047         equality check if alias-set zero will prevail.
6049 2019-04-15  Jeff Law  <law@redhat.com>
6051         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
6052         size and alignment as unsigned.
6054 2019-04-15  Richard Biener  <rguenther@suse.de>
6056         PR debug/90074
6057         * tree-loop-distribution.c (destroy_loop): Preserve correct
6058         debug info.
6060 2019-04-15  Richard Biener  <rguenther@suse.de>
6062         PR tree-optimization/90071
6063         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
6064         abnormal operands from def stmts.
6066 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
6068         PR rtl-optimization/89794
6069         * combine.c (count_auto_inc): New function.
6070         (try_combine): Count how many auto_inc expressions there were in the
6071         original instructions.  Ensure we have the same number in the new
6072         instructions.  Remove the code that tried to ensure auto_inc side
6073         effects on i1 and i0 are not lost.
6075 2019-04-15  Richard Biener  <rguenther@suse.de>
6077         PR ipa/88936
6078         * tree.h (auto_var_p): Declare.
6079         * tree.c (auto_var_p): New function, split out from ...
6080         (auto_var_in_fn_p): ... here.
6081         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
6082         member.
6083         (new_var_info): Initialize it.
6084         (set_uids_in_ptset): Also set the shadow variable uid if required.
6085         (ipa_pta_execute): Postprocess points-to solutions assigning
6086         shadow variable uids for locals that may reach their containing
6087         function recursively.
6088         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
6089         assert but instead check whether the points-to solution is
6090         a singleton.
6092 2019-04-15  Martin Jambor  <mjambor@suse.cz>
6094         PR ipa/pr89693
6095         * cgraph.c (clone_of_p): Loop over clone chain for each step in
6096         the thunk chain.
6098 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
6100         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
6102 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
6103             Kito Cheng  <kito.cheng@gmail.com>
6104             Shiva Chen  <shiva0217@gmail.com>
6106         * config/nds32/nds32-md-auxiliary.c
6107         (nds32_legitimize_pic_address): Use new PIC pattern.
6108         (nds32_legitimize_tls_address): Use new TLS pattern.
6109         (nds32_output_symrel): New.
6110         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
6111         (nds32_alloc_relax_group_id): Ditto.
6112         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
6113         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
6114         relax_group_id.
6115         (nds32_group_tls_insn): Ditto.
6116         (nds32_group_float_insns): Ditto.
6117         * config/nds32/nds32.md (tls_le): New.
6118         (sym_got): Ditto.
6120 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
6122         * configure: Add nds32 target for dwarf2 debug_line checking.
6123         * configure.ac: Regenerated.
6125 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
6127         PR lto/89358
6128         * ipa-devirt.c (skip_in_fields_list_p): New.
6129         (odr_types_equivalent_p): Use it.
6131 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
6133         PR target/89093
6134         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
6135         instead of strncmp when checking for thumb and arm.  Formatting fixes.
6137 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
6139         * doc/install.texi: Document --with-target-system-zlib.
6141 2019-04-12  Martin Sebor  <msebor@redhat.com>
6143         PR c/88383
6144         PR c/89288
6145         PR c/89798
6146         PR c/89797
6147         * targhooks.c (default_vector_alignment): Avoid assuming
6148         argument fits in SHWI.
6149         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
6150         a shift expression.
6151         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
6153 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
6155         PR rtl-optimization/89965
6156         * dce.c: Include rtl-iter.h.
6157         (struct check_argument_load_data): New type.
6158         (check_argument_load): New function.
6159         (find_call_stack_args): Check for loads from stack slots still tracked
6160         in sp_bytes and punt if any is found.
6162         * config/mips/loongson-mmiintrin.h: Fix up #error message.
6164 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
6166         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
6167         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
6169 2019-04-12  Martin Liska  <mliska@suse.cz>
6171         PR middle-end/89970
6172         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
6173         in error message.
6174         (separate_attrs): Handle multiple 'default's.
6175         (expand_target_clones): Rework error handling code.
6177 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6179         PR target/87532
6180         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
6181         mode of vector rather than mode of destination for move instruction.
6182         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
6183         Use QI inner mode with V16QI vector mode.
6185 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
6187         PR target/52726
6188         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
6189         "invalid %%t operand" in output_operand_lossage message.
6191 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
6193         * config/s390/predicates.md (permute_pattern_operand): New
6194         predicate.
6195         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
6196         operand for the permute pattern.
6197         ("*vec_perm<mode>"): New insn definition.
6198         ("bswap<mode>"): Generate the permute pattern operand in the
6199         expander and perform the operand reloads for pre arch13 level
6200         already.
6201         ("*bswap<mode>_emu"): Rename to ...
6202         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
6203         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
6204         Add the USE operand for the permute pattern.
6205         ("*vec_set_bswap_vec<mode>"): Likewise.
6207 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
6209         PR c/89946
6210         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
6211         and gcc_unreachable if it fails, just call tree_to_uhwi which
6212         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
6213         Start warning message with a lower-case letter.  Formatting fixes.
6215         PR rtl-optimization/90026
6216         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
6217         successors, look for BARRIERs inside of the whole BB_FOOTER chain
6218         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
6219         in cfglayout mode, use emit_barrier_after_bb.
6221 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
6223         PR rtl-optimization/87763
6224         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
6225         New Instruction.
6227 2019-04-11  Tom de Vries  <tdevries@suse.de>
6229         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
6230         max macro using statement expression.
6232 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
6234         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
6235         * xcoffout.c (xcoff_private_rodata_section_name): Define.
6236         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
6237         read_only_private_data_section using xcoff_private_rodata_section_name.
6238         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
6240 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
6242         PR target/90016
6243         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
6245 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
6247         PR rtl-optimization/89965
6248         * dce.c (sp_based_mem_offset): New function.
6249         (find_call_stack_args): Use sp_based_mem_offset.
6251 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
6253         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
6255 2019-04-11  Richard Biener  <rguenther@suse.de>
6257         PR tree-optimization/90020
6258         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
6259         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
6260         * tree-ssa-pre.c (compute_avail): Use it to not put
6261         possibly trapping references after a call that might not
6262         return into EXP_GEN.
6263         * gcse.c (compute_hash_table_work): Do not elide
6264         marking a block containing a call if the call might not
6265         return.
6267 2019-04-11  Richard Biener  <rguenther@suse.de>
6269         PR tree-optimization/90018
6270         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
6271         Test both SLP and interleaving variants.
6273 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
6275         * config/s390/8561.md: New file.
6276         * config/s390/driver-native.c (s390_host_detect_local_cpu):
6277         Add arch13 cpu model.
6278         * config/s390/s390-opts.h (enum processor_type): Likewise.
6279         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
6280         (s390_get_unit_mask): Likewise.
6281         (s390_is_fpd): Likewise.
6282         (s390_is_fxd): Likewise.
6283         * config/s390/s390.h (s390_tune_attr): Likewise.
6284         * config/s390/s390.md: Include arch13 pipeline description.
6285         * config/s390/s390.opt: Add arch13.
6287 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
6289         PR rtl-optimization/87763
6290         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
6291         New prototype.
6292         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
6293         New function.
6294         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
6295         New instruction.
6296         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
6297         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
6298         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
6299         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
6301 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
6303         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
6304         "Although" in -fipa-icf documentation.
6306         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
6307         of using multiple -g options.
6309 2019-04-10  Martin Liska  <mliska@suse.cz>
6311         PR gcov-profile/89959
6312         * doc/gcov.texi: Make documentation of -x option
6313         more precise.
6315 2019-04-10  Richard Biener  <rguenther@suse.de>
6317         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
6318         member.
6319         (DR_GROUP_SAME_DR_STMT): Remove.
6320         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
6321         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
6322         replace with assert.
6323         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
6324         (vect_record_grouped_load_vectors): Remove unreachable code.
6326 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
6328         PR target/90016
6329         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
6330         obsolete reference to N.
6332 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
6334         PR middle-end/90025
6335         * expr.c (store_expr): Set properly size on the MEM passed to
6336         clear_storage.
6338         PR c++/90010
6339         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
6340         with strlen in between hostsz-3 and hostsz-1 inclusive when no
6341         translation is needed, and when translation is needed, only append
6342         ... if the string length is hostsz or more bytes long.  Avoid using
6343         strncpy or strcat.
6345 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
6347         PR target/90024
6348         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
6349         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
6350         into three.
6351         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
6352         differences directly.
6353         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
6355 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
6357         PR translation/90011
6358         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6359         from diagnostics.
6360         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
6361         diagnostics.
6362         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
6363         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
6364         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
6365         trailing space from -gsplit-dwarf diagnostics.
6367         PR tree-optimization/89998
6368         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
6369         instead of integer_type_node if possible, don't add ranges if return
6370         type is not compatible with int.
6371         * gimple-fold.c (gimple_fold_builtin_sprintf,
6372         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
6373         integer_type_node.
6375 2019-04-09  Martin Liska  <mliska@suse.cz>
6377         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
6378         * doc/install.texi: Document the new config.
6380 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
6382         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
6383         use gimple_expr_type for load and store calls.  Skip over the
6384         condition argument in a conditional internal function.
6385         Protect use of TREE_INT_CST_LOW.
6387 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
6389         PR target/90015
6390         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
6391         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
6392         trailing period from it too.
6394 2019-04-08  wu yuan  <wuyuan5@huawei.com>
6396         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
6397         * config/aarch64/aarch64.md : Add "tsv110.md"
6398         * config/aarch64/tsv110.md: New file.
6400 2019-04-08  Richard Biener  <rguenther@suse.de>
6402         PR tree-optimization/90006
6403         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
6404         calls like lrint.
6406 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
6408         PR target/83033
6409         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
6410         construction.
6411         (fma_root_node): Likewise.
6412         (func_fma_steering): Likewise.
6414 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
6416         PR rtl-optimization/89865
6417         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
6419         PR rtl-optimization/89865
6420         * config/i386/i386.md
6421         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
6422         numbers not to clash with the additional operands[4].
6423         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
6424         with extra register copy in the middle.
6426 2019-04-08  Martin Liska  <mliska@suse.cz>
6428         PR gcov-profile/89961
6429         * doc/gcov.texi: Document data_file.
6430         * gcov.c (generate_results): Add data_info into JSON output.
6432 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
6434         PR tree-optimization/89725
6435         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
6436         loop's chrec as invariant symbol.
6437         * tree-chrec.h (chrec_contains_symbols): New parameter.
6438         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
6439         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
6440         function of loops not in DDR's loop_nest.
6441         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
6443 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
6445         PR target/89623
6446         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
6447         Mask.
6449 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
6451         PR target/89945
6452         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6453         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
6455 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6457         * sched-deps.c (sched_macro_fuse_insns): Check return value of
6458         targetm.fixed_condition_code_regs.
6460 2019-04-05  Richard Biener  <rguenther@suse.de>
6462         PR debug/89892
6463         PR debug/89905
6464         * tree-cfgcleanup.c (remove_forwarder_block): Always move
6465         debug bind stmts but reset them if they are not valid at the
6466         destination.
6468 2019-04-05  Martin Liska  <mliska@suse.cz>
6470         PR translation/89936
6471         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
6472         order to wrap keywords or arguments.
6473         * collect2.c (main): Likewise.
6474         (scan_prog_file): Likewise.
6475         (scan_libraries): Likewise.
6476         * common/config/riscv/riscv-common.c
6477         (riscv_subset_list::parsing_subset_version): Likewise.
6478         (riscv_subset_list::parse_std_ext): Likewise.
6479         * config/aarch64/aarch64.c (aarch64_override_options_internal):
6480         Likewise.
6481         * config/arm/arm.c (arm_option_override): Likewise.
6482         * config/cris/cris.c (cris_print_operand): Likewise.
6483         * config/darwin-c.c (darwin_pragma_options): Likewise.
6484         (darwin_pragma_unused): Likewise.
6485         (darwin_pragma_ms_struct): Likewise.
6486         * config/ft32/ft32.c (ft32_print_operand): Likewise.
6487         * config/i386/i386.c (print_reg): Likewise.
6488         (ix86_print_operand): Likewise.
6489         * config/i386/xm-djgpp.h: Likewise.
6490         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
6491         * config/m32c/m32c.c (m32c_option_override): Likewise.
6492         * config/msp430/msp430.c (msp430_option_override): Likewise.
6493         * config/nds32/nds32.c (nds32_option_override): Likewise.
6494         * config/nvptx/mkoffload.c (main): Likewise.
6495         * config/rx/rx.c (rx_print_operand): Likewise.
6496         (valid_psw_flag): Likewise.
6497         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
6498         (vms_pragma_nomember_alignment): Likewise.
6499         (vms_pragma_extern_model): Likewise.
6500         * lto-wrapper.c (compile_offload_image): Likewise.
6501         * omp-offload.c (oacc_parse_default_dims): Likewise.
6502         * symtab.c (symtab_node::verify_base): Likewise.
6503         * tlink.c (recompile_files): Likewise.
6504         (start_tweaking): Likewise.
6505         * tree-profile.c (parse_profile_filter): Likewise.
6507 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
6509         PR tree-optimization/89956
6510         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
6511         multiple negates of the same value.
6513 2019-04-04  Martin Sebor  <msebor@redhat.com>
6515         PR middle-end/89957
6516         PR middle-end/89911
6517         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
6518         have the same precision since the function crashes otherwise.
6519         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
6520         has non-zero arguments.
6522 2019-04-04  Martin Sebor  <msebor@redhat.com>
6524         PR middle-end/89934
6525         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
6526         out if the number of arguments is less than expected.
6528 2019-04-04  Jeff Law  <law@redhat.com>
6530         PR rtl-optimization/89399
6531         * ree.c (combine_set_extension): Use single_set rather than
6532         digging into PATTERN for items on the candidate list.
6533         (combine_reaching_defs): Likewise.
6535 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
6537         PR rtl-optimization/46590
6538         * loop-invariant.c (find_defs): Move df_remove_problem and
6539         df_process_deferred_rescans to move_invariants.
6540         Move df_live_add_problem and df_live_set_all_dirty calls
6541         to move_invariants.
6542         (move_invariants): Likewise.
6543         (move_loop_invariants): Likewise, making the df_live calls
6544         conditional on -O.  Remove the problem again if we added it
6545         locally.
6547 2019-04-03  qing zhao  <qing.zhao@oracle.com>
6549         PR tree-optimization/89730
6550         * ipa-inline.c (can_inline_edge_p): Delete the checking for
6551         -flive-patching=inline-only-static.
6552         (can_inline_edge_by_limits_p): Add the checking for
6553         -flive-patching=inline-only-static and grant always_inline
6554         even when -flive-patching=inline-only-static is specified.
6556 2019-04-03  Jeff Law  <law@redhat.com>
6558         PR rtl-optimization/81025
6559         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
6561 2019-04-03  Richard Biener  <rguenther@suse.de>
6563         PR tree-optimization/84101
6564         * tree-vect-stmts.c: Include explow.h for hard_function_value,
6565         regs.h for hard_regno_nregs.
6566         (cfun_returns): New helper.
6567         (vect_model_store_cost): When vectorizing a store to a decl
6568         we return and the function ABI returns in a multi-reg location
6569         account for the possible spilling that will happen.
6571 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
6573         * config/s390/s390.c (s390_legitimate_address_p): Reject long
6574         displacement addresses for vector mode operands.
6576 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
6578         * config/arc/arc.c (GMASK_LEN): Define.
6579         (arc_restore_callee_saves): Restore first blink when
6580         !optimize_size.
6582 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
6584         * doc/extend.texi: Add deprecated comment on sign-return-address
6585         function attribute and add mbranch-protection.
6586         * doc/invoke.texi: Add bti to the options for mbranch-protection.
6588 2019-04-03  Richard Biener  <rguenther@suse.de>
6590         PR lto/89896
6591         * lto-wrapper.c (run_gcc): Avoid implicit rules making
6592         the all target phony.
6594 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
6596         PR target/89902
6597         PR target/89903
6598         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6599         Return false for variable DImode shifts.
6600         (dimode_scalar_chain::compute_convert_gain): Do not handle
6601         register count operand in variable DImode shifts.
6602         (dimode_scalar_chain::make_vector_copies): Remove support to copy
6603         count argument of a variable shift instruction to a vector register.
6604         (dimode_scalar_chain::convert_reg): Remove support to convert
6605         count argument of a variable shift instruction.
6607 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
6609         PR rtl-optimization/84206
6610         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
6611         iterating over loop headers.
6613 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
6615         PR rtl-optimization/85876
6616         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
6617         beyond the original fence.
6619 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
6621         * config.gcc: Mark spu* targets as deprecated/obsolete.
6623 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6625         * config/s390/s390-builtin-types.def: New builtin function type
6626         definitions. Remove unused types.
6627         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
6628         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
6629         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
6630         overloaded builtins.
6631         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
6632         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
6633         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
6634         (vec_double, vec_signed, vec_unsigned): Define to use the new
6635         overloaded builtins.
6636         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
6637         Remove expanders.
6639 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6641         * config/s390/s390-builtin-types.def: New builtin function type
6642         definitions.
6643         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
6644         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
6645         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
6646         (s390_vstrszh, s390_vstrszf): New low-level builtins.
6647         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
6648         constant definitions.
6649         * config/s390/vecintrin.h (vec_search_string_cc)
6650         (vec_search_string_until_zero_cc): New builtin name definitions.
6651         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
6652         expanders.
6653         ("vec_vstrs<mode>"): New insn definition.
6655 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6657         * config/s390/s390-builtin-types.def: Add new builtin function
6658         types.
6659         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
6660         New overloaded builtins.
6661         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
6662         s390_vsrd.
6663         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
6664         (UNSPEC_VEC_SLDBYTE): ... this.
6665         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
6666         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
6667         definitions.
6668         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
6669         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
6670         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
6672 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6674         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
6675         New insn definition.
6676         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
6677         * config/s390/vector.md (V_HW_HSD): ... here.
6679 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6681         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
6682         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
6683         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
6684         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
6685         New insn definitions.
6687 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6689         * config/s390/s390-builtin-types.def: Add new builtin function type.
6690         * config/s390/s390-builtins.def: Add overloaded builtin
6691         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
6692         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
6693         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
6694         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
6695         ("eltswap<mode>"): New expander.
6696         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
6697         insn definitions.
6699 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6701         * config/s390/s390-builtin-types.def: Add new builtin function types.
6702         * config/s390/s390-builtins.def: Add overloaded builtin
6703         s390_vec_revb. Add low-level builtins for vlbr and vstbr
6704         instructions.
6705         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
6706         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
6707         ("bswap<mode>"): New expander.
6708         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
6710 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6712         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
6713         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
6714         vector builtin version number in __VEC__.
6716 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6718         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
6719         iterators.
6720         (SFSI): New mode attribute.
6721         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
6722         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
6723         rename to ...
6724         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
6725         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
6726         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
6727         ("floatsi<mode>2"): Add wcefb instruction.
6729 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6731         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
6732         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
6733         mode iterators.
6734         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
6735         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
6736         support 32 bit fp-int conversions. Rename to ...
6737         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
6738         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
6739         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
6740         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
6741         ... to these.
6743 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6745         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
6746         if-then-else constructs if we can use the select instruction.
6747         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
6749 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6751         * config/s390/s390.md ("*popcountdi_arch13_cc")
6752         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
6753         definition.
6754         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
6755         Append _z196 to make it ...
6756         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
6757         ("popcounthi2_z196"): ... this.
6758         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
6759         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
6761 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6763         * config/s390/s390.c (s390_canonicalize_comparison): Convert
6764         certain compares for arch13 in order to make use of the condition
6765         code result produced by the new instructions.
6766         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
6767         nxrk, and nxgrk instruction patterns.
6768         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
6769         (inv_no): Add new code iterator together with some attributes.
6770         ("*andc_split_<mode>"): Disable splitter for arch13.
6771         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
6772         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
6773         ("*<ANDOR:bitops_name>c<GPR:mode>")
6774         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
6775         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
6776         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
6777         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
6779 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6781         * common/config/s390/s390-common.c (processor_flags_table): New
6782         entry for arch13.
6783         * config.gcc: Support arch13 with the --with-arch= configure flag.
6784         * config/s390/driver-native.c (s390_host_detect_local_cpu):
6785         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
6786         * config/s390/s390.c (s390_get_sched_attrmask)
6787         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
6788         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
6789         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
6790         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
6791         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
6792         definitions.
6793         * config/s390/s390.opt: Support arch13 as processor type in
6794         command line options.
6796 2019-04-02  Martin Liska  <mliska@suse.cz>
6798         PR translation/89912
6799         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
6800         Fix param description of graphite-max-arrays-per-scop.
6802 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6804         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
6805         (ASAN_CC1_SPEC): Use it in 64-bit mode.
6806         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
6808 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
6810         PR rtl-optimization/85412
6811         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
6812         sel_sched_region_1, not after.
6814 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
6816         PR rtl-optimization/86928
6817         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
6818         compute_live if necessary.
6819         (sel_redirect_edge_and_branch): Likewise.
6821 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
6823         PR rtl-optimization/89865
6824         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
6825         register if it is a part of small class.
6827 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
6829         PR rtl-optimization/87273
6830         * sel-sched-ir.c (merge_fences): Remove assert.
6832 2019-04-01  Richard Biener  <rguenther@suse.de>
6834         PR tree-optimization/46590
6835         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
6836         (dom_walker::m_reachability): Add in place of...
6837         (dom_walker::m_skip_unreachable_blocks): ...this.
6838         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
6839         Move complex initialization ...
6840         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
6841         lazily and initialize edge flags on each invocation.
6842         (dom_walker::bb_reachable): Use m_reachability.
6844 2019-04-01  Martin Liska  <mliska@suse.cz>
6846         PR driver/89861
6847         * opt-suggestions.c (option_proposer::build_option_suggestions):
6848         Add variant without any argument in order to provide better
6849         hints.
6851 2019-04-01  Richard Biener  <rguenther@suse.de>
6853         PR c/71598
6854         * gimple.c: Include langhooks.h.
6855         (gimple_get_alias_set): Treat enumeral types as the underlying
6856         integer type.
6858 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
6859             Eric Botcazou  <ebotcazou@adacore.com>
6861         PR rtl-optimization/89862
6862         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
6863         that operates on the full registers for WORD_REGISTER_OPERATIONS
6864         architectures.
6866 2019-03-29  Jim Wilson  <jimw@sifive.com>
6868         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
6869         Clear MASK_RVC and then set if C subset supported.
6871 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
6873         PR c/89872
6874         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
6875         non-addressable complit into its initializer if it is volatile.
6877 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
6879         * opts-common.c (integral_argument): Set errno properly in one case.
6881 2019-03-29  Martin Liska  <mliska@suse.cz>
6883         * doc/invoke.texi: Remove -Wchkp from documentation.
6885 2019-03-29  Martin Liska  <mliska@suse.cz>
6887         * dbgcnt.c (print_limit_reach): New function.
6888         (dbg_cnt): Use it.
6890 2019-03-29  Martin Liska  <mliska@suse.cz>
6892         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
6893         (dbg_cnt_process_opt): Parse first tokens aas
6894         dbg_cnt_process_single_pair is also using strtok.
6896 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
6898         PR rtl-optimization/87485
6899         * function.c (expand_function_end): Move stack_protect_epilogue
6900         before loading of return value into hard register(s).
6902 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
6904         PR middle-end/89621
6905         * tree-inline.h (struct copy_body_data): Add
6906         dont_remap_vla_if_no_change flag.
6907         * tree-inline.c (remap_type_3, remap_type_2): New functions.
6908         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
6909         and remap_type_2 returns false.
6910         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
6911         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
6912         only from where it is copied to nested contexts.
6914 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
6916         PR target/89865
6917         * config/i386/i386.md (RMW operation with LEA peephole):
6918         Use LEAMODE mode attribute instead of SWI mode iterator for
6919         LEA pattern.
6921 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
6923         PR target/89848
6924         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
6925         Also process XEXP (src, 0) of a shift insn.
6927 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
6929         PR middle-end/89725
6930         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
6931         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
6933 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
6935         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
6936         test.
6937         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
6938         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
6939         immediately after first one with df_analyze in between, but rather
6940         process all bbs, queueing ones that need second pass in a worklist,
6941         df_analyze, process queued debug insn changes and if second pass is
6942         needed, process bbs from worklist, df_analyze, process queued debug
6943         insns again.
6945         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
6946         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
6947         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
6949 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
6951         PR c/79022
6952         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
6953         definition.
6955 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
6957         PR target/85667
6958         * config/i386/i386.c (ix86_function_value_1): Call the newly added
6959         function for 32-bit MS_ABI.
6960         (function_value_ms_32): New function.
6962 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
6964         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
6965         (movdi): Call gen_movdi_symbol_save_scc.
6966         (gen_movdi_symbol_save_scc): New insn and split.
6968 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
6970         PR rtl-optimization/89313
6971         * function.c (matching_constraint_num): New static function.
6972         (match_asm_constraints_1): Use it.  Fixup white space and comment.
6973         Don't replace inputs with non-matching constraints which conflict
6974         with early clobber outputs.
6976 2019-03-27  Jeff Law  <law@redhat.com>
6979         PR rtl-optimization/87761
6980         PR rtl-optimization/89826
6981         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
6982         slightly later.
6983         (pass_cprop_hardreg::execute): Call df_analyze after adding the
6984         note problem to get REG_DEAD/REG_UNUSED notes updated.
6986 2019-03-27  Richard Biener  <rguenther@suse.de>
6988         PR tree-optimization/89463
6989         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
6990         queue edges to remove.
6991         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
6992         dead stmts.  Delay edge removal until PHIs are removed to
6993         make debug-stmt creation not confused by seemingly degenerate
6994         PHIs.
6996 2019-03-27  Alan Modra  <amodra@gmail.com>
6998         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
6999         throughout file.
7000         * config/rs6000/darwin.h: Likewise.
7001         * config/rs6000/rs6000.c: Likewise.
7003 2019-03-27  Alan Modra  <amodra@gmail.com>
7005         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
7006         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
7008 2019-03-26  Andrew Waterman  <andrew@sifive.com>
7009             Jim Wilson  <jimw@sifive.com>
7011         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
7012         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
7013         (generic_idivdi, generic_fmul_single, generic_fmul_double)
7014         (generic_fdiv, generic_fsqrt): Add check for generic tune.
7015         (generic_alu): Add auipc to type list.
7016         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
7017         (riscv_microarchitecture): Declare.
7018         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
7019         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
7020         field.
7021         (riscv_microarchitecture): New.
7022         (sifive_7_tune_info): New.
7023         (riscv_cpu_info_table): Add microarchitecture value for rocket and
7024         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
7025         entries.
7026         (riscv_store_data_bypass_p): New.
7027         (riscv_option_override): Set riscv_microarchitecture from
7028         cpu->microarchitecture.
7029         * config/riscv/riscv.md: Include sifive-7.md.
7030         (type): Add auipc.
7031         (tune): New.
7032         (auipc<mode>): Change type to auipc.
7033         (restore_stack_nonlocal): New.
7034         * config/riscv/sifive-7.md: New.
7035         * doc/invoke.texi (RISC-V Options): Update mtune docs.
7037 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
7039         PR target/89827
7040         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
7041         Also process XEXP (src, 0) of a shift insn.
7043 2019-03-26  Richard Biener  <rguenther@suse.de>
7045         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
7046         (copy_debug_stmt): Likewise.
7047         (expand_call_inline): Likewise.
7048         (copy_bb): Avoid redundant lookup & set of gimple_block.
7049         * gimple-low.c (lower_gimple_return): Likewise.
7050         (lower_builtin_setjmp): Likewise.
7052 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
7054         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
7055         is constant 0, turn into static const data member initialized to false.
7056         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
7057         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
7059 2019-03-26  Jason Merrill  <jason@redhat.com>
7060             Jakub Jelinek  <jakub@redhat.com>
7062         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
7063         method.
7064         (mem_alloc_description::release_object_overhead): Fix comment typos.
7065         * hash-table.h (hash_table::~hash_table): Call
7066         release_instance_overhead only if m_entries is non-NULL, otherwise
7067         call unregister_descriptor.
7069 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
7071         PR tree-optimization/81740
7072         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7073         In case of outer loop vectorization, check for backward dependence
7074         at the inner loop if outer loop dependence is reversed.
7076 2019-03-26  Alan Modra  <amodra@gmail.com>
7078         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
7079         rs6000_vector_mem init.  Correct wI and wJ comment.
7081 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
7083         PR rtl-optimization/88347
7084         PR rtl-optimization/88423
7085         * sched-deps.c (sched_analyze_insn): Take into account that for
7086         tablejumps the barrier appears after a label and a jump_table_data.
7088 2019-03-25  Martin Sebor  <msebor@redhat.com>
7090         PR c/89812
7091         * c-common.c (check_user_alignment): Rename local.  Correct maximum
7092         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
7093         convert it to UHWI when it fits.
7095 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
7097         PR debug/86964
7098         * dwarf2out.c (premark_used_variables): New function.
7099         (prune_unused_types_walk): Do not mark not premarked external
7100         variables.
7101         (prune_unused_types): Call premark_used_variables.
7103 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
7105         PR rtl-optimization/89676
7106         * lra-constraints.c (curr_insn_transform): Do match reload for
7107         early clobbers when the match was successful only for different
7108         registers.
7110 2019-03-25  Martin Sebor  <msebor@redhat.com>
7112         * doc/extend.texi (Common Type Attributes): Document vector_size.
7113         (Common Variable Attributes): Mention size constraint.  Correct
7114         quoting and typos.
7115         (Vector Extensions): Use @dfn when defining bas type.  Clarify
7116         base type and size constraints.
7118 2019-03-25  Richard Biener  <rguenther@suse.de>
7120         PR tree-optimization/89789
7121         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
7122         changes from non-undefined back to undefined.
7124 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
7126         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
7127         heap string and a gc string, but since this variable is unknown to
7128         ggc the gc string might get reused and corrupted. Fixed by always
7129         using a heap string.
7131 2019-03-25  Richard Biener  <rguenther@suse.de>
7133         PR tree-optimization/89779
7134         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
7135         to remove IV defs, delay actual removal.
7136         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
7137         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
7138         very end, properly also reset loop control IV information.
7140 2019-03-25  Richard Biener  <rguenther@suse.de>
7142         PR tree-optimization/89802
7143         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
7144         move EH data to folded stmt.
7146 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
7148         * config/s390/s390-builtin-types.def: Remove few unused types and
7149         fix sort order for others.
7151 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
7153         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
7154         expected and found types with -mdebug during builtin matching.
7156 2019-03-25  Richard Biener  <rguenther@suse.de>
7158         PR middle-end/89790
7159         * fold-const.c (operand_equal_p): Revert last change with
7160         updated comment.
7162 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
7164         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
7165         notes for the result of the __tls_get_addr calls.
7166         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
7168 2019-03-24  Jeff Law  <law@redhat.com>
7170         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
7172         PR rtl-optimization/87761
7173         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
7174         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
7175         as needed.
7176         (pass_cprop_hardreg::execute): Add df note problem and defer insn
7177         rescans.  Reprocess blocks as needed, calling df_analyze before
7178         reprocessing.  Always call df_analyze before fixing up debug bind
7179         insns.
7181 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
7183         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
7184         big endian.
7186 2019-03-22  Andrew Pinski  <apinski@marvell.com>
7188         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
7189         attrribute for uxtw.
7191 2019-03-26  Jeff Law  <law@redhat.com>
7193         PR rtl-optimization/87761
7194         * config/mips/mips-protos.h (mips_split_move): Add new argument.
7195         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
7196         (mips_split_move): Accept new INSN argument.  Try to forward SRC
7197         into the next instruction.
7198         (mips_split_move_insn): Pass INSN through to mips_split_move.
7200 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
7202         PR rtl-optimization/89676
7203         * lra-constraints.c (curr_insn_transform): Do match reload for
7204         early clobbers even if the match was successful.
7206 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
7208         PR c++/87481
7209         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
7211 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
7213         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
7215 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
7217         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
7218         <avx512>_fmsub_<mode>_mask3<round_name>,
7219         <avx512>_fnmadd_<mode>_mask3<round_name>,
7220         <avx512>_fnmsub_<mode>_mask3<round_name>,
7221         avx512f_vmfmadd_<mode>_mask3<round_name>,
7222         avx512f_vmfmsub_<mode>_mask3<round_name>,
7223         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
7224         instead of register_operand and %v instead of v for match_operand 1.
7225         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
7226         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
7227         <round_nimm_predicate> instead of register_operand and %v instead of v
7228         for match_operand 1.
7230         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
7231         <avx512>_fmadd_<mode>_mask3<round_name>,
7232         <avx512>_fmsub_<mode>_mask<round_name>,
7233         <avx512>_fmsub_<mode>_mask3<round_name>,
7234         <avx512>_fnmadd_<mode>_mask<round_name>,
7235         <avx512>_fnmadd_<mode>_mask3<round_name>,
7236         <avx512>_fnmsub_<mode>_mask<round_name>,
7237         <avx512>_fnmsub_<mode>_mask3<round_name>,
7238         <avx512>_fmaddsub_<mode>_mask<round_name>,
7239         <avx512>_fmaddsub_<mode>_mask3<round_name>,
7240         <avx512>_fmsubadd_<mode>_mask<round_name>,
7241         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
7242         <round_nimm_predicate> instead of nonimmediate_operand.
7243         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7244         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
7245         Use register_operand instead of <round_nimm_predicate> for the
7246         operand that needs to match output.
7247         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7248         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
7249         Likewise.  Formatting fixes.
7251         PR target/89784
7252         * config/i386/i386.c (enum ix86_builtins): Remove
7253         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
7254         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
7255         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
7256         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
7257         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
7258         __builtin_ia32_vfmsubss3_mask3): New builtins.
7259         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
7260         avx512f_vmfmadd_<mode>_mask3<round_name>,
7261         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7262         *avx512f_vmfmsub_<mode>_mask<round_name>,
7263         avx512f_vmfmsub_<mode>_mask3<round_name>,
7264         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
7265         *avx512f_vmfnmadd_<mode>_mask<round_name>,
7266         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7267         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7268         *avx512f_vmfnmsub_<mode>_mask<round_name>,
7269         avx512f_vmfnmsub_<mode>_mask3<round_name>,
7270         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
7271         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
7272         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
7273         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
7274         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
7275         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
7276         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
7277         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
7278         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
7279         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
7280         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
7281         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
7282         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
7283         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
7284         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
7285         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
7286         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
7287         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
7288         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
7289         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
7290         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
7291         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
7293 2019-03-21  Martin Sebor  <msebor@redhat.com>
7295         PR tree-optimization/89350
7296         * builtins.c (compute_objsize): Also ignore offsets whose upper
7297         bound is negative.
7298         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
7299         (builtin_memref::builtin_memref): Initialize new member.
7300         Allow EXPR to be null.
7301         (builtin_memref::extend_offset_range): Replace local with a member.
7302         Avoid assuming pointer offsets are unsigned.
7303         (builtin_memref::set_base_and_offset): Determine base object
7304         before computing offset range.
7305         (builtin_access::builtin_access): Handle memset.
7306         (builtin_access::generic_overlap): Replace local with a member.
7307         (builtin_access::strcat_overlap): Same.
7308         (builtin_access::overlap): Same.
7309         (maybe_diag_overlap): Same.
7310         (maybe_diag_access_bounds): Same.
7311         (wrestrict_dom_walker::check_call): Handle memset.
7312         (check_bounds_or_overlap): Same.
7314 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
7315             Jakub Jelinek  <jakub@redhat.com>
7317         PR lto/89692
7318         * tree.c (fld_type_variant, fld_incomplete_type_of,
7319         fld_process_array_type): Call fld->pset.add and don't call
7320         add_tree_to_fld_list if it returns true.
7321         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
7322         non-marked types from TYPE_NEXT_VARIANT list.
7323         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
7325 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
7327         * hash-table.h (hash_table): Add Lazy template parameter defaulted
7328         to false, if true, don't alloc_entries during construction, but defer
7329         it to the first method that needs m_entries allocated.
7330         (hash_table::hash_table, hash_table::~hash_table,
7331         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
7332         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
7333         hash_table::clear_slot, hash_table::traverse_noresize,
7334         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
7335         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
7336         false.
7337         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
7338         NO_INSERT instead of find_with_hash.
7339         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
7340         hash_set::m_table): Add Lazy to template params of hash_table.
7341         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
7342         * attribs.c (test_attribute_exclusions): Likewise.
7343         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
7344         hash_set.  Add tests for hash_set with Lazy = true.
7346 2019-03-21  Richard Biener  <rguenther@suse.de>
7348         PR tree-optimization/89779
7349         * tree.c (tree_nop_conversion): Consolidate and fix defensive
7350         checks with respect to released SSA names now having error_mark_node
7351         type.
7352         * fold-const.c (operand_equal_p): Likewise.
7354 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
7356         PR target/89775
7357         * config/s390/s390.c (global_not_special_regno_p): Move to make it
7358         available to ...
7359         (s390_optimize_register_info): Use global_not_special_regno_p to
7360         check for global regs.
7362 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
7364         PR target/89752
7365         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
7366         update this_alternative nor this_alternative_set.
7368 2019-03-19  Jim Wilson  <jimw@sifive.com>
7370         PR target/89411
7371         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
7372         align, size, offset.  Use them to handle a BLKmode reference.  Update
7373         comment.
7374         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
7376 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
7378         PR rtl-optimization/89768
7379         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
7380         instead of GEN_INT.
7381         (unroll_loop_runtime_iterations): Likewise.
7383 2019-03-19  Martin Sebor  <msebor@redhat.com>
7385         PR tree-optimization/89644
7386         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
7387         rather than endptr as an indicator of nul-termination.
7389         PR tree-optimization/89644
7390         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
7391         arrays in determining sequence sizes in strncpy and stpncpy.
7393 2019-03-19  Martin Liska  <mliska@suse.cz>
7395         PR middle-end/89737
7396         * predict.c (combine_predictions_for_bb): Empty likely_edges and
7397         unlikely_edges if there's an edge that belongs to both these sets.
7399 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
7401         PR target/89746
7402         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
7403         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
7404         go via a stack temporary.
7406 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
7408         PR target/89378
7409         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
7410         instead of gen_rtx_SUBREG.
7411         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
7413 2019-03-19  Richard Biener  <rguenther@suse.de>
7415         PR debug/88389
7416         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
7418 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
7420         PR lto/87809
7421         PR lto/89335
7422         * tree.c (free_lang_data_in_decl): Do not free context of C++
7423         destrutors.
7425 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
7427         PR target/89506
7428         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
7429         subs for the first alternative except when operands[3] is 1.
7431         PR target/89752
7432         * gimplify.c (gimplify_asm_expr): For output argument with
7433         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
7434         diagnose error.
7436 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
7438         PR rtl-optimization/89753
7439         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
7440         explicit unrolling factor even more robust.
7442 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
7444         PR target/89726
7445         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
7446         compensation use x2 += 1 instead of x2 -= -1 and when honoring
7447         signed zeros, do another copysign after the compensation.
7449 2019-03-18  Martin Sebor  <msebor@redhat.com>
7451         PR tree-optimization/89720
7452         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
7453         more conservatively, the same as anti-range.
7455 2019-03-18  Richard Biener  <rguenther@suse.de>
7457         PR middle-end/88945
7458         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
7459         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
7460         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
7461         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
7463 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
7465         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
7466         Extend queue to 1024 entries.
7467         Add "consumed" field.
7468         (gomp_print_output): Remove print_index parameter.
7469         Add final parameter.
7470         Change limit to unsigned.
7471         Use consumed field to implement circular buffer.
7472         Detect interrupted print in final pass.
7473         Flush output at the end.
7474         (run): Update gomp_print_output usage.
7475         (main): Initialize kernargs->output_data.consumed.
7477 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
7479         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
7480         calculation of the minimum number of scalar iterations for
7481         fully-predicated loops.
7483 2019-03-18  Martin Jambor  <mjambor@suse.cz>
7485         PR tree-optimization/89546
7486         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
7487         any propagation to its children took place.
7489 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
7491         PR target/89627
7492         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
7493         parameter, and make use of it.
7494         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
7496 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
7498         * config/arc/arc.opt (mcode-density-frame): Get the inital value
7499         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
7500         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
7501         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
7502         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
7503         match what the ops is doing.
7504         (push_multi_fp_blink): Likewise.
7505         * config/arc/arc.c (arc_override_options): Enable enter/leave when
7506         compiling for size and elf target.
7507         (arc_save_callee_enter): Adjust note to match what enter/leave
7508         operation does.
7510 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
7512         * config/arc/arc.md (tst_movb): Fix constraint.
7514 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
7516         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
7518 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
7520         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
7521         * config/arc/arc.c (arc_conditional_register_usage): Remove all
7522         reg_alloc_order references.
7523         (size_alloc_order): Define.
7524         (arc_adjust_reg_alloc_order): New function.
7525         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
7526         order.
7527         (ADJUST_REG_ALLOC_ORDER): Define.
7528         (HONOR_REG_ALLOC_ORDER): Likewise.
7530 2019-03-18  Richard Biener  <rguenther@suse.de>
7532         PR target/87561
7533         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
7534         loads and stores a bit more.
7536 2019-03-18  Richard Biener  <rguenther@suse.de>
7538         PR target/87561
7539         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
7540         load pessimization to stores as well.
7542 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
7544         PR middle-end/86979
7545         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
7546         successor, use NULL as its av set.
7548 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
7550         PR rtl-optimization/89721
7551         * lra-constraints (invariant_p): Return false if side_effects_p holds.
7553 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7555         PR target/87532
7556         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7557         When handling vec_extract, use modular arithmetic to allow
7558         constant selectors greater than vector length.
7559         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
7560         V1TImode vectors to have constant selector values greater than 0.
7561         Use modular arithmetic to compute vector index.
7562         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
7563         index for in-memory vectors.  Correct code generation for
7564         in-register vectors.
7565         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
7566         compute index.
7568 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
7570         PR c++/88534
7571         PR c++/88537
7572         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
7573         VAR_DECL args.
7575 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
7577         PR c++/89709
7578         * tree.c (inchash::add_expr): Strip any location wrappers.
7579         * fold-const.c (operand_equal_p): Move stripping of location wrapper
7580         after hash verification.
7582         PR debug/89704
7583         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
7584         SIGN_EXTEND and ZERO_EXTEND.
7586 2019-03-14  Jason Merrill  <jason@redhat.com>
7587             Jakub Jelinek  <jakub@redhat.com>
7589         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
7590         than if is_empty (*slot).
7591         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
7592         existing elt and for elt removal.
7593         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
7594         of already removed elt.
7596 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
7598         PR target/89650
7599         * config/i386/i386.c (remove_partial_avx_dependency): Handle
7600         REG_EH_REGION note.
7602 2019-03-14  Martin Liska  <mliska@suse.cz>
7604         PR other/89712
7605         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
7607 2019-03-14  Richard Biener  <rguenther@suse.de>
7609         PR target/89711
7610         * config/i386/i386.c (make_resolver_func): Properly set
7611         DECL_CONTEXT on the RESULT_DECL.
7612         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
7614 2019-03-14  Richard Biener  <rguenther@suse.de>
7616         * gimple-pretty-print.c: Include cfgloop.h.
7617         (dump_gimple_phi): Adjust.
7618         (dump_gimple_bb_header): Dump loop header for GIMPLE.
7619         (pp_cfg_jump): Adjust.
7620         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
7621         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
7622         (lower_phi_internal_fn): Remove.
7623         (verify_gimple_call): Remove IFN_PHI special-casing.
7624         (dump_function_to_file): Dump IL state.
7625         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
7626         done to deal with PHI nodes being present in non-SSA state.
7628 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
7630         PR ipa/89684
7631         * multiple_target.c (create_dispatcher_calls): Change
7632         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
7633         In the node->iterate_referring loop, push *ref rather than ref, call
7634         ref->remove_reference () and always pass 0 to iterate_referring.
7636         PR rtl-optimization/89679
7637         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
7638         would contain a paradoxical SUBREG.
7640 2019-03-14  Richard Biener  <rguenther@suse.de>
7642         PR tree-optimization/89710
7643         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
7644         safe_dyn_cast.
7646 2019-03-14  Martin Liska  <mliska@suse.cz>
7648         * coverage.c (coverage_begin_function): Stream also
7649         end_column.
7650         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
7651         documentation about function declaration location.
7652         * gcov-dump.c (tag_function): Print whole range
7653         of function declaration.
7654         * gcov.c (struct function_info): Add end_column field.
7655         (function_info::function_info): Initialize it.
7656         (output_json_intermediate_file): Output {start,end}_column
7657         fields.
7658         (read_graph_file): Read end_column.
7660 2019-03-14  Richard Biener  <rguenther@suse.de>
7662         PR middle-end/89698
7663         * fold-const.c (operand_equal_p): For INDIRECT_REF check
7664         that the access types are similar.
7666 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
7668         PR tree-optimization/89703
7669         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
7670         aren't compatible also with builtin_decl_explicit.  Check pure
7671         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
7672         and BUILT_IN_STPNCPY{,_CHK}.
7674 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
7676         PR target/89523
7677         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
7678         addr32 prefix to VSIB address for X32.
7679         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
7680         "%M2" to opcode.
7681         (*avx512pf_gatherpf<mode>df_mask): Likewise.
7682         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
7683         (*avx512pf_scatterpf<mode>df_mask): Likewise.
7684         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
7685         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
7686         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
7687         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
7688         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
7689         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
7690         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
7691         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
7692         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
7693         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
7694         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
7695         (*avx512f_scatterdi<mode>): Likewise.
7697 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
7699         PR target/85860
7700         * lra-constraints.c (inherit_in_ebb): Update
7701         potential_reload_hard_regs along with live_hard_regs.
7703 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
7705         PR debug/89498
7706         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
7707         DWARF_OFFSET_SIZE.
7708         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
7710 2019-03-13  Martin Sebor  <msebor@redhat.com>
7712         PR tree-optimization/89662
7713         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
7714         has a size.
7716 2019-03-13  Richard Biener  <rguenther@suse.de>
7718         PR middle-end/89677
7719         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
7720         throw FP expressions at tree-affine.
7722 2019-03-14  Richard Biener  <rguenther@suse.de>
7724         * tree-pretty-print.c (dump_generic_node): For -gimple properly
7725         dump negative integer constants using _Literal (type) -num.
7727 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
7729         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
7730         nonlocal_value member.
7732         PR middle-end/88588
7733         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
7734         (ipa_simd_modify_function_body): Handle PHIs.
7736 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
7738         * config/s390/s390.c (s390_option_override_internal): Use more
7739         aggressive inlining parameters.
7741 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
7743         * config/s390/3906.md: New file.
7744         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
7745         (LONGRUNNING_THRESHOLD): Remove.
7746         (MAX_SCHED_MIX_SCORE): Decrease.
7747         (MAX_SCHED_MIX_DISTANCE): Decrease.
7748         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
7749         (struct s390_sched_state): New struct to hold scheduling state.
7750         (S390_SCHED_STATE_NORMAL): Remove.
7751         (S390_SCHED_STATE_CRACKED): Remove.
7752         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
7753         (s390_get_sched_attrmask): Use new attribute.
7754         (s390_get_unit_mask): Use new units.
7755         (s390_is_fpd): New function.
7756         (s390_is_fxd): New function.
7757         (s390_is_longrunning): New function.
7758         (s390_sched_score): Use new functions.
7759         (s390_sched_reorder): Likewise.
7760         (s390_sched_variable_issue): Rework and use new functions.
7761         (s390_sched_init): Use new functions.
7762         * config/s390/s390.h (s390_tune_attr):  Add z14.
7763         * config/s390/s390.md: Add z14.
7765 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
7767         * config/s390/2964.md: Update pipeline description.
7768         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
7769         (LONGRUNNING_THRESHOLD): Remove.
7770         (LATENCY_FACTOR): Remove.
7771         (s390_get_unit_mask): Add unit.
7772         (s390_sched_score): Use fxd/fpd.
7773         (s390_sched_variable_issue): Use fxd/fpd.
7775 2019-03-12  Martin Liska  <mliska@suse.cz>
7777         * config/i386/i386.c: Reword an error message.
7779 2019-03-12  Martin Jambor  <mjambor@suse.cz>
7781         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
7782         terminate with newline.
7784 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
7786         PR target/52726
7787         * config/s390/s390.md (tabort): Use %wd instead of
7788         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
7789         letters and periods.
7790         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
7791         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
7792         's with %< and %>.
7794         PR middle-end/89663
7795         * builtins.c (expand_builtin_int_roundingfn,
7796         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
7797         gcc_unreachable if validate_arglist fails.
7799 2019-03-12  Richard Biener  <rguenther@suse.de>
7801         PR tree-optimization/89664
7802         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
7803         free the occurance tree after the early out.
7805 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
7807         PR middle-end/89655
7808         PR bootstrap/89656
7809         * vr-values.c (vr_values::update_value_range): If
7810         old_vr->varying_p (), don't update it, make new_vr also VARYING
7811         and return false.
7813 2019-03-11  Martin Liska  <mliska@suse.cz>
7815         * config/aarch64/aarch64.c (aarch64_override_options_internal):
7816         Fix double string quoting.
7818 2019-03-11  Martin Liska  <mliska@suse.cz>
7820         * collect-utils.c (collect_wait): Wrap apostrophes
7821         in gcc internal format with %'.
7822         * collect2.c (main): Likewise.
7823         (scan_prog_file): Likewise.
7824         (scan_libraries): Likewise.
7825         * config/i386/i386.c (ix86_expand_call): Likewise.
7826         (ix86_handle_interrupt_attribute): Likewise.
7827         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7828         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
7829         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
7830         * lto-wrapper.c (find_crtoffloadtable): Likewise.
7831         * symtab.c (symtab_node::verify_base): Likewise.
7832         * tree-cfg.c (verify_gimple_label): Likewise.
7833         * tree.c (verify_type_variant): Likewise.
7835 2019-03-11  Martin Liska  <mliska@suse.cz>
7837         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
7838         in a string format message and fix GNU coding style.
7839         (expand_builtin_set_thread_pointer): Likewise.
7840         * common/config/aarch64/aarch64-common.c
7841         (aarch64_rewrite_selected_cpu): Likewise.
7842         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
7843         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
7844         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
7845         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
7846         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
7847         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
7848         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
7849         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
7850         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
7851         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
7852         Likewise.
7853         * common/config/riscv/riscv-common.c
7854         (riscv_subset_list::parsing_subset_version): Likewise.
7855         (riscv_subset_list::parse_std_ext): Likewise.
7856         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
7857         (riscv_subset_list::parse): Likewise.
7858         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
7859         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
7860         (aarch64_override_options_internal): Likewise.
7861         (aarch64_validate_mcpu): Likewise.
7862         (aarch64_validate_march): Likewise.
7863         (aarch64_validate_mtune): Likewise.
7864         (aarch64_override_options): Likewise.
7865         * config/alpha/alpha.c (alpha_option_override): Likewise.
7866         * config/arc/arc.c (arc_init): Likewise.
7867         (parse_mrgf_banked_regs_option): Likewise.
7868         (arc_override_options): Likewise.
7869         (arc_expand_builtin_aligned): Likewise.
7870         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
7871         (arm_expand_builtin): Likewise.
7872         * config/arm/arm.c (arm_option_check_internal): Likewise.
7873         (arm_configure_build_target): Likewise.
7874         (arm_option_override): Likewise.
7875         (arm_options_perform_arch_sanity_checks): Likewise.
7876         (arm_handle_cmse_nonsecure_entry): Likewise.
7877         (arm_handle_cmse_nonsecure_call): Likewise.
7878         (arm_tls_referenced_p): Likewise.
7879         (thumb1_expand_prologue): Likewise.
7880         * config/avr/avr.c (avr_option_override): Likewise.
7881         * config/bfin/bfin.c (bfin_option_override): Likewise.
7882         * config/c6x/c6x.c (c6x_option_override): Likewise.
7883         * config/cr16/cr16.c (cr16_override_options): Likewise.
7884         * config/cris/cris.c (cris_option_override): Likewise.
7885         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
7886         * config/darwin-c.c (macosx_version_as_macro): Likewise.
7887         * config/darwin.c (darwin_override_options): Likewise.
7888         * config/frv/frv.c (frv_expand_builtin): Likewise.
7889         * config/h8300/h8300.c (h8300_option_override): Likewise.
7890         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
7891         (ix86_option_override_internal): Likewise.
7892         (warn_once_call_ms2sysv_xlogues): Likewise.
7893         (ix86_expand_prologue): Likewise.
7894         (split_stack_prologue_scratch_regno): Likewise.
7895         (ix86_warn_parameter_passing_abi): Likewise.
7896         * config/ia64/ia64.c (fix_range): Likewise.
7897         * config/m68k/m68k.c (m68k_option_override): Likewise.
7898         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
7899         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
7900         (mips_set_compression_mode): Likewise.
7901         * config/mmix/mmix.c (mmix_option_override): Likewise.
7902         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
7903         * config/msp430/msp430.c (msp430_option_override): Likewise.
7904         * config/nds32/nds32.c (nds32_option_override): Likewise.
7905         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
7906         (nios2_option_override): Likewise.
7907         (nios2_expand_custom_builtin): Likewise.
7908         * config/nvptx/mkoffload.c (main): Likewise.
7909         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
7910         * config/pa/pa.c (fix_range): Likewise.
7911         (pa_option_override): Likewise.
7912         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
7913         (riscv_option_override): Likewise.
7914         * config/rl78/rl78.c (rl78_option_override): Likewise.
7915         * config/rs6000/aix61.h: Likewise.
7916         * config/rs6000/aix71.h: Likewise.
7917         * config/rs6000/aix72.h: Likewise.
7918         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
7919         * config/rs6000/freebsd64.h: Likewise.
7920         * config/rs6000/linux64.h: Likewise.
7921         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
7922         (rs6000_expand_zeroop_builtin): Likewise.
7923         (rs6000_expand_mtfsb_builtin): Likewise.
7924         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
7925         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
7926         (rs6000_invalid_builtin): Likewise.
7927         (rs6000_expand_split_stack_prologue): Likewise.
7928         * config/rs6000/rtems.h: Likewise.
7929         * config/rx/rx.c (valid_psw_flag): Likewise.
7930         (rx_expand_builtin): Likewise.
7931         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7932         * config/s390/s390.c (s390_expand_builtin): Likewise.
7933         (s390_function_profiler): Likewise.
7934         (s390_option_override_internal): Likewise.
7935         (s390_option_override): Likewise.
7936         * config/sh/sh.c (sh_option_override): Likewise.
7937         (sh_builtin_saveregs): Likewise.
7938         (sh_fix_range): Likewise.
7939         * config/sh/vxworks.h: Likewise.
7940         * config/sparc/sparc.c (sparc_option_override): Likewise.
7941         * config/spu/spu.c (spu_option_override): Likewise.
7942         (fix_range): Likewise.
7943         * config/visium/visium.c (visium_option_override): Likewise.
7944         (visium_handle_interrupt_attr): Likewise.
7945         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
7946         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
7947         (dbg_cnt_process_opt): Likewise.
7948         * dwarf2out.c (output_dwarf_version): Likewise.
7949         * except.c (expand_eh_return): Likewise.
7950         * gcc.c (defined): Likewise.
7951         (driver_handle_option): Likewise.
7952         (process_command): Likewise.
7953         (compare_files): Likewise.
7954         (driver::prepare_infiles): Likewise.
7955         (driver::do_spec_on_infiles): Likewise.
7956         (driver::maybe_run_linker): Likewise.
7957         * omp-offload.c (oacc_parse_default_dims): Likewise.
7958         * opts-global.c (handle_common_deferred_options): Likewise.
7959         * opts.c (parse_sanitizer_options): Likewise.
7960         (common_handle_option): Likewise.
7961         (enable_warning_as_error): Likewise.
7962         * passes.c (enable_disable_pass): Likewise.
7963         * plugin.c (parse_plugin_arg_opt): Likewise.
7964         (default_plugin_dir_name): Likewise.
7965         * targhooks.c (default_expand_builtin_saveregs): Likewise.
7966         (default_pch_valid_p): Likewise.
7967         * toplev.c (init_asm_output): Likewise.
7968         (process_options): Likewise.
7969         (toplev::run_self_tests): Likewise.
7970         * tree-cfg.c (verify_gimple_call): Likewise.
7971         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
7972         (tree_inlinable_function_p): Likewise.
7973         * var-tracking.c (vt_find_locations): Likewise.
7975 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
7977         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
7978         only on the else branch.
7980 2019-03-11  Martin Liska  <mliska@suse.cz>
7982         * gcov.c (output_intermediate_json_line): Print function
7983         name of each line.
7984         (output_json_intermediate_file): Add new argument.
7985         * doc/gcov.texi: Document the change.
7987 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
7989         PR rtl-optimization/89588
7990         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
7991         explicit unrolling factor more robust.
7993 2019-03-11  Richard Biener  <rguenther@suse.de>
7995         PR tree-optimization/89649
7996         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
7997         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
7998         on the prolog and epilog loops.
7999         (vect_loop_versioning): Return copy of loop.
8000         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
8001         on the non-vectorized version of the loop.
8003 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
8005         PR target/68924
8006         * config/i386/sse.md (*vec_extractv2di_0_sse):
8007         Add (=r,x) alternative and corresponding splitter.
8009 2019-03-10  Martin Jambor  <mjambor@suse.cz>
8011         PR tree-optimization/85762
8012         PR tree-optimization/87008
8013         PR tree-optimization/85459
8014         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
8015         it points to if there is a type changing MEM_REF.  Adjust all callers.
8016         (build_accesses_from_assign): Disable total scalarization if
8017         contains_vce_or_bfcref_p returns true through the new parameter, for
8018         both rhs and lhs.
8020 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
8022         PR c/88568
8023         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
8024         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
8026         PR target/79645
8027         * common.opt (fdiagnostics-show-labels,
8028         fdiagnostics-show-line-numbers, fdiagnostics-format=,
8029         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
8030         gas-locview-support, ginline-points, ginternal-reset-location-views):
8031         Terminate description text with a dot.
8032         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
8033         * config/mcore/mcore.opt (m210, m340): Likewise.
8034         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
8035         mnops=): Start description text with a capital letter.
8036         * config/arc/arc.opt (msize-level=): Likewise.
8037         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
8038         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
8039         mnewlib): Likewise.
8040         * config/ft32/ft32.opt (msim): Likewise.
8041         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
8042         (mnodiv, mnopm): Terminate description text with a dot.
8043         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
8044         a colon.
8045         * config/i386/i386.opt (prefer_vector_width, instrument_return):
8046         Likewise.
8047         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
8048         text.
8050         PR rtl-optimization/89634
8051         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
8052         are modified in BB_END (e->src) instruction.
8054 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
8056         PR target/79926
8057         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
8058         messages more amenable to translation, and improve wording.
8060 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
8062         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
8063         ud- and du-chains between phases.
8065 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
8067         PR debug/89631
8068         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
8069         instead of POLY_INT_CST.
8071 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8073         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
8074         requirement.
8076 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
8078         PR target/68924
8079         PR target/78782
8080         PR target/87558
8081         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
8082         (_mm_storeu_si64): Ditto.
8084 2019-03-08  Martin Liska  <mliska@suse.cz>
8086         PR target/86952
8087         * config/i386/i386.c (ix86_option_override_internal): Disable
8088         jump tables when retpolines are used.
8090 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
8092         PR go/63560
8093         * ipa-split.c (execute_split_functions): Do not split
8094         'noinline' or 'section' function.
8096 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
8098         PR target/79846
8099         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
8100         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
8101         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
8103         PR ipa/80000
8104         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
8105         from diagnostics.  Formatting fixes.
8107         PR target/85665
8108         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
8109         warn_odr diagnostics.
8111         PR other/80058
8112         * lra-constraints.c (process_alt_operands): Avoid one space before
8113         " at the end of line and another after " on another line in a string
8114         literal.
8115         * attribs.c (handle_dll_attribute): Likewise.
8116         * config/avr/avr-devices.c (avr_texinfo): Likewise.
8118         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
8119         warning_at or inform messages in G_() if there is no ?:.
8121         PR tree-optimization/89550
8122         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
8123         returned true.  Formatting fixes.
8124         (expand_builtin_strnlen): Formatting fixes.
8125         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
8126         if warning_at returned true.
8127         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
8129 2019-03-08  Richard Biener  <rguenther@suse.de>
8131         PR middle-end/89578
8132         * cfgloop.h (struct loop): Add owned_clique field.
8133         * cfgloopmanip.c (copy_loop_info): Copy it.
8134         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
8135         cliques.
8136         * tree-inline.c (copy_loops): Remap owned_clique.
8137         * lto-streamer-in.c (input_cfg): Stream owned_clique.
8138         * lto-streamer-out.c (output_cfg): Likewise.
8140 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
8142         PR target/80190
8143         * config/darwin.c: Include intl.h.
8144         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
8145         composing the message out of two separate parts.
8147 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
8149         PR target/80003
8150         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
8151         doesn't start with a capital letter and doesn't end with a dot.
8152         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
8153         with a capital letter.
8154         (ix86_mangle_function_version_assembler_name): Likewise.
8155         (ix86_generate_version_dispatcher_body): Likewise.
8156         (fold_builtin_cpu): Likewise.
8157         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
8158         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
8159         translators, wrap full type name in %qs.
8161         PR translation/79999
8162         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
8163         depend clause with source (or sink) modifier.
8164         * omp-expand.c (expand_omp_ordered_sink): Likewise.
8166         PR target/89602
8167         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
8168         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
8169         (avx512f_load<mode>_mask): New define_expand.
8170         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
8171         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
8172         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
8173         __builtin_ia32_movess_mask): New builtins.
8174         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
8175         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
8176         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
8177         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
8179 2019-03-07  Martin Jambor  <mjambor@suse.cz>
8181         PR lto/87525
8182         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
8183         for extern inline functions.
8185 2019-03-07  Martin Jambor  <mjambor@suse.cz>
8187         PR ipa/88235
8188         * cgraph.h (cgraph_node): New inline method former_thunk_p.
8189         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
8190         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
8191         have multiple callees.  At the end check if declarations match as
8192         opposed to cgraph_nodes.
8194 2019-03-07  Martin Liska  <mliska@suse.cz>
8196         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
8197         which is equivalent to searching for this in clones chain.
8198         * symtab.c (symtab_node::verify_base): Similarly compare ASM
8199         names with a neighbour and special case first node in a chain.
8201 2019-01-25  Jason Merrill  <jason@redhat.com>
8203         PR c++/80916 - spurious "static but not defined" warning.
8204         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
8205         for an internal symbol with DECL_EXTERNAL.
8207 2019-04-07  Richard Biener  <rguenther@suse.de>
8209         PR middle-end/89618
8210         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
8211         * tree-inline.c (copy_loops): Simplify.
8213 2019-03-07  Martin Liska  <mliska@suse.cz>
8215         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
8217 2019-03-07  Richard Biener  <rguenther@suse.de>
8219         PR tree-optimization/89595
8220         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
8221         stmt iterator as reference, take boolean output parameter to
8222         indicate whether the stmt was removed and thus the iterator
8223         already advanced.
8224         (dom_opt_dom_walker::before_dom_children): Re-iterate over
8225         stmts created by folding.
8227 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
8229         PR c++/89585
8230         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
8231         at toplevel.
8233 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
8235         PR rtl-optimization/88845
8236         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
8237         LRA.
8238         * lra.c (remove_scratches_1): New function.
8239         (remove_scratches): Use it.
8240         (lra_emit_move): Likewise.
8242 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
8244         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
8245         unaligned_access variable.
8246         * config/arc/arc.c (arc_override_options): Set unaligned access
8247         default on for HS CPUs.
8248         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
8250 2019-03-06  Martin Liska  <mliska@suse.cz>
8252         PR gcov-profile/89577
8253         * doc/gcov.texi: Prefer to use --coverage.
8254         * doc/sourcebuild.texi: Likewise.
8256 2019-03-02  Jason Merrill  <jason@redhat.com>
8258         PR c++/86485 - -Wmaybe-unused with empty class ?:
8259         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
8261 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
8263         PR target/89587
8264         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
8265         if_multiarch.
8267         PR middle-end/89590
8268         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
8269         exactly one argument.
8271 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
8272             Richard Sandiford  <richard.sandiford@arm.com>
8274         PR tree-optimization/89570
8275         * match.pd (vec_cond into cond_op simplification): Don't use
8276         get_conditional_internal_fn, use as_internal_fn (cond_op).
8278 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
8280         PR target/89222
8281         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
8282         to decide when to split off a non-zero offset from a symbol.
8283         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
8284         in function symbols.
8286 2019-03-05  Richard Biener  <rguenther@suse.de>
8288         PR tree-optimization/89594
8289         * tree-if-conv.c (pass_if_conversion::execute): Handle
8290         case where .LOOP_VECTORIZED_FUNCTION was removed.
8292 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
8294         PR bootstrap/89560
8295         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
8296         instead alloca it only when needed with the needed size.
8298         PR tree-optimization/89570
8299         * match.pd (vec_cond into cond_op simplification): Guard with
8300         vectorized_internal_fn_supported_p test and #if GIMPLE.
8302         PR tree-optimization/89566
8303         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
8304         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
8305         Punt if get_user_idx_format succeeds, but idx_format argument is
8306         not provided or doesn't have pointer type, or if idx_args is above
8307         number of provided arguments.
8309 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
8311         PR tree-optimization/89437
8312         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
8314 2019-03-04  Richard Biener  <rguenther@suse.de>
8316         PR middle-end/89572
8317         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
8318         safe_dyn_cast.
8320 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
8322         PR tree-optimization/89487
8323         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
8324         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
8325         (distribute_loop): Don't do runtime alias check if there is non-
8326         addressable data reference.
8327         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
8328         is a register variable.
8330 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
8332         PR target/89506
8333         * config/arm/arm.md (cmpsi2_addneg): Use
8334         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
8335         If operands[2] is 0 or INT_MIN, force use of subs.
8336         (*compare_scc splitter): Use gen_int_mode.
8337         (*negscc): Likewise.
8338         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
8340 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
8341             Monk Chiang  <sh.chiang04@gmail.com>
8343         * common/config/riscv/riscv-common.c: Include sstream.
8344         (riscv_subset_list::to_string): New.
8345         (riscv_arch_str): Likewise.
8346         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
8347         * config.in: Regen.
8348         * config/riscv/riscv-protos.h (riscv_arch_str): New.
8349         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
8350         (riscv_emit_attribute): New.
8351         (riscv_file_start): Emit attribute if needed.
8352         (riscv_option_override): Init riscv_emit_attribute_p.
8353         * config/riscv/riscv.opt (mriscv-attribute): New option.
8354         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
8355         * configure: Regen.
8356         * doc/install.texi: Document --with-riscv-attribute.
8357         * doc/invoke.texi: Document -mriscv-attribute.
8359         * common/config/riscv/riscv-common.c:
8360         Include config/riscv/riscv-protos.h.
8361         (INCLUDE_STRING): Defined.
8362         (RISCV_DONT_CARE_VERSION): Defined.
8363         (riscv_subset_t): Declare.
8364         (riscv_subset_t::riscv_subset_t): New.
8365         (riscv_subset_list): Declare.
8366         (riscv_subset_list::riscv_subset_list): New.
8367         (riscv_subset_list::~riscv_subset_list): Likewise.
8368         (riscv_subset_list::parsing_subset_version): Likewise.
8369         (riscv_subset_list::parse_std_ext): Likewise.
8370         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
8371         (riscv_subset_list::add): Likewise.
8372         (riscv_subset_list::lookup): Likewise.
8373         (riscv_subset_list::xlen): Likewise.
8374         (riscv_subset_list::parse): Likewise.
8375         (riscv_supported_std_ext): Likewise.
8376         (current_subset_list): Likewise.
8377         (riscv_parse_arch_string): Using riscv_subset_list::parse to
8378         parse.
8380 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
8382         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8383         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
8384         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
8386 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
8388         PR rtl-optimization/85899
8389         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
8390         fallthru edges leading to the exit block.
8392 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
8394         PR target/89517
8395         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
8396         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
8398 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
8400         PR tree-optimization/89535
8401         * tree-vect-stmts.c (vectorizable_call): Record the vector types
8402         for each operand.  Calculate the fallback choice for mask operands
8403         and pass it to vect_get_vec_def_for_operand.
8405 2019-03-01  Richard Biener  <rguenther@suse.de>
8407         PR middle-end/89541
8408         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
8409         get virtual operands.
8410         (get_expr_operands): Handle CONST_DECL like other decls.
8412 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
8414         PR middle-end/89503
8415         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
8416         on DECL_P and EXPR_P.
8418 2019-03-01  Richard Biener  <rguenther@suse.de>
8420         PR middle-end/89497
8421         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
8422         argument, defaulted to zero.
8423         * passes.c (execute_function_todo): Pass down SSA update flags
8424         to cleanup_tree_cfg.
8425         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
8426         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
8427         form if requested.
8428         (cleanup_tree_cfg): Get and pass down SSA update flags.
8430 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
8432         PR bootstrap/89539
8433         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
8434         early_lto_debug argument.
8436 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8438         PR tree-optimization/89536
8439         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
8440         only whether bit #0 of the value is 0 instead of the entire value.
8442 2019-02-28  Marek Polacek  <polacek@redhat.com>
8444         PR c++/87068 - missing diagnostic with fallthrough statement.
8445         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
8446         at the end of a seq, save its location to walk_stmt_info.
8447         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
8448         a switch.
8450 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
8452         PR lto/88585
8453         * tree.c (find_atomic_core_type): Move ahead in file.
8454         (check_base_type): Correctly compare alignments of atomic types.
8456 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
8458         PR target/89455
8459         * config/i386/i386.c (get_builtin_code_for_version): Identify
8460         Westmere from PCLMUL, instead of AES.
8462 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
8464         PR target/89434
8465         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
8466         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
8467         -UINTVAL (...).
8469 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
8471         PR target/88530
8472         * config/aarch64/aarch64-option-extensions.def: Document it.
8473         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
8474         if empty hwcaps.
8476 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
8478         PR c/89520
8479         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
8480         builtins if they don't have a single scalar floating point argument.
8481         Formatting fixes.
8483 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8485         PR rtl-optimization/89490
8486         * varasm.c (get_block_for_section): Bail out for mergeable sections.
8487         (default_use_anchors_for_symbol_p, output_object_block): Assert the
8488         block section is not mergeable.
8490 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
8492         PR target/70341
8493         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
8494         old define_insn to ...
8495         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
8496         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
8497         Rename old define_insn to ...
8498         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
8499         (thumb2_casesi_internal_pic): New define_expand.  Rename old
8500         define_insn to ...
8501         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
8502         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
8503         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
8505 2019-02-27  Richard Biener  <rguenther@suse.de>
8507         PR debug/88878
8508         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
8510 2019-02-27  Richard Biener  <rguenther@suse.de>
8512         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
8513         building.
8515 2019-02-27  Richard Biener  <rguenther@suse.de>
8517         PR debug/88878
8518         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
8519         parameter, prefix section name with .gnu.debuglto_ if true.
8520         (dwarf2out_finish): Pass false to output_comdat_type_unit.
8521         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
8523 2019-02-27  Richard Biener  <rguenther@suse.de>
8525         PR debug/89514
8526         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
8527         rather than on use_debug_types, doing what output_die does.
8528         (value_format): Likewise.
8530 2019-02-27  Martin Jambor  <mjambor@suse.cz>
8531             Martin Sebor  <msebor@redhat.com>
8533         * doc/invoke.texi (Warning Options): Reword description of
8534         -Wno-absolute-value.
8536 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
8538         PR tree-optimization/89280
8539         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
8540         builtin_setjmp_setup_bb): New functions.
8541         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
8542         When visiting __builtin_setjmp_setup block, queue in special
8543         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
8544         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
8545         from visited after the loop if they don't have any visited successor
8546         blocks.
8548 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
8550         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
8551         New function.
8552         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
8554 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
8556         PR c++/89507
8557         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
8558         with types other than sizetype/ssizetype.
8560 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
8562         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
8563         (enum sparc_processor_type): ...this.
8564         (enum sparc_code_model_type): New enumeration type.
8565         (enum sparc_memory_model_type): Tweak comments.
8566         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
8567         (mtune): Likewise.
8568         (mcmodel): Use sparc_code_model enumeration and variable.
8569         (sparc_code_model): New enumeration.
8570         (mdebug): Add Undocumented marker.
8571         * config/sparc/sparc.h (enum cmodel): Delete.
8572         (sparc_cmodel): Likewise.
8573         (TARGET_CM_MEDLOW): Adjust to above renaming.
8574         (TARGET_CM_MEDMID): Likewise.
8575         (TARGET_CM_MEDANY): Likewise.
8576         (TARGET_CM_EMBMEDANY): Likewise.
8577         * config/sparc/sparc.c (sparc_cmodel): Delete.
8578         (sparc_option_override): Remove string/value mapping support for the
8579         code model.  Move code and memory model support to after the handling
8580         of target flags.  Do private machine setup last.
8581         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
8582         (sparc_legitimize_reload_address): Likewise.
8583         (sparc_output_mi_thunk): Likewise.
8584         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
8586 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
8588         PR tree-optimization/89500
8589         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
8590         (handle_builtin_strlen): Remove noncst_bound variable.  Always
8591         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
8592         cst if the first cst bytes starting at x are known to be non-zero,
8593         even if the string is not zero terminated.  Don't try to modify
8594         *si for strnlen.  Update strlen_to_stridx only for strlen or if
8595         we can prove strnlen returns the same value as strlen would.
8597 2019-02-26  Martin Liska  <mliska@suse.cz>
8599         * alloc-pool.h (struct pool_usage): Remove extra
8600         print_dash_line.
8601         * bitmap.h (struct bitmap_usage): Likewise.
8602         * ggc-common.c (struct ggc_usage): Likewise.
8603         * mem-stats.h (struct mem_usage): Likewise.
8604         (mem_alloc_description::dump): Print dash lines
8605         here and repeat header at the end of a table report.
8606         It's then more readable.
8607         * tree-phinodes.c (phinodes_print_statistics): Make
8608         horizontal alignment.
8609         * tree-ssanames.c (ssanames_print_statistics): Likewise.
8610         * vec.c (struct vec_usage): Remove extra print_dash_line.
8611         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
8613 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
8615         * doc/extend.texi (__builtin_object_size):
8616         Use @pxref instead of @xref inside parenthesis.
8617         (__builtin_has_attribute): Add missing comma after @xref.
8618         (__builtin_object_size): Ditto.
8619         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
8620         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
8621         in the list.
8623 2019-02-26  Jeff Law  <law@redhat.com>
8625         PR rtl-optimization/87761
8626         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
8627         detect obviously dead insns and delete them.
8629 2019-02-26  Richard Biener  <rguenther@suse.de>
8631         PR tree-optimization/89505
8632         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
8633         to handle restrict pointed-to vars with multiple subvars
8634         correctly.
8636 2019-02-26  Richard Biener  <rguenther@suse.de>
8638         PR tree-optimization/89489
8639         * tree-parloops.c (create_loop_fn): Copy over last_clique.
8641 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
8643         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
8644         and move around comment.
8645         <BIT_AND_EXPR>: Likewise.
8646         <BIT_NOT_EXPR>: Add specific handling for boolean types.
8648 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
8650         PR target/89474
8651         * config/i386/i386.c (remove_partial_avx_dependency): Call
8652         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
8653         after changing possibly many instructions to use that pseudo.  Fix up
8654         insertion of v4sf_const0 setter at the start of bb.
8656 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
8658         PR c/80409
8659         * doc/extend.texi (Variadic Pointer Args): New section.
8661 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
8662             Martin Sebor  <msebor@gmail.com>
8664         * common.opt (Wattribute-alias): Likewise.
8665         * doc/invoke.texi (Option Summary): List general form of
8666         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
8667         (-Wmissing-attributes): Invert entry, rewrite and correct default.
8668         Add cross-references.
8669         (-Wattribute-alias): Rewrite and correct default.  Mention
8670         considered attributes (same as for -Wmissing-attributes).
8672 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
8674         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
8675         (_mm_cvtpd_ps): Likewise.
8676         (_mm_cvttpd_epi32): Likewise.
8678         PR target/89338
8679         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
8680         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
8682         PR target/89339
8683         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
8685 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
8687         PR target/88530
8688         * common/config/aarch64/aarch64-common.c
8689         (struct aarch64_option_extension): Add is_synthetic.
8690         (all_extensions): Use it.
8691         (TARGET_OPTION_INIT_STRUCT): Define hook.
8692         (struct gcc_targetm_common): Moved to end.
8693         (all_extensions_by_on): New.
8694         (opt_ext_cmp, typedef opt_ext): New.
8695         (aarch64_option_init_struct): New.
8696         (aarch64_contains_opt): New.
8697         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
8698         * config/aarch64/aarch64-option-extensions.def
8699         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
8700         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
8701         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
8702         Set is_synthetic to false.
8703         (crypto): Set is_synthetic to true.
8704         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
8705         SYNTHETIC.
8707 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
8709         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
8710         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
8711         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
8712         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
8713         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
8714         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
8715         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
8716         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
8717         Rename ...
8718         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
8719         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
8720         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
8721         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
8722         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
8723         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
8724         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
8725         vfmlsl_laneq_high_f16): ... To this.
8726         * config/arm/neon.md: Update comments.
8728 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
8730         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
8731         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
8732         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
8733         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
8734         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
8735         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
8736         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
8737         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
8738         Rename ...
8739         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
8740         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
8741         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
8742         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
8743         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
8744         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
8745         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
8746         vfmlslq_laneq_high_f16): ... To this.
8748 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
8750         PR rtl-optimization/86096
8751         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
8752         comparing mw_order values.
8754 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
8756         PR target/89434
8757         * config/arm/arm.md (*subsi3_carryin_const): Use
8758         arm_neg_immediate_operand predicate instead of
8759         arm_not_immediate_operand, "L" constraint instead of "K" and
8760         print it using %n2 instead of %B2.
8761         (*subsi3_carryin_const0): New define_insn.
8762         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
8763         instead of arm_not_operand and "I" constraint instead of "K" and
8764         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
8765         another match_operand and in the condition check that it is negation
8766         of operands[2].
8767         (*subsi3_carryin_compare_const0): New define_ins.
8768         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
8769         *subsi3_carryin_const.
8770         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
8771         split into *subsi3_carryin_compare_const0 if the highpart is zero.
8773         PR target/89438
8774         * config/arm.vfp.md (*negdf2_vfp): Use
8775         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
8776         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
8778 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
8780         PR rtl-optimization/89445
8781         * simplify-rtx.c (simplify_ternary_operation): Don't use
8782         simplify_merge_mask on operands that may trap.
8783         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
8784         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
8785         second operand is CONST_VECTOR, check if any element could be zero.
8786         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
8787         their operands can trap.
8789 2019-02-23  Martin Sebor  <msebor@redhat.com>
8791         * gimple-ssa-sprintf.c (target_strtol): Rename...
8792         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
8793         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
8794         check for range error.
8796 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
8798         PR driver/69471
8799         * opts-common.c (prune_options): Also prune joined switches
8800         with Negative and RejectNegative.
8801         * config/i386/i386.opt (march=): Add Negative(march=).
8802         (mtune=): Add Negative(mtune=).
8803         * doc/options.texi: Document Negative used together with Joined
8804         and RejectNegative.
8806 2019-02-22  Martin Sebor  <msebor@redhat.com>
8808         * doc/extend.texi (Other Builtins): Add
8809         __builtin_is_constant_evaluated.
8811 2019-02-22  Richard Biener  <rguenther@suse.de>
8813         PR tree-optimization/87609
8814         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
8816 2019-02-22  Jeff Law  <law@redhat.com>
8818         PR rtl-optimization/87761
8819         * config/mips/mips.md: Add new combiner pattern to recognize
8820         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
8822 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
8824         PR target/89324
8825         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
8826         destination register in peepholes generating patterns for ADDS/SUBS.
8827         (add<mode>3_compare0,
8828         *addsi3_compare0_uxtw, add<mode>3_compareC,
8829         add<mode>3_compareV_imm, add<mode>3_compareV,
8830         *adds_<optab><ALLX:mode>_<GPI:mode>,
8831         *subs_<optab><ALLX:mode>_<GPI:mode>,
8832         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
8833         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
8834         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
8835         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
8836         sub<mode>3_compare1): Allow stack pointer for source register.
8837         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
8839 2019-02-22  Martin Sebor  <msebor@redhat.com>
8841         PR tree-optimization/88993
8842         PR tree-optimization/88853
8843         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
8844         New helper.
8845         (sprintf_dom_walker::call_info::is_string_func): New helper.
8846         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
8847         for formatted string functions.
8848         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
8850 2019-02-22  Martin Sebor  <msebor@redhat.com>
8852         PR c/89425
8853         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
8854         unreachable subexpressions.
8856 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
8857             Hongtao Liu  <hongtao.liu@intel.com>
8858             Sunil K Pandey  <sunil.k.pandey@intel.com>
8860         PR target/87007
8861         * config/i386/i386-passes.def: Add
8862         pass_remove_partial_avx_dependency.
8863         * config/i386/i386-protos.h
8864         (make_pass_remove_partial_avx_dependency): New.
8865         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
8866         New function.
8867         (pass_data_remove_partial_avx_dependency): New.
8868         (pass_remove_partial_avx_dependency): Likewise.
8869         (make_pass_remove_partial_avx_dependency): Likewise.
8870         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
8871         (*extendsfdf2): Add avx_partial_xmm_update.
8872         (truncdfsf2): Likewise.
8873         (*float<SWI48:mode><MODEF:mode>2): Likewise.
8874         (SF/DF conversion splitters): Disabled for TARGET_AVX.
8876 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
8878         PR middle-end/85598
8879         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
8880         analysis for pass.
8882 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
8884         PR target/89444
8885         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
8886         (PTA_SKYLAKE): Add PTA_AES.
8887         (PTA_GOLDMONT): Likewise.
8889 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
8891         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
8892         instruction if enabled.
8893         (aarch64_override_options): Remove reference to return address key.
8895 2019-02-22  Richard Biener  <rguenther@suse.de>
8897         PR tree-optimization/89440
8898         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
8899         not necessary assert.
8901 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
8903         PR fortran/72741
8904         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
8905         (oacc_replace_fn_attrib_attr): ... this new function.
8906         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
8907         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
8909 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8911         * config/arm/arm-cpus.in (ares): Rename to...
8912         (neoverse-n1): ... This.  Add ares as alias.
8913         * config/arm/arm-tables.opt: Regenerate.
8914         * config/arm/arm-tune.md: Likewise.
8915         * doc/invoke.txt (ARM Options): Document neoverse-n1.
8917 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8919         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
8920         * config/aarch64/aarch64-tune.md: Regenerate.
8921         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
8923 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8925         * config/aarch64/aarch64.c (ares_tunings): Rename to...
8926         (neoversen1_tunings): ... This.
8927         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
8928         (neoverse-n1): New CPU.
8929         * config/aarch64/aarch64-tune.md: Regenerate.
8930         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
8932 2019-02-22  Richard Biener  <rguenther@suse.de>
8934         PR middle-end/87609
8935         * cfghooks.h (dependence_hash): New typedef.
8936         (struct copy_bb_data): New type.
8937         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
8938         (duplicate_block): Likewise.
8939         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
8940         (copy_bbs): Create and pass down copy_bb_data.
8941         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
8942         (rtl_duplicate_bb): Likewise.
8943         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
8944         remap dependence info.
8946 2019-02-22  Richard Biener  <rguenther@suse.de>
8948         PR tree-optimization/87609
8949         * tree-core.h (tree_base): Document special clique values.
8950         * tree-inline.c (remap_dependence_clique): Do not use the
8951         special clique value of one.
8952         (maybe_set_dependence_info): Use clique one.
8953         (clear_dependence_clique): New callback.
8954         (compute_dependence_clique): Clear clique one from all refs
8955         before assigning it (again).
8957 2019-02-21  Martin Sebor  <msebor@redhat.com>
8959         * doc/extend.texi (__clear_cache): Correct signature.
8961 2019-02-21  Ian Lance Taylor  <iant@golang.org>
8963         PR go/89170
8964         * varasm.c (decode_addr_const): Call lookup_constant_def rather
8965         than output_constant_def.
8966         (add_constant_to_table): New static function.
8967         (output_constant_def): Call add_constant_to_table.
8968         (tree_output_constant_def): Likewise.
8970 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
8972         PR c++/89285
8973         * builtins.c (fold_builtin_arith_overflow): If first two args are
8974         INTEGER_CSTs, set intres and ovfres to constants rather than calls
8975         to ifn.
8977 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
8979         PR target/87412
8980         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
8981         error for -mindirect-branch/-mfunction-return with incompatible
8982         -fcf-protection.
8984 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
8986         PR bootstrap/88714
8987         * constraints.md (q): Remove.
8988         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
8989         instead of q.
8991 2019-02-21  Martin Jambor  <mjambor@suse.cz>
8993         PR hsa/89302
8994         * omp-general.c (omp_extract_for_data): Removed a duplicate call
8995         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
8996         (omp_adjust_for_condition): ...here.  Added necessary parameters.
8997         * omp-general.h (omp_adjust_for_condition): Updated declaration.
8998         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
8999         proper values to new parameters of omp_adjust_for_condition.
9001 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
9003         PR middle-end/89412
9004         * expr.c (expand_assignment): If result is a MEM, use change_address
9005         instead of simplify_gen_subreg.
9007 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
9008             David Malcolm  <dmalcolm@redhat.com>
9010         PR middle-end/89091
9011         * fold-const.c (decode_field_reference): Return NULL_TREE if
9012         lang_hooks.types.type_for_size returns NULL.  Check it before
9013         overwriting *exp_.  Use return NULL_TREE instead of return 0.
9015 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
9017         PR middle-end/88074
9018         PR middle-end/89415
9019         * toplev.c (do_compile): Double the emin/emax exponents to workaround
9020         buggy mpc_norm.
9022 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
9024         PR target/89397
9025         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
9026         TARGET_SSE in addition to TARGET_SSE_MATH.
9028         (ix86_excess_precision): Ditto.
9029         (ix86_float_exceptions_rounding_supported_p): Ditto.
9030         (use_rsqrt_p): Ditto.
9031         * config/i386/sse.md (rsqrt<mode>2): Ditto.
9033 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
9035         PR c/89410
9036         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
9037         linenum_arith_t when determining if two adjacent line spans are
9038         close enough to merge.
9039         (diagnostic_show_locus): Use linenum_arith_t when iterating over
9040         lines within each line_span.
9042 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
9044         PR target/86487
9045         * lra-constraints.c(uses_hard_regs_p): Fix handling of
9046         paradoxical SUBREGS.
9048 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
9050         PR target/88100
9051         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
9052         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
9053         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
9054         range checking it.
9056 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
9058         * config/gcn/gcn.c (print_operand): Fix typo.
9060 2019-02-19  Richard Biener  <rguenther@suse.de>
9062         PR middle-end/88074
9063         * toplev.c (do_compile): Initialize mpfr's exponent range
9064         based on available float modes.
9066 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
9068         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
9069         as long as the epilogue isn't completed.
9071 2019-02-18  Martin Sebor  <msebor@redhat.com>
9073         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
9074         __has_cpp_attribute, and __has_include.
9076 2019-02-18  Martin Sebor  <msebor@redhat.com>
9078         * doc/invoke.texi (-Wreturn-type): Correct and expand.
9080 2019-02-18  Martin Sebor  <msebor@redhat.com>
9082         PR middle-end/89294
9083         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
9084         expression.
9085         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
9087 2019-02-18  Richard Biener  <rguenther@suse.de>
9089         PR tree-optimization/89296
9090         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
9091         of no-warning flag to cases that might emit the bogus warning.
9093 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
9095         PR bootstrap/88714
9096         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
9097         "q" constraint.
9098         * config/arm/vfp.md (*movdi_vfp): Likewise.
9099         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
9100         "q" constraint for operands[0].
9102         PR target/89369
9103         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
9104         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
9105         pattern in a temporary buffer.
9106         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
9107         than 64-operands[2].
9109         PR target/89361
9110         * config/s390/s390.c (s390_indirect_branch_attrvalue,
9111         s390_indirect_branch_settings): Define unconditionally.
9112         (s390_set_current_function): Likewise, but guard the whole body except
9113         the s390_indirect_branch_settings call with
9114         #if S390_USE_TARGET_ATTRIBUTE.
9115         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
9117         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
9118         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
9119         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
9120         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
9121         HOST_WIDE_INT_1U instead of 1ULL.
9122         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
9123         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
9124         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
9125         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
9126         instead of 1UL.
9127         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
9128         instead of 1ul.
9130 2019-02-18  Martin Jambor  <mjambor@suse.cz>
9132         PR tree-optimization/89209
9133         * tree-sra.c (create_access_replacement): New optional parameter
9134         reg_tree.  Use it as a type if non-NULL and access type is not of
9135         a register type.
9136         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
9137         to create_access_replacement.
9138         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
9139         Check lacc is non-NULL before attempting to re-create it on the RHS.
9141 2019-02-18  Martin Liska  <mliska@suse.cz>
9143         PR ipa/89306
9144         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
9145         by default.
9146         (symbol_table::free_edge): Recycle m_summary_id.
9147         * cgraph.h (get_summary_id): New.
9148         (symbol_table::release_symbol): Set m_summary_id to -1
9149         by default.
9150         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
9151         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
9152         function_summary to fast_function_summary.
9153         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
9154         * ipa-pure-const.c (class funct_state_summary_t):
9155         Switch from function_summary to fast_function_summary.
9156         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
9157         (class ipa_ref_opt_summary_t): Switch from function_summary
9158         to fast_function_summary.
9159         * symbol-summary.h (class function_summary_base): New class
9160         that is created from base of former function_summary.
9161         (function_summary_base::unregister_hooks): New.
9162         (class function_summary): Inherit from function_summary_base.
9163         (class call_summary_base): New class
9164         that is created from base of former call_summary.
9165         (class call_summary): Inherit from call_summary_base.
9166         (struct is_same): New.
9167         (class fast_function_summary): New summary class.
9168         (class fast_call_summary): New summary class.
9169         * vec.h (vec_safe_grow_cleared): New function.
9171 2019-02-18  Martin Liska  <mliska@suse.cz>
9173         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
9174         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
9175         * doc/tm.texi: Document new target hook.
9176         * doc/tm.texi.in: Likewise.
9177         * target.def: Add new target macro.
9178         * gcc.c (find_fortran_preinclude_file): Do not search multilib
9179         suffixes.
9181 2019-02-17  Alan Modra  <amodra@gmail.com>
9183         PR target/89271
9184         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
9185         output reg on add insn.
9186         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
9188 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
9190         PR target/89372
9191         * config/i386/sse.md (ssedoublemode): Remove V4HI.
9192         (PMULHRSW): Likewise.
9193         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
9194         TARGET_AVX2.
9195         (ssse3_pmulhrswv4hi3): New expander.
9197 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
9199         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
9200         MMX.  Add isa attribute.
9202 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
9204         PR rtl-optimization/66152
9205         * builtins.h (c_readstr): Declare.
9206         * builtins.c (c_readstr): Remove forward declaration.  Add
9207         null_terminated_p argument, if false, read all bytes from the
9208         string instead of stopping after '\0'.
9209         * expr.c (string_cst_read_str): New function.
9210         (store_expr): Use string_cst_read_str instead of
9211         builtin_strncpy_read_str.  Try to store by pieces the whole
9212         exp_len first, and only if that fails, split it up into
9213         store by pieces followed by clear_storage.  Formatting fix.
9215         * config/i386/i386.md (*movqi_internal): Remove static from
9216         buf variable.  Use output_asm_insn (buf, operands); return "";
9217         instead of return buf;.
9218         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
9219         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
9220         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
9222 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
9224         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
9225         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
9226         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
9227         (CC1_SPEC): Likewise.
9228         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
9230 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
9232         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
9233         the base address on 64-bit strict-alignment platforms.
9235 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9237         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
9239 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
9241         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
9243 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
9245         PR rtl-optimization/88308
9246         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
9247         on copied instruction.
9249 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
9251         * final.c (insn_current_reference_address): Replace test on JUMP_P
9252         with test on jump_to_label_p.
9253         * config/visium/visium-passes.def: New file.
9254         * config/visium/t-visium (PASSES_EXTRA): Define.
9255         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
9256         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
9257         (TRAMPOLINE_ALIGNMENT): Define.
9258         * config/visium/visium.c (visium_option_override): Do not register
9259         the machine-specific reorg pass here.
9260         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
9261         for the GR6.
9262         (output_branch): Adjust threshold for long branch instruction.
9263         * config/visium/visium.md (cpu): Move around.
9264         (length): Adjust for the GR6.
9266 2019-02-15  Richard Biener  <rguenther@suse.de>
9267             Jakub Jelinek  <jakub@redhat.com>
9269         PR tree-optimization/89278
9270         * tree-loop-distribution.c: Include tree-eh.h.
9271         (generate_memset_builtin, generate_memcpy_builtin): Call
9272         rewrite_to_non_trapping_overflow on builtin->size before passing it
9273         to force_gimple_operand_gsi.
9275 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
9277         PR other/89342
9278         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
9279         optimize_debug.
9280         * opth-gen.awk: Likewise.
9282 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
9284         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
9285         Enable MMX, SSE and SSE2 by default.
9286         * config/i386/i386.c (ix86_option_override_internal): Do not
9287         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
9289 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
9291         PR rtl-optimization/89354
9292         * combine.c (make_extraction): Punt if extraction_mode is narrower
9293         than len bits.
9295 2019-02-14  Maya Rashish  <coypu@sdf.org>
9297         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
9298         * config/netbsd-d.c: New file.
9299         * config/t-netbsd: Add netbsd-d.o
9301 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
9303         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
9304         affects_type_identity to true for aarch64_vector_pcs.
9305         (aarch64_comp_type_attributes): New function.
9306         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
9308 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
9310         PR target/88850
9311         * config/arm/iterators.md (ANY64): Add V4HF.
9313 2019-02-14  Martin Liska  <mliska@suse.cz>
9315         PR rtl-optimization/89242
9316         * dce.c (delete_unmarked_insns): Call free_dominance_info we
9317         process a transformation.
9319 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
9321         PR tree-optimization/89314
9322         * fold-const.c (fold_binary_loc): Cast strlen argument to
9323         const char * before dereferencing it.  Formatting fixes.
9325         PR middle-end/89284
9326         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
9328 2019-02-13  Ian Lance Taylor  <iant@golang.org>
9330         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
9331         and set current index for other optimizations.
9333 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
9335         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
9336         nonimmediate_operand as operand 2 predicate.
9337         (vec_set<VF2_512_256:mode>_0): Ditto.
9338         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
9339         (*vec_concatv2si): Remove alternative 2.
9340         (*vec_concatv4si_0): Use vm constraint for alternative 0.
9341         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
9342         (vec_concatv2di): Split alternatives 4,5,6 to ...
9343         (*vec_concatv2di_0) ... new pattern.
9345 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
9347         PR target/89190
9348         * config/arm/arm.c (ldm_stm_operation_p) Set
9349         addr_reg_in_reglist correctly for first register.
9350         (load_multiple_sequence): Remove dead base check.
9351         (gen_ldm_seq): Correctly set write_back for Thumb-1.
9353 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
9355         PR target/88847
9356         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
9357         Expose as @aarch64_pred_mov.
9358         * config/aarch64/aarch64.c (aarch64_classify_address):
9359         Use expand_insn which legitimizes operands.
9361 2019-02-13  Martin Liska  <mliska@suse.cz>
9363         * builtins.h (expand_builtin_with_bounds): Remove declaration.
9364         * calls.c (struct arg_data): Remove special_slot, pointer_arg
9365         and pointer_offset fields.
9366         (initialize_argument_information): Remove usage of dead
9367         fields.
9368         * cgraph.h (struct cgraph_thunk_info): Remove
9369         add_pointer_bounds_args.
9370         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
9371         fields.
9372         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
9373         fields.
9374         * config/i386/i386.c (ix86_function_arg_advance): Remove
9375         unrelated comment.
9376         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
9377         (def_builtin):  Remove usage of dead
9378         fields.
9379         (ix86_add_new_builtins): Likewise.
9380         * ipa-fnsummary.c (compute_fn_summary): Likewise.
9381         * ipa-icf.c (sem_function::equals_wpa): Likewise.
9382         (sem_function::init): Likewise.
9383         (sem_variable::merge): Likewise.
9384         * ipa-visibility.c (function_and_variable_visibility): Likewise.
9385         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9386         * lto-cgraph.c (lto_output_node): Likewise.
9387         (lto_output_varpool_node): Likewise.
9388         (input_node): Likewise.
9389         (input_varpool_node): Likewise.
9390         * lto-streamer-out.c (lto_output): Likewise.
9391         * tree-inline.c (expand_call_inline): Remove usage of
9392         assign_stmts.
9393         * tree-inline.h (struct copy_body_data): Likewise.
9394         * varpool.c (varpool_node::dump): Likewise.
9396 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
9398         PR middle-end/89303
9399         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
9400         into pt->vars_contains_escaped_heap instead of setting
9401         pt->vars_contains_escaped_heap to it.
9403         PR middle-end/89281
9404         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
9405         INTVAL (size), compare it to GET_MODE_MASK instead of
9406         1 << GET_MODE_BITSIZE.
9408         PR target/89290
9409         * config/i386/predicates.md (x86_64_immediate_operand): Allow
9410         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
9411         -mcmodel=large.
9413 2019-02-13  Martin Liska  <mliska@suse.cz>
9415         PR lto/88858
9416         * cfgrtl.c (remove_barriers_from_footer): New function.
9417         (try_redirect_by_replacing_jump): Use it.
9418         (cfg_layout_redirect_edge_and_branch): Likewise.
9420 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
9422         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
9423         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
9424         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
9425         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
9426         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
9427         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
9428         New BU_CRYPTO_2.
9429         * config/rs6000/rs6000.c (builtin_function_type)
9430         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
9431         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
9432         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
9433         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
9434         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
9436 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
9438         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
9439         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
9441 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
9443         PR target/89229
9444         * config/i386/i386.md (*movoi_internal_avx): Revert revision
9445         268678 and revision 268657.
9446         (*movti_internal): Likewise.
9448 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
9450         PR target/89233
9451         * config/s390/s390.c (s390_decompose_address): Update comment.
9452         (s390_check_qrst_address): Reject invalid address forms after
9453         LRA.
9455 2019-02-12  Martin Liska  <mliska@suse.cz>
9457         PR lto/88876
9458         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
9459         we need default values of funct_state for a function that
9460         is not optimized.
9462 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
9464         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
9465         the object to pick the size of stores on strict-alignment platforms.
9467         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
9468         (*movdi_insn_sp32): Likewise.
9469         (*movdi_insn_sp64): Likewise.
9471 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
9473         PR lto/88677
9474         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
9475         types that needs constructiong.
9476         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
9478 2019-02-12  Richard Biener  <rguenther@suse.de>
9480         PR tree-optimization/89253
9481         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
9482         duplicate the loop.
9484 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
9486         PR lto/88147
9487         * input.c (selftest::test_line_offset_overflow): New selftest.
9488         (selftest::input_c_tests): Call it.
9490 2019-02-11  Martin Sebor  <msebor@redhat.com>
9492         PR tree-optimization/88771
9493         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
9494         when -Wstringop-overflow is set.
9495         (builtin_memref::builtin_memref): Adjust excessive upper bound
9496         only when lower bound is not excessive.
9497         (maybe_diag_overlap): Detect and diagnose excessive bounds via
9498         -Wstringop-ovefflow.
9499         (maybe_diag_offset_bounds): Rename...
9500         (maybe_diag_access_bounds): ...to this.
9501         (check_bounds_or_overlap): Adjust for name change above.
9503 2019-02-11  Martin Sebor  <msebor@redhat.com>
9505         PR c++/87996
9506         * builtins.c (max_object_size): Move from here...
9507         * builtins.h (max_object_size): ...and here...
9508         * tree.c (max_object_size): ...to here...
9509         * tree.h (max_object_size): ...and here.
9511 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
9513         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
9514         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
9515         for correct semantics.
9517 2019-02-11  Alan Modra  <amodra@gmail.com>
9519         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
9520         -mlongcall and -mpltseq.
9521         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
9522         (RS/6000 and PowerPC Options <-mpltseq>): Document.
9523         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
9524         * config/rs6000/sysv4.opt (mpltseq): New option.
9525         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
9526         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
9527         support is lacking.  Don't allow -mpltseq with -mbss-plt.
9528         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
9529         -mpltseq given for ELFv1.
9530         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
9531         Only use UNSPEC_PLTSEQ for inline PLT calls.
9532         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
9533         use UNSPEC_PLTSEQ for inline PLT calls.
9534         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
9535         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
9536         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
9537         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
9538         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
9539         (pltseq_mtctr_<mode>): Likewise.
9541 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9543         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
9544         Solaris ld.
9545         * configure: Regenerate.
9547 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
9549         PR bootstrap/88714
9550         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
9551         instead of r.
9553 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
9555         * function.c (assign_parm_setup_block): Use the stored
9556         size, not the passed size, when allocating stack-space,
9557         also for a parameter with alignment larger than
9558         MAX_SUPPORTED_STACK_ALIGNMENT.
9560 2019-02-11  Martin Liska  <mliska@suse.cz>
9562         PR ipa/89009
9563         * ipa-cp.c (build_toporder_info): Remove usage of a param.
9564         * ipa-inline.c (inline_small_functions): Likewise.
9565         * ipa-pure-const.c (propagate_pure_const): Likewise.
9566         (propagate_nothrow): Likewise.
9567         * ipa-reference.c (propagate): Likewise.
9568         * ipa-utils.c (struct searchc_env): Remove unused field.
9569         (searchc): Always search across AVAIL_INTERPOSABLE.
9570         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
9571         the only called IPA pure const can properly not propagate
9572         across interposable boundary.
9573         * ipa-utils.h (ipa_reduced_postorder): Remove param.
9575 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
9577         * config/nds32/nds32.md (call_internal, call_value_internal,
9578         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
9580 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
9582         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
9583         typo.
9585 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9587         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
9588         in comments
9590 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
9592         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
9594 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
9596         PR tree-optimization/89268
9597         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
9598         if preds is non-NULL.
9600 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
9602         PR lto/89272
9603         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
9604         polymorphic types.
9606 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
9608         * config/nds32/nds32.md (trap): New pattern.
9610 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
9612         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
9613         dwarf span.
9615 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
9617         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
9618         to split POST_INC.
9620 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
9622         * ipa-visibility.c (localize_node): Also do not localize
9623         LDPR_PREVAILING_DEF_IRONLY_EXP.
9625 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
9627         PR lto/87957
9628         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
9629         instead of type_with_linkage.
9631 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
9633         PR ipa/88755
9634         * params.def (uninlined-function-insns, uninlined-function-time,
9635         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
9636         bound so we don't get overflows.
9638 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
9640         * config/rs6000/rs6000-string.c (expand_compare_loop,
9641         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
9642         memcmp/strncmp.
9644 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
9646         PR middle-end/89246
9647         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9648         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
9649         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
9651 2019-02-09  Alan Modra  <amodra@gmail.com>
9653         PR target/88343
9654         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
9655         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
9656         setup.
9658 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
9660         PR middle-end/88560
9661         * lra-constraints.c (process_alt_operands): Don't increase reject
9662         for memory when offset memory is required.
9664 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
9666         * config/s390/vector.md: Implement vector copysign.
9668 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
9670         * expr.c (expand_constructor): Correct indentations.
9672 2019-02-08  Richard Biener  <rguenther@suse.de>
9674         PR tree-optimization/89247
9675         * tree-if-conv.c: Include tree-cfgcleanup.h.
9676         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
9677         (tree_if_conversion): Pass through predicate vector.
9678         (pass_if_conversion::execute): Do CFG cleanup and SSA update
9679         inline, see if any if-converted loops we refrece in
9680         LOOP_VECTORIZED calls vanished and fixup.
9681         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
9683 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
9685         * config/s390/constraints.md (jdd): New constraint.
9687 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
9689         PR target/89229
9690         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
9691         upper 16 vector registers without TARGET_AVX512VL.
9692         (*movti_internal): Likewise.
9694 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
9696         PR rtl-optimization/89234
9697         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
9698         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
9699         (copy_reg_eh_region_note_backward): Likewise.
9701 2019-02-08  Richard Biener  <rguenther@suse.de>
9703         PR middle-end/89223
9704         * tree-data-ref.c (initialize_matrix_A): Fail if constant
9705         doesn't fit in HWI.
9706         (analyze_subscript_affine_affine): Handle failure from
9707         initialize_matrix_A.
9709 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
9711         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
9712         cfun everywhere.
9714 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
9716         PR tree-optimization/86637
9717         PR tree-optimization/89235
9718         * tree-vect-loop.c (optimize_mask_stores): Add an
9719         auto_purge_vect_location sentinel to ensure that vect_location is
9720         purged on exit.
9721         * tree-vectorizer.c
9722         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
9723         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
9724         to ensure that vect_location is purged on exit.
9725         (pass_slp_vectorize::execute): Likewise, replacing the manual
9726         reset.
9727         * tree-vectorizer.h (class auto_purge_vect_location): New class.
9729 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9731         * config/aarch64/iterators.md (max_opp): New code_attr.
9732         (USMAX): New code iterator.
9733         * config/aarch64/predicates.md (aarch64_smin): New predicate.
9734         (aarch64_smax): Likewise.
9735         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
9736         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
9737         MINUS (MAX MIN).
9739 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
9741         PR target/89229
9742         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
9743         for TARGET_AVX512VL.
9744         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
9746 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
9748         * config/s390/s390-builtin-types.def: Add new types.
9749         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
9750         (s390_vec_xlw4): Make the memory operand into a const pointer.
9751         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
9752         float.
9753         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
9754         a new vector type with the alignment of the scalar memory operand.
9756 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
9757             Jakub Jelinek  <jakub@redhat.com>
9759         PR bootstrap/88714
9760         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
9761         arm_count_ldrdstrd_insns): New declarations.
9762         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
9763         MINUS.
9764         (valid_operands_ldrd_strd): New function.
9765         (arm_count_ldrdstrd_insns): New function.
9766         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
9767         sets instead of single DImode set and define new insns to match this.
9769 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
9771         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
9772         Make it a C initializer.
9774 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
9776         PR/target 88850
9777         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
9779 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9781         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
9782         Use neon_dot<q> for type.
9783         (neon_<sup>dot_lane<vsi2qi>): Likewise.
9785 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9787         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
9788         Use neon_dot<q> for type.
9789         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
9790         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
9792 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
9794         PR rtl-optimization/89225
9795         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
9796         sizes check.
9798 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
9800         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
9801         after restoring registers saved to allocate the frame on Windows.
9803 2019-02-06  Richard Biener  <rguenther@suse.de>
9805         PR tree-optimization/89182
9806         * graphite.h (cached_scalar_evolution_in_region): Declare.
9807         * graphite.c (struct seir_cache_key): New.
9808         (struct sese_scev_hash): Likewise.
9809         (seir_cache): New global.
9810         (cached_scalar_evolution_in_region): New function.
9811         (graphite_transform_loops): Allocate and release seir_cache.
9812         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
9813         cached_scalar_evolution_in_region.
9814         * graphite-scop-detection.c (scop_detection::can_represent_loop):
9815         Simplify.
9816         (scop_detection::graphite_can_represent_expr: Use
9817         cached_scalar_evolution_in_region.
9818         (scop_detection::stmt_simple_for_scop_p): Likewise.
9819         (find_params_in_bb): Likewise.
9820         (gather_bbs::before_dom_children): Likewise.
9821         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
9822         (add_loop_constraints): Likewise.
9824 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
9826         PR middle-end/89210
9827         * fold-const-call.c (fold_const_vec_convert): Pass true as last
9828         operand to new_unary_operation only if both element types are integral
9829         and it isn't a widening conversion.  Return NULL_TREE if
9830         new_unary_operation failed.
9832 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
9834         PR target/88856
9835         * config/s390/s390.md: Remove load and test FP splitter.
9837 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
9839         PR target/89112
9840         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
9841         expand_compare_loop, expand_block_compare_gpr,
9842         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
9843         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
9844         #include "profile-count.h" and "predict.h" for types and functions
9845         needed to work with REG_BR_PROB notes.
9847 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
9849         PR target/89112
9850         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
9851         for the long branch case.
9853 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
9855         PR target/89188
9856         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
9857         can throw, non-call exceptions are enabled and we can't delete
9858         dead exceptions or alter cfg.  Set must_clean if
9859         delete_insn_and_edges returns true, don't set it blindly for calls.
9860         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
9862         PR rtl-optimization/89195
9863         * combine.c (make_extraction): For MEMs, don't extract bytes outside
9864         of the original MEM.
9866 2019-02-05  Martin Liska  <mliska@suse.cz>
9868         PR gcov-profile/89000
9869         * gcov.c (function_summary): Remove argument.
9870         (file_summary): New function.
9871         (print_usage): Replace tabs with spaces.
9872         (generate_results): Use new function file_summary.
9874 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
9876         PR target/89186
9877         * optabs.c (prepare_cmp_insn): Pass x and y to
9878         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
9880 2019-02-05  Richard Biener  <rguenther@suse.de>
9882         PR middle-end/89150
9883         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
9884         (struct bitmap_element): Drop chain_prev so we properly recurse on
9885         the prev member, supporting tree views.
9886         (struct bitmap_head): GTY skip the obstack member.
9888 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
9890         PR c/88698
9891         * doc/extend.texi (Vector Extensions): Add an example of using vector
9892         types together with x86 intrinsics.
9894 2019-02-04  Alan Modra  <amodra@gmail.com>
9896         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
9897         str[] size to 160, and comment.
9899 2019-02-04  Alan Modra  <amodra@gmail.com>
9901         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
9902         (rs6000_pltseq_template): Guard output of TLS markers with
9903         TARGET_TLS_MARKERS.
9904         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
9905         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
9906         to use inline PLT sequences.
9907         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
9908         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
9909         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
9911 2019-02-04  Martin Liska  <mliska@suse.cz>
9913         PR ipa/88985
9914         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
9915         out when ipa_fn_summaries does not contain entry for callee.
9917 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
9919         * config/sparc/sparc.h: Remove superfluous blank lines.
9920         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
9921         (got_register_rtx): ...this.
9922         (sparc_got): Adjust to above renaming.
9923         (sparc_tls_got): Likewise.
9924         (sparc_delegitimize_address): Likewise.
9925         (sparc_output_mi_thunk): Likewise.
9926         (sparc_init_pic_reg): Likewise.
9927         (save_local_or_in_reg_p): Fix test on the GOT register.
9928         (USE_HIDDEN_LINKONCE): Move around.
9929         (get_pc_thunk_name): Likewise.
9930         (gen_load_pcrel_sym): Likewise.
9931         (load_got_register): Likewise.
9933 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
9935         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
9936         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
9938 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9940         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
9941         into consideration.
9943 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9945         * config.gcc (with_nds32_lib, glibc):
9946         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
9947         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
9948         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
9950 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
9952         PR target/89071
9953         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
9954         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
9955         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
9956         (*rcpsf2_sse): Ditto.
9957         (*rsqrtsf2_sse): Ditto.
9958         (sse4_1_round<mode<2): Ditto.
9960 2019-02-03  Richard Biener  <rguenther@suse.de>
9962         PR debug/87295
9963         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
9964         orig.
9966 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
9968         PR middle-end/87887
9969         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9970         Punt with warning on aggregate return or argument types.  Ignore
9971         type/mode checking for uniform arguments.
9973 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
9975         * combine.c (try_combine): Do not print "Can't combine" messages unless
9976         printing failed combination attempts.
9978 2019-02-01  Martin Jambor  <mjambor@suse.cz>
9980         PR hsa/87863
9981         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
9982         segment and global segment variables before making them static.
9984 2019-02-01  Martin Jambor  <mjambor@suse.cz>
9986         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
9987         missed optimization dump with dump_enabled_p.
9989 2019-02-01  Richard Biener  <rguenther@suse.de>
9991         PR middle-end/88597
9992         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
9993         the instantiate cache.
9994         (instantiate_scev_binary): Elide second operand procesing
9995         if equal to the first.
9996         * tree-chrec.c (chrec_contains_symbols): Add visited set.
9997         (chrec_contains_undetermined): Likewise.
9998         (tree_contains_chrecs): Likewise.
10000 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
10002         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
10004 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
10006         PR tree-optimization/89143
10007         * wide-int-range.h (wide_int_range_absu): Declare.
10008         * wide-int-range.cc (wide_int_range_absu): New function.
10009         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
10011         PR tree-optimization/88107
10012         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
10013         instead of assertion that eh_region_outermost is non-NULL, if it
10014         is NULL, set *ALL to true and return NULL.
10015         (move_sese_region_to_fn): Adjust caller, if all is set, call
10016         duplicate_eh_regions with NULL region.
10018 2019-02-01  Richard Biener  <rguenth@suse.de>
10020         PR rtl-optimization/88593
10021         * mode-switching.c (optimize_mode_switching): Free dominators before
10022         calling cleanup_cfg.
10024 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
10026         PR tree-optimization/88932
10027         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
10029 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
10031         PR middle-end/89137
10032         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
10033         bogus clang warning.
10035 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
10037         PR target/89071
10038         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
10039         alternative to avoid partial SSE register stall for TARGET_AVX.
10040         (truncdfsf2): Ditto.
10041         (sse4_1_round<mode>2): Ditto.
10043 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
10045         PR tree-optimization/89008
10046         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
10047         process anything of the form X * 0.
10049 2019-01-31  Richard Biener  <rguenther@suse.de>
10051         PR tree-optimization/89135
10052         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
10053         with abnormal preds.
10055 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
10057         PR sanitizer/89124
10058         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
10059         always_inline callees into no_sanitize_address callers.
10061 2019-01-31  Richard Biener  <rguenther@suse.de>
10063         PR rtl-optimization/89115
10064         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
10066 2019-01-30  Martin Sebor  <msebor@redhat.com>
10068         PR other/89106
10069         * doc/extend.texi (cast to a union): Correct and expand.
10071 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
10073         PR rtl-optimization/87246
10074         * lra-constraints.c (simplify_operand_subreg): Reload memory
10075         in subreg if the address became invalid.
10077 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10079         PR target/87064
10080         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
10081         Disable for little-endian.
10083 2019-01-30  Richard Biener  <rguenther@suse.de>
10085         PR rtl-optimization/89115
10086         * opts.c (default_options_optimization): Reduce
10087         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
10088         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
10089         to the default.
10091 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10093         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
10094         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
10095         type of vector element when vec_extract is implemented by direct
10096         move.
10098 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
10100         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
10102 2019-01-30  Richard Biener  <rguenther@suse.de>
10104         PR tree-optimization/89111
10105         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
10106         canonicalization to appropriately sized access types.
10108 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
10110         PR c++/89105
10111         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
10112         for arguments to functions that are TU-local and shouldn't be
10113         referenced by assembly.
10115 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
10117         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
10118         after '='.
10120 2019-01-29  Martin Sebor  <msebor@redhat.com>
10122         PR c/88956
10123         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
10125 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
10127         PR c++/66676
10128         PR ipa/89104
10129         * omp-simd-clone.c (simd_clone_clauses_extract)
10130         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
10131         OMP_CLAUSE_ALIGNED_ALIGNMENT.
10133 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
10135         * config.gcc: Force .init_array for ARC.
10137 2019-01-29  Richard Biener  <rguenther@suse.de>
10139         PR debug/87295
10140         * dwarf2out.c (collect_skeleton_dies): New helper.
10141         (copy_decls_for_unworthy_types): Call it.
10142         (build_abbrev_table): Assert we do not try to replace
10143         DW_AT_signature refs with local refs.
10145 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
10147         PR middle-end/89002
10148         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
10149         for lastprivate/linear IV, push gimplify context around gimplify_assign
10150         and, if it needed any temporaries, pop it into a gimple bind around the
10151         sequence.
10153 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10155         * common.opt (-Wattribute-alias): Remove "no-" from name.
10156         Make -Wattribute-alias command line option and
10157         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
10159 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
10161         PR target/89073
10162         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
10163         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
10164         x86 ISA options.
10165         (bmi2): Add missing @opindex.
10166         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
10167         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
10168         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
10169         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
10170         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
10171         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
10172         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
10173         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
10174         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
10175         xsavec, xsaveopt and xsaves options.
10177 2019-01-28  Richard Biener  <rguenther@suse.de>
10179         PR debug/89076
10180         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
10181         support removal.
10183 2019-01-28  Richard Biener  <rguenther@suse.de>
10185         PR tree-optimization/88739
10186         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10187         BIT_FIELD_REFs only are applied to mode-precision operands
10188         when they are integral.
10189         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
10190         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
10191         BIT_FIELD_REFs of non-mode-precision integral operands.
10193 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
10195         PR target/87214
10196         * config/i386/sse.md
10197         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
10198         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
10199         first constants in pairs are multiples of 2.  Formatting fixes.
10200         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
10201         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
10202         first constants in each quadruple are multiples of 4.  Formatting fixes.
10204 2019-01-26  Martin Jambor  <mjambor@suse.cz>
10206         PR ipa/88933
10207         * tree-inline.c: Include tree-cfgcleanup.h.
10208         (delete_unreachable_blocks_update_callgraph): Move...
10209         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
10210         ...here, make externally visible, make second argument bool, adjust
10211         all callers.
10212         * tree-cfgcleanup.c: Include cgraph.h.
10213         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
10214         Declare.
10215         * ipa-prop.c: Include tree-cfgcleanup.h.
10216         (ipcp_transform_function): Call
10217         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
10219 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
10221         PR rtl-optimization/88846
10222         * ira.c (process_set_for_memref_referenced_p): New.
10223         (memref_referenced_p): Add new param.  Use
10224         process_set_for_memref_referenced_p.  Add new switch cases.
10225         (memref_used_between_p): Pass new arg to memref_referenced_p.
10227 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
10229         PR target/88469
10230         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
10231         argument ABI_BREAK.  Set to true if the calculated alignment has
10232         changed in gcc-9.  Check bit-fields for their base type alignment.
10233         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
10234         (aarch64_function_arg_boundary): Likewise.
10235         (aarch64_gimplify_va_arg_expr): Likewise.
10237 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
10239         PR middle-end/89037
10240         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
10241         instead of accessing TREE_INT_CST_ELT directly.
10243 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
10245         * doc/sourcebuild.texi (Environment attributes): Add fenv and
10246         fenv_exceptions description.
10248 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
10250         PR rtl-optimization/87763
10251         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
10252         Allow SUBREG when matching CC_NZmode compare.
10254 2019-01-25  Richard Biener  <rguenther@suse.de>
10256         PR tree-optimization/89049
10257         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10258         Look at the pattern stmt to determine if the stmt is vectorized.
10260 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
10262         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
10263         (pred_mov<mode>): Handle all-register forms using both a new
10264         alternative and a split.
10266 2019-01-25  Richard Biener  <rguenther@suse.de>
10268         PR tree-optimization/86865
10269         * graphite-scop-detection.c (scop_detection::can_represent_loop):
10270         Reject non-do-while loops.
10272 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
10274         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
10275         * config/rs6000/constraints.md (Q constraint): Use REG_P.
10276         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
10277         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
10278         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
10279         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10280         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
10281         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
10282         vlogical_operand, gpc_reg_operand, int_reg_operand,
10283         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
10284         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
10285         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
10286         (save_world_operation, restore_world_operation, lmw_operation,
10287         stmw_operation): Use MEM_P and REG_P.
10288         (tie_operand): Use MEM_P.
10289         (vrsave_operation, crsave_operation): Use REG_P.
10290         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
10291         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
10292         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
10293         (call_operand): Use HARD_REGISTER_P.
10294         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
10295         Use CONST_INT_P.
10296         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
10297         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
10298         quad_aligned_load_p, replace_swapped_aligned_store,
10299         recombine_lvx_pattern, replace_swapped_aligned_load,
10300         recombine_stvx_pattern): Use MEM_P.
10301         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
10302         Use MEM_P and SYMBOL_REF_P.
10303         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
10304         (insn_is_swappable_p): Use REG_P and MEM_P.
10305         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
10306         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
10307         Use CONST_INT_P.
10308         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
10309         Use CONST_DOUBLE_P.
10310         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
10311         CONST_WIDE_INT_P.
10312         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
10313         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
10314         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
10315         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
10316         reg_or_subregno:
10317         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
10318         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
10319         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
10320         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
10321         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
10322         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
10323         rs6000_split_logical_di): Use CONST_INT_P.
10324         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
10325         REG_P and SYMBOL_REF_P.
10326         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
10327         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
10328         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
10329         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
10330         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
10331         (small_data_operand, print_operand_address): Use CONST_INT_P and
10332         SYMBOL_REF_P.
10333         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
10334         (rs6000_init_hard_regno_mode_ok, direct_move_p):
10335         Use HARD_REGISTER_NUM_P.
10336         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
10337         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
10338         SUBREG_P and SYMBOL_REF_P.
10339         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
10340         and HARD_REGISTER_NUM_P.
10341         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
10342         reg_or_subregno.
10343         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
10344         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
10345         MEM_P and REG_P.
10346         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
10347         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
10348         find_addr_reg): Use REG_P.
10349         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
10350         (rs6000_emit_le_vsx_move): Use SUBREG_P.
10351         (offsettable_ok_by_alignment, constant_pool_expr_p,
10352         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
10353         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
10354         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
10355         rs6000_assemble_integer, create_TOC_reference,
10356         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
10357         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
10358         (rs6000_split_vec_extract_var): Use reg_or_subregno.
10359         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
10360         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
10361         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10362         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10363         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
10364         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
10365         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
10366         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
10367         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
10368         and cbranch<mode>4): Use CONST_INT_P.
10369         (multiple define_splits): Use REG_P and SUBREG_P.
10370         (define_expands call, call_value): Use MEM_P.
10371         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
10372         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
10373         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
10374         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
10375         and HARD_REGISTER_NUM_P.
10376         (multiple define_splits): Use HARD_REGISTER_NUM_P.
10378 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
10380         PR rtl-optimization/88948
10381         * rtl.h (prepare_copy_insn): New prototype.
10382         * gcse.c (prepare_copy_insn): New function, split out from
10383         process_insert_insn.
10384         (process_insert_insn): Use prepare_copy_insn.
10385         * store-motion.c (replace_store_insn): Use prepare_copy_insn
10386         instead of gen_move_insn.
10388 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
10390         PR debug/89006
10391         * config/i386/i386.c (ix86_pic_register_p): Return true for
10392         UNSPEC_SET_GOT too.
10394         PR tree-optimization/88964
10395         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
10396         punt if HONOR_SNANS (chrec).
10398         PR middle-end/89015
10399         * tree-nested.c (convert_nonlocal_reference_stmt,
10400         convert_local_reference_stmt, convert_tramp_reference_stmt,
10401         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
10402         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
10403         or GIMPLE_OMP_TASK.
10405         PR tree-optimization/89027
10406         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
10407         for "omp simd array" variables.
10409 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
10411         PR target/88469
10412         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
10413         force the alignment of m_val.
10415 2019-01-24  Richard Biener  <rguenther@suse.de>
10417         PR lto/87187
10418         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
10419         When in "legacy" debug mode make sure to reset self-origins.
10421 2019-01-24  Martin Liska  <mliska@suse.cz>
10423         PR gcov-profile/88994
10424         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
10425         result will be always smaller or equal to the original.
10426         * gcov.c (mangle_name): Fix else branch where we should
10427         also copy to PTR and shift the pointer.
10429 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
10431         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
10432         * vr-values.c (find_case_label_ranges): Fix a comment typo.
10434 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
10436         * common/config/i386/i386-common.c
10437         (OPTION_MASK_ISA_ENQCMD_SET,
10438         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
10439         (ix86_handle_option): Handle -menqcmd.
10440         * config.gcc (enqcmdintrin.h): New header file.
10441         * config/i386/cpuid.h (bit_ENQCMD): New bit.
10442         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
10443         -menqcmd.
10444         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
10445         function type.
10446         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
10447         __builtin_ia32_enqcmds): New builtins.
10448         * config/i386/i386-c.c (__ENQCMD__): New macro.
10449         * config/i386/i386-option.c (ix86_target_string): Add
10450         -menqcmd.
10451         (ix86_valid_target_attribute_inner_p): Likewise.
10452         * config/i386/i386-expand.c
10453         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
10454         IX86_BUILTIN_ENQCMDS.
10455         * config/i386/i386.h (TARGET_ENQCMD): New.
10456         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
10457         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
10458         (movdir64b_<mode>): Parameterize to enable share expansion code
10459         with ENQCMD in function ix86_expand_builtin.
10460         * config/i386/i386.opt: Add -menqcmd.
10461         * config/i386/immintrin.h: Include enqcmdintrin.h.
10462         * config/i386/enqcmdintrin.h: New intrinsic file.
10463         * doc/invoke.texi: Add -menqcmd.
10465 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
10466             Steve Ellcey <sellcey@marvell.com>
10468         PR target/85711
10469         * recog.c (address_operand): Return false on wrong mode for address.
10470         (constrain_operands): Check for mode with 'p' constraint.
10472 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
10474         PR target/88998
10475         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
10476         Disparage MMX alternative.
10477         (sse2_cvtpd2pi): Ditto.
10478         (sse2_cvttpd2pi): Ditto.
10480 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
10482         PR driver/89014
10483         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
10484         use-after-free of the result of
10485         aarch64_get_extension_string_for_isa_flags.
10487 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
10489         PR c/44715
10490         * doc/extend.texi: Document break and continue behavior in
10491         statement expressions.
10493 2019-01-23  Richard Biener  <rguenther@suse.de>
10495         PR tree-optimization/89008
10496         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
10497         not leave another stray operand.
10499 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
10501         * BASE-VER: Bump to 9.0.1.
10503 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
10505         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
10506         thunk that returns by reference, use the type of the return object
10507         of the thunk instead of that of the alias to build the dereference.
10509 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
10511         * config/arc/atomic.md: Add operand to DMB instruction.
10513 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
10515         PR tree-optimization/88964
10516         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
10517         build_zero_cst instead of build_int_cst.  Return false for loop
10518         invariants which honor signed zeros.
10520 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
10522         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
10524 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
10526         PR target/88965
10527         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
10528         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
10529         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
10531         PR middle-end/88968
10532         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
10533         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
10535         PR target/87064
10536         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
10537         Disable for little endian.
10539 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
10541         PR target/88469
10542         * config/arm/arm.c (arm_needs_double_word_align): Check
10543         DECL_BIT_FIELD_TYPE.
10545 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
10546             H.J. Lu  <hongjiu.lu@intel.com>
10548         PR target/88909
10549         * config/i386/i386-builtin.def: Add mask2 to all builtin
10550         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
10551         SPECIAL_ARGS.
10552         * config/i386/i386.c (BDESC): Add mask2 to the definition.
10553         (BDESC_FIRST): Likewise.
10554         (define_builtin): Add an argument for mask2.  Updated to handle
10555         both ix86_isa_flags and ix86_isa_flags2.
10556         (define_builtin_const): Likewise.
10557         (define_builtin_pure): Likewise.
10558         (define_builtin2): Deleted.
10559         (define_builtin_const2): Likewise.
10560         (builtin_description): Add a member, mask2.
10561         (bdesc_*): Add mask2 to builtin initializations.
10562         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
10563         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
10564         support.
10565         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
10567 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10569         PR target/88954
10570         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
10571         noplt attribute.
10573 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
10575         PR target/88469
10576         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
10577         alignment is dominated by a bitfield with 64-bit aligned base type.
10578         (arm_function_arg): Emit a warning if the alignment has changed since
10579         earlier GCC releases.
10580         (arm_function_arg_boundary): Likewise.
10581         (arm_setup_incoming_varargs): Likewise.
10583 2019-01-22  Richard Biener  <rguenther@suse.de>
10585         PR tree-optimization/88862
10586         * graphite-scop-detection.c
10587         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
10589 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
10591         * doc/extend.tex (AMD GCN Function Attributes): New section.
10592         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
10593         * doc/invoke.texi (AMD GCN Options): New section.
10594         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
10596 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10598         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
10599         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
10601 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
10603         PR tree-optimization/88044
10604         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
10605         is false in the first iteration, but !every_iteration, return false
10606         instead of true with niter->niter zero.
10608         PR rtl-optimization/88904
10609         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
10610         any nonequal registers before processing BB_END (b).
10612         PR target/88905
10613         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
10614         GET_MODE (op0).
10615         (expand_binop_directly, expand_doubleword_clz,
10616         expand_doubleword_popcount, expand_ctz, expand_ffs,
10617         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
10619         PR rtl-optimization/49429
10620         PR target/49454
10621         PR rtl-optimization/86334
10622         PR target/88906
10623         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
10624         addressable from here...
10625         (emit_block_op_via_libcall): ... to here.
10627 2019-01-22  Richard Biener  <rguenther@suse.de>
10629         * tree-vect-loop.c (vect_analyze_loop_operations): Use
10630         auto_vec for cost vector to fix memleak.
10631         (vectorize_fold_left_reduction): Properly gather SLP defs.
10632         (vectorizable_comparison): Do not swap operands to properly
10633         gather SLP defs.
10635 2019-01-22  Alan Modra  <amodra@gmail.com>
10637         PR target/88614
10638         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
10639         stays a reg.  Allow a const_int.
10640         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
10641         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
10642         (IS_NOMARK_TLSGETADDR): Define.
10643         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
10644         (rs6000_output_tlsargs): New function.
10645         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
10646         __tls_get_addr call takes an arg.
10647         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
10648         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
10649         delete split..
10650         (call_value_nonlocal_sysv): ..or here, delete split.
10651         (tls_gdld_nomark): Delete.
10652         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
10653         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
10654         (call_value_nonlocal_sysv): Likewise.
10655         (call_value_nonlocal_sysv_secure): Likewise.
10656         (call_value_nonlocal_aix): Likewise.
10657         (call_value_indirect_aix): Likewise.
10658         (call_value_indirect_elfv2): Likewise.
10659         (call_value_local32, call_value_local64): Disable for no-mark tls.
10660         (call_value_local_aix): Likewise.
10662 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
10664         PR target/88938
10665         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
10666         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
10668 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
10670         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
10671         string contents as hash_map keys.
10673 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10675         PR c/88928
10676         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
10677         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
10678         instead of TYPE_ALIGN.
10679         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
10680         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
10681         pointer from TYPE_STUB_DECL.
10683 2019-01-21  Richard Biener  <rguenther@suse.de>
10685         PR tree-optimization/88934
10686         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
10687         at the possibly non-constant operand.
10688         (vect_get_constant_vectors): Adjust.
10690 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
10692         PR target/71659
10693         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
10694         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
10695         instead of _X86INTRIN_H_INCLUDED.
10696         * onfig/i386/clwbintrin.h: Likewise.
10697         * config/i386/pkuintrin.h: Likewise.
10698         * config/i386/prfchwintrin.h: Likewise.
10699         * config/i386/rdseedintrin.h: Likewise.
10700         * config/i386/wbnoinvdintrin.h: Likewise.
10701         * config/i386/xsavecintrin.h: Likewise.
10702         * config/i386/xsavesintrin.h: Likewise.
10703         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
10704         * config/i386/xsaveintrin.h: Likewise.
10705         * config/i386/xsaveoptintrin.h: Likewise.
10706         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
10707         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
10708         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
10709         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
10710         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
10711         * config/i386/immintrin.h: Here.
10713 2019-01-20  Martin Jambor  <mjambor@suse.cz>
10715         PR ipa/87615
10716         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
10717         with aa_walk_budget.
10718         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
10719         aa_walk_budget_p parameter.
10720         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
10721         walk.  Updated all callers.
10722         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
10723         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
10724         unmodified_parm.
10725         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
10726         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
10727         and to unmodified_parm.
10728         (phi_result_unknown_predicate): New parameter fbi, removed parameter
10729         info, updated call to will_be_nonconstant_expr_predicate.
10730         (param_change_prob): New parameter fbi, limit AA walking.
10731         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
10732         calls to various above functions.
10733         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
10734         parameter.  Use it to limit AA walking.
10735         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
10736         fbi, limit AA walk.
10737         (detect_type_change): New parameter fbi, pass it on to
10738         detect_type_change_from_memory_writes.
10739         (detect_type_change_ssa): Likewise.
10740         (aa_overwalked): Removed.
10741         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
10742         accordingly, adjust to the neew AA limiting scheme.
10743         (parm_ref_data_preserved_p): Likewise.
10744         (ipa_compute_jump_functions_for_edge): Adjust call to
10745         get_dynamic_type.
10746         (ipa_analyze_call_uses): Likewise.
10747         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
10748         (ipa_analyze_node): Initialize aa_walk_budget.
10749         (ipcp_transform_function): Likewise.
10750         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
10751         to get_dynamic_type.
10753 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
10755         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
10756         outside of #if CHECKING_P code.
10758 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
10760         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
10761         New function, split out from...
10762         (loop_versioning::analyze_stride): ...here.
10763         (loop_versioning::find_per_loop_multiplication): Use gassign.
10764         (loop_versioning::analyze_term_using_scevs): Return a success code.
10765         (loop_versioning::analyze_arbitrary_term): New function.
10766         (loop_versioning::analyze_address_fragment): Use
10767         analyze_arbitrary_term if all else fails.
10769 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
10771         PR target/88892
10772         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
10773         operands.
10775 2019-01-18  Richard Biener  <rguenther@suse.de>
10777         PR tree-optimization/88903
10778         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
10779         scalar stmts a SLP shift amount is composed of when detecting
10780         shifts by scalars.
10782 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
10784         PR target/88799
10785         * config/arm/arm-cpus.in (mp): New feature.
10786         (sec): New feature.
10787         (fgroup ARMv7ve): Add mp and sec features.
10788         (arch armv7-a): Add options to allow mp and sec extensions.
10789         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
10790         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
10791         extenstions to the base architecture.
10792         (cpu cortex-a8): Add sec extension to the base architecture.
10793         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
10794         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
10795         variants down to the base v7-a varaint.
10796         * config/arm/t-multilib (v7_a_arch_variants): New variable.
10797         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
10798         of permitted extensions for -march=armv7-a and for
10799         -mcpu=generic-armv7-a.
10801 2019-01-18  Martin Liska  <mliska@suse.cz>
10803         * params.def: Fix comment.
10804         * tree-profile.c (gimple_init_gcov_profiler): Bump function
10805         name.
10806         (gimple_gen_ic_func_profiler): Likewise.
10808 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10810         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
10811         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
10812         and put in error checks for stack protector guard options.
10813         (aarch64_stack_protect_guard): New.
10814         (TARGET_STACK_PROTECT_GUARD): Define.
10815         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
10816         (reg_stack_protect_address<mode>): New.
10817         (stack_protect_set): Adjust for SSP_GLOBAL.
10818         (stack_protect_test): Likewise.
10819         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
10820         (-mstack-protector-guard): Likewise.
10821         (-mstack-protector-guard-offset): Likewise.
10823 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
10825         PR tree-optimization/86214
10826         * tree-inline.h (struct copy_body_data): Add
10827         add_clobbers_to_eh_landing_pads member.
10828         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
10829         (copy_edges_for_bb): Call it if EH edge destination is <
10830         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
10831         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
10832         if flag_stack_reuse != SR_NONE and clear it afterwards.
10834 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
10836         PR target/85596
10837         * doc/install.texi (with-multilib-list): Document for aarch64.
10839 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
10841         PR target/88734
10842         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
10843         (("..."))) with ("...").
10845 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10847         * doc/extend.texi (Built-in Functions for Memory Model Aware
10848         Atomic Operations): Document atomic fetch and nand.
10850 2019-01-18  Martin Liska  <mliska@suse.cz>
10851             Richard Biener  <rguenther@suse.de>
10853         PR middle-end/88587
10854         * cgraph.h (create_version_clone_with_body): Add new argument
10855         with attributes.
10856         * cgraphclones.c (cgraph_node::create_version_clone): Add
10857         DECL_ATTRIBUTES to a newly created decl.  And call
10858         valid_attribute_p so that proper cl_target_optimization_node
10859         is set for the newly created declaration.
10860         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
10861         for declaration.
10862         (expand_target_clones): Do not call valid_attribute_p, it must
10863         be already done.
10864         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
10865         vector types.
10867 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
10869         PR target/88734
10870         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
10871         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
10872         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
10874 2019-01-17  Martin Sebor  <msebor@redhat.com>
10876         PR middle-end/88273
10877         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
10878         Handle anti-ranges the same as no range at all.
10880 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
10882         * config/aarch64/aarch64.c (cgraph.h): New include.
10883         (intl.h): New include.
10884         (supported_simd_type): New function.
10885         (currently_supported_simd_type): Ditto.
10886         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
10887         (aarch64_simd_clone_adjust): Ditto.
10888         (aarch64_simd_clone_usable): Ditto.
10889         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
10890         (TARGET_SIMD_CLONE_ADJUST): Ditto.
10891         (TARGET_SIMD_CLONE_USABLE): Ditto.
10892         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
10893         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
10894         call.
10896 2019-01-17  Martin Sebor  <msebor@redhat.com>
10898         PR tree-optimization/88800
10899         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
10900         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
10901         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
10902         redundant argument.  Add new argument and issue diagnostics under
10903         its control.  Detect out-of-bounds access even with warnings
10904         disabled.
10905         (check_bounds_or_overlap): Change return type.  Add argument.
10906         (wrestrict_dom_walker::check_call): Adjust.
10907         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
10908         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
10909         check_bounds_or_overlap's return value.
10910         (handle_builtin_stxncpy): Same.
10911         (handle_builtin_strcat): Same.
10913 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10914             Kwok Cheung Yeung  <kcy@codesourcery.com>
10915             Julian Brown  <julian@codesourcery.com>
10916             Tom de Vries  <tom@codesourcery.com>
10918         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
10920 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10922         * doc/sourcebuild.texi: Document dg-require-effective-target
10923         llvm_binutils and offload_gcn.
10925 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10926             Kwok Cheung Yeung  <kcy@codesourcery.com>
10927             Julian Brown  <julian@codesourcery.com>
10928             Tom de Vries  <tom@codesourcery.com>
10930         * doc/sourcebuild.texi: Document dg-required-effective-target
10931         exceptions.
10933 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10934             Kwok Cheung Yeung  <kcy@codesourcery.com>
10935             Julian Brown  <julian@codesourcery.com>
10936             Tom de Vries  <tom@codesourcery.com>
10937             Jan Hubicka  <hubicka@ucw.cz>
10938             Martin Jambor  <mjambor@suse.cz>
10940         * config.gcc: Add amdgcn*-*-amdhsa configuration.
10941         * configure.ac: Check for dlopen.
10942         * configure: Regenerate.
10944 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10945             Kwok Cheung Yeung  <kcy@codesourcery.com>
10946             Julian Brown  <julian@codesourcery.com>
10947             Tom de Vries  <tom@codesourcery.com>
10948             Jan Hubicka  <hubicka@ucw.cz>
10949             Martin Jambor  <mjambor@suse.cz>
10951         * common/config/gcn/gcn-common.c: New file.
10952         * config/gcn/driver-gcn.c: New file.
10953         * config/gcn/gcn-builtins.def: New file.
10954         * config/gcn/gcn-hsa.h: New file.
10955         * config/gcn/gcn-modes.def: New file.
10956         * config/gcn/gcn-opts.h: New file.
10957         * config/gcn/gcn-passes.def: New file.
10958         * config/gcn/gcn-protos.h: New file.
10959         * config/gcn/gcn-run.c: New file.
10960         * config/gcn/gcn-tree.c: New file.
10961         * config/gcn/gcn.c: New file.
10962         * config/gcn/gcn.h: New file.
10963         * config/gcn/gcn.opt: New file.
10964         * config/gcn/t-gcn-hsa: New file.
10966 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
10967             Kwok Cheung Yeung  <kcy@codesourcery.com>
10968             Julian Brown  <julian@codesourcery.com>
10969             Tom de Vries  <tom@codesourcery.com>
10970             Jan Hubicka  <hubicka@ucw.cz>
10971             Martin Jambor  <mjambor@suse.cz>
10973         * config/gcn/constraints.md: New file.
10974         * config/gcn/gcn-valu.md: New file.
10975         * config/gcn/gcn.md: New file.
10976         * config/gcn/predicates.md: New file.
10978 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10980         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
10981         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
10982         (stmt_uses_0_or_null_in_undefined_way): Likewise.
10983         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
10985 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
10987         PR target/88851
10988         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
10989         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
10990         it and document registers.
10992 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10994         * config/aarch64/aarch64.c (ares_tunings): Define.
10995         * config/aarch64/aarch64-cores.def (ares): Use the above.
10997 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
10999         PR target/88794
11000         Revert:
11001         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
11003         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
11004         (_mm512_fixupimm_round_pd): Update parameters and builtin.
11005         (_mm512_maskz_fixupimm_round_pd): Ditto.
11006         (_mm512_fixupimm_round_ps): Ditto.
11007         (_mm512_maskz_fixupimm_round_ps): Ditto.
11008         (_mm_fixupimm_round_sd): Ditto.
11009         (_mm_maskz_fixupimm_round_sd): Ditto.
11010         (_mm_fixupimm_round_ss): Ditto.
11011         (_mm_maskz_fixupimm_round_ss): Ditto.
11012         (_mm512_fixupimm_pd): Ditto.
11013         (_mm512_maskz_fixupimm_pd): Ditto.
11014         (_mm512_fixupimm_ps): Ditto.
11015         (_mm512_maskz_fixupimm_ps): Ditto.
11016         (_mm_fixupimm_sd): Ditto.
11017         (_mm_maskz_fixupimm_sd): Ditto.
11018         (_mm_fixupimm_ss): Ditto.
11019         (_mm_maskz_fixupimm_ss): Ditto.
11020         (_mm512_mask_fixupimm_round_pd): Update builtin.
11021         (_mm512_mask_fixupimm_round_ps): Ditto.
11022         (_mm_mask_fixupimm_round_sd): Ditto.
11023         (_mm_mask_fixupimm_round_ss): Ditto.
11024         (_mm512_mask_fixupimm_pd): Ditto.
11025         (_mm512_mask_fixupimm_ps): Ditto.
11026         (_mm_mask_fixupimm_sd): Ditto.
11027         (_mm_mask_fixupimm_ss): Ditto.
11028         * config/i386/avx512vlintrin.h:
11029         (_mm256_fixupimm_pd): Update parameters and builtin.
11030         (_mm256_maskz_fixupimm_pd): Ditto.
11031         (_mm256_fixupimm_ps): Ditto.
11032         (_mm256_maskz_fixupimm_ps): Ditto.
11033         (_mm_fixupimm_pd): Ditto.
11034         (_mm_maskz_fixupimm_pd): Ditto.
11035         (_mm_fixupimm_ps): Ditto.
11036         (_mm_maskz_fixupimm_ps): Ditto.
11037         (_mm256_mask_fixupimm_pd): Update builtin.
11038         (_mm256_mask_fixupimm_ps): Ditto.
11039         (_mm_mask_fixupimm_pd): Ditto.
11040         (_mm_mask_fixupimm_ps): Ditto.
11041         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
11042         * config/i386/i386-builtin.def: Update builtin definitions.
11043         * config/i386/i386.c: Handle new builtin types and remove useless ones.
11044         * config/i386/sse.md: Update VFIXUPIMM* patterns.
11045         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11046         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11047         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
11048         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11049         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11050         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
11051         * config/i386/subst.md:
11052         (round_saeonly_sd_mask_operand4): Add new subst_attr.
11053         (round_saeonly_sd_mask_op4): Ditto.
11054         (round_saeonly_expand_operand5): Ditto.
11055         (round_saeonly_expand): Update.
11057 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
11059         PR target/88794
11060         Revert:
11061         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
11063         * config/i386/sse.md: Combine VFIXUPIMM* patterns
11064         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11065         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11066         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
11067         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11068         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11069         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
11071 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
11073         PR target/88794
11074         Revert:
11075         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
11077         PR target/88489
11078         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
11079         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
11080         instead of UNSPEC_FIXUPIMM.
11082 2019-01-17  Richard Biener  <rguenther@suse.de>
11084         PR lto/86736
11085         * dwarf2out.c (want_pubnames): Never generate pubnames sections
11086         and friends for the LTO part of debug info.
11088 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
11090         PR tree-optimization/86214
11091         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
11092         if x == y.
11094         PR rtl-optimization/88870
11095         * dce.c (deletable_insn_p): Never delete const/pure calls that can
11096         throw if we can't alter the cfg or delete dead exceptions.
11097         (mark_insn): Don't call find_call_stack_args for such calls.
11099 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
11101         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
11102         prototypes for vec_st.
11103         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
11104         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
11105         mainly on signed/unsigned long long and double.
11107 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
11109         PR target/88861
11110         * combine.c (delete_noop_moves): Convert to "bool" return,
11111         returning true if any edges are eliminated.
11112         (combine_instructions): Also return true if delete_noop_moves
11113         returns true.
11115 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
11117         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
11118         correct max nunits for endian swap.
11119         (aarch64_expand_fcmla_builtin): Correct subreg code.
11120         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
11121         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
11122         lane endianness.
11124 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
11126         * config/alpha/alpha.c (alpha_gimplify_va_arg):
11127         Handle split indirect COMPLEX_TYPE arguments.
11129 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
11131         PR target/86891
11132         * config/aarch64/aarch64-modes.def: Add comment about how the carry
11133         bit is set by add and compare.
11134         (CC_ADC): New CC_MODE.
11135         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
11136         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
11137         comparison.  Add detection for CC_ADCmode.
11138         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
11139         CC_ADCmode.
11140         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
11141         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
11142         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
11143         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
11144         to eliminate the need for zero-extending the operands.
11145         (add<mode>3_compareC_imm): Delete.  Merge into ...
11146         (add<mode>3_compareC): ... this.  Restructure the comparison to
11147         eliminate the need for zero-extending the operands.
11148         (add<mode>3_carryin): Use LTU for the overflow detection.
11149         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
11150         Reexpress comparison for overflow.
11151         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
11152         (add<mode>3_carryinC): Likewise.
11153         (add<mode>3_carryinV): Use LTU for carry between partials.
11154         * config/aarch64/predicates.md (aarch64_carry_operation): Update
11155         handling of CC_Cmode and add CC_ADCmode.
11156         (aarch64_borrow_operation): Likewise.
11158 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
11160         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
11161         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
11162         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
11163         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
11165 2019-01-16  Martin Liska  <mliska@suse.cz>
11167         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
11168         for GCC driver.
11169         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
11170         a new argument.
11171         * gcc.c (add_sysrooted_hdrs_prefix): New function.
11172         (path_prefix_reset): Move up in the source file.
11173         (find_fortran_preinclude_file): Make complex search for the
11174         fortran header files.
11176 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
11178         * godump.c (go_output_typedef): When outputting a typedef, refer
11179         to the underlying type by its name and not its structure.
11181 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
11183         PR c++/88795
11184         * tree.c (build_function_type): Assert that arg_types is not
11185         error_mark_node.
11187 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
11189         PR inline-asm/52813
11190         * doc/extend.texi: Document that listing the stack pointer in the
11191         clobber list of an asm is a deprecated feature.
11192         * common.opt (Wdeprecated): Moved from c-family/c.opt.
11193         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
11194         warning instead of an error for clobbers of the stack pointer.
11195         Add a note explaining why.
11197 2019-01-15  Richard Biener  <rguenther@suse.de>
11199         PR debug/88046
11200         * dwarf2out.c (gen_member_die): Do not generate inheritance
11201         DIEs late.
11203 2019-01-15  Richard Biener  <rguenther@suse.de>
11205         PR tree-optimization/88855
11206         * tree-if-conv.c (combine_blocks): Collect
11207         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
11209 2019-01-15  Tom de Vries  <tdevries@suse.de>
11211         PR target/80547
11212         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
11213         lhs == NULL_TREE for gang-level reduction.
11215 2019-01-15  Richard Biener  <rguenther@suse.de>
11216             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11218         PR ipa/88788
11219         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
11220         return true if SSA_NAME is already marked in visited bitmap.
11221         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
11223 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
11225         PR tree-optimization/88775
11226         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
11227         equal == 0 equality pointer comparisons some more if compared in
11228         integral types and either one points to an automatic var and the
11229         other to a global, or we can prove at least one points to the middle
11230         or both point to start or both point to end.
11232 2019-01-14  Andi Kleen  <ak@linux.intel.com>
11234         * Makefile.in: Lower autofdo sampling rate by 10x.
11235         * Makefile.tpl: Dito.
11237 2019-01-14  Tom Honermann  <tom@honermann.net>
11239         * defaults.h: Define CHAR8_TYPE.
11241 2019-01-14  Martin Sebor  <msebor@redhat.com>
11243         PR target/88638
11244         * doc/extend.texi (Darwin Format Checks): Clarify.
11246 2019-01-14  Richard Biener  <rguenther@suse.de>
11248         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
11249         whether we are in (simplify ...) or (match ...) context.
11251 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
11253         PR rtl-optimization/88796
11254         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
11255         * cfgexpand.c (stack_protect_prologue): Initialize
11256         crtl->stack_protect_guard_decl.
11257         * function.c (stack_protect_epilogue): Use it instead of calling
11258         targetm.stack_protect_guard again.
11259         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
11260         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
11261         crtl->stack_protect_guard_decl.
11262         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
11263         on the returned MEM_EXPR.
11265 2019-01-12  Tom de Vries  <tdevries@suse.de>
11267         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
11268         vector length using -fopenacc-dim.
11270 2019-01-12  Tom de Vries  <tdevries@suse.de>
11272         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
11273         lengths into account.
11275 2019-01-12  Svante Signell  <svante.signell@gmail.com>
11277         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
11278         (TARGET_CAN_SPLIT_STACK): Define.
11279         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11281 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
11283         * params.def (inline-unit-growth): Set to 40.
11285 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
11287         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
11289 2019-01-12  Tom de Vries  <tdevries@suse.de>
11291         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
11292         region calling vector-partitionable routine, set default_vector_length
11293         to WARP_SIZE.
11295 2019-01-12  Tom de Vries  <tdevries@suse.de>
11297         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
11298         variable default_vector_length.
11300 2019-01-12  Tom de Vries  <tdevries@suse.de>
11302         PR middle-end/88703
11303         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
11304         from oacc_default_dims, as oacc_validate_dims would do it, and apply
11305         dimensions limits.
11307 2019-01-12  Tom de Vries  <tdevries@suse.de>
11309         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
11310         (nvptx_goacc_validate_dims): Add used parameter.
11311         * doc/tm.texi: Regenerate.
11312         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
11313         argument to call to targetm.goacc.validate_dims.
11314         (default_goacc_validate_dims): Add used
11315         parameter.
11316         * target.def (validate_dims): Add used parameter in DEFHOOK.
11317         * targhooks.h (default_goacc_validate_dims): Add used parameter.
11319 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
11321         PR middle-end/85956
11322         PR lto/88733
11323         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
11324         field.
11325         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
11326         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
11327         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
11328         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
11330 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
11332         PR rtl-optimization/87305
11333         * lra-assigns.c
11334         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
11335         for little endian pseudos used as paradoxical subreg.
11337 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
11339         PR tree-optimization/88693
11340         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
11341         for STRING_CSTs that don't contain any NUL characters in the first
11342         TREE_STRING_LENGTH bytes.
11344 2019-01-11  Alan Modra  <amodra@gmail.com>
11346         PR 88777
11347         PR 88614
11348         * genattrtab.c (min_fn): Don't translate values.
11349         (min_attr_value): Return INT_MAX when the value can't be calculated.
11350         Return minimum among any values that can be calculated.
11351         (max_attr_value): Adjust.
11353 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
11355         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
11357 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
11359         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
11360         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
11361         (aarch64_return_call_with_max_clobbers): New function.
11362         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
11363         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
11364         argument.
11365         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
11366         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
11367         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
11368         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
11369         * cselib.c (cselib_process_insn): Add argument to
11370         targetm.hard_regno_call_part_clobbered call.
11371         * ira-conflicts.c (ira_build_conflicts): Ditto.
11372         * ira-costs.c (ira_tune_allocno_costs): Ditto.
11373         * lra-constraints.c (inherit_reload_reg): Ditto.
11374         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
11375         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
11376         argument.  Call targetm.return_call_with_max_clobbers.
11377         Add argument to targetm.hard_regno_call_part_clobbered call.
11378         (calls_have_same_clobbers_p): New function.
11379         (process_bb_lives): Add call_insn and last_call_insn variables.
11380         Pass call_insn to check_pseudos_live_through_calls.
11381         Modify if stmt to check targetm.return_call_with_max_clobbers.
11382         Update setting of flush variable.
11383         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
11384         to false.
11385         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
11386         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
11387         targetm.hard_regno_call_part_clobbered call.
11388         * reginfo.c (choose_hard_reg_mode): Ditto.
11389         * regrename.c (check_new_reg_p): Ditto.
11390         * reload.c (find_equiv_reg): Ditto.
11391         * reload1.c (emit_reload_insns): Ditto.
11392         * sched-deps.c (deps_analyze_insn): Ditto.
11393         * sel-sched.c (init_regs_for_mode): Ditto.
11394         (mark_unavailable_hard_regs): Ditto.
11395         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
11396         * target.def (hard_regno_call_part_clobbered): Add insn argument.
11397         (return_call_with_max_clobbers): New target function.
11398         * doc/tm.texi: Regenerate.
11399         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
11400         * hooks.c (hook_bool_uint_mode_false): Change to
11401         hook_bool_insn_uint_mode_false.
11402         * hooks.h (hook_bool_uint_mode_false): Ditto.
11404 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
11406         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
11407         (aarch64_remove_extra_call_preserved_regs): New function.
11408         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
11409         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
11410         * doc/tm.texi: Regenerate.
11411         * final.c (get_call_reg_set_usage): Call new hook.
11412         * target.def (remove_extra_call_preserved_regs): New hook.
11413         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
11414         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
11416 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
11418         PR bootstrap/88714
11419         * passes.c (finish_optimization_passes): Call print_combine_total_stats
11420         inside of pass_combine_1 dump rather than pass_profile_1.
11422 2019-01-11  Tom de Vries  <tdevries@suse.de>
11424         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
11425         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
11426         (PTX_NUM_PER_WORKER_BARRIERS): Define.
11427         (nvptx_apply_dim_limits): Prevent vector_length 64 and
11428         num_workers 16.
11430 2019-01-11  Tom de Vries  <tdevries@suse.de>
11432         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
11434 2019-01-11  Jan Beulich  <jbeulich@suse.com>
11436         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
11437         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
11438         sse2_cvtsi2sd): Add {l}.
11439         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
11440         syntax.
11442 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
11444         PR target/88785
11445         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
11446         define_expand.
11447         (*float<floatunssuffix>v2div2sf2): New define_insn.
11448         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
11449         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
11450         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
11451         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
11452         match_operands with "const0_operand" "C".
11454 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
11456         * config/aarch64/aarch64-builtins.c
11457         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
11458         (aarch64_init_simd_builtins): ...Here
11460 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
11462         PR rtl-optimization/87305
11463         * lra-assigns.c
11464         (setup_live_pseudos_and_spill_after_risky_transforms): Check
11465         allocation for big endian pseudos used as paradoxical subregs and
11466         spill them if it is wrong.
11467         * lra-constraints.c (lra_constraints): Add a comment.
11469 2019-01-10  Richard Biener  <rguenther@suse.de>
11471         PR tree-optimization/88792
11472         * tree-ssa-pre.c (get_representative_for): Do not return a
11473         value-number here.
11475 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
11477         PR middle-end/84877
11478         PR bootstrap/88450
11479         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
11480         (assign_parm_setup_block): Do the argument slot realignment here
11481         instead.
11483 2019-01-10  Stefan Agner  <stefan@agner.ch>
11485         PR target/88648
11486         * config/arm/arm.c (arm_option_override_internal): Force
11487         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
11489 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
11491         PR c/88568
11492         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
11493         DECL_EXTERNAL.
11495 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
11497         * config/arm/arm-builtins.c
11498         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
11499         (MAC_LANE_PAIR_QUALIFIERS): New.
11500         (arm_expand_builtin_args): Use it.
11501         (arm_expand_builtin_1): Likewise.
11502         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
11503         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
11504         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
11505         * config/arm/arm_neon.h:
11506         (vcadd_rot90_f16): New.
11507         (vcaddq_rot90_f16): New.
11508         (vcadd_rot270_f16): New.
11509         (vcaddq_rot270_f16): New.
11510         (vcmla_f16): New.
11511         (vcmlaq_f16): New.
11512         (vcmla_lane_f16): New.
11513         (vcmla_laneq_f16): New.
11514         (vcmlaq_lane_f16): New.
11515         (vcmlaq_laneq_f16): New.
11516         (vcmla_rot90_f16): New.
11517         (vcmlaq_rot90_f16): New.
11518         (vcmla_rot90_lane_f16): New.
11519         (vcmla_rot90_laneq_f16): New.
11520         (vcmlaq_rot90_lane_f16): New.
11521         (vcmlaq_rot90_laneq_f16): New.
11522         (vcmla_rot180_f16): New.
11523         (vcmlaq_rot180_f16): New.
11524         (vcmla_rot180_lane_f16): New.
11525         (vcmla_rot180_laneq_f16): New.
11526         (vcmlaq_rot180_lane_f16): New.
11527         (vcmlaq_rot180_laneq_f16): New.
11528         (vcmla_rot270_f16): New.
11529         (vcmlaq_rot270_f16): New.
11530         (vcmla_rot270_lane_f16): New.
11531         (vcmla_rot270_laneq_f16): New.
11532         (vcmlaq_rot270_lane_f16): New.
11533         (vcmlaq_rot270_laneq_f16): New.
11534         (vcadd_rot90_f32): New.
11535         (vcaddq_rot90_f32): New.
11536         (vcadd_rot270_f32): New.
11537         (vcaddq_rot270_f32): New.
11538         (vcmla_f32): New.
11539         (vcmlaq_f32): New.
11540         (vcmla_lane_f32): New.
11541         (vcmla_laneq_f32): New.
11542         (vcmlaq_lane_f32): New.
11543         (vcmlaq_laneq_f32): New.
11544         (vcmla_rot90_f32): New.
11545         (vcmlaq_rot90_f32): New.
11546         (vcmla_rot90_lane_f32): New.
11547         (vcmla_rot90_laneq_f32): New.
11548         (vcmlaq_rot90_lane_f32): New.
11549         (vcmlaq_rot90_laneq_f32): New.
11550         (vcmla_rot180_f32): New.
11551         (vcmlaq_rot180_f32): New.
11552         (vcmla_rot180_lane_f32): New.
11553         (vcmla_rot180_laneq_f32): New.
11554         (vcmlaq_rot180_lane_f32): New.
11555         (vcmlaq_rot180_laneq_f32): New.
11556         (vcmla_rot270_f32): New.
11557         (vcmlaq_rot270_f32): New.
11558         (vcmla_rot270_lane_f32): New.
11559         (vcmla_rot270_laneq_f32): New.
11560         (vcmlaq_rot270_lane_f32): New.
11561         (vcmlaq_rot270_laneq_f32): New.
11562         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
11563         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
11564         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
11565         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
11566         vcmlaq_lane270): New.
11567         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
11568         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
11569         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
11570         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
11571         (arm_option_reconfigure_globals): Use them.
11572         * config/arm/iterators.md (VDF, VQ_HSF): New.
11573         (VCADD, VCMLA): New.
11574         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
11575         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
11576         New.
11577         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
11578         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
11580 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
11582         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11583         Add qualifier_lane_pair_index.
11584         (emit-rtl.h): Include.
11585         (TYPES_QUADOP_LANE_PAIR): New.
11586         (aarch64_simd_expand_args): Use it.
11587         (aarch64_simd_expand_builtin): Likewise.
11588         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
11589         New.
11590         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
11591         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
11592         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
11593         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
11594         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
11595         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
11596         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
11597         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
11598         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
11599         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
11600         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
11601         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
11602         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
11603         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11604         Add __ARM_FEATURE_COMPLEX.
11605         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
11606         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
11607         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
11608         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
11609         fcmlaq_lane270): New.
11610         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
11611         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
11612         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
11613         * config/aarch64/arm_neon.h:
11614         (vcadd_rot90_f16): New.
11615         (vcaddq_rot90_f16): New.
11616         (vcadd_rot270_f16): New.
11617         (vcaddq_rot270_f16): New.
11618         (vcmla_f16): New.
11619         (vcmlaq_f16): New.
11620         (vcmla_lane_f16): New.
11621         (vcmla_laneq_f16): New.
11622         (vcmlaq_lane_f16): New.
11623         (vcmlaq_rot90_lane_f16): New.
11624         (vcmla_rot90_laneq_f16): New.
11625         (vcmla_rot90_lane_f16): New.
11626         (vcmlaq_rot90_f16): New.
11627         (vcmla_rot90_f16): New.
11628         (vcmlaq_laneq_f16): New.
11629         (vcmla_rot180_laneq_f16): New.
11630         (vcmla_rot180_lane_f16): New.
11631         (vcmlaq_rot180_f16): New.
11632         (vcmla_rot180_f16): New.
11633         (vcmlaq_rot90_laneq_f16): New.
11634         (vcmlaq_rot270_laneq_f16): New.
11635         (vcmlaq_rot270_lane_f16): New.
11636         (vcmla_rot270_laneq_f16): New.
11637         (vcmlaq_rot270_f16): New.
11638         (vcmla_rot270_f16): New.
11639         (vcmlaq_rot180_laneq_f16): New.
11640         (vcmlaq_rot180_lane_f16): New.
11641         (vcmla_rot270_lane_f16): New.
11642         (vcadd_rot90_f32): New.
11643         (vcaddq_rot90_f32): New.
11644         (vcaddq_rot90_f64): New.
11645         (vcadd_rot270_f32): New.
11646         (vcaddq_rot270_f32): New.
11647         (vcaddq_rot270_f64): New.
11648         (vcmla_f32): New.
11649         (vcmlaq_f32): New.
11650         (vcmlaq_f64): New.
11651         (vcmla_lane_f32): New.
11652         (vcmla_laneq_f32): New.
11653         (vcmlaq_lane_f32): New.
11654         (vcmlaq_laneq_f32): New.
11655         (vcmla_rot90_f32): New.
11656         (vcmlaq_rot90_f32): New.
11657         (vcmlaq_rot90_f64): New.
11658         (vcmla_rot90_lane_f32): New.
11659         (vcmla_rot90_laneq_f32): New.
11660         (vcmlaq_rot90_lane_f32): New.
11661         (vcmlaq_rot90_laneq_f32): New.
11662         (vcmla_rot180_f32): New.
11663         (vcmlaq_rot180_f32): New.
11664         (vcmlaq_rot180_f64): New.
11665         (vcmla_rot180_lane_f32): New.
11666         (vcmla_rot180_laneq_f32): New.
11667         (vcmlaq_rot180_lane_f32): New.
11668         (vcmlaq_rot180_laneq_f32): New.
11669         (vcmla_rot270_f32): New.
11670         (vcmlaq_rot270_f32): New.
11671         (vcmlaq_rot270_f64): New.
11672         (vcmla_rot270_lane_f32): New.
11673         (vcmla_rot270_laneq_f32): New.
11674         (vcmlaq_rot270_lane_f32): New.
11675         (vcmlaq_rot270_laneq_f32): New.
11676         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
11677         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
11678         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
11679         (FCADD, FCMLA): New.
11680         (rot): New.
11681         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
11683 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
11685         PR other/16615
11687         * config/pa/pa.c: Change "can not" to "cannot".
11688         * gimple-ssa-evrp-analyze.c: Likewise.
11689         * ipa-icf.c: Likewise.
11690         * ipa-polymorphic-call.c: Likewise.
11691         * ipa-pure-const.c: Likewise.
11692         * lra-constraints.c: Likewise.
11693         * lra-remat.c: Likewise.
11694         * reload1.c: Likewise.
11695         * reorg.c: Likewise.
11696         * tree-ssa-uninit.c: Likewise.
11698 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
11700         PR other/16615
11702         * Makefile.in: Mechanically replace "can not" with "cannot".
11703         * alias.c: Likewise.
11704         * builtins.c: Likewise.
11705         * calls.c: Likewise.
11706         * cgraph.c: Likewise.
11707         * cgraph.h: Likewise.
11708         * cgraphclones.c: Likewise.
11709         * cgraphunit.c: Likewise.
11710         * combine-stack-adj.c: Likewise.
11711         * combine.c: Likewise.
11712         * common/config/i386/i386-common.c: Likewise.
11713         * config/aarch64/aarch64.c: Likewise.
11714         * config/alpha/sync.md: Likewise.
11715         * config/arc/arc.c: Likewise.
11716         * config/arc/predicates.md: Likewise.
11717         * config/arm/arm-c.c: Likewise.
11718         * config/arm/arm.c: Likewise.
11719         * config/arm/arm.h: Likewise.
11720         * config/arm/arm.md: Likewise.
11721         * config/arm/cortex-r4f.md: Likewise.
11722         * config/csky/csky.c: Likewise.
11723         * config/csky/csky.h: Likewise.
11724         * config/darwin-f.c: Likewise.
11725         * config/epiphany/epiphany.md: Likewise.
11726         * config/i386/i386.c: Likewise.
11727         * config/i386/sol2.h: Likewise.
11728         * config/m68k/m68k.c: Likewise.
11729         * config/mcore/mcore.h: Likewise.
11730         * config/microblaze/microblaze.md: Likewise.
11731         * config/mips/20kc.md: Likewise.
11732         * config/mips/sb1.md: Likewise.
11733         * config/nds32/nds32.c: Likewise.
11734         * config/nds32/predicates.md: Likewise.
11735         * config/pa/pa.c: Likewise.
11736         * config/rs6000/e300c2c3.md: Likewise.
11737         * config/rs6000/rs6000.c: Likewise.
11738         * config/s390/s390.h: Likewise.
11739         * config/sh/sh.c: Likewise.
11740         * config/sh/sh.md: Likewise.
11741         * config/spu/vmx2spu.h: Likewise.
11742         * cprop.c: Likewise.
11743         * dbxout.c: Likewise.
11744         * df-scan.c: Likewise.
11745         * doc/cfg.texi: Likewise.
11746         * doc/extend.texi: Likewise.
11747         * doc/fragments.texi: Likewise.
11748         * doc/gty.texi: Likewise.
11749         * doc/invoke.texi: Likewise.
11750         * doc/lto.texi: Likewise.
11751         * doc/md.texi: Likewise.
11752         * doc/objc.texi: Likewise.
11753         * doc/rtl.texi: Likewise.
11754         * doc/tm.texi: Likewise.
11755         * dse.c: Likewise.
11756         * emit-rtl.c: Likewise.
11757         * emit-rtl.h: Likewise.
11758         * except.c: Likewise.
11759         * expmed.c: Likewise.
11760         * expr.c: Likewise.
11761         * fold-const.c: Likewise.
11762         * genautomata.c: Likewise.
11763         * gimple-fold.c: Likewise.
11764         * hard-reg-set.h: Likewise.
11765         * ifcvt.c: Likewise.
11766         * ipa-comdats.c: Likewise.
11767         * ipa-cp.c: Likewise.
11768         * ipa-devirt.c: Likewise.
11769         * ipa-fnsummary.c: Likewise.
11770         * ipa-icf.c: Likewise.
11771         * ipa-inline-transform.c: Likewise.
11772         * ipa-inline.c: Likewise.
11773         * ipa-polymorphic-call.c: Likewise.
11774         * ipa-profile.c: Likewise.
11775         * ipa-prop.c: Likewise.
11776         * ipa-pure-const.c: Likewise.
11777         * ipa-reference.c: Likewise.
11778         * ipa-split.c: Likewise.
11779         * ipa-visibility.c: Likewise.
11780         * ipa.c: Likewise.
11781         * ira-build.c: Likewise.
11782         * ira-color.c: Likewise.
11783         * ira-conflicts.c: Likewise.
11784         * ira-costs.c: Likewise.
11785         * ira-int.h: Likewise.
11786         * ira-lives.c: Likewise.
11787         * ira.c: Likewise.
11788         * ira.h: Likewise.
11789         * loop-invariant.c: Likewise.
11790         * loop-unroll.c: Likewise.
11791         * lower-subreg.c: Likewise.
11792         * lra-assigns.c: Likewise.
11793         * lra-constraints.c: Likewise.
11794         * lra-eliminations.c: Likewise.
11795         * lra-lives.c: Likewise.
11796         * lra-remat.c: Likewise.
11797         * lra-spills.c: Likewise.
11798         * lra.c: Likewise.
11799         * lto-cgraph.c: Likewise.
11800         * lto-streamer-out.c: Likewise.
11801         * postreload-gcse.c: Likewise.
11802         * predict.c: Likewise.
11803         * profile-count.h: Likewise.
11804         * profile.c: Likewise.
11805         * recog.c: Likewise.
11806         * ree.c: Likewise.
11807         * reload.c: Likewise.
11808         * reload1.c: Likewise.
11809         * reorg.c: Likewise.
11810         * resource.c: Likewise.
11811         * rtl.def: Likewise.
11812         * rtl.h: Likewise.
11813         * rtlanal.c: Likewise.
11814         * sched-deps.c: Likewise.
11815         * sched-ebb.c: Likewise.
11816         * sched-rgn.c: Likewise.
11817         * sel-sched-ir.c: Likewise.
11818         * sel-sched.c: Likewise.
11819         * shrink-wrap.c: Likewise.
11820         * simplify-rtx.c: Likewise.
11821         * symtab.c: Likewise.
11822         * target.def: Likewise.
11823         * toplev.c: Likewise.
11824         * tree-call-cdce.c: Likewise.
11825         * tree-cfg.c: Likewise.
11826         * tree-complex.c: Likewise.
11827         * tree-core.h: Likewise.
11828         * tree-eh.c: Likewise.
11829         * tree-inline.c: Likewise.
11830         * tree-loop-distribution.c: Likewise.
11831         * tree-nrv.c: Likewise.
11832         * tree-profile.c: Likewise.
11833         * tree-sra.c: Likewise.
11834         * tree-ssa-alias.c: Likewise.
11835         * tree-ssa-dce.c: Likewise.
11836         * tree-ssa-dom.c: Likewise.
11837         * tree-ssa-forwprop.c: Likewise.
11838         * tree-ssa-loop-im.c: Likewise.
11839         * tree-ssa-loop-ivcanon.c: Likewise.
11840         * tree-ssa-loop-ivopts.c: Likewise.
11841         * tree-ssa-loop-niter.c: Likewise.
11842         * tree-ssa-phionlycprop.c: Likewise.
11843         * tree-ssa-phiopt.c: Likewise.
11844         * tree-ssa-propagate.c: Likewise.
11845         * tree-ssa-threadedge.c: Likewise.
11846         * tree-ssa-threadupdate.c: Likewise.
11847         * tree-ssa-uninit.c: Likewise.
11848         * tree-ssanames.c: Likewise.
11849         * tree-streamer-out.c: Likewise.
11850         * tree.c: Likewise.
11851         * tree.h: Likewise.
11852         * vr-values.c: Likewise.
11854 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
11856         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
11857         (ix86_split_xorsign): Ditto.
11858         * config/i386/i386.c (ix86_expand_xorsign): New function.
11859         (ix86_split_xorsign): Ditto.
11860         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
11861         (xorsign<mode>3): New expander.
11862         (xorsign<mode>3_1): New insn_and_split pattern.
11863         * config/i386/sse.md (xorsign<mode>3): New expander.
11865 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
11867         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
11868         (*tablejump_sp64): Likewise.
11869         (*tablejump<P:mode>): ...this.
11870         (*call_address_sp32): Merge into...
11871         (*call_address_sp64): Likewise.
11872         (*call_address<P:mode>): ...this.
11873         (*call_symbolic_sp32): Merge into...
11874         (*call_symbolic_sp64): Likewise.
11875         (*call_symbolic<P:mode>): ...this.
11876         (call_value): Remove constraint and add predicate.
11877         (*call_value_address_sp32): Merge into...
11878         (*call_value_address_sp64): Likewise.
11879         (*call_value_address<P:mode>): ...this.
11880         (*call_value_symbolic_sp32): Merge into...
11881         (*call_value_symbolic_sp64): Likewise.
11882         (*call_value_symbolic<P:mode>): ...this.
11883         (*sibcall_symbolic_sp32): Merge into...
11884         (*sibcall_symbolic_sp64): Likewise.
11885         (*sibcall_symbolic<P:mode>): ...this.
11886         (sibcall_value): Remove constraint and add predicate.
11887         (*sibcall_value_symbolic_sp32): Merge into...
11888         (*sibcall_value_symbolic_sp64): Likewise.
11889         (*sibcall_value_symbolic<P:mode>): ...this.
11890         (window_save): Minor tweak.
11891         (*branch_sp32): Merge into...
11892         (*branch_sp64): Likewise.
11893         (*branch<P:mode>): ...this.
11895 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
11896             James Clarke  <jrtc27@jrtc27.com>
11898         PR target/84010
11899         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
11900         consistently in TLS address generation and adjust code to the renaming
11901         of patterns.  Mark calls to __tls_get_addr as const.
11902         * config/sparc/sparc.md (tgd_hi22): Turn into...
11903         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
11904         (tgd_lo10): Turn into...
11905         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
11906         (tgd_add32): Merge into...
11907         (tgd_add64): Likewise.
11908         (tgd_add<P:mode>): ...this and use Pmode throughout.
11909         (tldm_hi22): Turn into...
11910         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
11911         (tldm_lo10): Turn into...
11912         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
11913         (tldm_add32): Merge into...
11914         (tldm_add64): Likewise.
11915         (tldm_add<P:mode>): ...this and use Pmode throughout.
11916         (tldm_call32): Merge into...
11917         (tldm_call64): Likewise.
11918         (tldm_call<P:mode>): ...this and use Pmode throughout.
11919         (tldo_hix22): Turn into...
11920         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
11921         (tldo_lox10): Turn into...
11922         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
11923         (tldo_add32): Merge into...
11924         (tldo_add64): Likewise.
11925         (tldo_add<P:mode>): ...this and use Pmode throughout.
11926         (tie_hi22): Turn into...
11927         (tie_hi22<P:mode>): ...this and use Pmode throughout.
11928         (tie_lo10): Turn into...
11929         (tie_lo10<P:mode>): ...this and use Pmode throughout.
11930         (tie_ld64): Use DImode throughout.
11931         (tie_add32): Merge into...
11932         (tie_add64): Likewise.
11933         (tie_add<P:mode>): ...this and use Pmode throughout.
11934         (tle_hix22_sp32): Merge into...
11935         (tle_hix22_sp64): Likewise.
11936         (tle_hix22<P:mode>): ...this and use Pmode throughout.
11937         (tle_lox22_sp32): Merge into...
11938         (tle_lox22_sp64): Likewise.
11939         (tle_lox22<P:mode>): ...this and use Pmode throughout.
11940         (*tldo_ldub_sp32): Merge into...
11941         (*tldo_ldub_sp64): Likewise.
11942         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
11943         (*tldo_ldub1_sp32): Merge into...
11944         (*tldo_ldub1_sp64): Likewise.
11945         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
11946         (*tldo_ldub2_sp32): Merge into...
11947         (*tldo_ldub2_sp64): Likewise.
11948         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
11949         (*tldo_ldsb1_sp32): Merge into...
11950         (*tldo_ldsb1_sp64): Likewise.
11951         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
11952         (*tldo_ldsb2_sp32): Merge into...
11953         (*tldo_ldsb2_sp64): Likewise.
11954         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
11955         (*tldo_ldub3_sp64): Use DImode throughout.
11956         (*tldo_ldsb3_sp64): Likewise.
11957         (*tldo_lduh_sp32): Merge into...
11958         (*tldo_lduh_sp64): Likewise.
11959         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
11960         (*tldo_lduh1_sp32): Merge into...
11961         (*tldo_lduh1_sp64): Likewise.
11962         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
11963         (*tldo_ldsh1_sp32): Merge into...
11964         (*tldo_ldsh1_sp64): Likewise.
11965         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
11966         (*tldo_lduh2_sp64): Use DImode throughout.
11967         (*tldo_ldsh2_sp64): Likewise.
11968         (*tldo_lduw_sp32): Merge into...
11969         (*tldo_lduw_sp64): Likewise.
11970         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
11971         (*tldo_lduw1_sp64): Use DImode throughout.
11972         (*tldo_ldsw1_sp64): Likewise.
11973         (*tldo_ldx_sp64): Likewise.
11974         (*tldo_stb_sp32): Merge into...
11975         (*tldo_stb_sp64): Likewise.
11976         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
11977         (*tldo_sth_sp32): Merge into...
11978         (*tldo_sth_sp64): Likewise.
11979         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
11980         (*tldo_stw_sp32): Merge into...
11981         (*tldo_stw_sp64): Likewise.
11982         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
11983         (*tldo_stx_sp64): Use DImode throughout.
11985 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
11987         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
11988         check configure option to set BTI and Return Address Signing.
11989         * configure.ac: Add --enable-standard-branch-protection and
11990         --disable-standard-branch-protection.
11991         * configure: Regenerated.
11992         * doc/install.texi: Document the same.
11994 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
11995             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11997         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
11998         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
11999         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
12000         if bti is enabled.
12001         * config/aarch64/aarch64-bti-insert.c: New file.
12002         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
12003         pass.
12004         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
12005         new bti pass.
12006         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
12007         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
12008         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
12009         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
12011 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
12013         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
12014         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
12015         Disable bti for -mbranch-protection=none.
12016         (aarch64_handle_standard_branch_protection): Enable bti for
12017         -mbranch-protection=standard.
12018         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
12019         -mbranch-protection.
12020         (aarch64_bti_enabled): Check if bti is enabled.
12021         * config/aarch64/aarch64.opt: Declare target variable.
12022         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
12024 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
12026         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
12027         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
12028         (aarch64_expand_epilogue): Likewise.
12029         (aarch64_output_mi_thunk): Likewise
12030         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
12031         TAILCALL_ADDR_REGS to x16 and x17.
12032         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
12034 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
12036         * config/aarch64/aarch64-option-extensions.def: Define
12037         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
12038         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
12039         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
12040         (AARCH64_FL_PREDRES): New.
12041         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
12042         AARCH64_FL_PREDRES by default.
12043         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
12045 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
12047         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
12048         ARMv8.5-A.
12049         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
12050         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
12051         * doc/invoke.texi: Document ARMv8.5-A.
12053 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
12055         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
12056         (xorsign<mode>3): Likewise.
12058 2019-01-09  Jelinek  <jakub@redhat.com>
12060         PR middle-end/88758
12061         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
12062         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
12064         PR rtl-optimization/88331
12065         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
12066         not currently_expanding_to_rtl.
12068 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
12070         * doc/invoke.texi (-Os): Remove trailing spaces.
12071         (-finline-functions): Remove reference to -O2.
12073 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
12075         PR rtl-optimization/79593
12076         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
12078         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
12079         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
12081 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
12083         PR bootstrap/88721
12084         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
12085         to -1 on entry.
12087         PR debug/88723
12088         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
12089         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
12091 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
12093         PR target/88717
12094         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
12095         ix86_avx_u128_mode_entry.
12097 2019-01-08  Martin Liska  <mliska@suse.cz>
12099         PR tree-optimization/88753
12100         * tree-switch-conversion.c (switch_conversion::build_one_array):
12101         Come up with local variable constructor.  Convert first to
12102         type of constructor values.
12104 2019-01-08  Richard Biener  <rguenther@suse.de>
12106         PR tree-optimization/86554
12107         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
12108         rpo_avail): Move earlier.
12109         (visit_nary_op): When value-numbering to expressions
12110         with different overflow behavior make sure there's an
12111         available expression on the path.
12113 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
12115         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
12116         aarch64_parse_branch_protection,
12117         struct aarch64_branch_protect_type,
12118         aarch64_handle_no_branch_protection,
12119         aarch64_handle_standard_branch_protection,
12120         aarch64_validate_mbranch_protection,
12121         aarch64_handle_pac_ret_protection,
12122         aarch64_handle_attr_branch_protection,
12123         accepted_branch_protection_string,
12124         aarch64_pac_ret_subtypes,
12125         aarch64_branch_protect_types,
12126         aarch64_handle_pac_ret_leaf): Define.
12127         (aarch64_override_options_after_change_1, aarch64_override_options):
12128         Add check for accepted_branch_protection_string.
12129         (aarch64_option_save): Save accepted_branch_protection_string.
12130         (aarch64_option_restore): Save accepted_branch_protection_string.
12131         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
12132         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
12133         msign-return-address.
12134         * doc/invoke.texi: Add mbranch-protection.
12136 2019-01-08  Alan Modra  <amodra@gmail.com>
12138         PR target/88614
12139         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
12140         Delete "unknownp" parameter.  Adjust callers.  Handle
12141         CONST_INT, PLUS, MINUS, and MULT.
12142         (attr_value_aligned): Renamed from or_attr_value.
12143         (min_attr_value): Return INT_MIN for unhandled rtl case..
12144         (min_fn): ..and translate to INT_MAX here.
12145         (write_length_unit_log): Modify to cope without "unknown".
12146         (write_attr_value): Handle IF_THEN_ELSE.
12148 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
12150         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
12151         optimization for masked stores.
12153 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
12155         PR middle-end/88567
12156         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
12157         output vector directly to duplicate_and_interleave instead of
12158         going through a temporary.  Postpone insertion of ctor_seq to
12159         the end of the loop.
12161 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
12163         PR target/86891
12164         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
12165         unsigned_p.  Handle signed and unsigned overflow correction as
12166         required.
12167         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
12168         prototype.
12169         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
12170         for operand 2.
12171         (add<mode>3_compareV_imm): Make this callable for expanding.
12172         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
12173         aarch64_plus_operand for operand 2.
12174         (subv<GPI:mode>_insn): New insn pattern.
12175         (subv<GPI:mode>_imm): Likewise.
12176         (negv<GPI:mode>3): New expand pattern.
12177         (negv<GPI:mode>_insn): New insn pattern.
12178         (negv<GPI:mode>_cmp_only): Likewise.
12179         (cmpv<GPI:mode>_insn): Likewise.
12180         (subvti4): Use register_operand for operand 1.  Update call to
12181         aarch64_expand_subvti.
12182         (usubvti4): Likewise.
12183         (negvti3): New expand pattern.
12184         (negdi_carryout): New insn pattern.
12185         (negvdi_carryinV): New insn pattern.
12186         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
12187         version the named version.
12188         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
12189         operands.
12190         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
12191         patterns.
12192         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
12193         patterns.
12194         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
12195         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
12196         (sub<mode>3_carryinCV): Delete.
12197         (sub<GPI:mode>3_carryinV): New expand pattern.
12198         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
12200 2019-01-07  Richard Biener  <rguenther@suse.de>
12202         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
12203         of tree_operand_hash.
12205 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
12207         PR tree-optimization/88598
12208         * tree.h (single_nonzero_element): Declare.
12209         * tree.c (single_nonzero_element): New function.
12210         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
12211         if I is the only nonzero element of CST.
12213 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
12215         PR tree-optimization/88598
12216         * tree.h (initializer_each_zero_or_onep): Declare.
12217         * tree.c (initializer_each_zero_or_onep): New function.
12218         (signed_or_unsigned_type_for): Handle float types too.
12219         (unsigned_type_for, signed_type_for): Update comments accordingly.
12220         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
12221         x & { 0 or -1, 0 or -1, ... }.
12223 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
12225         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
12226         with x86_64-pc-linux-gnu.
12228 2019-01-07  Tom de Vries  <tdevries@suse.de>
12230         PR target/85486
12231         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
12232         function.
12233         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
12234         routines.
12236 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
12238         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
12239         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
12240         TARGET_AVX512F as condition.
12242         PR debug/88723
12243         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
12244         const_not_ok_for_debug_p target hook.
12245         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
12246         on UNSPEC and subexpressions thereof if all subexpressions of the
12247         UNSPEC are CONSTANT_P.
12249         PR tree-optimization/88676
12250         * tree-ssa-phiopt.c (two_value_replacement): New function.
12251         (tree_ssa_phiopt_worker): Call it.
12253         PR sanitizer/88619
12254         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
12255         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
12257         PR c++/85052
12258         * tree-vect-generic.c: Include insn-config.h and recog.h.
12259         (expand_vector_piecewise): Add defaulted ret_type argument,
12260         if non-NULL, use that in preference to type for the result type.
12261         (expand_vector_parallel): Formatting fix.
12262         (do_vec_conversion, do_vec_narrowing_conversion,
12263         expand_vector_conversion): New functions.
12264         (expand_vector_operations_1): Call expand_vector_conversion
12265         for VEC_CONVERT ifn calls.
12266         * internal-fn.def (VEC_CONVERT): New internal function.
12267         * internal-fn.c (expand_VEC_CONVERT): New function.
12268         * fold-const-call.c (fold_const_vec_convert): New function.
12269         (fold_const_call): Use it for CFN_VEC_CONVERT.
12270         * doc/extend.texi (__builtin_convertvector): Document.
12272 2019-01-07  Tom de Vries  <tdevries@suse.de>
12274         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
12275         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
12276         vector_red_partition, vector_red_sym): New global variables.
12277         (nvptx_option_override): Initialize vector_red_sym.
12278         (nvptx_declare_function_name): Restore red_partition register.
12279         (nvptx_file_end): Emit code to declare the vector reduction variables.
12280         (nvptx_output_red_partition): New function.
12281         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
12282         large vector reductions.
12283         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
12284         (nvptx_init_builtins): Add VECTOR_ADDR.
12285         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
12286         Handle nvptx_expand_shared_addr.
12287         (nvptx_get_shared_red_addr): Add vector argument and handle large
12288         vectors.
12289         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
12290         large vectors.
12291         (nvptx_goacc_reduction_init): Likewise.
12292         (nvptx_goacc_reduction_fini): Likewise.
12293         (nvptx_goacc_reduction_teardown): Likewise.
12294         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
12295         init,fini,teardown}.
12296         (nvptx_init_axis_predicate): Initialize vector_red_partition.
12297         (nvptx_set_current_function): Init vector_red_partition.
12298         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
12299         (nvptx_red_partition): New insn.
12300         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
12302 2019-01-07  Tom de Vries  <tdevries@suse.de>
12304         PR target/85381
12305         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
12306         empty loops.
12308 2019-01-07  Tom de Vries  <tdevries@suse.de>
12310         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
12311         (nvptx_option_override): Init oacc_bcast_partition.
12312         (nvptx_init_oacc_workers): New function.
12313         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
12314         (nvptx_needs_shared_bcast): New function.
12315         (nvptx_find_par): Generalize to enable vectors to use shared-memory
12316         to propagate state.
12317         (nvptx_shared_propagate): Initialize vector bcast partition and
12318         synchronization state.
12319         (nvptx_single):  Generalize to enable vectors to use shared-memory
12320         to propagate state.
12321         (nvptx_process_pars): Likewise.
12322         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
12323         * config/nvptx/nvptx.h (struct machine_function): Add
12324         bcast_partition and sync_bar members.
12326 2019-01-07  Tom de Vries  <tdevries@suse.de>
12328         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
12329         (nvptx_apply_dim_limits): New function.
12330         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
12331         PTX_WARP_SIZE.
12333 2019-01-07  Tom de Vries  <tdevries@suse.de>
12335         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
12336         as late as possible.
12338 2019-01-07  Tom de Vries  <tdevries@suse.de>
12340         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
12341         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
12342         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
12343         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
12344         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
12346 2019-01-07  Tom de Vries  <tdevries@suse.de>
12348         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
12350 2019-01-07  Tom de Vries  <tdevries@suse.de>
12352         * omp-offload.c (oacc_get_min_dim): New function.
12353         * omp-offload.h (oacc_get_min_dim): Declare.
12355 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
12357         PR target/88521
12358         * config/i386/i386.c (function_value_ms_64): Return small sturct in
12359         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
12361 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
12363         PR tree-opt/86020
12364         Revert:
12365         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
12367         * ipa-inline.c (edge_badness): Use inlined_time instead of
12368         inline_summaries->get.
12370 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
12372         * opts.c (enable_fdo_optimizations): Enable
12373         version-loops-for-strides, loop-interchange, unrol-and-jam
12374         and tree-loop-distribution.
12375         * invoke.texi: Document newly enabled options.
12377 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
12379         * doc/invoke.texi (max-inline-insns-small): New parameters.
12380         * ipa-inline.c (want_early_inline_function_p): simplify.
12381         (want_inline_small_function_p): Fix pasto from previous patch;
12382         use max-inline-insns-small bound.
12383         * params.def (max-inline-insns-small): New param.
12384         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
12385         variables correctly.
12387 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
12389         * doc/invoke.texi: Document max-inline-insns-size,
12390         uninlined-function-insns, uninlined-function-time,
12391         uninlined-thunk-insns and uninlined-thunk-time.
12392         * params.def: Add max-inline-insns-size,
12393         uninlined-function-insns, uninlined-function-time,
12394         uninlined-thunk-insns and uninlined-thunk-time.
12395         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
12396         new parameters.
12397         * ipa-inline.c (can_inline_edge_by_limits_p,
12398         want_inline_small_function_p): Use new parameters.
12400 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
12402         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
12404 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
12406         PR middle-end/82564
12407         PR target/88620
12408         * expr.c (expand_assignment): For calls returning VLA structures
12409         if to_rtx is not a MEM, force it into a stack temporary.
12411         PR debug/88635
12412         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
12413         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
12414         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
12415         subexpressions of both operands.
12416         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
12417         subrtxes are CONSTANT_P.
12418         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
12419         2018-11-09 changes.
12421 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
12423         * params.def (hot-bb-count-ws-permille): Set to 990.
12425 2019-01-04  Martin Sebor  <msebor@redhat.com>
12427         PR c/88546
12428         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
12429         leaf.
12431 2019-01-04  Martin Sebor  <msebor@redhat.com>
12433         PR c/88363
12434         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
12436 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
12438         * gdbinit.in: Turn off pagination for the skip commands, restore
12439         it to previous state afterwards.
12441 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
12443         PR target/88594
12444         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
12445         of GET_MODE (opN) as modes of the libcall arguments.
12447 2019-01-04  Jan Beulich  <jbeulich@suse.com>
12449         * config/i386/sse.md
12450         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
12451         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
12452         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
12453         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
12454         avx512f_vmcmp<mode>3<round_saeonly_name>,
12455         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
12456         avx512f_maskcmp<mode>3,
12457         <avx512>_cvt<ssemodesuffix>2mask<mode>,
12458         <avx512>_cvt<ssemodesuffix>2mask<mode>,
12459         *<avx512>_cvtmask2<ssemodesuffix><mode>,
12460         *<avx512>_cvtmask2<ssemodesuffix><mode>,
12461         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
12462         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
12463         <avx512>_gt<mode>3<mask_scalar_merge_name>,
12464         <avx512>_gt<mode>3<mask_scalar_merge_name>,
12465         <avx512>_testm<mode>3<mask_scalar_merge_name>,
12466         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
12467         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
12468         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
12469         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
12470         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
12471         avx512cd_maskb_vec_dup<mode>,
12472         avx512cd_maskw_vec_dup<mode>,
12473         avx512dq_fpclass<mode><mask_scalar_merge_name>,
12474         avx512dq_vmfpclass<mode>,
12475         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
12476         instead of =Yk.
12478 2019-01-03  Martin Sebor  <msebor@redhat.com>
12480         PR tree-optimization/88659
12481         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
12483 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
12485         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
12486         unaligned vsx and avoid lxvd2x/stxvd2x.
12487         (gen_lvx_v4si_move): New function.
12489 2019-01-03  Tom de Vries  <tdevries@suse.de>
12491         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
12492         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
12493         function.
12494         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
12496 2019-01-03  Tom de Vries  <tdevries@suse.de>
12498         * config/nvptx/nvptx.c (struct offload_attrs): New.
12499         (populate_offload_attrs): New function.  Factor mask extraction out of
12500         nvptx_reorg.  Add extraction of dimensions.
12501         (nvptx_reorg): Use populate_offload_attrs.
12503 2019-01-03  Tom de Vries  <tdevries@suse.de>
12505         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
12506         cases for oacc_min_dims_p and routine_p.  Add asserts for
12507         oacc_default_dims_p and offload_region_p.
12509 2019-01-03  Tom de Vries  <tdevries@suse.de>
12511         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
12512         factored out of ...
12513         (nvptx_goacc_validate_dims): ... here.
12515 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
12517         PR tree-optimization/85574
12518         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
12519         structure.
12520         (struct ssa_equip_hash_traits): Declare.
12521         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
12523 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
12525         PR debug/88644
12526         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
12527         change it to qualified_type.
12529 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
12531         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
12532         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
12534 2019-01-02  Martin Sebor  <msebor@redhat.com>
12535             Jeff Law  <law@redhat.com>
12537         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
12538         (get_range_strlen_tree): Update appropriately.
12539         (get_range_strlen)
12540         * gimple-fold.h (get_range_strlen): Drop unused last argument.
12542         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
12543         rather than set_range_info.
12544         * tree-ssa-strlen.c (set_strlen_range): Extracted from
12545         maybe_set_strlen_range.  Handle potentially boundary crossing
12546         cases more conservatively.
12547         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
12548         Call set_strlen_range.
12549         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
12551         PR middle-end/88663
12552         * gimple-fold.c (get_range_strlen): Update prototype to no longer
12553         need the flexp argument.
12554         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
12555         from calls to get_range_strlen.  Update comments.  Just update
12556         VAL for an unterminated const char array and let the reset of the
12557         code handle it normally.  No longer try to set *flexp.  Adjust
12558         return value.
12559         (get_range_strlen): Update for the new get_range_strlen API.
12560         (get_maxval_strlen): Similarly.
12561         (gimple_fold_builtin_strlen): Handle update meaning of return value
12562         from get_range_strlen.
12563         * gimple-ssa-sprintf.c (get_string_length): Update for the new
12564         get_range_strlen API.
12566 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
12568         PR lto/88130
12569         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
12570         false at WPA time when body was removed.
12572 2019-01-02  Martin Liska  <mliska@suse.cz>
12574         PR tree-optimization/88650
12575         * predict.c (set_even_probabilities): Calculate probability
12576         remainer only when really used.
12578 2019-01-02  Richard Biener  <rguenther@suse.de>
12580         PR middle-end/88651
12581         * tree-data-ref.c (analyze_subscript_affine_affine): Use
12582         widest_ints when mangling max_stmt_execution results.
12584 2019-01-02  Richard Biener  <rguenther@suse.de>
12586         PR tree-optimization/88621
12587         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
12588         bitfields when canoncalizing.
12590 2019-01-02  Richard Biener  <rguenther@suse.de>
12592         PR target/87545
12593         * config/i386/x86-tune-costs.h (intel_cost): Adjust
12594         cost of cheap SSE instruction.
12596 2019-01-02  Richard Biener  <rguenther@suse.de>
12598         PR ipa/85574
12599         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
12600         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
12601         function.
12602         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
12603         set after UIDs before splitting them.
12605 2019-01-01  Martin Sebor  <msebor@redhat.com>
12606             Jeff Law  <law@redhat.com>
12608         * gimple-fold.c (get_range_strlen_tree): Record if the computed
12609         length is optimistic.  If it is, then arrange to compute the
12610         conservative length as well.
12612         * gimple-fold.h (get_range_strlen): Update prototype.
12613         * builtins.c (check_access): Update call to get_range_strlen to use
12614         c_strlen_data pointer.   Change various variable accesses to instead
12615         pull data from the c_strlen_data structure.
12616         (check_strncat_sizes, expand_builtin_strncat): Likewise.
12617         * calls.c (maybe_warn_nonstring_arg): Likewise.
12618         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
12619         minimum length if maximum lengh is unknown.
12620         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
12621         that used c_strlen, it's no longer needed.  Restructure slightly.
12622         (format_string): Set unlikely range appropriately.
12623         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
12624         formatting issues.
12625         (get_range_strlen):  Accept c_strlen_data pointer for external
12626         call sites as well.  Pass through to call to internal get_range_strlen.
12627         Adjust minlen, maxlen and maxbound as needed.
12628         (get_maxval_strlen): Update comments.
12629         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
12630         to use c_strlen_data pointer.  Change variable accesses to instead
12631         use c_strlen_data data members.
12633         * gimple-fold.c (get_range_strlen): Update prototype.
12634         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
12635         local variables.  Use pdata to return information to caller.
12636         Update calls to get_range_strlen.  Update pdata->maxbound.
12637         (get_range_strlen -- static version): Similarly.
12638         (get_range_strlen -- extern version): Update for internal
12639         get_range_strlen API change.  Convert to external data format.
12640         (get_maxval_strlen): Similarly.
12642 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
12644         * coverage.c (get_coverage_counts): Use current_function_decl.
12645         * profile.c (read_thunk_profile): New function.
12646         (branch_prob): Add THUNK parameter.
12647         * tree-profile.c (tree_profiling): Handle thunks.
12648         * value-prof.c (init_node_map): Handle thunks.
12649         * value-prof.h (branch_prob): Upate prototype.
12650         (read_thunk_profile): Declare.
12652 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
12654         Update copyright years.
12656         * gcc.c (process_command): Update copyright notice dates.
12657         * gcov-dump.c (print_version): Ditto.
12658         * gcov.c (print_version): Ditto.
12659         * gcov-tool.c (print_version): Ditto.
12660         * gengtype.c (create_file): Ditto.
12661         * doc/cpp.texi: Bump @copying's copyright year.
12662         * doc/cppinternals.texi: Ditto.
12663         * doc/gcc.texi: Ditto.
12664         * doc/gccint.texi: Ditto.
12665         * doc/gcov.texi: Ditto.
12666         * doc/install.texi: Ditto.
12667         * doc/invoke.texi: Ditto.
12669 Copyright (C) 2019 Free Software Foundation, Inc.
12671 Copying and distribution of this file, with or without modification,
12672 are permitted in any medium without royalty provided the copyright
12673 notice and this notice are preserved.