1 2019-07-12 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/91145
4 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
7 2019-07-12 Alexandre Oliva <oliva@adacore.com>
9 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10 rather than this_state as the lowering context for the ELSE
11 seq in a GIMPLE_EH_ELSE.
13 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
15 * vector-builder.h (vector_builder::elt): Allow already-supplied
16 elements to be read back before building is complete.
18 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20 PR rtl-optimization/91136
21 * df-core.c (ACCESSING REFS): Fix typos in comment.
22 * resource.c (mark_target_live_reg): Add artificial defs that occur at
23 the beginning of the block to the initial set of live registers.
25 2019-07-12 Richard Biener <rguenther@suse.de>
27 * fold-const.h (get_array_ctor_element_at_index): Adjust.
28 * fold-const.c (get_array_ctor_element_at_index): Add
29 ctor_idx output parameter informing the caller where in
30 the constructor the element was (not) found. Add early exit
31 for when the ctor is sorted.
32 * gimple-fold.c (fold_array_ctor_reference): Support constant
33 folding across multiple array elements.
35 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
37 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
38 doesn't have location, set the current location to the function's end.
40 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
42 * config/aarch64/aarch64.md (*compare_condjump<mode>)
43 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
44 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
45 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
46 * config/aarch64/aarch64-simd.md
47 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
48 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
49 * config/aarch64/aarch64-sve.md
50 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
51 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
53 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
55 * doc/md.texi: Document that @ patterns can have different
57 * genemit.c (handle_overloaded_gen): Handle this case.
58 * genopinit.c (handle_overloaded_gen): Likewise.
59 * gensupport.c (replace_operands_with_dups): Iterate over
60 the new rtx's format rather than the old one's.
62 2019-07-12 Jakub Jelinek <jakub@redhat.com>
64 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
65 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
67 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
68 * tree-pretty-print.c (dump_omp_clause): Likewise.
69 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
71 * omp-low.c (scan_sharing_clauses): Likewise.
72 * tree-nested.c (convert_nonlocal_omp_clauses,
73 convert_local_omp_clauses): Likewise.
75 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
77 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
78 fallthrough target of current basic block isn't the placed
81 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
84 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
85 (_mm512_storeu_epi64): Likewise.
86 (_mm512_loadu_epi32): Likewise.
87 (_mm512_storeu_epi32): Likewise.
88 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
89 (_mm_storeu_epi64): Likewise.
90 (_mm256_storeu_epi32): Likewise.
91 (_mm_storeu_epi32): Likewise.
93 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
95 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
97 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
99 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
102 2019-07-11 Jakub Jelinek <jakub@redhat.com>
105 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
106 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
107 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
108 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
109 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
110 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
112 (ufix_truncv2dfv2si2<mask_name>): Change into ...
113 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
114 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
116 (sse2_cvttpd2dq<mask_name>): Change into ...
117 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
118 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
119 (*sse2_cvtpd2dq<mask_name>): Change into ...
120 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
121 Add "C" constraint to const0_operand.
122 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
123 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
127 * config/i386/i386-builtin-types.def
128 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
129 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
130 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
131 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
132 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
133 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
134 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
135 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
136 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
137 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
138 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
139 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
140 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
141 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
142 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
143 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
144 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
145 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
146 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
147 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
148 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
149 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
150 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
151 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
152 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
153 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
154 __builtin_ia32_vpdpbusd_v4si_maskz,
155 __builtin_ia32_vpdpbusds_v16si_mask,
156 __builtin_ia32_vpdpbusds_v16si_maskz,
157 __builtin_ia32_vpdpbusds_v8si_mask,
158 __builtin_ia32_vpdpbusds_v8si_maskz,
159 __builtin_ia32_vpdpbusds_v4si_mask,
160 __builtin_ia32_vpdpbusds_v4si_maskz,
161 __builtin_ia32_vpdpwssd_v16si_mask,
162 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
163 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
164 __builtin_ia32_vpdpwssd_v4si_maskz,
165 __builtin_ia32_vpdpwssds_v16si_mask,
166 __builtin_ia32_vpdpwssds_v16si_maskz,
167 __builtin_ia32_vpdpwssds_v8si_mask,
168 __builtin_ia32_vpdpwssds_v8si_maskz,
169 __builtin_ia32_vpdpwssds_v4si_mask,
170 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
171 suffixed types rather than *_INT.
172 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
173 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
174 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
175 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
176 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
177 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
179 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
181 * tree-vrp.c (intersect_ranges): If we know the intersection is
182 empty, there is no need to conservatively add anything else to
185 2019-07-11 Richard Biener <rguenther@suse.de>
188 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
189 when the object is volatile and we have not cleared it even though
190 there are no nonzero elements.
192 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
194 * config/rs6000/predicates.md (cint34_operand): Update
195 SIGNED_34BIT_OFFSET_P call.
196 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
197 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
198 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
199 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
200 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
202 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
203 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
204 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
205 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
206 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
208 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
210 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
211 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
212 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
213 (DEF_MIN_OSX_VERSION): New.
215 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
217 * fold-const.c (fold_relational_const): Fix folding of
218 vector-to-scalar NE_EXPRs.
219 (test_vector_folding): Add more tests.
221 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
224 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
225 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
226 (vec_setv2di_internal): Reexpress as...
227 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
228 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
229 rather than gen_neon_vset_lane<mode>.
231 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
234 * lra-constraints.c (process_alt_operands): Don't match user
235 defined regs only if they are early clobbers.
237 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
239 * wide-int.h (wi::lshift): Reject negative values for the fast path.
241 2019-07-10 Richard Biener <rguenther@suse.de>
243 PR tree-optimization/91126
244 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
245 native encoding offset for BYTES_BIG_ENDIAN.
246 (vn_reference_lookup_3): Likewise.
248 2019-07-10 Richard Biener <rguenther@suse.de>
250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
251 LHS whenever possible.
253 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
255 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
256 from ...; work also on duplicated types.
257 (nonoverlapping_component_refs_since_match): ... here
258 (ncr_type_uid): Break out from ...
259 (ncr_compar): ... here; look for TYPE_UID of canonical type if
261 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
262 the types and nonoverlapping_component_refs_p_1 to disambiguate.
264 2019-07-09 Martin Sebor <msebor@redhat.com>
266 PR tree-optimization/90989
267 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
268 optimization to just single character stores.
270 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
272 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
273 Swap operands only once.
275 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
277 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
278 for both call instructions.
280 2019-07-09 John Darrington <john@darrington.wattle.id.au>
282 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
283 rather than GET_MODE_BITSIZE to better handle partial integer modes.
285 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
287 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
288 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
289 function from rs6000-logue.c back to rs6000.c.
290 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
292 2019-07-09 Martin Sebor <msebor@redhat.com>
295 * auto-profile.c: Change class-key of PODs to struct and others
297 * basic-block.h: Same.
298 * bitmap.c (bitmap_alloc): Same.
300 * builtins.c (expand_builtin_prefetch): Same.
301 (expand_builtin_interclass_mathfn): Same.
302 (expand_builtin_strlen): Same.
303 (expand_builtin_mempcpy_args): Same.
304 (expand_cmpstr): Same.
305 (expand_builtin___clear_cache): Same.
306 (expand_ifn_atomic_bit_test_and): Same.
307 (expand_builtin_thread_pointer): Same.
308 (expand_builtin_set_thread_pointer): Same.
309 * caller-save.c (setup_save_areas): Same.
310 (replace_reg_with_saved_mem): Same.
311 (insert_restore): Same.
313 (add_used_regs): Same.
314 * cfg.c (get_bb_copy): Same.
315 (set_loop_copy): Same.
318 * cfgexpand.c (alloc_stack_frame_space): Same.
319 (add_stack_var): Same.
320 (add_stack_var_conflict): Same.
321 (add_scope_conflicts_1): Same.
322 (update_alias_info_with_stack_vars): Same.
323 (expand_used_vars): Same.
324 * cfghooks.c (redirect_edge_and_branch_force): Same.
325 (delete_basic_block): Same.
327 (make_forwarder_block): Same.
328 (force_nonfallthru): Same.
329 (duplicate_block): Same.
330 (lv_flush_pending_stmts): Same.
332 * cfgloop.c (flow_loops_cfg_dump): Same.
333 (flow_loop_nested_p): Same.
334 (superloop_at_depth): Same.
335 (get_loop_latch_edges): Same.
336 (flow_loop_dump): Same.
337 (flow_loops_dump): Same.
338 (flow_loops_free): Same.
339 (flow_loop_nodes_find): Same.
340 (establish_preds): Same.
341 (flow_loop_tree_node_add): Same.
342 (flow_loop_tree_node_remove): Same.
343 (flow_loops_find): Same.
344 (find_subloop_latch_edge_by_profile): Same.
345 (find_subloop_latch_edge_by_ivs): Same.
346 (mfb_redirect_edges_in_set): Same.
347 (form_subloop): Same.
348 (merge_latch_edges): Same.
349 (disambiguate_multiple_latches): Same.
350 (disambiguate_loops_with_multiple_latches): Same.
351 (flow_bb_inside_loop_p): Same.
353 (get_loop_body_with_size): Same.
354 (get_loop_body): Same.
355 (fill_sons_in_loop): Same.
356 (get_loop_body_in_dom_order): Same.
357 (get_loop_body_in_custom_order): Same.
358 (release_recorded_exits): Same.
359 (get_loop_exit_edges): Same.
360 (num_loop_branches): Same.
361 (remove_bb_from_loops): Same.
362 (find_common_loop): Same.
365 (verify_loop_structure): Same.
366 (loop_preheader_edge): Same.
367 (loop_exit_edge_p): Same.
369 (loop_exits_to_bb_p): Same.
370 (loop_exits_from_bb_p): Same.
371 (get_loop_location): Same.
372 (record_niter_bound): Same.
373 (get_estimated_loop_iterations_int): Same.
374 (max_stmt_executions_int): Same.
375 (likely_max_stmt_executions_int): Same.
376 (get_estimated_loop_iterations): Same.
377 (get_max_loop_iterations): Same.
378 (get_max_loop_iterations_int): Same.
379 (get_likely_max_loop_iterations): Same.
380 * cfgloop.h (simple_loop_desc): Same.
384 (loop_iterator::next): Same.
385 (loop_outermost): Same.
386 * cfgloopanal.c (mark_irreducible_loops): Same.
387 (num_loop_insns): Same.
388 (average_num_loop_insns): Same.
389 (expected_loop_iterations_unbounded): Same.
390 (expected_loop_iterations): Same.
391 (mark_loop_exit_edges): Same.
392 (single_likely_exit): Same.
393 * cfgloopmanip.c (fix_bb_placement): Same.
394 (fix_bb_placements): Same.
396 (place_new_loop): Same.
398 (scale_loop_frequencies): Same.
399 (scale_loop_profile): Same.
400 (create_empty_if_region_on_edge): Same.
401 (create_empty_loop_on_edge): Same.
404 (fix_loop_placements): Same.
405 (copy_loop_info): Same.
406 (duplicate_loop): Same.
407 (duplicate_subloops): Same.
408 (loop_redirect_edge): Same.
409 (can_duplicate_loop_p): Same.
410 (duplicate_loop_to_header_edge): Same.
411 (mfb_keep_just): Same.
412 (has_preds_from_loop): Same.
413 (create_preheader): Same.
414 (create_preheaders): Same.
415 (lv_adjust_loop_entry_edge): Same.
416 (loop_version): Same.
417 * cfgloopmanip.h: Same.
419 * cgraphbuild.c: Same.
420 * combine.c (make_extraction): Same.
421 * config/i386/i386-features.c: Same.
422 * config/i386/i386-features.h: Same.
423 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
424 (ix86_emit_outlined_ms2sysv_restore): Same.
425 (ix86_noce_conversion_profitable_p): Same.
426 (ix86_init_cost): Same.
427 (ix86_simd_clone_usable): Same.
428 * configure.ac: Same.
430 * data-streamer-in.c (string_for_index): Same.
431 (streamer_read_indexed_string): Same.
432 (streamer_read_string): Same.
433 (bp_unpack_indexed_string): Same.
434 (bp_unpack_string): Same.
435 (streamer_read_uhwi): Same.
436 (streamer_read_hwi): Same.
437 (streamer_read_gcov_count): Same.
438 (streamer_read_wide_int): Same.
439 * data-streamer.h (streamer_write_bitpack): Same.
440 (bp_unpack_value): Same.
441 (streamer_write_char_stream): Same.
442 (streamer_write_hwi_in_range): Same.
443 (streamer_write_record_start): Same.
444 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
445 (add_cross_iteration_register_deps): Same.
446 (build_intra_loop_deps): Same.
447 * df-core.c (df_analyze): Same.
448 (loop_post_order_compute): Same.
449 (loop_inverted_post_order_compute): Same.
450 * df-problems.c (df_rd_alloc): Same.
451 (df_rd_simulate_one_insn): Same.
452 (df_rd_local_compute): Same.
453 (df_rd_init_solution): Same.
454 (df_rd_confluence_n): Same.
455 (df_rd_transfer_function): Same.
457 (df_rd_dump_defs_set): Same.
458 (df_rd_top_dump): Same.
461 (df_lr_local_compute): Same.
463 (df_lr_confluence_n): Same.
465 (df_lr_top_dump): Same.
466 (df_lr_verify_transfer_functions): Same.
467 (df_live_alloc): Same.
468 (df_live_reset): Same.
469 (df_live_init): Same.
470 (df_live_confluence_n): Same.
471 (df_live_finalize): Same.
472 (df_live_free): Same.
473 (df_live_top_dump): Same.
474 (df_live_verify_transfer_functions): Same.
475 (df_mir_alloc): Same.
476 (df_mir_reset): Same.
478 (df_mir_confluence_n): Same.
480 (df_mir_top_dump): Same.
481 (df_word_lr_alloc): Same.
482 (df_word_lr_reset): Same.
483 (df_word_lr_init): Same.
484 (df_word_lr_confluence_n): Same.
485 (df_word_lr_free): Same.
486 (df_word_lr_top_dump): Same.
488 (df_md_simulate_one_insn): Same.
492 (df_md_top_dump): Same.
493 * df-scan.c (df_insn_delete): Same.
494 (df_insn_rescan): Same.
495 (df_notes_rescan): Same.
496 (df_sort_and_compress_mws): Same.
497 (df_install_mws): Same.
498 (df_refs_add_to_chains): Same.
499 (df_ref_create_structure): Same.
500 (df_ref_record): Same.
501 (df_def_record_1): Same.
502 (df_find_hard_reg_defs): Same.
503 (df_uses_record): Same.
504 (df_get_conditional_uses): Same.
505 (df_get_call_refs): Same.
506 (df_recompute_luids): Same.
507 (df_get_entry_block_def_set): Same.
508 (df_entry_block_defs_collect): Same.
509 (df_get_exit_block_use_set): Same.
510 (df_exit_block_uses_collect): Same.
511 (df_mws_verify): Same.
512 (df_bb_verify): Same.
513 * df.h (df_scan_get_bb_info): Same.
515 * dse.c (record_store): Same.
517 * emit-rtl.c (const_fixed_hasher::equal): Same.
518 (set_mem_attributes_minus_bitpos): Same.
519 (change_address): Same.
520 (adjust_address_1): Same.
521 (offset_address): Same.
523 * except.c (dw2_build_landing_pads): Same.
524 (sjlj_emit_dispatch_table): Same.
525 * explow.c (allocate_dynamic_stack_space): Same.
526 (emit_stack_probe): Same.
527 (probe_stack_range): Same.
528 * expmed.c (store_bit_field_using_insv): Same.
529 (store_bit_field_1): Same.
530 (store_integral_bit_field): Same.
531 (extract_bit_field_using_extv): Same.
532 (extract_bit_field_1): Same.
534 * expr.c (emit_block_move_via_cpymem): Same.
535 (expand_cmpstrn_or_cmpmem): Same.
536 (set_storage_via_setmem): Same.
537 (emit_single_push_insn_1): Same.
538 (expand_assignment): Same.
539 (store_constructor): Same.
540 (expand_expr_real_2): Same.
541 (expand_expr_real_1): Same.
544 * function.c (try_fit_stack_local): Same.
545 (assign_stack_local_1): Same.
546 (assign_stack_local): Same.
547 (cut_slot_from_list): Same.
548 (insert_slot_to_list): Same.
549 (max_slot_level): Same.
550 (move_slot_to_level): Same.
551 (temp_address_hasher::equal): Same.
552 (remove_unused_temp_slot_addresses): Same.
554 (combine_temp_slots): Same.
555 (update_temp_slot_address): Same.
556 (preserve_temp_slots): Same.
559 * gcc-rich-location.h: Same.
561 * genattrtab.c (check_attr_test): Same.
562 (check_attr_value): Same.
563 (convert_set_attr_alternative): Same.
564 (convert_set_attr): Same.
566 (copy_boolean): Same.
567 (get_attr_value): Same.
568 (expand_delays): Same.
569 (make_length_attrs): Same.
571 (make_alternative_compare): Same.
572 (simplify_test_exp): Same.
573 (tests_attr_p): Same.
574 (get_attr_order): Same.
575 (clear_struct_flag): Same.
577 (compares_alternatives_p): Same.
580 (find_attrs_to_cache): Same.
581 (write_test_expr): Same.
582 (walk_attr_value): Same.
583 (write_attr_get): Same.
584 (eliminate_known_true): Same.
585 (write_insn_cases): Same.
586 (write_attr_case): Same.
587 (write_attr_valueq): Same.
588 (write_attr_value): Same.
589 (write_dummy_eligible_delay): Same.
590 (next_comma_elt): Same.
592 (make_internal_attr): Same.
593 (copy_rtx_unchanging): Same.
594 (gen_insn_reserv): Same.
595 (check_tune_attr): Same.
596 (make_automaton_attrs): Same.
598 * genextract.c (gen_insn): Same.
599 (VEC_char_to_string): Same.
600 * genmatch.c (print_operand): Same.
602 (parser::parse_operation): Same.
603 (parser::parse_capture): Same.
604 (parser::parse_c_expr): Same.
605 (parser::parse_simplify): Same.
607 * genoutput.c (output_operand_data): Same.
608 (output_get_insn_name): Same.
609 (compare_operands): Same.
610 (place_operands): Same.
611 (process_template): Same.
612 (validate_insn_alternatives): Same.
613 (validate_insn_operands): Same.
615 (note_constraint): Same.
616 * genpreds.c (write_one_predicate_function): Same.
617 (add_constraint): Same.
618 (process_define_register_constraint): Same.
619 (write_lookup_constraint_1): Same.
620 (write_lookup_constraint_array): Same.
621 (write_insn_constraint_len): Same.
622 (write_reg_class_for_constraint_1): Same.
623 (write_constraint_satisfied_p_array): Same.
624 * genrecog.c (optimize_subroutine_group): Same.
625 * gensupport.c (process_define_predicate): Same.
626 (queue_pattern): Same.
627 (remove_from_queue): Same.
629 (is_predicable): Same.
630 (change_subst_attribute): Same.
631 (subst_pattern_match): Same.
632 (alter_constraints): Same.
633 (alter_attrs_for_insn): Same.
634 (shift_output_template): Same.
635 (alter_output_for_subst_insn): Same.
636 (process_one_cond_exec): Same.
638 (process_define_cond_exec): Same.
639 (mnemonic_htab_callback): Same.
640 (gen_mnemonic_attr): Same.
643 * gimple-loop-interchange.cc (dump_reduction): Same.
644 (dump_induction): Same.
645 (loop_cand::~loop_cand): Same.
646 (free_data_refs_with_aux): Same.
647 (tree_loop_interchange::interchange_loops): Same.
648 (tree_loop_interchange::map_inductions_to_loop): Same.
649 (tree_loop_interchange::move_code_to_inner_loop): Same.
650 (compute_access_stride): Same.
651 (compute_access_strides): Same.
652 (proper_loop_form_for_interchange): Same.
653 (tree_loop_interchange_compute_ddrs): Same.
654 (prune_datarefs_not_in_loop): Same.
655 (prepare_data_references): Same.
656 (pass_linterchange::execute): Same.
657 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
658 (unroll_jam_possible_p): Same.
660 (adjust_unroll_factor): Same.
661 (tree_loop_unroll_and_jam): Same.
662 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
663 (loop_versioning::expensive_stmt_p): Same.
664 (loop_versioning::version_for_unity): Same.
665 (loop_versioning::dump_inner_likelihood): Same.
666 (loop_versioning::find_per_loop_multiplication): Same.
667 (loop_versioning::analyze_term_using_scevs): Same.
668 (loop_versioning::record_address_fragment): Same.
669 (loop_versioning::analyze_expr): Same.
670 (loop_versioning::analyze_blocks): Same.
671 (loop_versioning::prune_conditions): Same.
672 (loop_versioning::merge_loop_info): Same.
673 (loop_versioning::add_loop_to_queue): Same.
674 (loop_versioning::decide_whether_loop_is_versionable): Same.
675 (loop_versioning::make_versioning_decisions): Same.
676 (loop_versioning::implement_versioning_decisions): Same.
677 * gimple-ssa-evrp-analyze.c
678 (evrp_range_analyzer::record_ranges_from_phis): Same.
679 * gimple-ssa-store-merging.c (split_store::split_store): Same.
680 (count_multiple_uses): Same.
682 (imm_store_chain_info::output_merged_store): Same.
683 (pass_store_merging::process_store): Same.
684 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
685 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
687 (alloca_call_type): Same.
688 (pass_walloca::execute): Same.
689 * gimple-streamer-in.c (input_phi): Same.
690 (input_gimple_stmt): Same.
691 * gimple-streamer.h: Same.
692 * godump.c (go_force_record_alignment): Same.
693 (go_format_type): Same.
694 (go_output_type): Same.
695 (go_output_fndecl): Same.
696 (go_output_typedef): Same.
697 (keyword_hash_init): Same.
698 (find_dummy_types): Same.
699 * graph.c (draw_cfg_nodes_no_loops): Same.
700 (draw_cfg_nodes_for_loop): Same.
701 * hard-reg-set.h (hard_reg_set_iter_next): Same.
703 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
704 * hsa-dump.c (dump_hsa_cfun): Same.
705 * hsa-gen.c (gen_function_def_parameters): Same.
706 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
707 * input.c (dump_line_table_statistics): Same.
710 * internal-fn.c (get_multi_vector_move): Same.
711 (expand_load_lanes_optab_fn): Same.
712 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
713 (expand_GOMP_SIMT_EXIT): Same.
714 (expand_GOMP_SIMT_LAST_LANE): Same.
715 (expand_GOMP_SIMT_ORDERED_PRED): Same.
716 (expand_GOMP_SIMT_VOTE_ANY): Same.
717 (expand_GOMP_SIMT_XCHG_BFLY): Same.
718 (expand_GOMP_SIMT_XCHG_IDX): Same.
719 (expand_addsub_overflow): Same.
720 (expand_neg_overflow): Same.
721 (expand_mul_overflow): Same.
722 (expand_call_mem_ref): Same.
723 (expand_mask_load_optab_fn): Same.
724 (expand_scatter_store_optab_fn): Same.
725 (expand_gather_load_optab_fn): Same.
726 * ipa-cp.c (ipa_get_parm_lattices): Same.
727 (print_all_lattices): Same.
728 (ignore_edge_p): Same.
729 (build_toporder_info): Same.
730 (free_toporder_info): Same.
731 (push_node_to_stack): Same.
732 (ipcp_lattice<valtype>::set_contains_variable): Same.
733 (set_agg_lats_to_bottom): Same.
734 (ipcp_bits_lattice::meet_with): Same.
735 (set_single_call_flag): Same.
736 (initialize_node_lattices): Same.
737 (ipa_get_jf_ancestor_result): Same.
738 (ipcp_verify_propagated_values): Same.
739 (propagate_scalar_across_jump_function): Same.
740 (propagate_context_across_jump_function): Same.
741 (propagate_bits_across_jump_function): Same.
742 (ipa_vr_operation_and_type_effects): Same.
743 (propagate_vr_across_jump_function): Same.
744 (set_check_aggs_by_ref): Same.
745 (set_chain_of_aglats_contains_variable): Same.
746 (merge_aggregate_lattices): Same.
747 (agg_pass_through_permissible_p): Same.
748 (propagate_aggs_across_jump_function): Same.
749 (call_passes_through_thunk_p): Same.
750 (propagate_constants_across_call): Same.
751 (devirtualization_time_bonus): Same.
752 (good_cloning_opportunity_p): Same.
753 (context_independent_aggregate_values): Same.
754 (gather_context_independent_values): Same.
755 (perform_estimation_of_a_value): Same.
756 (estimate_local_effects): Same.
757 (value_topo_info<valtype>::add_val): Same.
758 (add_all_node_vals_to_toposort): Same.
759 (value_topo_info<valtype>::propagate_effects): Same.
760 (ipcp_propagate_stage): Same.
761 (ipcp_discover_new_direct_edges): Same.
762 (same_node_or_its_all_contexts_clone_p): Same.
763 (cgraph_edge_brings_value_p): Same.
764 (gather_edges_for_value): Same.
765 (create_specialized_node): Same.
766 (find_more_scalar_values_for_callers_subset): Same.
767 (find_more_contexts_for_caller_subset): Same.
768 (copy_plats_to_inter): Same.
769 (intersect_aggregates_with_edge): Same.
770 (find_aggregate_values_for_callers_subset): Same.
771 (cgraph_edge_brings_all_agg_vals_for_node): Same.
772 (decide_about_value): Same.
773 (decide_whether_version_node): Same.
774 (spread_undeadness): Same.
775 (identify_dead_nodes): Same.
776 (ipcp_store_vr_results): Same.
777 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
778 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
779 (redirect_to_unreachable): Same.
780 (edge_set_predicate): Same.
781 (evaluate_conditions_for_known_args): Same.
782 (evaluate_properties_for_edge): Same.
783 (ipa_fn_summary_t::duplicate): Same.
784 (ipa_call_summary_t::duplicate): Same.
785 (dump_ipa_call_summary): Same.
786 (ipa_dump_fn_summary): Same.
787 (eliminated_by_inlining_prob): Same.
788 (set_cond_stmt_execution_predicate): Same.
789 (set_switch_stmt_execution_predicate): Same.
790 (compute_bb_predicates): Same.
791 (will_be_nonconstant_expr_predicate): Same.
792 (phi_result_unknown_predicate): Same.
793 (analyze_function_body): Same.
794 (compute_fn_summary): Same.
795 (estimate_edge_devirt_benefit): Same.
796 (estimate_edge_size_and_time): Same.
797 (estimate_calls_size_and_time): Same.
798 (estimate_node_size_and_time): Same.
799 (remap_edge_change_prob): Same.
800 (remap_edge_summaries): Same.
801 (ipa_merge_fn_summary_after_inlining): Same.
802 (ipa_fn_summary_generate): Same.
803 (inline_read_section): Same.
804 (ipa_fn_summary_read): Same.
805 (ipa_fn_summary_write): Same.
806 * ipa-fnsummary.h: Same.
807 * ipa-hsa.c (ipa_hsa_read_section): Same.
808 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
809 * ipa-icf.c (sem_function::param_used_p): Same.
810 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
811 * ipa-inline.c (edge_badness): Same.
812 (inline_small_functions): Same.
813 * ipa-polymorphic-call.c
814 (ipa_polymorphic_call_context::stream_out): Same.
815 * ipa-predicate.c (predicate::remap_after_duplication): Same.
816 (predicate::remap_after_inlining): Same.
817 (predicate::stream_out): Same.
818 * ipa-predicate.h: Same.
819 * ipa-profile.c (ipa_profile_read_summary): Same.
820 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
821 (count_formal_params): Same.
822 (ipa_dump_param): Same.
823 (ipa_alloc_node_params): Same.
824 (ipa_print_node_jump_functions_for_edge): Same.
825 (ipa_print_node_jump_functions): Same.
826 (ipa_load_from_parm_agg): Same.
827 (get_ancestor_addr_info): Same.
828 (ipa_compute_jump_functions_for_edge): Same.
829 (ipa_analyze_virtual_call_uses): Same.
830 (ipa_analyze_stmt_uses): Same.
831 (ipa_analyze_params_uses_in_bb): Same.
832 (update_jump_functions_after_inlining): Same.
833 (try_decrement_rdesc_refcount): Same.
834 (ipa_impossible_devirt_target): Same.
835 (update_indirect_edges_after_inlining): Same.
836 (combine_controlled_uses_counters): Same.
837 (ipa_edge_args_sum_t::duplicate): Same.
838 (ipa_write_jump_function): Same.
839 (ipa_write_indirect_edge_info): Same.
840 (ipa_write_node_info): Same.
841 (ipa_read_edge_info): Same.
842 (ipa_prop_read_section): Same.
843 (read_replacements_section): Same.
844 * ipa-prop.h (ipa_get_param_count): Same.
845 (ipa_get_param): Same.
846 (ipa_get_type): Same.
847 (ipa_get_param_move_cost): Same.
848 (ipa_set_param_used): Same.
849 (ipa_get_controlled_uses): Same.
850 (ipa_set_controlled_uses): Same.
851 (ipa_get_cs_argument_count): Same.
852 * ipa-pure-const.c (analyze_function): Same.
853 (pure_const_read_summary): Same.
855 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
856 * ipa-split.c (test_nonssa_use): Same.
857 (dump_split_point): Same.
858 (dominated_by_forbidden): Same.
859 (split_part_set_ssa_name_p): Same.
860 (find_split_points): Same.
861 * ira-build.c (finish_loop_tree_nodes): Same.
862 (low_pressure_loop_node_p): Same.
863 * ira-color.c (ira_reuse_stack_slot): Same.
865 * ira.c (setup_reg_equiv): Same.
866 (print_insn_chain): Same.
868 * loop-doloop.c (doloop_condition_get): Same.
870 (record_reg_sets): Same.
871 (doloop_optimize): Same.
872 * loop-init.c (loop_optimizer_init): Same.
873 (fix_loop_structure): Same.
874 * loop-invariant.c (merge_identical_invariants): Same.
875 (compute_always_reached): Same.
877 (may_assign_reg_p): Same.
878 (find_invariants_bb): Same.
879 (find_invariants_body): Same.
880 (replace_uses): Same.
881 (can_move_invariant_reg): Same.
882 (free_inv_motion_data): Same.
883 (move_single_loop_invariants): Same.
884 (change_pressure): Same.
885 (mark_ref_regs): Same.
886 (calculate_loop_reg_pressure): Same.
887 * loop-iv.c (biv_entry_hasher::equal): Same.
888 (iv_extend_to_rtx_code): Same.
889 (check_iv_ref_table_size): Same.
890 (clear_iv_info): Same.
891 (latch_dominating_def): Same.
892 (iv_get_reaching_def): Same.
899 (get_biv_step): Same.
901 (analyzed_for_bivness_p): Same.
903 (iv_analyze_biv): Same.
904 (iv_analyze_expr): Same.
905 (iv_analyze_def): Same.
906 (iv_analyze_op): Same.
908 (iv_analyze_result): Same.
910 (eliminate_implied_conditions): Same.
911 (simplify_using_initial_values): Same.
912 (shorten_into_mode): Same.
913 (canonicalize_iv_subregs): Same.
914 (determine_max_iter): Same.
915 (check_simple_exit): Same.
916 (find_simple_exit): Same.
917 (get_simple_loop_desc): Same.
918 * loop-unroll.c (report_unroll): Same.
919 (decide_unrolling): Same.
920 (unroll_loops): Same.
921 (loop_exit_at_end_p): Same.
922 (decide_unroll_constant_iterations): Same.
923 (unroll_loop_constant_iterations): Same.
924 (compare_and_jump_seq): Same.
925 (unroll_loop_runtime_iterations): Same.
926 (decide_unroll_stupid): Same.
927 (unroll_loop_stupid): Same.
928 (referenced_in_one_insn_in_loop_p): Same.
929 (reset_debug_uses_in_loop): Same.
930 (analyze_iv_to_split_insn): Same.
931 * lra-eliminations.c (lra_debug_elim_table): Same.
932 (setup_can_eliminate): Same.
934 (lra_get_elimination_hard_regno): Same.
935 (lra_eliminate_regs_1): Same.
936 (eliminate_regs_in_insn): Same.
937 (update_reg_eliminate): Same.
938 (init_elimination): Same.
939 (lra_eliminate): Same.
941 * lra-lives.c (initiate_live_solver): Same.
942 * lra-remat.c (create_remat_bb_data): Same.
943 * lra-spills.c (lra_spill): Same.
944 * lra.c (lra_set_insn_recog_data): Same.
945 (lra_set_used_insn_alternative_by_uid): Same.
946 (init_reg_info): Same.
947 (expand_reg_info): Same.
948 * lto-cgraph.c (output_symtab): Same.
949 (read_identifier): Same.
950 (get_alias_symbol): Same.
952 (input_varpool_node): Same.
955 (input_cgraph_1): Same.
957 (input_symtab): Same.
958 (input_offload_tables): Same.
959 (output_cgraph_opt_summary): Same.
960 (input_edge_opt_summary): Same.
961 (input_cgraph_opt_section): Same.
962 * lto-section-in.c (lto_free_raw_section_data): Same.
963 (lto_create_simple_input_block): Same.
964 (lto_free_function_in_decl_state_for_node): Same.
965 * lto-streamer-in.c (lto_tag_check_set): Same.
966 (lto_location_cache::revert_location_cache): Same.
967 (lto_location_cache::input_location): Same.
968 (lto_input_location): Same.
969 (stream_input_location_now): Same.
970 (lto_input_tree_ref): Same.
971 (lto_input_eh_catch_list): Same.
972 (input_eh_region): Same.
974 (make_new_block): Same.
976 (fixup_call_stmt_edges): Same.
977 (input_struct_function_base): Same.
978 (input_function): Same.
979 (lto_read_body_or_constructor): Same.
980 (lto_read_tree_1): Same.
981 (lto_read_tree): Same.
982 (lto_input_scc): Same.
983 (lto_input_tree_1): Same.
984 (lto_input_toplevel_asms): Same.
985 (lto_input_mode_table): Same.
986 (lto_reader_init): Same.
987 (lto_data_in_create): Same.
988 * lto-streamer-out.c (output_cfg): Same.
989 * lto-streamer.h: Same.
990 * modulo-sched.c (duplicate_insns_of_cycles): Same.
991 (generate_prolog_epilog): Same.
992 (mark_loop_unsched): Same.
993 (dump_insn_location): Same.
994 (loop_canon_p): Same.
995 (sms_schedule): Same.
996 * omp-expand.c (expand_omp_for_ordered_loops): Same.
997 (expand_omp_for_generic): Same.
998 (expand_omp_for_static_nochunk): Same.
999 (expand_omp_for_static_chunk): Same.
1000 (expand_omp_simd): Same.
1001 (expand_omp_taskloop_for_inner): Same.
1002 (expand_oacc_for): Same.
1003 (expand_omp_atomic_pipeline): Same.
1004 (mark_loops_in_oacc_kernels_region): Same.
1005 * omp-offload.c (oacc_xform_loop): Same.
1006 * omp-simd-clone.c (simd_clone_adjust): Same.
1007 * optabs-query.c (get_traditional_extraction_insn): Same.
1008 * optabs.c (expand_vector_broadcast): Same.
1009 (expand_binop_directly): Same.
1010 (expand_twoval_unop): Same.
1011 (expand_twoval_binop): Same.
1012 (expand_unop_direct): Same.
1013 (emit_indirect_jump): Same.
1014 (emit_conditional_move): Same.
1015 (emit_conditional_neg_or_complement): Same.
1016 (emit_conditional_add): Same.
1017 (vector_compare_rtx): Same.
1018 (expand_vec_perm_1): Same.
1019 (expand_vec_perm_const): Same.
1020 (expand_vec_cond_expr): Same.
1021 (expand_vec_series_expr): Same.
1022 (maybe_emit_atomic_exchange): Same.
1023 (maybe_emit_sync_lock_test_and_set): Same.
1024 (expand_atomic_compare_and_swap): Same.
1025 (expand_atomic_load): Same.
1026 (expand_atomic_store): Same.
1027 (maybe_emit_op): Same.
1028 (valid_multiword_target_p): Same.
1029 (create_integer_operand): Same.
1030 (maybe_legitimize_operand_same_code): Same.
1031 (maybe_legitimize_operand): Same.
1032 (create_convert_operand_from_type): Same.
1033 (can_reuse_operands_p): Same.
1034 (maybe_legitimize_operands): Same.
1035 (maybe_gen_insn): Same.
1036 (maybe_expand_insn): Same.
1037 (maybe_expand_jump_insn): Same.
1038 (expand_insn): Same.
1039 * optabs.h (create_expand_operand): Same.
1040 (create_fixed_operand): Same.
1041 (create_output_operand): Same.
1042 (create_input_operand): Same.
1043 (create_convert_operand_to): Same.
1044 (create_convert_operand_from): Same.
1047 * predict.c (optimize_insn_for_speed_p): Same.
1048 (optimize_loop_for_size_p): Same.
1049 (optimize_loop_for_speed_p): Same.
1050 (optimize_loop_nest_for_speed_p): Same.
1051 (get_base_value): Same.
1052 (predicted_by_loop_heuristics_p): Same.
1053 (predict_extra_loop_exits): Same.
1054 (predict_loops): Same.
1055 (predict_paths_for_bb): Same.
1056 (predict_paths_leading_to): Same.
1057 (propagate_freq): Same.
1058 (pass_profile::execute): Same.
1060 * profile-count.c (profile_count::differs_from_p): Same.
1061 (profile_probability::differs_lot_from_p): Same.
1062 * profile-count.h: Same.
1063 * profile.c (branch_prob): Same.
1064 * regrename.c (free_chain_data): Same.
1065 (mark_conflict): Same.
1066 (create_new_chain): Same.
1067 (merge_overlapping_regs): Same.
1068 (init_rename_info): Same.
1069 (merge_chains): Same.
1070 (regrename_analyze): Same.
1071 (regrename_do_replace): Same.
1072 (scan_rtx_reg): Same.
1073 (record_out_operands): Same.
1074 (build_def_use): Same.
1075 * regrename.h: Same.
1077 * reload1.c (init_reload): Same.
1078 (maybe_fix_stack_asms): Same.
1079 (copy_reloads): Same.
1080 (count_pseudo): Same.
1081 (count_spilled_pseudo): Same.
1083 (find_reload_regs): Same.
1084 (select_reload_regs): Same.
1085 (spill_hard_reg): Same.
1086 (fixup_eh_region_note): Same.
1087 (set_reload_reg): Same.
1088 (allocate_reload_reg): Same.
1089 (compute_reload_subreg_offset): Same.
1090 (reload_adjust_reg_for_icode): Same.
1091 (emit_input_reload_insns): Same.
1092 (emit_output_reload_insns): Same.
1093 (do_input_reload): Same.
1094 (inherit_piecemeal_p): Same.
1096 * sanopt.c (maybe_get_dominating_check): Same.
1097 (maybe_optimize_ubsan_ptr_ifn): Same.
1098 (can_remove_asan_check): Same.
1099 (maybe_optimize_asan_check_ifn): Same.
1100 (sanopt_optimize_walker): Same.
1101 * sched-deps.c (add_dependence_list): Same.
1102 (chain_to_prev_insn): Same.
1103 (add_insn_mem_dependence): Same.
1104 (create_insn_reg_set): Same.
1105 (maybe_extend_reg_info_p): Same.
1106 (sched_analyze_reg): Same.
1107 (sched_analyze_1): Same.
1108 (get_implicit_reg_pending_clobbers): Same.
1109 (chain_to_prev_insn_p): Same.
1110 (deps_analyze_insn): Same.
1111 (deps_start_bb): Same.
1112 (sched_free_deps): Same.
1114 (init_deps_reg_last): Same.
1116 * sched-ebb.c: Same.
1117 * sched-int.h: Same.
1118 * sched-rgn.c (add_branch_dependences): Same.
1119 (concat_insn_mem_list): Same.
1121 (sched_rgn_compute_dependencies): Same.
1122 * sel-sched-ir.c (reset_target_context): Same.
1123 (copy_deps_context): Same.
1124 (init_id_from_df): Same.
1125 (has_dependence_p): Same.
1126 (change_loops_latches): Same.
1127 (bb_top_order_comparator): Same.
1128 (make_region_from_loop_preheader): Same.
1129 (sel_init_pipelining): Same.
1130 (get_loop_nest_for_rgn): Same.
1131 (make_regions_from_the_rest): Same.
1132 (sel_is_loop_preheader_p): Same.
1133 * sel-sched-ir.h (inner_loop_header_p): Same.
1134 (get_all_loop_exits): Same.
1136 * sese.c (sese_build_liveouts): Same.
1137 (sese_insert_phis_for_liveouts): Same.
1138 * sese.h (defined_in_sese_p): Same.
1139 * sreal.c (sreal::stream_out): Same.
1141 * streamer-hooks.h: Same.
1142 * target-globals.c (save_target_globals): Same.
1143 * target-globals.h: Same.
1146 * targhooks.c (default_has_ifunc_p): Same.
1147 (default_empty_mask_is_expensive): Same.
1148 (default_init_cost): Same.
1149 * targhooks.h: Same.
1151 * tree-affine.c (aff_combination_mult): Same.
1152 (aff_combination_expand): Same.
1153 (aff_combination_constant_multiple_p): Same.
1154 * tree-affine.h: Same.
1155 * tree-cfg.c (build_gimple_cfg): Same.
1156 (replace_loop_annotate_in_block): Same.
1157 (replace_uses_by): Same.
1159 (dump_cfg_stats): Same.
1160 (gimple_duplicate_sese_region): Same.
1161 (gimple_duplicate_sese_tail): Same.
1162 (move_block_to_fn): Same.
1163 (replace_block_vars_by_duplicates): Same.
1164 (move_sese_region_to_fn): Same.
1165 (print_loops_bb): Same.
1167 (print_loops): Same.
1169 (debug_loops): Same.
1171 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
1172 (chrec_fold_multiply_poly_poly): Same.
1173 (chrec_evaluate): Same.
1174 (chrec_component_in_loop_num): Same.
1175 (reset_evolution_in_loop): Same.
1176 (is_multivariate_chrec): Same.
1177 (chrec_contains_symbols): Same.
1178 (nb_vars_in_chrec): Same.
1179 (chrec_convert_1): Same.
1180 (chrec_convert_aggressive): Same.
1181 * tree-chrec.h: Same.
1182 * tree-core.h: Same.
1183 * tree-data-ref.c (dump_data_dependence_relation): Same.
1184 (canonicalize_base_object_address): Same.
1185 (data_ref_compare_tree): Same.
1186 (prune_runtime_alias_test_list): Same.
1187 (get_segment_min_max): Same.
1188 (create_intersect_range_checks): Same.
1189 (conflict_fn_no_dependence): Same.
1190 (object_address_invariant_in_loop_p): Same.
1191 (analyze_ziv_subscript): Same.
1192 (analyze_siv_subscript_cst_affine): Same.
1193 (analyze_miv_subscript): Same.
1194 (analyze_overlapping_iterations): Same.
1195 (build_classic_dist_vector_1): Same.
1196 (add_other_self_distances): Same.
1197 (same_access_functions): Same.
1198 (build_classic_dir_vector): Same.
1199 (subscript_dependence_tester_1): Same.
1200 (subscript_dependence_tester): Same.
1201 (access_functions_are_affine_or_constant_p): Same.
1202 (get_references_in_stmt): Same.
1203 (loop_nest_has_data_refs): Same.
1204 (graphite_find_data_references_in_stmt): Same.
1205 (find_data_references_in_bb): Same.
1206 (get_base_for_alignment): Same.
1207 (find_loop_nest_1): Same.
1208 (find_loop_nest): Same.
1209 * tree-data-ref.h (dr_alignment): Same.
1210 (ddr_dependence_level): Same.
1211 * tree-if-conv.c (fold_build_cond_expr): Same.
1212 (add_to_predicate_list): Same.
1213 (add_to_dst_predicate_list): Same.
1214 (phi_convertible_by_degenerating_args): Same.
1215 (idx_within_array_bound): Same.
1216 (all_preds_critical_p): Same.
1217 (pred_blocks_visited_p): Same.
1218 (predicate_bbs): Same.
1219 (build_region): Same.
1220 (if_convertible_loop_p_1): Same.
1221 (is_cond_scalar_reduction): Same.
1222 (predicate_scalar_phi): Same.
1223 (remove_conditions_and_labels): Same.
1224 (combine_blocks): Same.
1225 (version_loop_for_if_conversion): Same.
1226 (versionable_outer_loop_p): Same.
1227 (ifcvt_local_dce): Same.
1228 (tree_if_conversion): Same.
1229 (pass_if_conversion::gate): Same.
1230 * tree-if-conv.h: Same.
1231 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
1232 * tree-loop-distribution.c (bb_top_order_cmp): Same.
1234 (stmt_has_scalar_dependences_outside_loop): Same.
1235 (copy_loop_before): Same.
1236 (create_bb_after_loop): Same.
1237 (const_with_all_bytes_same): Same.
1238 (generate_memset_builtin): Same.
1239 (generate_memcpy_builtin): Same.
1240 (destroy_loop): Same.
1241 (build_rdg_partition_for_vertex): Same.
1242 (compute_access_range): Same.
1243 (data_ref_segment_size): Same.
1244 (latch_dominated_by_data_ref): Same.
1245 (compute_alias_check_pairs): Same.
1246 (fuse_memset_builtins): Same.
1247 (finalize_partitions): Same.
1248 (find_seed_stmts_for_distribution): Same.
1249 (prepare_perfect_loop_nest): Same.
1250 * tree-parloops.c (lambda_transform_legal_p): Same.
1251 (loop_parallel_p): Same.
1252 (reduc_stmt_res): Same.
1253 (add_field_for_name): Same.
1254 (create_call_for_reduction_1): Same.
1255 (replace_uses_in_bb_by): Same.
1256 (transform_to_exit_first_loop_alt): Same.
1257 (try_transform_to_exit_first_loop_alt): Same.
1258 (transform_to_exit_first_loop): Same.
1260 (gen_parallel_loop): Same.
1261 (gather_scalar_reductions): Same.
1262 (get_omp_data_i_param): Same.
1263 (try_create_reduction_list): Same.
1264 (oacc_entry_exit_single_gang): Same.
1265 (parallelize_loops): Same.
1266 * tree-pass.h: Same.
1267 * tree-predcom.c (determine_offset): Same.
1268 (last_always_executed_block): Same.
1269 (split_data_refs_to_components): Same.
1270 (suitable_component_p): Same.
1271 (valid_initializer_p): Same.
1272 (find_looparound_phi): Same.
1273 (insert_looparound_copy): Same.
1274 (add_looparound_copies): Same.
1275 (determine_roots_comp): Same.
1276 (predcom_tmp_var): Same.
1277 (initialize_root_vars): Same.
1278 (initialize_root_vars_store_elim_1): Same.
1279 (initialize_root_vars_store_elim_2): Same.
1280 (finalize_eliminated_stores): Same.
1281 (initialize_root_vars_lm): Same.
1282 (remove_stmt): Same.
1283 (determine_unroll_factor): Same.
1284 (execute_pred_commoning_cbck): Same.
1285 (base_names_in_chain_on): Same.
1286 (combine_chains): Same.
1287 (pcom_stmt_dominates_stmt_p): Same.
1288 (try_combine_chains): Same.
1289 (prepare_initializers_chain_store_elim): Same.
1290 (prepare_initializers_chain): Same.
1291 (prepare_initializers): Same.
1292 (prepare_finalizers_chain): Same.
1293 (prepare_finalizers): Same.
1294 (insert_init_seqs): Same.
1295 * tree-scalar-evolution.c (loop_phi_node_p): Same.
1296 (compute_overall_effect_of_inner_loop): Same.
1297 (add_to_evolution_1): Same.
1298 (add_to_evolution): Same.
1299 (follow_ssa_edge_binary): Same.
1300 (follow_ssa_edge_expr): Same.
1301 (backedge_phi_arg_p): Same.
1302 (follow_ssa_edge_in_condition_phi_branch): Same.
1303 (follow_ssa_edge_in_condition_phi): Same.
1304 (follow_ssa_edge_inner_loop_phi): Same.
1305 (follow_ssa_edge): Same.
1306 (analyze_evolution_in_loop): Same.
1307 (analyze_initial_condition): Same.
1308 (interpret_loop_phi): Same.
1309 (interpret_condition_phi): Same.
1310 (interpret_rhs_expr): Same.
1311 (interpret_expr): Same.
1312 (interpret_gimple_assign): Same.
1313 (analyze_scalar_evolution_1): Same.
1314 (analyze_scalar_evolution): Same.
1315 (analyze_scalar_evolution_for_address_of): Same.
1316 (get_instantiated_value_entry): Same.
1317 (loop_closed_phi_def): Same.
1318 (instantiate_scev_name): Same.
1319 (instantiate_scev_poly): Same.
1320 (instantiate_scev_binary): Same.
1321 (instantiate_scev_convert): Same.
1322 (instantiate_scev_not): Same.
1323 (instantiate_scev_r): Same.
1324 (instantiate_scev): Same.
1325 (resolve_mixers): Same.
1326 (initialize_scalar_evolutions_analyzer): Same.
1327 (scev_reset_htab): Same.
1329 (derive_simple_iv_with_niters): Same.
1330 (simple_iv_with_niters): Same.
1331 (expression_expensive_p): Same.
1332 (final_value_replacement_loop): Same.
1333 * tree-scalar-evolution.h (block_before_loop): Same.
1334 * tree-ssa-address.h: Same.
1335 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
1336 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
1337 (record_edge_info): Same.
1338 * tree-ssa-live.c (var_map_base_fini): Same.
1339 (remove_unused_locals): Same.
1340 * tree-ssa-live.h: Same.
1341 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
1342 (pass_ch_vect::execute): Same.
1343 (pass_ch::process_loop_p): Same.
1344 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
1345 (movement_possibility): Same.
1346 (outermost_invariant_loop): Same.
1348 (determine_max_movement): Same.
1349 (invariantness_dom_walker::before_dom_children): Same.
1350 (move_computations): Same.
1351 (may_move_till): Same.
1352 (force_move_till_op): Same.
1353 (force_move_till): Same.
1354 (memref_free): Same.
1355 (record_mem_ref_loc): Same.
1356 (set_ref_stored_in_loop): Same.
1357 (mark_ref_stored): Same.
1358 (sort_bbs_in_loop_postorder_cmp): Same.
1359 (sort_locs_in_loop_postorder_cmp): Same.
1360 (analyze_memory_references): Same.
1361 (mem_refs_may_alias_p): Same.
1362 (find_ref_loc_in_loop_cmp): Same.
1363 (rewrite_mem_ref_loc::operator): Same.
1364 (first_mem_ref_loc_1::operator): Same.
1365 (sm_set_flag_if_changed::operator): Same.
1366 (execute_sm_if_changed_flag_set): Same.
1368 (hoist_memory_references): Same.
1369 (ref_always_accessed::operator): Same.
1370 (refs_independent_p): Same.
1371 (record_dep_loop): Same.
1372 (ref_indep_loop_p_1): Same.
1373 (ref_indep_loop_p): Same.
1374 (can_sm_ref_p): Same.
1375 (find_refs_for_sm): Same.
1376 (loop_suitable_for_sm): Same.
1377 (store_motion_loop): Same.
1378 (store_motion): Same.
1379 (fill_always_executed_in): Same.
1380 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
1381 (estimated_unrolled_size): Same.
1382 (loop_edge_to_cancel): Same.
1383 (remove_exits_and_undefined_stmts): Same.
1384 (remove_redundant_iv_tests): Same.
1385 (unloop_loops): Same.
1386 (estimated_peeled_sequence_size): Same.
1387 (try_peel_loop): Same.
1388 (canonicalize_loop_induction_variables): Same.
1389 (canonicalize_induction_variables): Same.
1390 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
1392 (stmt_after_inc_pos): Same.
1393 (contains_abnormal_ssa_name_p): Same.
1394 (niter_for_exit): Same.
1397 (find_givs_in_bb): Same.
1398 (find_induction_variables): Same.
1399 (find_interesting_uses_cond): Same.
1400 (outermost_invariant_loop_for_expr): Same.
1401 (idx_find_step): Same.
1402 (add_candidate_1): Same.
1403 (add_iv_candidate_derived_from_uses): Same.
1404 (alloc_use_cost_map): Same.
1405 (prepare_decl_rtl): Same.
1406 (generic_predict_doloop_p): Same.
1407 (computation_cost): Same.
1408 (determine_common_wider_type): Same.
1409 (get_computation_aff_1): Same.
1410 (get_use_type): Same.
1411 (determine_group_iv_cost_address): Same.
1413 (difference_cannot_overflow_p): Same.
1414 (may_eliminate_iv): Same.
1415 (determine_set_costs): Same.
1416 (cheaper_cost_pair): Same.
1417 (compare_cost_pair): Same.
1418 (iv_ca_cand_for_group): Same.
1419 (iv_ca_recount_cost): Same.
1420 (iv_ca_set_remove_invs): Same.
1421 (iv_ca_set_no_cp): Same.
1422 (iv_ca_set_add_invs): Same.
1423 (iv_ca_set_cp): Same.
1424 (iv_ca_add_group): Same.
1426 (iv_ca_compare_deps): Same.
1427 (iv_ca_delta_reverse): Same.
1428 (iv_ca_delta_commit): Same.
1429 (iv_ca_cand_used_p): Same.
1430 (iv_ca_delta_free): Same.
1434 (iv_ca_extend): Same.
1435 (iv_ca_narrow): Same.
1436 (iv_ca_prune): Same.
1437 (cheaper_cost_with_cand): Same.
1438 (iv_ca_replace): Same.
1439 (try_add_cand_for): Same.
1440 (get_initial_solution): Same.
1441 (try_improve_iv_set): Same.
1442 (find_optimal_iv_set_1): Same.
1443 (create_new_iv): Same.
1444 (rewrite_use_compare): Same.
1445 (remove_unused_ivs): Same.
1446 (determine_scaling_factor): Same.
1447 * tree-ssa-loop-ivopts.h: Same.
1448 * tree-ssa-loop-manip.c (create_iv): Same.
1449 (compute_live_loop_exits): Same.
1450 (add_exit_phi): Same.
1451 (add_exit_phis): Same.
1452 (find_uses_to_rename_use): Same.
1453 (find_uses_to_rename_def): Same.
1454 (find_uses_to_rename_in_loop): Same.
1455 (rewrite_into_loop_closed_ssa): Same.
1456 (check_loop_closed_ssa_bb): Same.
1457 (split_loop_exit_edge): Same.
1459 (ip_normal_pos): Same.
1460 (copy_phi_node_args): Same.
1461 (gimple_duplicate_loop_to_header_edge): Same.
1462 (can_unroll_loop_p): Same.
1463 (determine_exit_conditions): Same.
1464 (scale_dominated_blocks_in_loop): Same.
1465 (niter_for_unrolled_loop): Same.
1466 (tree_transform_and_unroll_loop): Same.
1467 (rewrite_all_phi_nodes_with_iv): Same.
1468 * tree-ssa-loop-manip.h: Same.
1469 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
1470 (number_of_iterations_ne): Same.
1471 (assert_no_overflow_lt): Same.
1472 (assert_loop_rolls_lt): Same.
1473 (number_of_iterations_lt): Same.
1474 (adjust_cond_for_loop_until_wrap): Same.
1475 (tree_simplify_using_condition): Same.
1476 (simplify_using_initial_conditions): Same.
1477 (simplify_using_outer_evolutions): Same.
1478 (loop_only_exit_p): Same.
1479 (ssa_defined_by_minus_one_stmt_p): Same.
1480 (number_of_iterations_popcount): Same.
1481 (number_of_iterations_exit): Same.
1482 (find_loop_niter): Same.
1483 (finite_loop_p): Same.
1484 (chain_of_csts_start): Same.
1485 (get_val_for): Same.
1486 (loop_niter_by_eval): Same.
1487 (derive_constant_upper_bound_ops): Same.
1488 (do_warn_aggressive_loop_optimizations): Same.
1489 (record_estimate): Same.
1490 (get_cst_init_from_scev): Same.
1491 (record_nonwrapping_iv): Same.
1492 (idx_infer_loop_bounds): Same.
1493 (infer_loop_bounds_from_ref): Same.
1494 (infer_loop_bounds_from_array): Same.
1495 (infer_loop_bounds_from_pointer_arith): Same.
1496 (infer_loop_bounds_from_signedness): Same.
1497 (bound_index): Same.
1498 (discover_iteration_bound_by_body_walk): Same.
1499 (maybe_lower_iteration_bound): Same.
1500 (estimate_numbers_of_iterations): Same.
1501 (estimated_loop_iterations): Same.
1502 (estimated_loop_iterations_int): Same.
1503 (max_loop_iterations): Same.
1504 (max_loop_iterations_int): Same.
1505 (likely_max_loop_iterations): Same.
1506 (likely_max_loop_iterations_int): Same.
1507 (estimated_stmt_executions_int): Same.
1508 (max_stmt_executions): Same.
1509 (likely_max_stmt_executions): Same.
1510 (estimated_stmt_executions): Same.
1511 (stmt_dominates_stmt_p): Same.
1512 (nowrap_type_p): Same.
1513 (loop_exits_before_overflow): Same.
1514 (scev_var_range_cant_overflow): Same.
1515 (scev_probably_wraps_p): Same.
1516 (free_numbers_of_iterations_estimates): Same.
1517 * tree-ssa-loop-niter.h: Same.
1518 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
1519 (idx_analyze_ref): Same.
1520 (analyze_ref): Same.
1521 (gather_memory_references_ref): Same.
1522 (mark_nontemporal_store): Same.
1523 (emit_mfence_after_loop): Same.
1524 (may_use_storent_in_loop_p): Same.
1525 (mark_nontemporal_stores): Same.
1526 (should_unroll_loop_p): Same.
1527 (volume_of_dist_vector): Same.
1528 (add_subscript_strides): Same.
1529 (self_reuse_distance): Same.
1530 (insn_to_prefetch_ratio_too_small_p): Same.
1531 * tree-ssa-loop-split.c (split_at_bb_p): Same.
1532 (patch_loop_exit): Same.
1533 (find_or_create_guard_phi): Same.
1534 (easy_exit_values): Same.
1535 (connect_loop_phis): Same.
1536 (connect_loops): Same.
1537 (compute_new_first_bound): Same.
1539 (tree_ssa_split_loops): Same.
1540 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
1541 (is_maybe_undefined): Same.
1542 (tree_may_unswitch_on): Same.
1543 (simplify_using_entry_checks): Same.
1544 (tree_unswitch_single_loop): Same.
1545 (tree_unswitch_loop): Same.
1546 (tree_unswitch_outer_loop): Same.
1547 (empty_bb_without_guard_p): Same.
1548 (used_outside_loop_p): Same.
1549 (get_vop_from_header): Same.
1550 (hoist_guard): Same.
1551 * tree-ssa-loop.c (gate_oacc_kernels): Same.
1552 (get_lsm_tmp_name): Same.
1553 * tree-ssa-loop.h: Same.
1554 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
1555 (build_and_add_sum): Same.
1556 (no_side_effect_bb): Same.
1558 (linearize_expr): Same.
1559 (should_break_up_subtract): Same.
1560 (linearize_expr_tree): Same.
1561 * tree-ssa-scopedtables.c: Same.
1562 * tree-ssa-scopedtables.h: Same.
1563 * tree-ssa-structalias.c (condense_visit): Same.
1564 (label_visit): Same.
1565 (dump_pred_graph): Same.
1566 (perform_var_substitution): Same.
1567 (move_complex_constraints): Same.
1568 (remove_preds_and_fake_succs): Same.
1569 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
1570 (determine_bb_domination_status): Same.
1571 (duplicate_thread_path): Same.
1572 (thread_through_all_blocks): Same.
1573 * tree-ssa-threadupdate.h: Same.
1574 * tree-streamer-in.c (streamer_read_string_cst): Same.
1575 (input_identifier): Same.
1576 (unpack_ts_type_common_value_fields): Same.
1577 (unpack_ts_block_value_fields): Same.
1578 (unpack_ts_translation_unit_decl_value_fields): Same.
1579 (unpack_ts_omp_clause_value_fields): Same.
1580 (streamer_read_tree_bitfields): Same.
1581 (streamer_alloc_tree): Same.
1582 (lto_input_ts_common_tree_pointers): Same.
1583 (lto_input_ts_vector_tree_pointers): Same.
1584 (lto_input_ts_poly_tree_pointers): Same.
1585 (lto_input_ts_complex_tree_pointers): Same.
1586 (lto_input_ts_decl_minimal_tree_pointers): Same.
1587 (lto_input_ts_decl_common_tree_pointers): Same.
1588 (lto_input_ts_decl_non_common_tree_pointers): Same.
1589 (lto_input_ts_decl_with_vis_tree_pointers): Same.
1590 (lto_input_ts_field_decl_tree_pointers): Same.
1591 (lto_input_ts_function_decl_tree_pointers): Same.
1592 (lto_input_ts_type_common_tree_pointers): Same.
1593 (lto_input_ts_type_non_common_tree_pointers): Same.
1594 (lto_input_ts_list_tree_pointers): Same.
1595 (lto_input_ts_vec_tree_pointers): Same.
1596 (lto_input_ts_exp_tree_pointers): Same.
1597 (lto_input_ts_block_tree_pointers): Same.
1598 (lto_input_ts_binfo_tree_pointers): Same.
1599 (lto_input_ts_constructor_tree_pointers): Same.
1600 (lto_input_ts_omp_clause_tree_pointers): Same.
1601 (streamer_read_tree_body): Same.
1602 * tree-streamer.h: Same.
1603 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
1604 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
1605 (vect_analyze_possibly_independent_ddr): Same.
1606 (vect_analyze_data_ref_dependence): Same.
1607 (vect_compute_data_ref_alignment): Same.
1608 (vect_enhance_data_refs_alignment): Same.
1609 (vect_analyze_data_ref_access): Same.
1610 (vect_check_gather_scatter): Same.
1611 (vect_find_stmt_data_reference): Same.
1612 (vect_create_addr_base_for_vector_ref): Same.
1613 (vect_setup_realignment): Same.
1614 (vect_supportable_dr_alignment): Same.
1615 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
1616 (adjust_phi_and_debug_stmts): Same.
1617 (vect_set_loop_mask): Same.
1618 (add_preheader_seq): Same.
1619 (vect_maybe_permute_loop_masks): Same.
1620 (vect_set_loop_masks_directly): Same.
1621 (vect_set_loop_condition_masked): Same.
1622 (vect_set_loop_condition_unmasked): Same.
1623 (slpeel_duplicate_current_defs_from_edges): Same.
1624 (slpeel_add_loop_guard): Same.
1625 (slpeel_can_duplicate_loop_p): Same.
1626 (create_lcssa_for_virtual_phi): Same.
1628 (vect_update_ivs_after_vectorizer): Same.
1629 (vect_gen_vector_loop_niters_mult_vf): Same.
1630 (slpeel_update_phi_nodes_for_loops): Same.
1631 (slpeel_update_phi_nodes_for_guard1): Same.
1632 (find_guard_arg): Same.
1633 (slpeel_update_phi_nodes_for_guard2): Same.
1634 (slpeel_update_phi_nodes_for_lcssa): Same.
1635 (vect_do_peeling): Same.
1636 (vect_create_cond_for_alias_checks): Same.
1637 (vect_loop_versioning): Same.
1638 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
1639 (vect_inner_phi_in_double_reduction_p): Same.
1640 (vect_analyze_scalar_cycles_1): Same.
1641 (vect_fixup_scalar_cycles_with_patterns): Same.
1642 (vect_get_loop_niters): Same.
1643 (bb_in_loop_p): Same.
1644 (vect_get_max_nscalars_per_iter): Same.
1645 (vect_verify_full_masking): Same.
1646 (vect_compute_single_scalar_iteration_cost): Same.
1647 (vect_analyze_loop_form_1): Same.
1648 (vect_analyze_loop_form): Same.
1649 (vect_active_double_reduction_p): Same.
1650 (vect_analyze_loop_operations): Same.
1651 (neutral_op_for_slp_reduction): Same.
1652 (vect_is_simple_reduction): Same.
1653 (vect_model_reduction_cost): Same.
1654 (get_initial_def_for_reduction): Same.
1655 (get_initial_defs_for_reduction): Same.
1656 (vect_create_epilog_for_reduction): Same.
1657 (vectorize_fold_left_reduction): Same.
1658 (vectorizable_reduction): Same.
1659 (vectorizable_induction): Same.
1660 (vectorizable_live_operation): Same.
1661 (loop_niters_no_overflow): Same.
1662 (vect_get_loop_mask): Same.
1663 (vect_transform_loop_stmt): Same.
1664 (vect_transform_loop): Same.
1665 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
1666 (vect_determine_precisions): Same.
1667 (vect_pattern_recog_1): Same.
1668 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
1669 * tree-vect-stmts.c (stmt_vectype): Same.
1670 (process_use): Same.
1671 (vect_init_vector_1): Same.
1672 (vect_truncate_gather_scatter_offset): Same.
1673 (get_group_load_store_type): Same.
1674 (vect_build_gather_load_calls): Same.
1675 (vect_get_strided_load_store_ops): Same.
1676 (vectorizable_simd_clone_call): Same.
1677 (vectorizable_store): Same.
1678 (permute_vec_elements): Same.
1679 (vectorizable_load): Same.
1680 (vect_transform_stmt): Same.
1681 (supportable_widening_operation): Same.
1682 * tree-vectorizer.c (vec_info::replace_stmt): Same.
1683 (vec_info::free_stmt_vec_info): Same.
1684 (vect_free_loop_info_assumptions): Same.
1685 (vect_loop_vectorized_call): Same.
1686 (set_uid_loop_bbs): Same.
1687 (vectorize_loops): Same.
1688 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
1689 * tree.c (add_tree_to_fld_list): Same.
1690 (fld_type_variant_equal_p): Same.
1691 (fld_decl_context): Same.
1692 (fld_incomplete_type_of): Same.
1693 (free_lang_data_in_binfo): Same.
1694 (need_assembler_name_p): Same.
1695 (find_decls_types_r): Same.
1696 (get_eh_types_for_runtime): Same.
1697 (find_decls_types_in_eh_region): Same.
1698 (find_decls_types_in_node): Same.
1699 (assign_assembler_name_if_needed): Same.
1700 * value-prof.c (stream_out_histogram_value): Same.
1701 * value-prof.h: Same.
1702 * var-tracking.c (use_narrower_mode): Same.
1703 (prepare_call_arguments): Same.
1704 (vt_expand_loc_callback): Same.
1705 (resolve_expansions_pending_recursion): Same.
1706 (vt_expand_loc): Same.
1707 * varasm.c (const_hash_1): Same.
1708 (compare_constant): Same.
1709 (tree_output_constant_def): Same.
1710 (simplify_subtraction): Same.
1711 (get_pool_constant): Same.
1712 (output_constant_pool_2): Same.
1713 (output_constant_pool_1): Same.
1714 (mark_constants_in_pattern): Same.
1715 (mark_constant_pool): Same.
1716 (get_section_anchor): Same.
1717 * vr-values.c (compare_range_with_value): Same.
1718 (vr_values::extract_range_from_phi_node): Same.
1719 * vr-values.h: Same.
1720 * web.c (unionfind_union): Same.
1723 2019-07-09 Martin Sebor <msebor@redhat.com>
1726 * align.h: Change class-key from class to struct and vice versa
1727 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
1728 * alloc-pool.h: Same.
1729 * asan.c (shadow_mem_size): Same.
1730 * auto-profile.c: Same.
1731 * basic-block.h: Same.
1733 * cfgexpand.c (set_rtl): Same.
1734 (expand_one_stack_var_at): Same.
1738 * config/i386/i386.h: Same.
1739 * df-problems.c (df_print_bb_index): Same.
1741 * df.h (df_single_use): Same.
1742 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
1743 (layout::annotation_line_showed_range_p): Same.
1744 (get_printed_columns): Same.
1745 (correction::ensure_terminated): Same.
1746 (line_corrections::~line_corrections): Same.
1749 * dump-context.h: Same.
1751 * dwarf2out.c: Same.
1752 * edit-context.c: Same.
1753 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
1755 * function.c (assign_stack_local): Same.
1758 * gcov.c (block_info::block_info): Same.
1759 * genattrtab.c: Same.
1760 * genextract.c: Same.
1761 * genmatch.c (comparison_code_p): Same.
1762 (id_base::id_base): Same.
1763 (decision_tree::print): Same.
1764 * genoutput.c: Same.
1765 * genpreds.c (write_one_predicate_function): Same.
1766 * genrecog.c (validate_pattern): Same.
1767 (find_operand_positions): Same.
1768 (optimize_subroutine_group): Same.
1769 (merge_pattern_transition::merge_pattern_transition): Same.
1770 (merge_pattern_info::merge_pattern_info): Same.
1771 (merge_state_result::merge_state_result): Same.
1772 (merge_into_state): Same.
1773 * gensupport.c: Same.
1774 * gensupport.h: Same.
1775 * ggc-common.c (init_ggc_heuristics): Same.
1776 * ggc-tests.c (test_union): Same.
1777 * gimple-loop-interchange.cc (dump_induction): Same.
1778 * gimple-loop-versioning.cc: Same.
1779 * gimple-match.h (gimple_match_cond::any_else): Same.
1780 * gimple-ssa-backprop.c: Same.
1781 * gimple-ssa-sprintf.c: Same.
1782 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
1784 (store_immediate_info::store_immediate_info): Same.
1785 (merged_store_group::apply_stores): Same.
1786 (get_location_for_stmts): Same.
1787 * gimple-ssa-strength-reduction.c: Same.
1788 * gimple-ssa-warn-alloca.c: Same.
1789 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
1790 * godump.c (go_type_decl): Same.
1791 * hash-map-tests.c (test_map_of_strings_to_int): Same.
1793 * hash-set-tests.c (test_set_of_strings): Same.
1795 * hsa-common.h: Same.
1796 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
1797 * input.c (assert_loceq): Same.
1800 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
1801 * ipa-fnsummary.h: Same.
1802 * ipa-inline.h: Same.
1804 * ipa-split.c (visit_bb): Same.
1805 * ira-int.h (minmax_set_iter_next): Same.
1806 * loop-invariant.c: Same.
1808 * lra-eliminations.c: Same.
1810 * lra-lives.c (mark_regno_dead): Same.
1811 * lra-remat.c: Same.
1812 * lra-spills.c: Same.
1813 * lto-streamer.h: Same.
1814 * mem-stats.h: Same.
1815 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
1816 * omp-low.c (omp_clause_aligned_alignment): Same.
1817 * optabs-query.h (get_vcond_eq_icode): Same.
1819 * opts.c (wrap_help): Same.
1821 * predict.c (predict_paths_leading_to_edge): Same.
1822 * pretty-print.h: Same.
1823 * profile-count.h: Same.
1825 * read-rtl-function.c: Same.
1828 * regrename.c: Same.
1829 * regrename.h: Same.
1832 * rtl.h (costs_add_n_insns): Same.
1834 * sched-int.h: Same.
1835 * sel-sched-ir.h: Same.
1837 * sese.h (vec_find): Same.
1839 * target-globals.h: Same.
1840 * tree-affine.c (aff_combination_find_elt): Same.
1841 * tree-affine.h: Same.
1842 * tree-data-ref.h: Same.
1843 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
1844 * tree-predcom.c: Same.
1845 * tree-scalar-evolution.c (find_var_scev_info): Same.
1846 * tree-ssa-alias.h: Same.
1847 * tree-ssa-ccp.c: Same.
1848 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
1849 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
1850 (rewrite_mem_refs): Same.
1851 (execute_sm_if_changed): Same.
1852 (hoist_memory_references): Same.
1853 * tree-ssa-loop-ivopts.c (operator<=): Same.
1854 * tree-ssa-loop.h: Same.
1855 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
1856 * tree-ssa-structalias.c: Same.
1857 * tree-switch-conversion.h (cluster::cluster): Same.
1858 (simple_cluster::simple_cluster): Same.
1859 * tree-vect-patterns.c (type_conversion_p): Same.
1860 * tree-vectorizer.c (dump_stmt_cost): Same.
1861 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
1862 * tree.c (protected_set_expr_location): Same.
1863 * tree.h (desired_pro_or_demotion_p): Same.
1864 (fndecl_built_in_p): Same.
1865 * unique-ptr-tests.cc: Same.
1866 * var-tracking.c (delete_variable_part): Same.
1867 * varasm.c (assemble_real): Same.
1868 (tree_output_constant_def): Same.
1870 * wide-int-bitmask.h: Same.
1871 * wide-int.h (decompose): Same.
1873 2019-07-09 Richard Biener <rguenther@suse.de>
1875 PR tree-optimization/91114
1876 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
1877 find a vector type isn't fatal.
1879 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
1881 * config/aarch64/aarch64-simd.md
1882 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
1883 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
1884 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
1885 (*aarch64_crypto_aese_fused,
1886 *aarch64_crypto_aesd_fused): Update to new definition.
1887 * config/aarch64/aarch64.c
1888 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
1890 2019-07-09 Richard Biener <rguenther@suse.de>
1892 * gimple-match.h (gimple_match_op::resimplify): New.
1893 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
1894 gimple_resimplify4, gimple_resimplify5): Remove.
1895 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
1896 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
1898 (gimple_match_op::resimplify): New.
1899 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
1900 according to availability. Use gimple_match_op::resimplify.
1902 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
1904 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
1906 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
1908 * config/arm/crypto.md:
1909 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
1910 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
1911 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
1912 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
1914 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
1915 * config/arm/aarch-common-protos.h
1916 (aarch_crypto_can_dual_issue): Remove.
1917 * config/arm/aarch-common.c
1918 (aarch_crypto_can_dual_issue): Likewise.
1919 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
1920 * config/arm/cortex-a53.md: Likewise.
1921 * config/arm/cortex-a57.md: Likewise.
1922 * config/arm/iterators.md:
1923 (CRYPTO_BINARY): Redefine.
1924 (CRYPTO_UNARY): Removed.
1925 (CRYPTO_AES, CRYPTO_AESMC): New.
1927 2019-07-09 Richard Biener <rguenther@suse.de>
1929 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
1930 (vn_reference_lookup_3): If the main ref has no access path recorded
1931 but orig_ref has use it to do access-path based disambiguation.
1932 (vn_reference_lookup_pieces): Adjust.
1933 (vn_reference_lookup): Pass down original ref if we valueized.
1935 2019-07-09 Martin Liska <mliska@suse.cz>
1937 * doc/extend.texi: Document influence on loop
1940 2019-07-09 Martin Liska <mliska@suse.cz>
1942 * lto-compress.c (lto_normalized_zstd_level): Do not use
1943 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
1944 of libzstd. One can use 0 as a default compression level.
1946 2019-07-09 Martin Liska <mliska@suse.cz>
1948 * doc/invoke.texi: Add link from -fprofile-dir option.
1949 Use better wording for 'gcno filename'.
1951 2019-07-08 Martin Sebor <msebor@redhat.com>
1955 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
1957 (args_loc_t): New type.
1958 (args_loc_t, locmap_t): same.
1959 (diag_returned_locals): New function.
1960 (is_addr_local): Same.
1961 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
1962 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
1963 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
1965 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1967 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
1968 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
1969 and casts in offset when different, both through gimple stmts
1970 and through trees. Rewritten using loops to minimize code duplication
1973 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
1975 * emit-rtl.c (set_insn_locations): New function moved from...
1976 * function.c (set_insn_locations): ...here.
1977 * ira-emit.c (emit_moves): Propagate location of the first instruction
1978 to the inserted move instructions.
1979 * reg-stack.c (compensate_edge): Set the location if the sequence is
1980 inserted on the edge.
1981 * rtl.h (set_insn_locations): Declare.
1983 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
1985 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
1986 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
1989 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
1991 PR rtl-optimization/88233
1992 * common.opt (fsplit-wide-types-early): New option.
1993 * common/config/rs6000/rs6000-common.c
1994 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
1996 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
1997 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
1998 flag_split_wide_types_early.
1999 (pass_data_lower_subreg3): New.
2000 (pass_lower_subreg3): New.
2001 (make_pass_lower_subreg3): New.
2002 * passes.def (pass_lower_subreg2): Move after the loop passes.
2003 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
2004 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
2005 the pass pipeline; its previous place is taken by ...
2006 (make_pass_lower_subreg3): ... this.
2008 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2010 * config/s390/s390.c (s390_shift_truncation_mask): Define.
2011 (TARGET_SHIFT_TRUNCATION_MASK): Define.
2013 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2015 * config/s390/constraints.md: Add new jsc constraint.
2016 * config/s390/predicates.md: New predicates.
2017 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
2018 * config/s390/s390.c (s390_valid_shift_count): New function.
2019 (print_shift_count_operand): Use s390_valid_shift_count.
2020 (print_operand): Likewise.
2021 * config/s390/s390.md: Use new predicate.
2022 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
2023 * config/s390/vector.md: Use new predicate.
2025 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
2027 Avoid clash with system header declaration.
2028 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
2029 Remove unused declaration.
2031 2019-07-08 Andrew Waterman <andrew@sifive.com>
2032 Jim Wilson <jimw@sifive.com>
2034 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
2035 bitsize instead of BITS_PER_WORD.
2038 2019-07-08 Martin Liska <mliska@suse.cz>
2040 * collect2.c (defined): Revert to before r254460.
2041 (scan_prog_file): Revert to before r254460.
2043 2019-07-08 Richard Biener <rguenther@suse.de>
2045 PR tree-optimization/83518
2046 * tree-ssa-sccvn.c: Include splay-tree.h.
2047 (struct pd_range, struct pd_data): New.
2048 (struct vn_walk_cb_data): Add data to track partial definitions.
2049 (vn_walk_cb_data::~vn_walk_cb_data): New.
2050 (vn_walk_cb_data::push_partial_def): New.
2051 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
2052 (vn_reference_lookup_2): When partial defs are registered give up.
2053 (vn_reference_lookup_3): Track partial defs for memset and
2054 constructor zeroing and for defs from constants.
2056 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2058 * doc/install.texi (bootstrap-Og): Document.
2060 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2062 * config/riscv/pic.md (*local_pic_load_s<mode>)
2063 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
2064 referenced by <mode>, giving...
2065 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
2066 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
2067 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
2068 use <X:MODE> for the mode attribute.
2070 2019-07-07 Jeff Law <law@redhat.com>
2072 PR tree-optimization/91090
2073 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
2074 in handling of ranges to simplify switch statements.
2076 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2078 * config/darwin.c (darwin_override_options): Make a final check on PIC
2081 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2083 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
2086 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2089 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
2090 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
2091 instead of matching them to "l" output operands.
2093 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2095 * config/mips/mips.c (mips_split_move): Zero-initialize addr
2096 and check whether addr.reg is nonnull before using it.
2098 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2100 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
2101 ctx->for_simd_scan_phase simd copy the outer var to the privatized
2102 variable(s). For conditional lastprivate look through outer
2103 GIMPLE_OMP_SCAN context.
2104 (lower_omp_1): For conditional lastprivate look through outer
2105 GIMPLE_OMP_SCAN context.
2107 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
2108 member to combined_into_simd_safelen1.
2109 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
2110 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
2111 clauses if ctx->combined_into_simd_safelen1 put statements after the
2112 predicate conditionalized block rather than into it.
2114 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2116 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
2118 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
2119 Make the choice of <mode> explicit, giving...
2120 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
2122 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2124 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
2125 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
2127 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
2128 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
2129 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
2130 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
2131 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
2132 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
2133 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
2134 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
2135 (*avx512f_scatterdi<mode>): Likewise.
2136 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
2138 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2140 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
2141 specify the mode iterator referenced by <mode>, giving...
2142 (*push1_h8300hs_<QHI:mode>): ...this.
2144 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2146 * config/gcn/gcn-valu.md
2147 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
2148 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
2149 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
2150 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
2151 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
2152 but using the _exec comparison patterns.
2153 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
2154 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
2155 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
2156 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
2157 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
2158 but using the _exec comparison patterns.
2160 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2162 * config/arm/sync.md
2163 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
2164 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
2165 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
2166 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
2169 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2171 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
2172 (maybe_lookup_ctx): Add forward declaration.
2173 (omp_find_scan): Likewise. Walk into body of simd if composited
2174 with worksharing loop.
2175 (scan_omp_simd_scan): New function.
2176 (scan_omp_1_stmt): Call it.
2177 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
2178 ctx->for_simd_scan_phase.
2179 (lower_rec_input_clauses): Do much less work for inscan reductions
2180 in ctx->for_simd_scan_phase is_simd regions.
2181 (lower_omp_scan): Set is_simd also on simd constructs composited
2182 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
2183 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
2184 emit their body after in simd constructs composited with worksharing
2186 (lower_omp_for_scan): Handle worksharing loop composited with simd.
2188 * omp-low.c (omp_find_scan): Make static.
2189 (lower_omp_for_scan): Fix order of merge arguments in input phase of
2190 the second loop, var2 represents the first partial sum and so needs
2191 to go before rprivb[ivar].
2193 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
2195 * config/rs6000/rs6000-logue.c: Remove unused code.
2197 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2199 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2201 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
2204 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
2205 check with a frame laid out check.
2207 2019-07-05 Richard Biener <rguenther@suse.de>
2209 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
2210 when comparing against a store with possibly the same value.
2212 2019-07-05 Richard Biener <rguenther@suse.de>
2214 PR tree-optimization/91091
2215 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
2216 (walk_non_aliased_vuses): Likewise.
2217 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
2218 (get_continuation_for_phi): New tbaa_p parameter and pass
2220 (walk_non_aliased_vuses): Likewise.
2221 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
2222 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2223 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2225 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
2226 (adjust_offsets_for_equal_base_address): New function.
2227 (vn_reference_lookup_3): Use it to catch more base equivalences.
2228 Handle and pass down tbaa_p flag.
2229 (vn_reference_lookup_pieces): Adjust.
2230 (vn_reference_lookup): Remove alias-set altering, instead pass
2231 down false as tbaa_p.
2233 2019-07-05 Richard Biener <rguenther@suse.de>
2235 PR tree-optimization/91091
2236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2237 accesses can happen with -fno-strict-aliasing.
2239 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
2241 * tree-ssa-alias.c (alias_stats): Add
2242 nonoverlapping_component_refs_since_match_p_must_overlap.
2243 (dump_alias_stats): Print it.
2244 (nonoverlapping_component_refs_since_match_p): Add early exit.
2245 (nonoverlapping_component_refs_p): Do not account early exit.
2247 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2249 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
2250 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
2251 (emit_eh_dispatch): Delete.
2252 (lower_catch): Emit the eh_dispatch manually and set the location of
2253 the first catch statement onto it.
2254 (lower_eh_filter): Emit the eh_dispatch manually and set location.
2255 (lower_eh_dispatch): Propagate location.
2256 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
2257 (eliminate_build): Likewise.
2259 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2261 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
2262 phi nodes if possible.
2263 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
2264 location info on the newly created statement.
2265 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
2266 newly created increment if needed.
2268 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2271 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
2272 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
2273 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
2274 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
2275 ctx->add_safelen1 is set.
2277 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
2278 GOMP_loop_start at the start of second worksharing loop in a scan.
2279 For nowait, don't emit GOMP_loop_end_nowait at the end of first
2280 worksharing loop in a scan even if there are conditional lastprivates,
2281 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
2283 2019-07-04 Jan Hubicka <jh@suse.cz>
2285 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2286 Fix check for match in the ref walk.
2288 2019-07-04 Martin Liska <mliska@suse.cz>
2290 * tree-ssa-loop-niter.c
2291 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
2292 (estimate_numbers_of_iterations):
2293 Support __builtin_expect_with_probability for analysis
2294 of # of loop iterations.
2296 2019-07-04 Alexandre Oliva <oliva@adacore.com>
2298 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
2299 * except.c: Likewise.
2300 * expr.c (expand_expr_real_1): Reject it.
2301 * gimplify.c (gimplify_expr): Gimplify it, within
2303 * tree-dump.c (dequeue_and_dump): Dump it.
2304 * tree-pretty-print.c (dump_generic_node): Likewise.
2305 * tree.c (block_may_fallthru): Handle it.
2306 * tree.def (EH_ELSE_EXPR): Introduce it.
2307 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
2308 with GIMPLE_EH_ELSE as try/finally/else.
2310 2019-07-04 Richard Biener <rguenther@suse.de>
2313 * tree-pass.h (execute_all_ipa_transforms): Add a flag
2314 parameter whether to disable GC collection.
2315 * passes.c (execute_one_ipa_transform_pass): Likewise, and
2317 (execute_all_ipa_transforms): Likewise and pass it down.
2318 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
2319 collection from applying IPA transforms.
2320 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
2321 from applying IPA transforms.
2323 2019-07-04 Richard Biener <rguenther@suse.de>
2325 PR tree-optimization/90911
2326 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
2327 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
2328 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2329 scalar_loop_scaling.
2330 (vect_transform_loop): Scale scalar loop profile if needed.
2331 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
2332 the loop copy from if-conversion adjust edge probabilities
2333 and scale the vectorized loop body profile, queue the scalar
2334 profile for updating after peeling.
2336 2019-07-04 Jan Hubicka <jh@suse.cz>
2338 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
2339 parameters; return early for must-alias.
2340 (indirect_ref_may_alias_decl_p): Likewise; when establishing
2341 outer types match, try nonoverlapping_component_refs
2342 if must-alias is not obvious.
2343 (indirect_refs_may_alias_p): Likewise.
2344 (refs_may_alias_p_2): Likewise.
2346 2019-07-04 Richard Biener <rguenther@suse.de>
2348 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2350 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2352 (struct vn_walk_cb_data): New callback data struct.
2353 (vn_reference_lookup_2): Adjust.
2354 (vn_reference_lookup_3): Likewise.
2355 (vn_reference_lookup_pieces): Likewise.
2356 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
2357 (visit_reference_op_load): Adjust.
2359 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2361 PR tree-optimization/91063
2362 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
2363 stmt from stmts sequence before calling vect_init_vector_1.
2366 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2369 * fwprop.c (reg_single_def_p): New function.
2370 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
2371 (forward_propagate_into): New parameter reg_prop_only
2372 with default value false.
2373 Propagate def's src into loop only if SET_SRC and SET_DEST
2374 of def_set have single definitions.
2375 Likewise if reg_prop_only is set to true.
2376 (fwprop): New param fwprop_addr_p.
2377 Integrate fwprop_addr into fwprop.
2378 (fwprop_addr): Remove.
2379 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
2381 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
2382 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
2383 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
2385 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2387 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2388 in worksharing loop scans.
2390 PR tree-optimization/91074
2391 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2394 PR rtl-optimization/90756
2395 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2398 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
2400 * config/aarch64/aarch64.md: Remove redundant constraints from
2401 define_expand but keep some patterns untouched if they are
2402 specially selected by TARGET_SECONDARY_RELOAD hook.
2403 * config/aarch64/aarch64-sve.md: Likewise.
2404 * config/aarch64/atomics.md: Remove redundant constraints from
2406 * config/aarch64/aarch64-simd.md: Likewise.
2408 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2410 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
2411 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
2412 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
2414 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2417 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2419 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
2420 (STARTFILE_SPEC): Split crt3 into a separate spec.
2421 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
2422 (DARWIN_CRT2_SPEC): New.
2423 (DARWIN_CRT3_SPEC): New.
2424 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
2425 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
2426 (DARWIN_CRT3_SPEC): New.
2428 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
2430 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
2431 Change the RTL attribute "length" from "4" to "*" to allow the
2432 length attribute to be adjusted automatically for prefixed load,
2433 store, and add immediate instructions.
2434 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
2436 (extendsi<mode>2, EXTSI iterator): Likewise.
2437 (movsi_internal1): Likewise.
2438 (movsi_from_sf): Likewise.
2439 (movdi_from_sf_zero_ext): Likewise.
2440 (mov<mode>_internal): Likewise.
2441 (movcc_internal1, QHI iterator): Likewise.
2442 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
2443 (movsf_from_si): Likewise.
2444 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
2445 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
2446 (mov<mode>, FMOVE128 iterator): Likewise.
2447 (movdi_internal64): Likewise.
2448 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
2450 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
2451 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
2452 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
2453 (vsx_splat_v4sf): Likewise.
2455 2019-07-03 Mark Wielaard <mark@klomp.org>
2458 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
2459 DW_AT_addr_base if there is actually a .debug_addr section with
2461 (output_addr_table): Add DWARF5 table header generation here after
2462 checking there are actually any addresses from...
2463 (dwarf2out_finish): ...here.
2464 * testsuite/g++.dg/pr90981.C: New test.
2466 2019-07-03 Richard Biener <rguenther@suse.de>
2469 * match.pd (vec_perm -> bit_insert): Fix element read from
2472 2019-07-03 Martin Liska <mliska@suse.cz>
2474 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2475 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2477 * generic-match-head.c: Include dbgcnt.h.
2478 * gimple-match-head.c: Likewise.
2480 2019-07-03 Martin Liska <mliska@suse.cz>
2482 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
2483 (GCOV_COUNTER_V_TOPN): New.
2484 (GCOV_COUNTER_V_INDIR): Use _topn.
2485 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
2486 (GCOV_TOPN_VALUES): New.
2487 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
2488 (GCOV_TOPN_VALUES_COUNTERS): New.
2489 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
2491 (gimple_init_gcov_profiler): Rename variables from one_value
2493 (gimple_gen_one_value_profiler): Remove.
2494 (gimple_gen_topn_values_profiler): New function.
2495 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
2496 names instead of SINGLE_VALUE.
2497 (stream_out_histogram_value): Likewise.
2498 (stream_in_histogram_value): Likewise.
2499 (get_most_common_single_value): Likewise.
2500 (gimple_divmod_fixed_value_transform): Likewise.
2501 (gimple_stringops_transform): Likewise.
2502 (gimple_divmod_values_to_profile): Likewise.
2503 (gimple_stringops_values_to_profile): Likewise.
2504 (gimple_find_values_to_profile): Likewise.
2505 * value-prof.h (enum hist_type): Rename to TOPN.
2506 (gimple_gen_one_value_profiler): Remove.
2507 (gimple_gen_topn_values_profiler): New.
2509 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
2511 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2512 if it has the DW_AT_data_member_location attribute.
2514 2019-07-03 Richard Biener <rguenther@suse.de>
2516 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
2519 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
2521 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
2522 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
2523 (tlsdesc_small_sve_<mode>): Likewise.
2525 2019-07-03 Martin Liska <mliska@suse.cz>
2527 * Makefile.in: Define ZSTD_LIB.
2528 * common.opt: Adjust compression level
2529 to support also zstd levels.
2530 * config.in: Regenerate.
2531 * configure: Likewise.
2532 * configure.ac: Add --with-zstd and --with-zstd-include options
2534 * doc/install.texi: Mention zstd dependency.
2535 * gcc.c: Print supported LTO compression algorithms.
2536 * lto-compress.c (lto_normalized_zstd_level): Likewise.
2537 (lto_compression_zstd): Likewise.
2538 (lto_uncompression_zstd): Likewise.
2539 (lto_end_compression): Dispatch in between zlib and zstd.
2540 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
2541 (lto_uncompression_zlib): Make it static.
2542 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
2543 * lto-section-in.c (lto_get_section_data): Pass info
2544 about used compression.
2545 * lto-streamer-out.c: By default use zstd when possible.
2546 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
2547 (TV_IPA_LTO_COMPRESS): Likewise for compression.
2549 2019-07-03 Martin Liska <mliska@suse.cz>
2551 * lto-section-in.c (lto_get_section_data): Add "lto" section.
2552 * lto-section-out.c (lto_destroy_simple_output_block): Never
2553 compress LTO_section_lto section.
2554 * lto-streamer-out.c (produce_asm): Do not set major_version
2556 (lto_output_toplevel_asms): Likewise.
2557 (produce_lto_section): New function.
2558 (lto_output): Call produce_lto_section.
2559 (lto_write_mode_table): Do not set major_version and
2561 (produce_asm_for_decls): Likewise.
2562 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
2564 (struct lto_header): Remove.
2565 (struct lto_section): New struct.
2566 (struct lto_simple_header): Do not inherit from lto_header.
2567 (struct lto_file_decl_data): Add lto_section_header field.
2569 2019-07-03 Martin Liska <mliska@suse.cz>
2571 * lra-eliminations.c (eliminate_regs_in_insn): Remove
2573 * reg-stack.c (check_asm_stack_operands): Likewise.
2574 * tree-ssa-structalias.c (create_function_info_for): Likewise.
2575 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2576 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
2579 2019-07-03 Martin Liska <mliska@suse.cz>
2581 PR tree-optimization/90892
2582 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
2583 in string constants.
2585 2019-07-03 Martin Liska <mliska@suse.cz>
2588 * multiple_target.c (create_dispatcher_calls): Add to comdat
2589 group only if set for ifunc.
2591 2019-07-03 Martin Liska <mliska@suse.cz>
2594 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2595 Define local_object_name in outer scope in order to handle
2596 use-after-scope issue.
2598 2019-07-03 Martin Liska <mliska@suse.cz>
2600 * common.opt: Add fprofile-note.
2601 * coverage.c (coverage_init): Append the option
2603 * doc/invoke.texi: Document -fprofile-note.
2605 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2607 PR tree-optimization/91033
2608 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
2609 vect_analyze_data_refs): Add bool * arguments.
2610 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
2611 if failure is due to scatter/gather, set *fatal to false if non-NULL.
2612 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2613 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
2614 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
2615 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
2616 vect_analyze_data_refs caller.
2618 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
2620 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
2621 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
2622 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
2623 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2624 OMP_CLAUSE__SCANTEMP_ entry.
2625 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
2626 * tree-pretty-print.c (dump_omp_clause): Likewise.
2627 * tree-nested.c (convert_nonlocal_omp_clauses,
2628 convert_local_omp_clauses): Likewise.
2629 * omp-general.h (struct omp_for_data): Add have_scantemp and
2630 have_nonctrl_scantemp members.
2631 * omp-general.c (omp_extract_for_data): Initialize them.
2632 * omp-low.c (struct omp_context): Add scan_exclusive member.
2633 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
2634 result again with GF_OMP_FOR_KIND_MASK. Initialize also
2635 ctx->scan_exclusive.
2636 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
2637 of !ctx->scan_inclusive.
2638 (lower_rec_input_clauses): Simplify gimplification of dtors using
2639 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
2640 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
2641 loops. Don't add barrier for reduction_omp_orig_ref if
2642 ctx->scan_??xclusive.
2643 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
2644 (lower_omp_scan): Use ctx->scan_exclusive instead
2645 of !ctx->scan_inclusive. Handle worksharing loops with inscan
2646 reductions. Use new_vard != new_var instead of repeated
2647 omp_is_reference calls.
2648 (omp_find_scan, lower_omp_for_scan): New functions.
2649 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
2651 * omp-expand.c (expand_omp_scantemp_alloc): New function.
2652 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
2653 and fd->have_scantemp.
2655 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
2656 on worksharing loop propagate it as shared clause to containing
2659 * omp-expand.c (expand_omp_for_static_nochunk,
2660 expand_omp_for_static_chunk): For nowait worksharing loop with
2661 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
2664 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
2667 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
2668 to reference fake_var.
2670 2019-07-02 qing zhao <qing.zhao@oracle.com>
2672 PR preprocessor/90581
2673 * doc/cppopts.texi: Add document for -fmax-include-depth.
2674 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
2676 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
2678 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
2679 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
2680 (mmx_packssdw): Ditto.
2681 (mmx_punpckhbw): Ditto.
2682 (mmx_punpcklbw): Ditto.
2683 (mmx_punpckhwd): Ditto.
2684 (mmx_punpcklwd): Ditto.
2685 (mmx_punpckhdq): Ditto.
2686 (mmx_punpckldq): Ditto.
2687 (*vec_dupv4hi): Ditto.
2688 (*vec_dupv2si): Ditto.
2689 (mmx_pmovmskb): Ditto.
2690 * config/i386/sse.md (sse_cvtpi2ps): Use
2691 TARGET_SSE2 && SSE_REG_P in split condition.
2692 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
2693 TARGET_SSSE3 && SSE_REGNO_P in split condition.
2694 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
2695 (ssse3_pshufbv8qi3): Ditto.
2696 (ssse3_palignrdi): Ditto.
2698 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
2700 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
2701 with inlined save and restore.
2703 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
2705 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
2706 to be inserted on single successor edge of the entry block. Then call
2707 commit_edge_insertions instead of inserting the instructions manually.
2708 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
2709 RTL expansion and rebuild jump labels chain.
2711 2019-07-02 Richard Biener <rguenther@suse.de>
2713 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
2715 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2717 * tree.c (build_common_tree_nodes): Initialize them.
2718 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2719 Make declarations comments.
2720 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
2721 chrec_known): Remove definitions.
2722 (initialize_scalar_evolutions_analyzer): Remove.
2723 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
2724 * tree-streamer.c (preload_common_nodes): Do not preload
2725 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
2727 2019-07-02 Jan Hubicka <jh@suse.cz>
2729 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
2732 2019-07-02 Jan Hubicka <jh@suse.cz>
2734 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
2736 (nonoverlapping_component_refs_since_match_p): ... this one;
2737 handle also non-decl bases; return -1 if search gave up.
2738 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
2739 nonoverlapping_component_refs_of_decl_p_no_alias to
2740 nonoverlapping_component_refs_since_match_p_may_alias,
2741 nonoverlapping_component_refs_since_match_p_no_alias.
2742 (dump_alias_stats): Update dumping.
2743 (aliasing_matching_component_refs_p): Break out from ...;
2744 dispatch to nonoverlapping_component_refs_for_decl_p
2745 and nonoverlapping_component_refs_since_match_p.
2746 (aliasing_component_refs_p): ... here; call
2747 nonoverlapping_component_refs_p in scenarios where we can not
2748 precisely determine base match.
2749 (decl_refs_may_alias_p): Use
2750 nonoverlapping_component_refs_since_match_p.
2751 (indirect_ref_may_alias_decl_p): Do not call
2752 nonoverlapping_component_refs_p.
2753 (indirect_refs_may_alias_p): Likewise.
2755 2019-07-02 Jan Hubicka <jh@suse.cz>
2757 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
2758 to clobber of return value.
2760 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2762 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
2763 for is_neon_type instructions that have not already been categorized.
2765 2019-07-02 Richard Biener <rguenther@suse.de>
2767 PR tree-optimization/58483
2768 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
2769 for MEM_REF base hashing.
2770 (equal_mem_array_ref_p): Likewise for base comparison.
2772 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2774 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
2776 (signbit<mode>2): Use that name. Simplify.
2778 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
2781 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
2782 Tune heuristic from PR71016 to allow MIN / MAX.
2783 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
2785 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2787 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
2789 (abs<mode>2): Use that name. Simplify.
2791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2793 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
2795 (neg<mode>2): Use that name. Simplify.
2797 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2799 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
2801 (abs<mode>2): Use that name. Simplify.
2803 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2805 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
2807 (neg<mode>2): Use that name. Simplify.
2809 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
2811 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
2812 ("enabled" attribute): Handle sse_noavx isa attribute.
2813 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
2814 Use TARGET_SSE && SSE_REGNO_P in split condition.
2815 (*vec_dupv2sf): Ditto.
2817 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2819 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
2821 (floatsi<mode>2): Use that name. Simplify.
2823 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2825 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
2827 (extenddf<mode>2_vsx): Make this a parameterized name.
2828 (extenddf<mode>2): Use those names. Simplify.
2830 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2832 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
2834 (eh_return): Use that name. Simplify.
2836 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2838 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
2839 (doloop_end): Use that name. Simplify.
2841 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2843 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
2845 (indirect_jump): Use that name. Simplify.
2847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2849 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
2851 (abs<mode>2): Use that name. Simplify.
2853 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2855 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
2857 (fix_trunc<mode>si2): Use that name. Simplify.
2859 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2861 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
2862 (allocate_stack): Use that name. Simplify.
2864 2019-07-01 Martin Sebor <msebor@redhat.com>
2867 * hash-map.h (hash_map::put): On insertion invoke element ctor.
2868 (hash_map::get_or_insert): Same. Reformat comment.
2869 * hash-set.h (hash_set::add): On insertion invoke element ctor.
2870 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2871 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2872 * hash-table.h (hash_table::operator=): Prevent copy assignment.
2873 (hash_table::hash_table (const hash_table&)): Use copy ctor
2874 instead of assignment to copy elements.
2876 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
2877 John David Anglin <danglin@gcc.gnu.org>
2880 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
2881 using saved frame pointer.
2883 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
2886 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
2887 Add frame clobber and schedule blockage.
2889 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
2891 * doc/invoke.texi (Link Options): Further editorial changes to
2892 -flinker-output docs.
2894 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2896 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
2897 Load both operands of a PLUS into registers separately.
2899 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
2901 * config/s390/vector.md: Fix shift count operand printing.
2903 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
2905 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
2907 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
2909 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
2910 Use recog_data to test for an output operand.
2912 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
2914 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
2915 exclude any others that are disparaged or that are bound to need
2917 (ira_get_dup_out_num): Expand comment.
2919 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
2921 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
2922 constraint string for each operand/alternative combo. Only handle
2923 '%' at the start of constraint strings, and look for it outside
2926 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
2928 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
2929 alternative_mask instead of HARD_REG_SET to represent a
2930 bitmask of alternatives.
2931 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2932 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
2934 2019-07-01 Martin Liska <mliska@suse.cz>
2936 * edit-context.c (test_applying_fixits_unreadable_file): Do not
2937 use () for a constructor call.
2938 (test_applying_fixits_line_out_of_range): Likewise.
2939 * ggc-page.c (alloc_page): Use (void *) for %p printf format
2941 (free_page): Likewise.
2943 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
2945 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
2946 parameter names to match usage (no functional change).
2947 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
2949 2019-07-01 Richard Biener <rguenther@suse.de>
2951 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
2953 (pass_fre::execute): Honor it.
2954 * passes.def: Adjust pass_fre invocations to allow iterating,
2955 add non-iterating pass_fre before late threading/dom.
2957 2019-07-01 Richard Biener <rguenther@suse.de>
2959 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
2960 TARGET_MEM_REF handling to also handle address-taken ones.
2962 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
2964 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2965 hardware attributes): Document avx512vp2intersect.
2967 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
2969 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
2970 (abs<mode>2): New expander.
2971 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
2972 Use CODE_FOR_ssse3_absv8qi2.
2973 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
2974 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
2976 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
2978 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
2979 to sse, sse_noavx and avx. Update all uses.
2981 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
2983 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
2984 (*mmx_<plusminus_insn><mode>3): Ditto.
2985 (*mmx_mulv4hi3"): Ditto.
2986 (*mmx_smulv4hi3_highpart): Ditto.
2987 (*mmx_umulv4hi3_highpart): Ditto.
2988 (*mmx_pmaddwd): Ditto.
2989 (*sse2_umulv1siv1di3): Ditto.
2990 (*mmx_<code>v4hi3): Ditto.
2991 (*mmx_<code>v8qi3): Ditto.
2992 (mmx_ashr<mode>3): Ditto.
2993 ("mmx_<shift_insn><mode>3): Ditto.
2994 (*mmx_eq<mode>3): Ditto.
2995 (mmx_gt<mode>3): Ditto.
2996 (mmx_andnot<mode>3): Ditto.
2997 (*mmx_<code><mode>3): Ditto.
2998 (*mmx_pinsrw): Ditto.
2999 (*mmx_pextrw): Ditto.
3000 (mmx_pshufw_1): Ditto.
3001 (*mmx_uavgv8qi3): Ditto.
3002 (*mmx_uavgv4hi3): Ditto.
3003 ("mmx_psadbw): Ditto.
3004 * config/i386/sse.md (sse_cvtps2pi): Ditto.
3005 (sse_cvttps2pi): Ditto.
3006 (ssse3_pmaddubsw): Ditto.
3007 (*ssse3_pmulhrswv4hi3): Ditto.
3008 (ssse3_psign<mode>3): Ditto.
3010 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3012 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
3013 adjustment for bit-fields to all aggregate types.
3015 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
3017 * config/rs6000/predicates.md (pcrel_address): Use
3018 SYMBOL_REF_LOCAL_P to determine if a label is local.
3019 (pcrel_external_address): New predicate.
3020 (non_prefixed_mem_operand): Delete, predicate not used.
3021 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
3022 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
3024 (SYMBOL_REF_PCREL_P): Likewise.
3027 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
3029 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
3030 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
3031 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
3033 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3035 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
3036 override on extra_headers.
3038 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3040 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
3041 * config/darwin-driver.c (darwin_default_min_version): Remove newline
3043 (darwin_driver_init): Likewise.
3045 2019-06-28 Jan Beulich <jbeulich@suse.com>
3047 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3048 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
3049 Eliminate redundant alternative.
3051 2019-06-28 Jan Beulich <jbeulich@suse.com>
3053 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3054 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
3057 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
3059 * config/arc/arc.c (arc_rtx_costs): All short instructions are
3060 having a lower cost regardless of the speed option.
3062 2019-06-28 Jan Beulich <jbeulich@suse.com>
3064 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
3065 vector_operand plus, on both alternatives, "Bm" constraint.
3067 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
3069 * config/arm/arm.md: Remove redundant constraints from
3070 define_expand but leave reload_inm and reload_outm patterns
3071 untouched since they need special constraints to work.
3072 * config/arm/arm-fixed.md: Remove redundant constraints from
3074 * config/arm/iwmmxt.md: Likewise.
3075 * config/arm/neon.md: Likewise.
3076 * config/arm/sync.md: Likewise.
3077 * config/arm/thumb1.md: Likewise.
3078 * config/arm/vec-common.md: Likewise.
3080 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
3082 * doc/install.texi: Document --disable-tm-clone-registry.
3084 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3087 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
3090 PR tree-optimization/91010
3091 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
3092 return true. Otherwise, don't call operand_equal_p if offset1 or
3093 offset2 is NULL and just return false.
3095 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3097 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
3098 user-specified float mode choice for kernel mode code.
3100 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3102 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
3105 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3107 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
3108 use longcall for 64b code.
3110 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
3112 * builtins.c (get_memory_rtx): Fix comment.
3113 * optabs.def (movmem_optab): Change to cpymem_optab.
3114 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
3115 (emit_block_move_hints): Change movmem to cpymem.
3116 * defaults.h: Change movmem to cpymem.
3117 * targhooks.c (get_move_ratio): Change movmem to cpymem.
3118 (default_use_by_pieces_infrastructure_p): Ditto.
3119 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
3120 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
3122 * config/aarch64/aarch64.h: Change movmem to cpymem.
3123 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
3124 * config/alpha/alpha.h: Change movmem to cpymem in comment.
3125 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
3127 * config/arc/arc-protos.h: Change movmem to cpymem.
3128 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
3129 * config/arc/arc.h: Change movmem to cpymem in comment.
3130 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
3131 * config/arm/arm-protos.h: Change movmem to cpymem in names.
3132 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
3133 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
3134 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
3135 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
3136 * config/avr/avr-protos.h: Change movmem to cpymem.
3137 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
3138 avr_out_movmem): Change movmem to cpymem.
3139 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
3140 Change movmem to cpymem.
3141 * config/bfin/bfin-protos.h: Change movmem to cpymem.
3142 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
3143 Change movmem to cpymem.
3144 * config/bfin/bfin.h: Change movmem to cpymem in comment.
3145 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
3146 * config/c6x/c6x-protos.h: Change movmem to cpymem.
3147 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
3148 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
3149 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
3150 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
3151 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
3152 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
3153 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
3154 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
3155 expand_small_cpymem_or_setmem,
3156 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
3157 expand_set_or_cpymem_constant_prologue,
3158 ix86_expand_set_or_cpymem): Change movmem to cpymem.
3159 * config/i386/i386-protos.h: Change movmem to cpymem.
3160 * config/i386/i386.h: Change movmem to cpymem in comment.
3161 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
3162 (setmem<mode>): Change expansion function name.
3163 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
3164 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
3165 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
3166 * config/m32c/m32c-protos.h: Change movmem to cpymem.
3167 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
3168 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
3169 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
3171 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
3172 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
3173 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
3174 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
3175 Change movmem to cpymem.
3176 * config/mips/mips.h: Change movmem to cpymem.
3177 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
3178 * config/nds32/nds32-memory-manipulation.c
3179 (nds32_expand_movmemsi_loop_unknown_size,
3180 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
3181 nds32_expand_movmemsi_unroll,
3182 nds32_expand_movmemsi): Change movmem to cpymem.
3183 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
3184 * config/nds32/nds32-protos.h: Change movmem to cpymem.
3185 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
3186 (pa_adjust_insn_length): Change call to compute_movmem_length.
3187 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
3188 movmemdi, movmemdi_prereload,
3189 movmemdi_postreload): Change movmem to cpymem.
3190 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
3191 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
3192 * config/riscv/riscv.c: Change movmem to cpymem in comment.
3193 * config/riscv/riscv.h: Change movmem to cpymem.
3194 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
3195 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
3196 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
3198 * config/s390/s390-protos.h: Change movmem to cpymem.
3199 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
3200 s390_expand_insv): Change movmem to cpymem.
3201 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
3202 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
3203 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
3204 * config/sparc/sparc.h: Change movmem to cpymem in comment.
3205 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
3206 for nonexistent function.
3207 * config/vax/vax.h: Change movmem to cpymem in comment.
3208 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
3209 * config/visium/visium.h: Change movmem to cpymem in comment.
3210 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
3211 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
3212 * doc/md.texi: Change movmem to cpymem and update description to match.
3213 * doc/rtl.texi: Change movmem to cpymem.
3214 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
3215 * doc/tm.texi: Regenerate.
3217 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
3219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3220 -fvariable-expansion-in-unroller by default.
3221 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
3224 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
3227 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3228 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3230 * config.gcc(rs6000-*-*): Define target_gtfiles.
3232 2019-06-27 Jan Hubicka <jh@suse.cz>
3234 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
3235 (add_type_duplicate): When odr hash is not allocated, to nothing.
3236 (odr_based_tbaa_p): New function.
3237 (set_type_canonical_for_odr_type): New function.
3238 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
3239 set_type_canonical_for_odr_type): New.
3240 * tree.c (gimple_canonical_types_compatible_p): ODR types with
3241 ODR based TBAA are not equivalent to non-ODR types.
3243 2019-06-27 Martin Liska <mliska@suse.cz>
3245 PR tree-optimization/90974
3246 PR rtl-optimization/90975
3247 PR rtl-optimization/90976
3249 PR tree-optimization/91017
3250 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3252 * lra.c (lra_set_insn_recog_data): Remove a leftover from
3253 initial commit of IRA.
3254 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
3256 * tree-vect-loop.c (vect_create_epilog_for_reduction):
3257 Remove unused mode1.
3258 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3261 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3264 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
3265 instead of register_operand for operands[1], add m to its constraints
3266 if operands[2] uses "C" constraint. Ensure in condition that if
3267 operands[2] is not 0, then operands[1] is not a MEM. For last two
3268 alternatives, use unaligned loads instead of aligned if operands[1] is
3271 2019-06-27 Martin Liska <mliska@suse.cz>
3273 * asan.c (asan_emit_allocas_unpoison): Remove obviously
3275 * bt-load.c (move_btr_def): Likewise.
3276 * builtins.c (expand_builtin_apply_args_1): Likewise.
3277 (expand_builtin_apply): Likewise.
3278 * cfgexpand.c (expand_asm_stmt): Likewise.
3279 (construct_init_block): Likewise.
3280 * cfghooks.c (verify_flow_info): Likewise.
3281 * cfgloopmanip.c (remove_path): Likewise.
3282 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
3283 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
3284 * combine.c (simplify_if_then_else): Likewise.
3285 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3286 (choose_basereg): Likewise.
3287 (ix86_expand_prologue): Likewise.
3288 (ix86_preferred_output_reload_class): Likewise.
3289 * cselib.c (cselib_record_sets): Likewise.
3290 * df-scan.c (df_scan_alloc): Likewise.
3291 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
3292 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
3293 * emit-rtl.c (try_split): Likewise.
3294 * graphite-scop-detection.c (assign_parameter_index_in_region):
3296 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3297 * ira-color.c (setup_profitable_hard_regs): Likewise.
3298 * ira.c (rtx_moveable_p): Likewise.
3299 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3300 * read-rtl.c (read_subst_mapping): Likewise.
3301 * regrename.c (scan_rtx): Likewise.
3302 * reorg.c (fill_slots_from_thread): Likewise.
3303 * tree-inline.c (tree_function_versioning): Likewise.
3304 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
3305 * tree-ssa-sink.c (statement_sink_location): Likewise.
3306 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3307 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
3308 (vect_create_epilog_for_reduction): Likewise.
3309 * tree.c (build_nonstandard_integer_type): Likewise.
3311 2019-06-27 Richard Biener <rguenther@suse.de>
3313 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3315 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
3317 PR tree-optimization/89772
3318 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3319 out-of-bound accesses checking.
3321 2019-06-27 Martin Liska <mliska@suse.cz>
3323 PR tree-optimization/91014
3324 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3325 when LHS is NULL_TREE.
3327 2019-06-27 Martin Liska <mliska@suse.cz>
3329 * symbol-summary.h (traverse): Pass
3330 argument a to the call of callback.
3331 (gt_ggc_mx): Mark arguments as unused.
3332 (gt_pch_nx): Likewise.
3334 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
3337 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3340 2019-06-26 Jeff Law <law@redhat.com>
3342 PR tree-optimization/90883
3343 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3344 (delete_dead_or_redundant_assignment): Likewise.
3346 PR tree-optimization/90883
3347 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
3348 * tree-ssa-dse.c: Update various comments to distinguish between
3349 dead and redundant stores.
3350 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
3351 (dse_optimize_redundant_stores): New function.
3352 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
3353 Distinguish between dead and redundant calls in dump output. All
3355 (delete_dead_or_redundant_assignment): Similarly for assignments.
3356 (dse_optimize_stmt): Handle _CHK variants. For statements which
3357 store 0 into multiple memory locations, try to prove a subsequent
3360 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
3363 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3364 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3366 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3368 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
3369 (branch_islands): New extern.
3370 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
3371 * config/rs6000/rs6000.c: .. here.
3373 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3375 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3376 (powerpc*-*-*) ... to here.
3378 2019-06-26 Jeff Law <law@redhat.com>
3380 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
3381 memcpy, memmove and memset builtins.
3382 (maybe_trim_memstar_call): Likewise.
3384 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3386 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3388 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3390 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3392 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3394 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3396 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3398 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3401 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3403 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3405 2019-06-26 Richard Biener <rguenther@suse.de>
3408 * tree-inline.c (remap_ssa_name): Copy SSA range info.
3410 2019-06-26 Richard Biener <rguenther@suse.de>
3412 * lto-streamer.h (lto_bitmap_alloc): Remove.
3413 (lto_bitmap_free): Likewise.
3414 * lto-streamer.c (lto_bitmap_alloc): Remove.
3415 (lto_bitmap_free): Likewise.
3416 (lto_obstack): Likewise.
3417 (lto_obstack_initialized): Likewise.
3418 * lto-streamer-out.c (lto_output): Use own obstack for local
3419 bitmap, free it consistently.
3421 2019-06-26 Jakub Jelinek <jakub@redhat.com>
3424 * config/i386/sse.md
3425 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
3426 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
3427 insns if operands[2] is misaligned_operand.
3429 2019-06-26 Li Jia He <helijia@linux.ibm.com>
3431 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3433 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3436 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3438 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3440 2019-06-26 Martin Liska <mliska@suse.cz>
3442 PR tree-optimization/90973
3443 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
3444 epilogue_cost_vec instead of prologue_cost_vec for
3447 2019-06-26 Martin Liska <mliska@suse.cz>
3449 * bb-reorder.c (connect_better_edge_p): Add missing else
3450 statement in the middle of if-else statements.
3452 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
3453 H.J. Lu <hongjiu.lu@intel.com>
3454 Olga Makhotina <olga.makhotina@intel.com>
3456 * common/config/i386/i386-common.c
3457 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
3458 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
3459 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
3460 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
3461 (ix86_handle_option): Handle -mavx512vp2intersect.
3462 * config/i386/avx512vp2intersectintrin.h: New.
3463 * config/i386/avx512vp2intersectvlintrin.h: New.
3464 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
3465 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3467 * config/i386/i386-builtin-types.def: Add new types.
3468 * config/i386/i386-builtin.def: Add new builtins.
3469 * config/i386/i386-builtins.c: (enum processor_features): Add
3470 F_AVX512VP2INTERSECT.
3471 (static const _isa_names_table isa_names_table): Ditto.
3472 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3473 __AVX512VP2INTERSECT__.
3474 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
3475 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
3476 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
3477 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
3478 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
3479 * config/i386/i386-options.c (ix86_target_string): Add
3480 -mavx512vp2intersect.
3481 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
3482 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
3483 P2HImode and P2QImode.
3484 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
3485 number for P2QImode and P2HImode.
3486 (ix86_regmode_natural_size): New function.
3487 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
3488 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
3489 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
3490 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
3491 * config/i386/i386.opt: Add -mavx512vp2intersect.
3492 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
3493 avx512vp2intersectvlintrin.h.
3494 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
3495 (define_mode_iterator VI48_AVX512VP2VL): New.
3496 (avx512vp2intersect_2intersect<mode>,
3497 avx512vp2intersect_2intersectv16si): New define_insn patterns.
3498 * config.gcc: Add avx512vp2intersectvlintrin.h and
3499 avx512vp2intersectintrin.h to extra_headers.
3500 * doc/invoke.texi: Document -mavx512vp2intersect.
3502 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
3504 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3506 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3508 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
3509 savres_routine_syms, savres_routine_name, morestack_ref,
3510 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3511 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3512 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3513 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3514 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3515 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3516 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3517 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3518 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3519 get_stack_clash_protection_probe_interval,
3520 get_stack_clash_protection_guard_size,
3521 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3522 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3523 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3524 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3525 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3526 gen_frame_mem_offset, rs6000_savres_routine_name,
3527 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3528 ptr_regno_for_savres, rs6000_emit_savres_rtx,
3529 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3530 rs6000_global_entry_point_prologue_needed_p,
3531 rs6000_get_separate_components, rs6000_components_for_bb,
3532 rs6000_disqualify_components, rs6000_emit_prologue_components,
3533 rs6000_emit_epilogue_components, rs6000_set_handled_components,
3534 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3535 rs6000_output_savres_externs, rs6000_output_function_prologue,
3536 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3537 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3538 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3539 rs6000_output_function_epilogue, gen_add3_const,
3540 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3541 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3543 (machine_function): Moved to rs6000.h.
3544 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
3546 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
3547 savres_routine_syms, savres_routine_name, morestack_ref,
3548 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3549 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3550 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3551 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3552 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3553 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3554 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3555 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3556 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3557 get_stack_clash_protection_probe_interval,
3558 get_stack_clash_protection_guard_size,
3559 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3560 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3561 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3562 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3563 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3564 gen_frame_mem_offset, rs6000_savres_routine_name,
3565 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3566 ptr_regno_for_savres, rs6000_emit_savres_rtx,
3567 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3568 rs6000_global_entry_point_prologue_needed_p,
3569 rs6000_get_separate_components, rs6000_components_for_bb,
3570 rs6000_disqualify_components, rs6000_emit_prologue_components,
3571 rs6000_emit_epilogue_components, rs6000_set_handled_components,
3572 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3573 rs6000_output_savres_externs, rs6000_output_function_prologue,
3574 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3575 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3576 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3577 rs6000_output_function_epilogue, gen_add3_const,
3578 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3579 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3580 to here from rs6000.c.
3581 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
3582 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
3583 quad_address_offset_p) Moved to here from rs6000.c.
3584 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
3585 * config/config.gcc: Add new source file rs6000-logue.c to garbage
3588 2019-06-25 Martin Liska <mliska@suse.cz>
3590 * hash-table.c (hashtab_chk_error): Move here from ...
3591 * hash-table.h (hashtab_chk_error): ... here.
3593 2019-06-25 Martin Liska <mliska@suse.cz>
3595 PR tree-optimization/90978
3596 * df-scan.c (df_update_entry_block_defs): Remove dead else
3598 (df_update_exit_block_uses): Likewise.
3600 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3601 Andrew Stubbs <ams@codesourcery.com>
3603 * config.gcc (thread_file): Set to gcn for AMD GCN.
3604 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
3605 (TARGET_EMUTLS_VAR_INIT): New hook.
3607 2019-06-25 Martin Jambor <mjambor@suse.cz>
3610 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
3612 2019-06-25 Richard Biener <rguenther@suse.de>
3614 PR tree-optimization/90930
3615 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
3616 into parallel form in the last pass instance.
3618 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
3620 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
3621 (arc_legitimize_pic_address): Simplify and cleanup the function.
3622 (SYMBOLIC_CONST): Remove.
3623 (prepare_pic_move): Likewise.
3624 (prepare_move_operands): Handle complex mov cases here.
3625 (arc_legitimize_address_0): Remove call to
3626 arc_legitimize_pic_address.
3627 (arc_legitimize_address): Remove call to
3628 arc_legitimize_tls_address.
3629 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
3630 (movhi_insn): Likewise.
3632 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3634 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
3635 alternate "__intN__" name for "__intN" types.
3636 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
3637 * gcc/cp/lex.c (init_reswords): Likewise.
3638 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
3640 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
3641 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
3642 C incompatibility if alternate "__intN__" form is used.
3643 * gcc/cp/decl.c (grokdeclarator): Likewise.
3644 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
3645 decl_specs->int_n_alt if "__intN__" form is used.
3646 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
3647 format of "__intN" types for UINTMAX_TYPE.
3648 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
3649 format of "__intN" types for SIZE_TYPE.
3650 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
3651 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
3652 format of "__intN" types for SIZETYPE.
3653 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
3654 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
3655 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
3658 2019-06-25 Jan Hubicka <jh@suse.cz>
3660 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
3661 base2_alias_set is non-zero before doing TBAA based disambiguation.
3663 2019-06-25 Martin Liska <mliska@suse.cz>
3665 PR tree-optimization/90973
3666 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
3667 of prologue and epilogue.
3669 2019-06-24 Jan Hubicka <jh@suse.cz>
3671 * ipa-utils.h (type_with_linkage_p): Verify that type is
3673 (odr_type_p): Remove extra return.
3674 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
3675 hash STRING_FLAG only for arrays and integers.
3676 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
3678 * tree-streamer-out.c (pack_ts_type_common_value_fields):
3680 * print-tree.c (print_node): Print cxx-odr-p
3682 * tree.c (need_assembler_name_p): Also check that type
3684 (verify_type_variant): Update verification of SRING_FLAG;
3685 also check CXX_ODR_P.
3686 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
3687 (TYPE_STRING_FLAG): Use it.
3688 (TYPE_CXX_ODR_P): New macro.
3689 * dwarf2out.c (gen_array_type_die): First check that type
3690 is an array and then test string flag.
3692 2019-06-24 Richard Biener <rguenther@suse.de>
3694 PR tree-optimization/90972
3695 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
3696 in common code, dealing with STRING_CST properly.
3698 2019-06-24 Richard Biener <rguenther@suse.de>
3700 PR tree-optimization/90930
3701 PR tree-optimization/90316
3702 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
3705 2019-06-24 Martin Sebor <msebor@redhat.com>
3707 * tree-pretty-print.h: Remove unnecessary punctuation characters
3709 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
3711 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
3713 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
3714 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
3715 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
3717 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3719 * config/rs6000/darwin.h: Handle GCC target pragma.
3721 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3723 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
3725 2019-06-22 Jeff Law <law@redhat.com>
3727 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3729 2019-06-22 Jan Hubicka <jh@suse.cz>
3731 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
3732 give up on bitfields; continue searching for different refs
3735 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3737 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3738 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
3739 containing the offset as possible simd lane access. Look through
3740 widening conversion. Move the
3741 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
3743 2019-06-21 Richard Biener <rguenther@suse.de>
3745 PR tree-optimization/90930
3746 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
3747 flag on new stmts to avoid re-processing them.
3749 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
3751 PR c++/90875 - added -Wswitch-outside-range option
3752 * doc/invoke.texi (Wswitch-outside-range): Document.
3754 2019-06-21 Jeff Law <law@redhat.com>
3756 PR tree-optimization/90949
3757 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
3758 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
3760 2019-06-21 Richard Biener <rguenther@suse.de>
3763 * dwarf2out.c (prune_unused_types_walk): Always consider
3764 function-local extern declarations as used.
3766 2019-06-21 Richard Biener <rguenther@suse.de>
3768 PR tree-optimization/90913
3769 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
3770 the scalar variant of if-conversion versioning.
3772 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3774 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
3775 create another "omp scan inscan exclusive" array if
3776 !ctx->scan_inclusive.
3777 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
3778 (lower_omp_scan): Likewise.
3779 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
3780 2-bit bitfield for simd_lane_access_p member.
3781 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
3782 aux == (void *)-4 as simd lane access.
3783 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
3784 comment with permutations to show the canonical permutation order.
3785 (vectorizable_scan_store): Handle exclusive scan.
3786 (vectorizable_store): Call vectorizable_scan_store even for
3787 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
3789 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3790 "omp simd array" arrays with one byte elements.
3792 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
3794 * config/alpha/alpha.md (@unaligned_store<mode>):
3795 Rename from unaligned_store<mode>.
3796 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
3797 * config/alpha/sync.md (@load_locked_<mode>): Rename
3798 from load_locked_<mode>.
3799 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
3800 (@atomic_compare_and_swap<mode>_1): Rename
3801 from atomic_compare_and_swap<mode>_1.
3802 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
3803 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
3804 Use gen_reload_in_aligned and gen_unaligned_store.
3805 (emit_load_locked): Remove.
3806 (emit_store_conditional): Ditto.
3807 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
3808 (alpha_split_compare_and_swap): Ditto.
3809 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
3810 (alpha_split_compare_and_swap_12): Use gen_load_locked
3811 and gen_store_conditional.
3812 (alpha_split_atomic_exchange): Ditto.
3813 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
3814 (alpha_split_atomic_exchange_12): Use gen_load_locked
3815 and gen_store_conditional.
3817 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
3819 * config/aarch64/aarch64-errata.h: New file.
3820 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
3821 (CA53_ERR_843419_SPEC): Delete.
3822 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
3823 * config/aarch64/aarch64-linux.h: Likewise.
3824 * config/aarch64/aarch64-netbsd.h: Likewise.
3825 * config/aarch64/aarch64-freebsd.h: Likewise.
3827 2019-06-20 Marek Polacek <polacek@redhat.com>
3829 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
3831 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
3833 * config/rs6000/rs6000.md (isa attribute): Add support for
3834 for a future processor.
3836 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
3839 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
3840 standard scalar operation pattern for V2DF.
3841 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
3842 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
3843 (*ieee_<ieee_maxmin><mode>3): Likewise.
3844 (vec_setv2df_0): Likewise.
3846 2019-06-20 Jan Hubicka <jh@suse.cz>
3848 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
3849 parameter; it has no use in gimple memory model.
3850 (indirect_ref_may_alias_decl_p): Update.
3852 2019-06-20 Martin Liska <mliska@suse.cz>
3854 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
3857 2019-06-20 Jakub Jelinek <jakub@redhat.com>
3859 * tree-vect-stmts.c (enum scan_store_kind): New type.
3860 (scan_store_can_perm_p): Change last argument from int * to
3861 vec<enum scan_store_kind> *, record precisely which permutations
3862 need whole vector left shift or that plus VEC_COND_EXPR.
3863 (vectorizable_scan_store): Adjust caller, use whole vector left shift
3864 and additional VEC_COND_EXPR only for those iterations that need it.
3866 2019-06-20 Alexandre Oliva <oliva@adacore.com>
3868 * config.gcc: Fix ARM --with-fpu checking and error message.
3870 2019-06-19 Marek Polacek <polacek@redhat.com>
3872 PR c++/60364 - noreturn after first decl not diagnosed.
3873 * attribs.c (get_attribute_namespace): No longer static.
3874 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
3876 (attr_noreturn_exclusions): Make it extern.
3877 * attribs.h (get_attribute_namespace): Declare.
3878 * tree-inline.c (function_attribute_inlinable_p): Use
3881 2019-06-19 Martin Sebor <msebor@redhat.com>
3883 PR tree-optimization/90626
3884 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
3886 PR tree-optimization/90626
3887 * tree-ssa-strlen.c (strxcmp_unequal): New function.
3888 (handle_builtin_string_cmp): Call it.
3890 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
3892 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
3893 and DARWIN_NOPIE_SPEC.
3894 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
3895 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
3896 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
3897 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
3898 (DARWIN_EXPORT_DYNAMIC): Delete.
3899 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
3900 and pie options processing to darwin.h.
3901 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
3903 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
3905 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
3906 in computing the number of options to be moved.
3908 2019-06-19 Maya Rashish <coypu@sdf.org>
3910 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
3911 (CLEAR_INSN_CACHE) Use it.
3913 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
3915 * config/i386/i386.md (cmpstrnsi): Remove dead code.
3917 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
3920 * builtins.c (expand_builtin_setjmp_setup): Save
3921 hard_frame_pointer_rtx.
3922 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
3924 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
3926 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
3928 (remove_reg_equal_offset_note): Remove unused function.
3929 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
3931 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3932 (arc_builtin_setjmp_frame_value): Remove function.
3933 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3934 (avr_builtin_setjmp_frame_value): Remove function.
3935 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3936 (ix86_builtin_setjmp_frame_value): Remove function.
3937 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
3938 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3939 (sparc_builtin_setjmp_frame_value): Remove function.
3940 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3941 (vax_builtin_setjmp_frame_value): Remove function.
3942 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
3943 pointer if has_nonlocal_label.
3945 2019-06-19 Jakub Jelinek <jakub@redhat.com>
3947 * doc/md.texi: Document vec_shl_<mode> pattern.
3948 * optabs.def (vec_shl_optab): New optab.
3949 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
3950 argument, if == vec_shl_optab, check for left whole vector shift
3951 pattern rather than right shift.
3952 (expand_vec_perm_const): Add vec_shl_optab support.
3953 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
3955 * tree-vect-generic.c (lower_vec_perm): Support permutations which
3956 can be handled by vec_shl_optab.
3957 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
3958 (check_scan_store): Use it.
3959 (vectorizable_scan_store): If target can't do normal permutations,
3960 try to use whole vector left shifts and if needed a VEC_COND_EXPR
3962 * config/i386/sse.md (vec_shl_<mode>): New expander.
3964 * omp-low.c (lower_rec_input_clauses): Handle references properly
3966 (lower_omp_scan): Likewise.
3968 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3970 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
3971 mem_mode is BLKmode.
3973 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
3976 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
3977 pointer adjustment for the case of no callee-saved registers and
3978 stack frame bigger than 128 bytes.
3980 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
3983 * omp-low.c (check_omp_nesting_restrictions): Handle
3984 GF_OMP_TARGET_KIND_OACC_DECLARE.
3986 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
3988 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
3989 (@add<mode>3_carry): Rename from add<mode>3_carry.
3990 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
3991 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
3992 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
3993 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
3994 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
3995 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
3996 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
3997 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
3998 (cmpstrnsi): Use gen_cmp_1.
3999 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
4000 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
4001 (@umonitor_<mode>): Rename from umonitor_<mode>.
4002 * config/i386/i386-expand.c (ix86_expand_copysign):
4003 Use gen_copysign3_const and gen_copysign3_var.
4004 (ix86_expand_xorsign): Use gen_xorsign3_1.
4005 (ix86_expand_branch): Use gen_sub3_carry_ccc,
4006 gen_sub3_carry_ccgz and gen_cmp1.
4007 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
4008 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
4009 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
4010 (ix86_split_lshr): Ditto.
4011 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
4013 2019-06-18 Jason Merrill <jason@redhat.com>
4015 * tree.c (build_constructor): Add MEM_STAT_DECL.
4017 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4019 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
4020 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
4021 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
4022 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
4023 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
4024 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
4025 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
4026 Use CC_NZC instead of CC.
4027 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
4028 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
4029 (aarch64_print_operand): Handle E_CC_NZCmode.
4030 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
4031 of gen_set_clobber_cc.
4033 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4035 * config/aarch64/aarch64-sve.md: Tabify file.
4037 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4039 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
4040 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
4041 * config/aarch64/aarch64-sve.md: Use it.
4043 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4045 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
4046 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
4047 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
4048 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
4049 (aarch64_expand_sve_vec_cmp_int): Use it.
4050 (aarch64_expand_sve_vec_cmp_float): Likewise.
4051 * config/aarch64/aarch64-sve.md: Likewise throughout.
4053 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4054 Kugan Vivekanandarajah <kuganv@linaro.org>
4056 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
4057 (*cond_<optab><mode>_z): Fold into...
4058 (*cond_<optab><mode>_any): ...here. Also handle cases in which
4059 operand 4 can be tied to operand 0 (either inherently or via RA).
4061 2019-06-18 Richard Biener <rguenther@suse.de>
4064 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
4065 as if optimized away.
4067 2019-06-18 Tom de Vries <tdevries@suse.de>
4069 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
4070 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
4071 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
4073 (define_insn "@set_softstack_<mode>"): ... this.
4074 (define_insn "omp_simt_enter_<mode>"): Rename to ...
4075 (define_insn "@omp_simt_enter_<mode>"): ... this.
4076 (define_insn "omp_simt_exit_<mode>"): Rename to ...
4077 (define_insn "@omp_simt_exit_<mode>"): ... this.
4079 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4081 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
4082 vf parameter. Restore the previous iv step of nscalars_step,
4083 but give it iv_type rather than compare_type. Tweak code order
4084 to match the comments.
4085 (vect_set_loop_condition_masked): Update accordingly.
4086 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
4087 for iv_precision. Tweak comment formatting.
4089 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4091 * config/darwin.c: Strip trailing whitespace.
4093 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4095 * config/darwin.c (darwin_emit_unwind_label): New default to false.
4096 (darwin_override_options): Set darwin_emit_unwind_label as needed.
4098 2019-06-18 Martin Jambor <mjambor@suse.cz>
4101 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
4102 caller does not have flag_ipa_cp set.
4104 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4106 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
4107 from "*fold_left_plus_<mode>", updated operands order.
4108 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
4109 * internal-fn.c (mask_fold_left_direct): New define.
4110 (expand_mask_fold_left_optab_fn): Likewise.
4111 (direct_mask_fold_left_optab_supported_p): Likewise.
4112 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
4113 * optabs.def (mask_fold_left_plus_optab): New optab.
4114 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
4115 masked internal_fn for a reduction ifn.
4116 (vectorize_fold_left_reduction): Add support for masking reductions.
4118 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
4121 * target.def (predict_doloop_p): New hook.
4122 * targhooks.h (default_predict_doloop_p): New declaration.
4123 * targhooks.c (default_predict_doloop_p): New function.
4124 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
4125 * doc/tm.texi: Regenerate.
4126 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
4127 (TARGET_PREDICT_DOLOOP_P): New macro.
4128 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
4130 2019-06-17 Jakub Jelinek <jakub@redhat.com>
4132 * omp-low.c (struct omp_context): Add scan_inclusive field.
4133 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
4135 (struct omplow_simd_context): Add lastlane member.
4136 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
4137 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
4139 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
4140 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
4141 (lower_omp_scan): New function.
4142 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
4143 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
4144 check 3rd argument if present rather than 2nd.
4145 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
4146 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
4148 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4149 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
4151 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
4152 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
4153 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
4155 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
4156 IFN_GOMP_SIMD_LANE argument.
4157 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
4158 encoded ->aux value.
4159 * tree-vect-stmts.c: Include attribs.h.
4160 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
4161 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
4163 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
4164 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
4166 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
4169 * config/i386/i386.md (*nabstf2_1): New insn pattern.
4170 (*nabs<mode>2_1): Ditto.
4171 (nabs sse-reg splitter): New splitter.
4172 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
4174 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4177 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4180 2019-06-17 Tom de Vries <tdevries@suse.de>
4182 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
4183 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
4184 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
4186 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
4188 (define_insn "omp_simt_enter_insn"): Rename to ...
4189 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
4190 match_operand 0, 1 and 2, as well as the unspec_volatile result.
4191 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
4192 gen_omp_simt_enter_si.
4193 (define_expand "omp_simt_exit"): New.
4194 (define_insn "omp_simt_exit"): Rename to ...
4195 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
4198 2019-06-17 Matthew Green <mrg@eterna.com.au>
4199 Maya Rashish <coypu@sdf.org>
4201 * config.gcc (aarch64*-*-netbsd*): New target.
4202 * config/aarch64/aarch64-netbsd.h: New file.
4203 * config/aarch64/t-aarch64-netbsd: Likewise.
4205 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4207 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
4208 the access path from base to first VIEW_CONVERT_EXPR or
4211 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4213 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
4214 access path on BIT_FIELD_REFs.
4216 2019-06-17 Martin Liska <mliska@suse.cz>
4219 * ipa-utils.h (odr_type_p): Remove dead code.
4221 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4223 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
4224 alternative Solaris 11.4 format.
4225 * configure: Regenerate.
4227 2019-06-17 Tom de Vries <tdevries@suse.de>
4229 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
4230 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
4232 (define_insn "call_value_insn"): Rename to ...
4233 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
4235 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4238 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
4241 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
4242 frame clobbers and schedule block.
4243 (builtin_longjmp): Likewise.
4245 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4247 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
4248 describe how to perform MSPABI compliant 64-bit shift.
4249 * config/msp430/msp430.md (ashldi3): New define_expand.
4250 (ashrdi3): New define_expand.
4251 (lshrdi3): New define_expand.
4253 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4255 * doc/sourcebuild.texi: Document new effective target keyword
4258 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4260 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4261 indirect_refs_may_alias_p): Revert accidental commits.
4263 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4264 at the end of structures.
4266 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4268 * config/darwin.c (machopic_indirect_call_target): Use renamed
4269 darwin_picsymbol_stubs to decide on output.
4270 (darwin_override_options): Handle darwin_picsymbol_stubs.
4271 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
4272 (LD64_VERSION): Revise default.
4273 * config/darwin.opt: (mpic-symbol-stubs): New option.
4274 (darwin_picsymbol_stubs): New variable.
4275 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
4276 rename to TARGET_MACHO_PICSYM_STUBS.
4277 * config/i386/i386.c (output_pic_addr_const): Likewise.
4278 * config/i386/i386.h Likewise.
4279 * config/rs6000/darwin.h: Likewise.
4280 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
4281 darwin_picsymbol_stubs.
4283 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4285 * config/darwin.opt (prebind, noprebind, seglinkedit,
4286 noseglinkedit): Add RejectNegative.
4288 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4290 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4291 in my previous patch.
4293 2019-06-16 Tom de Vries <tdevries@suse.de>
4295 PR tree-optimization/89376
4296 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4298 2019-06-15 Maya Rashish <coypu@sdf.org>
4300 * doc/invoke.texi (Spec Files): Update location of the
4303 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
4305 * doc/extend.texi (Common Function Attributes): Clarify
4306 no_sanitize. Fix grammar.
4308 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
4310 * tree-ssa-alias.c (alias_stats): Add
4311 nonoverlapping_component_refs_p_may_alias,
4312 nonoverlapping_component_refs_p_no_alias,
4313 nonoverlapping_component_refs_of_decl_p_may_alias,
4314 nonoverlapping_component_refs_of_decl_p_no_alias.
4315 (dump_alias_stats): Dump them.
4316 (nonoverlapping_component_refs_of_decl_p): Add stats.
4317 (nonoverlapping_component_refs_p): Add stats; do not stop on first
4320 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
4322 * config/i386/i386.md (and<mode>3): Generate zero-extends for
4323 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4325 (*anddi3_doubleword): Split before reload. Merge with
4326 anddi->zext pre-reload splitter.
4327 (*andndi3_doubleword): Split before reload.
4328 (*<code>di3_doubleword): Ditto.
4329 (*one_cmpldi2_doubleword): Ditto.
4331 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4334 * gimplify.c: Include omp-offload.h and context.h.
4335 (gimplify_bind_expr): Add "omp declare target" attributes
4336 to static block scope variables inside of target region or target
4339 2019-06-15 Tom de Vries <tdevries@suse.de>
4341 PR tree-optimization/90009
4342 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4343 Return NULL if bb contains IFN_UNIQUE.
4345 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
4347 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
4348 (un): New define_mode_attr.
4349 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
4350 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
4351 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
4353 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
4355 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
4357 * config/darwin.opt: Add RejectNegative where needed, reorder
4358 and add minimal functional descriptions.
4360 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4362 PR rtl-optimization/90765
4363 * calls.c (update_stack_alignment_for_call): New function.
4364 (expand_call): Call update_stack_alignment_for_call when
4365 outgoing parameter is passed in the stack.
4366 (emit_library_call_value_1): Likewise.
4367 * function.c (locate_and_pad_parm): Don't update
4368 stack_alignment_needed and preferred_stack_boundary.
4370 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4373 * config/i386/i386-features.c
4374 (dimode_scalar_chain::compute_convert_gain): Replace
4375 mmxsse_to_integer with sse_to_integer.
4376 * config/i386/i386.c (ix86_register_move_cost): Verify that
4377 moves between MMX and non-MMX units require secondary memory.
4378 Correct costs of moves between SSE and integer units.
4379 * config/i386/i386.h (processor_costs): Rename cost of moving
4380 SSE register to integer to sse_to_integer. Rename cost of
4382 2019-06-14 Matt Thomas <matt@3am-software.com>
4383 Matthew Green <mrg@eterna.com.au>
4384 Nick Hudson <skrll@netbsd.org>
4385 Maya Rashish <coypu@sdf.org>
4386 Richard Earnshaw <rearnsha@arm.com>
4388 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
4389 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
4390 * config/arm/netbsd-eabi.h: New file.
4391 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
4393 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
4394 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
4395 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
4396 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
4398 2019-06-14 Richard Biener <rguenther@suse.de>
4400 * tree-loop-distribution.c (classify_partition): Return
4401 whether a reduction appeared in all partitions and do not
4402 stop builtin detection because of this.
4403 (distribute_loop): Sort a non-builtin partition last if
4404 there's a reduction in all partitions and make sure the
4405 partition prevailing as last is not a builtin.
4407 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
4410 * ipa-prop.c (add_to_agg_contents_list): New function.
4411 (clobber_by_agg_contents_list_p): Likewise.
4412 (extract_mem_content): Likewise.
4413 (get_place_in_agg_contents_list): Delete.
4414 (determine_known_aggregate_parts): Renamed from
4415 determine_locally_known_aggregate_parts. New parameter
4418 2019-06-13 Martin Sebor <msebor@redhat.com>
4420 PR tree-optimization/90662
4421 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4424 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4427 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4428 dbase is not TARGET_MEM_REF.
4430 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4432 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4434 (and<mode>3): Use gen_extend_insn instead of indirect functions.
4435 Do not generate DImode extends for 32bit targets.
4436 (and->zext post-reload splitter): Use gen_extend_insn
4437 instead of indirect functions.
4438 (anddi->zext pre-reload splitter): New.
4439 (*zext<mode>_doubleword_and): Remove.
4440 (*zext<mode>_doubleword): Ditto.
4441 (*zextsi_doubleword): Dittto.
4443 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4445 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4446 Use gen_sub3_insn instead of indirect function.
4447 (ix86_expand_ashl_const): Use gen_add2_insn instead of
4449 (ix86_adjust_counter): Ditto.
4451 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
4452 Lijia He <helijia@linux.ibm.com>
4454 PR tree-optimization/77820
4455 * tree-ssa-threadedge.c
4456 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4458 (thread_across_edge): Add call to
4459 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4461 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
4463 * config/darwin-driver.c (validate_macosx_version_min): New.
4464 (darwin_default_min_version): Cleanup and validate supplied version.
4465 (darwin_driver_init): Likewise and push cleaned version into opts.
4467 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4469 PR tree-optimization/90869
4470 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
4471 converts in MEM_REF referencing decl rather than view converts
4472 from decl type to MEM_REF type.
4474 2019-06-13 Richard Biener <rguenther@suse.de>
4476 PR tree-optimization/90856
4477 * tree-sra.c (build_ref_for_model): Only use
4478 build_reconstructed_reference when address-spaces are the same.
4480 2019-06-13 Jakub Jelinek <jakub@redhat.com>
4482 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
4483 wrap ei variable name in the declaration in ()s.
4484 (nvptx_single): Actually use mode_label variable. Formatting fix.
4486 2019-06-13 Richard Biener <rguenther@suse.de>
4488 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
4489 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
4490 also return the condition stmt.
4491 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
4492 loop we can version and version that, reusing the loop version
4493 created by if-conversion instead of versioning again.
4495 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
4497 * gimple-loop-versioning.cc (prune_loop_conditions): Use
4499 * tree-vrp (value_range_base::may_contain_p): Call into
4501 (value_inside_range): Make private inside value_range_base class.
4502 Take min/max from *this.
4503 (range_includes_p): Remove.
4504 * tree-vrp.h (value_range_base): Add value_inside_range.
4505 (range_includes_p): Remove.
4506 (range_includes_zero_p): Call may_contain_p.
4507 * vr-values.c (compare_range_with_value): Same.
4509 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
4511 * doc/extend.texi (ARC Function Attributes): Update info.
4513 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4515 PR tree-optimization/89713
4516 * doc/invoke.texi (-ffinite-loops): Document new option.
4517 * common.opt (-ffinite-loops): New option.
4518 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
4519 IFN_GOACC_LOOP calls as necessary.
4520 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
4522 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
4523 IFN_GOACC_LOOP call is not used.
4524 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
4526 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4529 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
4530 compare_type is not with Pmode size, we will create an IV with
4531 Pmode size with truncated use (i.e. converted to the correct type).
4532 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
4533 (vect_iv_limit_for_full_masking): New. Factored out of
4534 vect_set_loop_condition_masked.
4535 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
4536 (vect_iv_limit_for_full_masking): Declare.
4538 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4541 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
4542 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
4543 (get_alias_ptr_type_for_ptr_address): Likewise.
4544 (add_iv_candidate_for_use): Add scaled index candidate if useful.
4545 * tree-ssa-address.c (preferred_mem_scale_factor): New.
4546 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
4549 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4551 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
4553 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
4555 * common/config/pru/pru-common.c: New file.
4556 * config.gcc: Add PRU target.
4557 * config/pru/alu-zext.md: New file.
4558 * config/pru/constraints.md: New file.
4559 * config/pru/predicates.md: New file.
4560 * config/pru/pru-opts.h: New file.
4561 * config/pru/pru-passes.c: New file.
4562 * config/pru/pru-pragma.c: New file.
4563 * config/pru/pru-protos.h: New file.
4564 * config/pru/pru.c: New file.
4565 * config/pru/pru.h: New file.
4566 * config/pru/pru.md: New file.
4567 * config/pru/pru.opt: New file.
4568 * config/pru/t-pru: New file.
4569 * doc/extend.texi: Document PRU pragmas.
4570 * doc/invoke.texi: Document PRU-specific options.
4571 * doc/md.texi: Document PRU asm constraints.
4573 2019-06-12 Martin Sebor <msebor@redhat.com>
4576 * tree-pretty-print.c (dump_mem_ref): New function. Include
4577 MEM_REF type in output when different size than operand.
4578 (dump_generic_node): Move code to dump_mem_ref and call it.
4580 2019-06-12 Martin Sebor <msebor@redhat.com>
4582 PR tree-optimization/90662
4583 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
4586 2019-06-12 Tom de Vries <tdevries@suse.de>
4588 PR tree-optimization/90009
4589 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
4591 2019-06-12 Martin Liska <mliska@suse.cz>
4593 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
4595 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
4596 * mem-stats.h (mem_alloc_description::mem_alloc_description):
4597 Do not sanitize created maps.
4599 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
4601 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
4602 value_range::singleton_p.
4603 * tree-vrp.c (value_range_constant_singleton): Remove.
4604 * tree-vrp.h (value_range_constant_singleton): Remove.
4605 * vr-values.c (vr_values::singleton): Use
4606 value_range::singleton_p.
4608 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4611 * cfgexpand.c (align_local_variable): Add really_expand argument,
4612 don't SET_DECL_ALIGN if it is false.
4613 (add_stack_var): Add really_expand argument, pass it through to
4614 align_local_variable.
4615 (expand_one_stack_var_1): Pass true as really_expand to
4616 align_local_variable.
4617 (expand_one_ssa_partition): Pass true as really_expand to
4619 (expand_one_var): Pass really_expand through to add_stack_var.
4621 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4623 * config/arm/iterators.md (VABAL): New int iterator.
4624 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
4625 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
4626 UNSPEC_VABAL_U values.
4628 2019-06-12 Martin Liska <mliska@suse.cz>
4630 * value-prof.c (stream_out_histogram_value): Only first value
4633 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4636 * symtab.c (symtab_node::set_section): Allow being called on aliases
4637 as long as they aren't analyzed yet.
4639 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
4641 * config/mips/mips.c (mips_final_postscan_insn): Modify call
4642 to `mips_set_text_contents_type' to indicate whether a
4643 non-debug insn follows.
4645 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
4647 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
4648 enabling -mpcrel by default.
4649 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
4650 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
4651 that the test against -mcpu=future is done first. Then test if
4652 -mprefixed-addr is on for -mpcrel.
4653 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
4655 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4658 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
4661 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4663 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
4665 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
4667 PR c++/90449 - add -Winaccessible-base option.
4668 * doc/invoke.texi (Winaccessible-base): Document.
4670 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4672 PR tree-optimization/62041
4673 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
4675 2019-06-11 Jason Merrill <jason@redhat.com>
4677 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
4678 * tree.c (get_tree_code_name): Likewise.
4679 * print-tree.c (print_node): Only briefly print a node with an
4682 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4685 * trans-mem.c (tm_memopt_compute_available): Add assertion
4686 that blocks is not empty. Formatting fix.
4688 2019-06-11 Martin Liska <mliska@suse.cz>
4691 * hash-table.h: Extend create_gcc, add one parameter
4692 that is passed into hash_table::hash_table.
4694 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
4696 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
4698 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4699 Emit clobber also for non-sse operations.
4700 (ix86_split_fp_absneg_operator): New function.
4701 * config/i386/i386.md (SSEMODEF): New mode iterator.
4702 (ssevecmodef): New mode attribute.
4703 (<code>tf2): Use absneg code iterator.
4704 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
4705 Add three-operand AVX alternatives.
4706 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
4707 Use absneg code iterator and X87MODEF mode iterator.
4708 (absneg fp_reg non-sse splitter): Call absneg code iterator
4709 and X87MODEF mode iterator.
4710 (absneg general_reg non-sse splitter): Use absneg code iterator
4711 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
4712 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
4713 code iterator. Add three-operand AVX alternative.
4714 (absneg sse_reg splitter): Use absneg code iterator
4715 and SSEMODEF mode iterator. Handle AVX operands.
4716 (absneg fp_reg splitter): Use absneg code iterator
4717 and MODEF mode iterator.
4718 (absneg general_reg splitter): Merge splitters using MODEF mode
4719 iterator. Use absneg code iterator. Call
4720 ix86_split_fp_absneg_operator.
4721 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
4722 Do not enable for non-sse modes before reload.
4725 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
4726 ssevecmodef mode attribute instaed of CSGNVMODE.
4727 (copysign<mode>3_const): Ditto.
4728 (copysign<mode>3_var): Ditto.
4729 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
4730 Use absneg code iterator. Simplify code using std::swap.
4731 * config/i386/predicates.md (absneg_operator): Remove.
4733 2019-06-10 Martin Sebor <msebor@redhat.com>
4735 * gimple-fold.c (get_range_strlen): Update comment that didn't
4736 make it into r267503 or related commits.
4738 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
4740 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
4741 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
4743 2019-06-10 Jakub Jelinek <jakub@redhat.com>
4745 * tree.def (OMP_SCAN): New tree code.
4746 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
4747 OMP_CLAUSE_EXCLUSIVE.
4748 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
4749 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
4750 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
4751 OMP_CLAUSE_{IN,EX}CLUSIVE.
4752 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4753 * tree-nested.c (convert_nonlocal_reference_stmt,
4754 convert_local_reference_stmt, convert_gimple_call): Handle
4756 * tree-pretty-print.c (dump_omp_clause): Handle
4757 OMP_CLAUSE_{IN,EX}CLUSIVE.
4758 (dump_generic_node): Handle OMP_SCAN.
4759 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
4760 * gimple.h (gomp_scan): New type.
4761 (is_a_helper <gomp_scan *>::test,
4762 is_a_helper <const gomp_scan *>::test): New templates.
4763 (gimple_build_omp_scan): Declare.
4764 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
4765 gimple_omp_scan_set_clauses): New inline functions.
4766 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
4767 * gimple.c (gimple_build_omp_scan): New function.
4768 (gimple_copy): Handle GIMPLE_OMP_SCAN.
4769 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
4770 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
4771 GIMPLE_OMP_TASKGROUP.
4772 (dump_gimple_omp_scan): New function.
4773 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
4774 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
4775 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
4776 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
4777 (is_gimple_stmt): Handle OMP_SCAN.
4778 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
4779 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4780 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
4781 mentioned in nested #pragma omp scan. Handle
4782 OMP_CLAUSE_{IN,EX}CLUSIVE.
4783 (gimplify_expr): Handle OMP_SCAN.
4784 * omp-low.c (check_omp_nesting_restrictions): For parent context,
4785 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
4787 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
4790 2019-06-10 Martin Liska <mliska@suse.cz>
4792 * ipa-cp.c (ignore_edge_p): New function.
4793 (build_toporder_info): Use it.
4794 * ipa-inline.c (ignore_edge_p): New function.
4795 (inline_small_functions): Use it.
4796 * ipa-pure-const.c (ignore_edge_for_nothrow):
4797 Verify opt_for_fn for caller and callee.
4798 (ignore_edge_for_pure_const): Likewise.
4799 * ipa-reference.c (ignore_edge_p): Extend to check
4801 * ipa-utils.c (searchc): Refactor.
4802 * ipa-utils.h: Fix coding style.
4804 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4806 * config/arc/arc.c (arc_rtx_costs): Update costs.
4808 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4810 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
4811 (arc_split_ior): Likewise.
4812 (arc_check_mov_const): Likewise.
4813 (arc_split_mov_const): Likewise.
4814 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
4815 (arc_rtx_costs): Replace check Crr with Cax constraint.
4816 (prepare_move_operands): Cleanup, remove unused code.
4817 (arc_split_ior): New function.
4818 (arc_check_ior_const): Likewise.
4819 (arc_split_mov_const): Likewise.
4820 (arc_check_mov_const): Likewise.
4821 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
4822 in define_insn_and_split pattern.
4824 (mulsi3_v2): Add new matching variant.
4825 (andsi3_i): Cleanup pattern.
4826 (rotrsi3_cnt1): Update pattern.
4827 (rotrsi3_cnt8): New pattern.
4828 (ashlsi2_cnt8): Likewise.
4829 (ashlsi2_cnt16): Likewise.
4830 * config/arc/constraints.md (C0p): Update constraint.
4835 2019-06-10 Martin Liska <mliska@suse.cz>
4837 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
4838 Update coding style.
4839 (sem_item_optimizer::dump_cong_classes):
4840 Print how many items are in a non-singular class. Improve
4843 2019-06-10 Martin Liska <mliska@suse.cz>
4845 * value-prof.c (dump_histogram_value): Change dump format.
4846 (gimple_mod_subtract_transform): Remove legacy comment.
4848 2019-06-10 Martin Liska <mliska@suse.cz>
4850 * value-prof.c (dump_histogram_value): Print histogram values
4853 2019-06-10 Martin Liska <mliska@suse.cz>
4855 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
4856 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
4857 * ipa-profile.c (ipa_profile_generate_summary):
4858 Use get_most_common_single_value.
4859 * tree-profile.c (gimple_init_gcov_profiler):
4860 Instrument with __gcov_one_value_profiler_v2
4861 and __gcov_indirect_call_profiler_v4.
4862 * value-prof.c (dump_histogram_value):
4863 Print all values for HIST_TYPE_SINGLE_VALUE.
4864 (stream_out_histogram_value): Update assert for
4866 (stream_in_histogram_value): Set number of
4867 counters for HIST_TYPE_SINGLE_VALUE.
4868 (get_most_common_single_value): New.
4869 (gimple_divmod_fixed_value_transform):
4870 Use get_most_common_single_value.
4871 (gimple_ic_transform): Likewise.
4872 (gimple_stringops_transform): Likewise.
4873 (gimple_find_values_to_profile): Set number
4874 of counters for HIST_TYPE_SINGLE_VALUE.
4875 * value-prof.h (get_most_common_single_value): New.
4877 2019-06-10 Martin Liska <mliska@suse.cz>
4879 * hash-map.h: Pass default value to hash_table ctor.
4880 * hash-table.h: Add default value to call of a ctor.
4882 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
4884 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
4885 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
4887 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
4890 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
4891 Call pa_output_function_label.
4892 (TARGET_ASM_FUNCTION_PROLOGUE): define.
4893 * config/pa/pa-protos.h (pa_output_function_label): Declare.
4894 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
4896 (pa_linux_output_function_prologue): Declare.
4897 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
4898 (pa_output_function_label): New.
4899 (pa_output_function_prologue): Revise to use pa_output_function_label.
4900 (pa_linux_output_function_prologue): New.
4901 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
4903 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
4905 * tree-vrp.h (value_range_base::intersect): New.
4906 (value_range::intersect_helper): Move from here...
4907 (value_range_base::intersect_helper): ...to here.
4908 * tree-vrp.c (value_range::intersect_helper): Rename to...
4909 (value_range_base::intersect_helper): ...this, and rewrite to
4910 return a value instead of modifying THIS in place.
4911 Also, move equivalence handling...
4912 (value_range::intersect): ...here, while calling intersect_helper.
4913 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
4915 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
4917 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
4919 2019-06-07 Jakub Jelinek <jakub@redhat.com>
4921 * Makefile.in (genprogerr): Add condmd.
4922 (genprog): Remove it here.
4924 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
4926 * doc/invoke.texi (AMD GCN Options): Add gfx906.
4928 2019-06-07 Richard Biener <rguenther@suse.de>
4931 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
4932 that appear after user labels.
4934 2019-06-07 Martin Liska <mliska@suse.cz>
4936 * cselib.c (cselib_init): Disable hash table
4938 * hash-set.h: Pass new default argument to m_table.
4939 * hash-table.c: Add global variable with hash table
4941 * hash-table.h (Allocator>::hash_table): Add new argument
4943 (hashtab_chk_error): New.
4944 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
4945 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
4946 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
4948 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
4950 * common.opt (flto-odr-type-merging): Ignore.
4951 * invoke.texi (-flto-odr-type-merging): Remove.
4952 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
4953 (can_be_vtable_hashed_p): Remove.
4954 (hash_odr_vtable): Remove.
4955 (odr_vtable_hasher::hash): Remove.
4956 (types_same_for_odr): Remove.
4957 (types_odr_comparable): Remove.
4958 (odr_vtable_hasher::equal): Remove.
4959 (odr_vtable_hash_type, odr_vtable_hash): Remove.
4960 (add_type_duplicate): Do not synchronize vtable and name hashtables.
4961 (get_odr_type): Do not use vtable hash.
4962 (dump_odr_type): Remove commented out code.
4963 (build_type_inheritance_graph): Do not allocate vtable hash.
4964 (rebuild_type_inheritance_graph): Do not delete vtable hash.
4965 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
4966 (odr_type_p): Likewise.
4967 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
4970 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
4972 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
4973 immediately after same_types_for_tbaa_p returns -1 and continue
4974 looking for possible exact match; if matching types are arrays
4975 watch for partial overlaps.
4976 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
4977 (indirect_refs_may_alias_p): Do type based disambiguation first;
4980 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
4982 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
4984 2019-06-07 Martin Liska <mliska@suse.cz>
4986 * doc/invoke.texi: Remove param.
4987 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
4989 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
4990 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
4991 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
4992 * profile.c (instrument_values): Remove
4993 HIST_TYPE_INDIR_CALL_TOPN.
4994 * tree-profile.c (init_ic_make_global_vars):
4995 Always build __gcov_indirect_call only.
4996 (gimple_init_gcov_profiler): Remove usage
4997 of PARAM_INDIR_CALL_TOPN_PROFILE.
4998 (gimple_gen_ic_profiler): Likewise.
4999 * value-prof.c (dump_histogram_value): Likewise.
5000 (stream_in_histogram_value): Likewise.
5001 (gimple_indirect_call_to_profile): Likewise.
5002 (gimple_find_values_to_profile): Likewise.
5003 * value-prof.h (enum hist_type): Likewise.
5005 2019-06-07 Martin Liska <mliska@suse.cz>
5007 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
5010 2019-06-07 Martin Liska <mliska@suse.cz>
5012 PR tree-optimization/78902
5013 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
5014 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
5015 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5016 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5017 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
5018 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5019 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
5020 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
5021 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5022 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5023 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5024 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
5025 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
5027 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
5028 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
5029 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
5030 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5031 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5032 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
5033 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5034 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5035 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
5036 warn_unused_result attribute.
5037 (BUILT_IN_STRDUP): Likewise.
5038 (BUILT_IN_STRNDUP): Likewise.
5039 (BUILT_IN_ALLOCA): Likewise.
5040 (BUILT_IN_CALLOC): Likewise.
5041 (BUILT_IN_MALLOC): Likewise.
5042 (BUILT_IN_REALLOC): Likewise.
5044 2019-06-06 Jim Wilson <jimw@sifive.com>
5047 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
5048 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
5049 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
5051 2019-06-06 Martin Sebor <msebor@redhat.com>
5053 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
5054 (handle_builtin_malloc): Remove trailing spaces.
5055 (handle_builtin_memset): Same.
5056 (handle_builtin_memcmp): Same.
5057 (compute_string_length): Same.
5058 (determine_min_objsize): Same.
5059 (handle_builtin_string_cmp): Same.
5060 (handle_char_store): Same. Break up excessively long line.
5062 2019-06-06 Martin Jambor <mjambor@suse.cz>
5064 * tree-sra.c (build_reconstructed_reference): Drop the alignment
5067 2019-06-06 Martin Jambor <mjambor@suse.cz>
5069 * tree-sra.c (struct access): New field grp_same_access_path.
5070 (dump_access): Dump it.
5071 (build_reconstructed_reference): New function.
5072 (build_ref_for_model): Use it if possible.
5073 (path_comparable_for_same_access): New function.
5074 (same_access_path_p): Likewise.
5075 (sort_and_splice_var_accesses): Set the new flag.
5076 (analyze_access_subtree): Likewise.
5077 (propagate_subaccesses_across_link): Propagate zero value of the new
5078 flag down the access tree.
5080 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
5082 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
5083 * config/gcn/gcn.opt (gpu_type): Add gfx906.
5084 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
5085 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
5088 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5090 PR tree-optimization/90332
5091 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
5092 Handle VALS containing two vectors.
5093 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
5095 (@aarch64_combinez<mode>): ... This.
5096 (*aarch64_combinez_be<mode>): Rename to...
5097 (@aarch64_combinez_be<mode>): ... This.
5098 (vec_init<mode><Vhalf>): New define_expand.
5099 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
5101 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5103 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
5104 library functions only when not optimizing for size.
5105 (ashlsi3): Likewise.
5106 (ashrhi3): Likewise.
5107 (ashrsi3): Likewise.
5108 (lshrhi3): Likewise.
5109 (lshrsi3): Likewise.
5111 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
5113 PR rtl-optimization/88751
5114 * ira.c (ira): Use the number of the actually referenced registers
5115 when calculating the threshold.
5117 2019-06-06 Jakub Jelinek <jakub@redhat.com>
5119 * configure: Regenerate.
5121 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5123 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
5124 register if it is in memory, so the shift can be emulated with a rotate
5126 (ashrhi3): Likewise.
5127 (lshrhi3): Likewise.
5129 2019-06-06 Martin Liska <mliska@suse.cz>
5131 PR tree-optimization/87954
5132 * match.pd: Simplify mult where both arguments are 0 or 1.
5134 2019-06-06 Richard Biener <rguenther@suse.de>
5136 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
5137 put equivalences on UNDEFINED ranges.
5138 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5139 Make sure to drop defs of stmts added during simplification
5142 2019-06-06 Richard Biener <rguenther@suse.de>
5144 * tree-ssa-structalias.c: Include tree-cfg.h.
5145 (make_heapvar): Do not make heap vars artificial.
5146 (find_func_aliases_for_builtin_call): Handle stack allocation
5148 (find_func_aliases): Delay processing of simple enough returns
5150 (set_uids_in_ptset): Adjust.
5151 (find_what_var_points_to): Likewise.
5152 (solve_constraints): Do not dump points-to sets here.
5153 (compute_points_to_sets): Post-process return statements,
5154 amending the escaped solution. Dump points-to sets afterwards.
5155 (ipa_pta_execute): Dump points-to sets.
5157 2019-06-06 Martin Liska <mliska@suse.cz>
5160 * doc/install.texi: Fix HTML headers and
5161 titles for 'Installing GCC' pages.
5163 2019-06-06 Martin Liska <mliska@suse.cz>
5165 * ipa-icf-gimple.h (dump_message_1): Remove.
5166 (dump_message): Likewise.
5167 (return_false_with_message_1): Print also file.
5168 (return_false_with_msg): Likewise.
5169 (return_with_result): Likewise.
5170 (return_with_debug): Likewise.
5171 * ipa-icf.c (sem_function::equals_private): Remove call
5174 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5176 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
5177 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
5178 memory operand for it.
5179 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
5181 2019-06-05 Martin Sebor <msebor@redhat.com>
5183 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
5184 Adjust quoting and hyphenation.
5185 * convert.c (convert_to_real_1): Same.
5186 * gcc.c (driver_wrong_lang_callback): Same.
5187 (driver::handle_unrecognized_options): Same.
5188 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5189 * opts-common.c (cmdline_handle_error): Same.
5190 (read_cmdline_option): Same.
5191 * opts-global.c (complain_wrong_lang): Same.
5192 (print_ignored_options): Same.
5193 (handle_common_deferred_options): Same.
5194 * pretty-print.h: Same.
5195 * print-rtl.c (debug_bb_n_slim): Same.
5196 * sched-rgn.c (make_pass_sched_fusion): Same.
5197 * tree-cfg.c (verify_gimple_assign_unary): Same.
5198 (verify_gimple_label): Same.
5199 * tree-ssa-operands.c (verify_ssa_operands): Same.
5200 * varasm.c (do_assemble_alias): Same.
5201 (assemble_alias): Same.
5203 2019-06-05 Richard Henderson <rth@twiddle.net>
5205 * config/alpha/alpha.c (direct_return): Move down after
5206 struct machine_function definition; use saved frame_size;
5208 (struct machine_function): Add sa_mask, sa_size, frame_size.
5209 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
5210 (alpha_compute_frame_layout): ... new function.
5211 (TARGET_COMPUTE_FRAME_LAYOUT): New.
5212 (alpha_initial_elimination_offset): Use saved sa_size.
5213 (alpha_vms_initial_elimination_offset): Likewise.
5214 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
5215 (alpha_expand_prologue): Use saved frame data. Merge integer
5216 and fp register save loops.
5217 (alpha_expand_epilogue): Likewise.
5218 (alpha_start_function): Use saved frame data.
5219 * config/alpha/alpha-protos.h (direct_return): Update.
5220 (alpha_sa_size): Remove.
5222 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
5224 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
5225 multiplication by a power-of-two value.
5226 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
5227 and turn the modulo operation into a masking operation.
5229 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5232 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5233 with VOIDmode inner operands.
5235 2019-06-05 Richard Biener <rguenther@suse.de>
5238 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5239 turn an expression graph into a tree.
5241 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5243 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5245 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
5246 treat it like explicit monotonic schedule modifier.
5247 (expand_omp_for): Initialize has_lastprivate_conditional.
5248 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
5251 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5252 references, lookup in in hash map MEM_REF operand instead of the
5254 (lower_omp_1): When looking for lastprivate conditional assignments,
5255 handle MEM_REFs with REFERENCE_TYPE operands.
5257 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
5258 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
5259 and references a VLA. Handle references to non-VLAs if is_simd
5260 all privatization clauses like reductions.
5261 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
5262 If omp_is_reference, use always omp simd arrays and set
5263 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
5264 fails, emit reference initialization.
5266 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5269 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
5270 _mm_mask_fpclass_sd_mask): New intrinsics.
5271 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
5272 * config/i386/i386-builtin.def
5273 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
5275 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
5276 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
5277 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
5278 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
5279 case QI_FTYPE_V2SF_INT): Ditto.
5280 * config/i386/sse.md
5281 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
5282 Extended to insnstructions with mask operands.
5284 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5286 * config/rs6000/constraints.md (define_register_constraint "wp"):
5288 (define_register_constraint "wq"): Delete.
5289 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5290 (rs6000_init_hard_regno_mode_ok): Adjust.
5291 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5292 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
5293 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
5294 (define_mode_attr VSa): Delete.
5295 (define_mode_attr VSisa): New.
5296 (rest of file): Adjust.
5297 * doc/md.texi (Machine Constraints): Adjust.
5299 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5301 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5302 (define_attr "enabled"): Handle those new isa values.
5304 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5306 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
5307 (define_mode_attr VSr5): Delete.
5308 (define_mode_attr VStype_sqrt): Delete.
5309 (define_mode_iterator VSX_SPDP): Delete.
5310 (define_mode_attr VS_spdp_res): Delete.
5311 (define_mode_attr VS_spdp_insn): Delete.
5312 (define_mode_attr VS_spdp_type): Delete.
5313 (*vsx_sqrt<mode>2): Adjust.
5314 (vsx_<VS_spdp_insn>): Delete, split to...
5315 (vsx_xscvdpsp): ... this. New. And...
5316 (vsx_xvcvspdp): ... this. New. And...
5317 (vsx_xvcvdpsp): ... this. New.
5319 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5321 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5323 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5324 (rest of file): Adjust.
5326 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5328 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5329 (vsx_extract_<mode>_var): Ditto.
5331 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5333 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5336 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5338 * config/rs6000/constraints.md (define_register_constraint "ww"):
5340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5341 (rs6000_init_hard_regno_mode_ok): Adjust.
5342 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5343 RS6000_CONSTRAINT_ww.
5344 * config/rs6000/rs6000.md: Adjust.
5345 * config/rs6000/vsx.md: Adjust.
5346 * doc/md.texi (Machine Constraints): Adjust.
5348 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5350 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
5351 (define_mode_attr sd): New.
5352 (define_mode_attr s): New.
5353 (define_mode_attr Ftrad): Delete.
5354 (define_mode_attr Fvsx): Delete.
5355 (define_mode_attr Fs): Delete.
5356 (rest of file): Use the new mode attributes.
5357 * config.rs6000/vsx.md: Use the new mode attributes.
5359 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5361 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5364 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5366 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
5367 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
5368 used with VSX_B, VSX_D, or VSX_F, with just "wa".
5370 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
5373 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5374 C++ with strict ANSI requirements.
5376 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
5378 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5379 computations when step is 1.
5381 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5383 * config/rs6000/constraints.md (define_register_constraint "wf"):
5385 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5386 (rs6000_init_hard_regno_mode_ok): Adjust.
5387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5388 RS6000_CONSTRAINT_wf.
5389 * config/rs6000/rs6000.md: Adjust.
5390 * config/rs6000/vsx.md: Adjust.
5391 * doc/md.texi (Machine Constraints): Adjust.
5393 2019-06-04 Andrew Pinski <apinski@marvell.com>
5395 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5398 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5400 * config/rs6000/constraints.md (define_register_constraint "wd"):
5402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5403 (rs6000_init_hard_regno_mode_ok): Adjust.
5404 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5405 RS6000_CONSTRAINT_wd.
5406 * config/rs6000/rs6000.md: Adjust.
5407 * config/rs6000/vsx.md: Adjust.
5408 * doc/md.texi (Machine Constraints): Adjust.
5410 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5412 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5413 (rest of file): Adjust.
5415 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5417 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
5418 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
5419 (vsx_splat_<mode>_reg): Adjust.
5421 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5423 * config/rs6000/constraints.md (define_register_constraint "ws"):
5425 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5426 (rs6000_init_hard_regno_mode_ok): Adjust.
5427 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5428 RS6000_CONSTRAINT_ws.
5429 * config/rs6000/rs6000.md: Adjust.
5430 * config/rs6000/vsx.md: Adjust.
5431 * doc/md.texi (Machine Constraints): Adjust.
5433 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5435 * config/rs6000/constraints.md (define_register_constraint "wv"):
5437 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5438 (rs6000_init_hard_regno_mode_ok): Adjust.
5439 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5440 RS6000_CONSTRAINT_wv.
5441 * config/rs6000/rs6000.md: Adjust.
5442 * config/rs6000/vsx.md: Adjust.
5443 * doc/md.texi (Machine Constraints): Adjust.
5445 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5447 * config/rs6000/constraints.md (define_register_constraint "wi"):
5449 (define_register_constraint "wt"): Delete.
5450 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5451 (rs6000_init_hard_regno_mode_ok): Adjust.
5452 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5453 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
5454 * config/rs6000/rs6000.md: Adjust.
5455 * config/rs6000/vsx.md: Adjust.
5456 * doc/md.texi (Machine Constraints): Adjust.
5458 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5460 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5462 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5463 default_elf_asm_output_external.
5465 2019-06-04 Martin Liska <mliska@suse.cz>
5467 * ipa-icf.c (INCLUDE_LIST): Remove.
5468 (sem_item_optimizer::execute): Remove call to init_wpa.
5469 * ipa-icf.h (init_wpa): Remove.
5471 2019-06-04 Jakub Jelinek <jakub@redhat.com>
5473 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
5474 conditional on combined for simd.
5475 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
5477 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
5478 constructs, don't remove lastprivate_conditional_map, but instead set
5479 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
5480 to parent construct temporaries.
5481 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
5482 like !ctx->lastprivate_conditional_map.
5483 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
5484 use up->outer context instead of up.
5485 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
5486 gimple_omp_for_combined_p.
5487 (expand_omp_for_static_nochunk): Likewise.
5488 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
5489 probably moved over into expand_omp_for_generic rather than being copied
5492 2019-06-04 Martin Liska <mliska@suse.cz>
5494 * value-prof.c (dump_histogram_value): Fix typo.
5495 (gimple_mod_subtract_transform): Likewise.
5497 2019-06-04 Richard Biener <rguenther@suse.de>
5500 * tree-chrec.c (chrec_contains_symbols): Add to visited.
5501 (tree_contains_chrecs): Likewise.
5502 (chrec_contains_symbols_defined_in_loop): Move here and avoid
5503 exponential behaivor from ...
5504 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5506 (expression_expensive_p): Avoid exponential behavior and compute
5507 expanded size, rejecting any expansion.
5508 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
5509 (idx_contains_abnormal_ssa_name_p): Likewise.
5510 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
5511 (contains_abnormal_ssa_name_p): Simplify and use
5512 walk_tree_without_duplicates.
5514 2019-06-04 Richard Biener <rguenther@suse.de>
5516 PR tree-optimization/90738
5518 2019-06-03 Richard Biener <rguenther@suse.de>
5520 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5521 full reference tree and record in ref->ref.
5522 (vn_reference_lookup_3): Pass in original ref to
5523 ao_ref_init_from_vn_reference.
5524 (vn_reference_lookup): Likewise.
5525 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5526 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5527 Handle non-decl bases in the original reference.
5529 2019-06-04 Martin Liska <mliska@suse.cz>
5531 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
5532 number of references.
5533 (sem_item_optimizer::do_congruence_step):
5534 (sem_item_optimizer::worklist_push): Dump how references
5536 (sem_item_optimizer::worklist_pop): Use heap.
5537 (sem_item_optimizer::process_cong_reduction): Likewise.
5538 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
5540 2019-06-04 Martin Liska <mliska@suse.cz>
5542 * ipa-icf.h (struct sem_usage_pair_hash): New.
5543 (sem_usage_pair_hash::hash): Likewise.
5544 (sem_usage_pair_hash::equal): Likewise.
5545 (struct sem_usage_hash): Likewise.
5546 * ipa-icf.c (sem_item::sem_item): Initialize
5547 referenced_by_count.
5548 (sem_item::add_reference): Register a reference
5549 in ref_map and not in target->usages.
5550 (sem_item::setup): Remove initialization of
5552 (sem_item::~sem_item): Remove usage of dead vectors.
5553 (sem_item::dump): Remove dump of references.
5554 (sem_item_optimizer::sem_item_optimizer): Initialize
5556 (sem_item_optimizer::read_section): Remove useless
5558 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
5559 (sem_item_optimizer::build_graph): Pass m_references
5561 (sem_item_optimizer::verify_classes): Remove usage of dead
5563 (sem_item_optimizer::traverse_congruence_split): Return true
5564 when a class is split.
5565 (sem_item_optimizer::do_congruence_step_for_index): Use
5566 hash_map for look up of (sem_item *, index). That brings
5567 significant speed up.
5568 (sem_item_optimizer::do_congruence_step): Return true
5569 when a split is done.
5570 (congruence_class::is_class_used): Use referenced_by_count.
5572 2019-06-04 Alan Modra <amodra@gmail.com>
5575 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
5578 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5580 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
5581 * config/rs6000/rs6000.c (direct_move_p): Adjust.
5582 (rs6000_secondary_reload_simple_move): Adjust.
5583 (rs6000_opt_masks): Neuter the "mfpgpr" option.
5584 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
5585 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
5588 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
5589 (floatunssi<mode>2_lfiwzx): Adjust.
5590 (fix_trunc<mode>si2_stfiwx): Adjust.
5591 (fixuns_trunc<mode>si2_stfiwx): Adjust.
5592 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
5593 (mfpgpr): Mark as deprecated.
5594 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
5595 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
5596 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
5598 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5600 * config/rs6000/constraints.md (define_register_constraint "wg"):
5602 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5603 RS6000_CONSTRAINT_wg.
5604 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5605 (rs6000_init_hard_regno_mode_ok): Adjust.
5606 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
5607 Delete "wg" alternatives.
5608 * doc/md.texi (Machine Constraints): Adjust.
5610 2019-06-03 Alan Modra <amodra@gmail.com>
5612 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
5613 (get_uncond_jump_length): Assert length less than INT_MAX and
5616 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5619 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
5621 (expand_builtin_nonlocal_goto): Likewise.
5623 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5625 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
5626 (aarch64_asm_output_external): Declare.
5627 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
5628 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
5629 (aarch64_asm_output_alias): New.
5630 (aarch64_asm_output_external): New.
5631 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5632 (ASM_OUTPUT_EXTERNAL): Define.
5634 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
5635 * tree-vrp.h (value_range_base::nonzero_p): New.
5636 (value_range_base::set_nonnull): Rename to...
5637 (value_range_base::set_nonzero): ...this.
5638 (value_range_base::set_null): Rename to...
5639 (value_range_base::set_zero): ...this.
5640 (value_range::set_nonnull): Remove.
5641 (value_range::set_null): Remove.
5642 * tree-vrp.c (range_is_null): Remove.
5643 (range_is_nonnull): Remove.
5644 (extract_range_from_binary_expr): Use value_range_base::*zero_p
5645 instead of range_is_*null.
5646 (extract_range_from_unary_expr): Same.
5647 (value_range_base::set_nonnull): Rename to...
5648 (value_range_base::set_nonzero): ...this.
5649 (value_range::set_nonnull): Remove.
5650 (value_range_base::set_null): Rename to...
5651 (value_range_base::set_zero): ...this.
5652 (value_range::set_null): Remove.
5653 (extract_range_from_binary_expr): Rename set_*null uses to
5655 (extract_range_from_unary_expr): Same.
5656 (union_helper): Same.
5657 * vr-values.c (get_value_range): Use set_*zero instead of
5659 (vr_values::extract_range_from_binary_expr): Same.
5660 (vr_values::extract_range_basic): Same.
5662 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5665 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
5667 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5669 * config/aarch64/iterators.md (MAX_OPP): New code attr.
5670 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
5672 (aarch64_<su>abd<mode>_3): ... This.
5673 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
5675 2019-06-03 Richard Biener <rguenther@suse.de>
5677 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5678 full reference tree and record in ref->ref.
5679 (vn_reference_lookup_3): Pass in original ref to
5680 ao_ref_init_from_vn_reference.
5681 (vn_reference_lookup): Likewise.
5682 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5683 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5684 Handle non-decl bases in the original reference.
5686 2019-06-03 Martin Liska <mliska@suse.cz>
5688 * doc/generic.texi: Remove Java Trees.
5690 2019-06-03 Martin Liska <mliska@suse.cz>
5692 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
5693 returns 0 when operands are equal.
5695 2019-06-03 Richard Biener <rguenther@suse.de>
5697 PR tree-optimization/90716
5698 * tree-loop-distribution.c (destroy_loop): Process blocks in
5701 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5704 * vector-builder.h (vector_builder::count_dups): New method.
5705 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
5707 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
5708 (vec_init<mode><Vel>): New pattern.
5709 * config/aarch64/aarch64.c (emit_insr): New function.
5710 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
5711 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
5712 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
5713 (aarch64_sve_expand_vector_init): Define two overloaded functions.
5715 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5717 PR tree-optimization/90681
5718 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
5719 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
5720 special case for SLP, but fail on non-groupped loads.
5722 2019-06-03 Martin Liska <mliska@suse.cz>
5724 * cfg.c (debug): Use TDF_DETAILS for debug and
5725 print edge info only once.
5727 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
5730 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
5732 2019-06-01 Martin Sebor <msebor@redhat.com>
5735 * tree-pretty-print.c (dump_generic_node): Add parentheses.
5737 2019-05-31 Jan Hubicka <jh@suse.cz>
5739 * alias.c: Include ipa-utils.h.
5740 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
5741 * ipa-devirt.c (prevailing_odr_type): New.
5742 * ipa-utils.h (previaling_odr_type): Declare.
5744 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
5745 Hongtao Liu <hongtao.liu@intel.com>
5748 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
5749 NOTE_INSN_DELETED_LABEL check.
5751 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
5752 Robert Suchanek <robert.suchanek@mips.com>
5754 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
5755 and 3rd operands of the fmadd/fmsub/maddv builtin.
5757 2019-05-31 Jakub Jelinek <jakub@redhat.com>
5759 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
5760 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
5761 on OMP_SIMD if not nested inside of worksharing loop that also has
5762 lastprivate conditional clause for the same decl.
5763 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
5764 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
5766 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
5768 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
5770 (lower_lastprivate_clauses): Likewise.
5771 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
5772 calling lower_rec_input_clauses.
5773 (lower_omp_for): Likewise.
5774 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
5775 clause on simd construct.
5776 * omp-expand.c (expand_omp_simd): Initialize cond_var if
5777 OMP_CLAUSE__CONDTEMP_ clause is present.
5779 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
5782 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
5785 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
5786 TEX_D32, TEX_D64 or TEX_D128.
5788 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5790 * match.pd (~(vec?cst1:cst2)): New transformation.
5792 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5794 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
5795 ((size_t)(A /[ex] B) CMP C): New transformation.
5797 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
5799 * doc/md.texi: Document define_insn_and_rewrite.
5800 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
5801 * gensupport.c (queue_elem): Update comment.
5802 (replace_operands_with_dups): New function.
5803 (gen_rewrite_sequence): Likewise.
5804 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
5805 * read-rtl.c (apply_subst_iterator): Likewise.
5806 (add_condition_to_rtx, named_rtx_p): Likewise.
5807 (rtx_reader::read_rtx_operand): Likewise.
5808 * config/aarch64/aarch64-sve.md
5809 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
5810 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
5811 define_insn_and_rewrite.
5812 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
5813 Remove separate define_split.
5815 2019-05-31 Jan Hubicka <jh@suse.cz>
5817 * tree-ssa-alias.c (type_has_components_p): New function.
5818 (aliasing_component_refs_p): Use it.
5820 2019-05-31 Martin Liska <mliska@suse.cz>
5822 * gdbhooks.py: Add const_tree to TreePrinter.
5824 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
5827 * common.opt (feliminate-unused-debug-symbols): Enable by default.
5828 * doc/invoke.texi (Debugging Options): Document new default of
5829 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
5831 2019-05-31 Jakub Jelinek <jakub@redhat.com>
5833 PR tree-optimization/90671
5834 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
5835 template_block used to be empty on the first call, don't use
5836 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
5837 seq with bb_seq and set it with set_bb_seq.
5839 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
5841 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
5843 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
5844 Michael Meissner <meissner@linux.ibm.com>
5846 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
5847 (prefixed_mem_operand): Likewise.
5848 (non_prefixed_mem_operand): Likewise.
5849 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
5851 * config/rs6000/rs6000.c (print_operand_address): Handle
5852 PC-relative addresses.
5853 (mode_supports_prefixed_address_p): New function.
5854 (rs6000_prefixed_address): New function.
5855 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
5856 (SYMBOL_REF_PCREL_P): Likewise.
5858 2019-05-30 Jakub Jelinek <jakub@redhat.com>
5860 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
5861 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
5862 (gimplify_omp_for): If worksharing loop with lastprivate conditional
5863 is nested inside of parallel region, add _condtemp_ clause to both.
5864 * tree-nested.c (convert_nonlocal_omp_clauses,
5865 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
5867 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
5869 * omp-general.c (omp_extract_for_data): Compute it.
5870 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
5871 (lower_rec_input_clauses): Likewise.
5872 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
5873 clause is already present, just add one further one after it.
5874 (lower_lastprivate_clauses): Handle cond_ptr with array type.
5875 (lower_send_shared_vars): Clear _condtemp_ vars.
5876 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
5877 or section or taskgroup.
5878 * omp-expand.c (determine_parallel_type): Disallow combining only if
5879 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
5880 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
5881 (expand_omp_for_generic, expand_omp_for_static_nochunk,
5882 expand_omp_for_static_chunk, expand_omp_for): Use
5883 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
5884 determine if a special set of API routines are needed and if condtemp
5885 needs to be initialized, while always initialize cond_var if
5886 fd->lastprivate_conditional is non-zero.
5888 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
5889 Michael Meissner <meissner@linux.ibm.com>
5891 * config/rs6000/constraints.md (eI): New constraint.
5892 * config/rs6000/predicates.md (cint34_operand): New predicate.
5893 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
5894 (SIGNED_34BIT_OFFSET_P): Likewise.
5895 * doc/md.texi (eI): Document constraint.
5897 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
5899 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
5901 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
5902 Michael Meissner <meissner@linux.ibm.com>
5904 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
5905 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
5906 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
5907 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
5908 (OTHER_FUTURE_MASKS): Likewise.
5909 (POWERPC_MASKS): Likewise.
5910 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
5911 specified without -mprefixed-addr or -mcpu=future. Error if
5912 -mprefixed-addr is specified without -mcpu=future.
5913 (rs6000_opt_masks): Add entry for prefixed-addr.
5914 * rs6000.opt (mprefixed-addr): New option.
5916 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
5918 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
5919 cfun->is_thunk check.
5921 2019-05-30 Jakub Jelinek <jakub@redhat.com>
5923 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
5926 2019-05-30 Martin Liska <mliska@suse.cz>
5928 * gdbinit.in: Fix 'ptc' command. Add trt
5929 that prints TREE_TYPE($).
5931 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
5932 Alan Modra <amodra@gmail.com>
5934 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
5936 (rs6000_indirect_call_template_1): ...and here.
5937 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
5938 plt16_ha, plt16_lo, mtctr indirect calls. Use
5940 (rs6000_decl_ok_for_sibcall): New function.
5941 (rs6000_function_ok_for_sibcall): Refactor.
5942 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
5943 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
5944 when pcrel. Reorganize.
5945 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
5946 * rs6000.h (rs6000_pltseq_enum): New enum.
5947 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
5948 (*pltseq_tocsave): Use rs6000_pltseq_enum.
5949 (*pltseq_plt16_ha): Likewise.
5950 (*pltseq_plt16_lo): Likewise.
5951 (*pltseq_mtctr): Likewise.
5952 (*pltseq_plt_pcrel): New insn.
5953 (*call_local_aix): Handle @notoc calls.
5954 (*call_value_local_aix): Likewise.
5955 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
5956 (*call_value_nonlocal_aix): Likewise.
5957 (*call_indirect_pcrel): New insn.
5958 (*call_value_indirect_pcrel): Likewise.
5961 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
5963 * config/i386/sse.md (*save_multiple<mode>): Rename from
5964 save_multiple<mode>.
5965 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
5966 (*restore_multiple_and_return<mode>): Rename from
5967 restore_multiple_and_return<mode>.
5968 (*restore_multiple_leave_return<mode>): Rename from
5969 restore_multiple_leave_return<mode>.
5971 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
5973 * config.gcc (rx-*-linux*): New target.
5974 * config/rx/elf.opt: New file.
5975 * config/rx/linux.h: Likewise.
5976 * config/rx/t-linux: Likewise.
5977 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
5979 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
5980 (ASM_APP_OFF): Likewise.
5981 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
5984 2019-05-29 Jan Hubicka <jh@suse.cz>
5986 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
5987 variants are pointer equivalent.
5989 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5991 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
5992 * config/aarch64/aarch64-sve2.md: New file.
5993 (<u>avg<mode>3_floor): New pattern.
5994 (<u>avg<mode>3_ceil): Likewise.
5995 (*<sur>h<addsub><mode>): Likewise.
5996 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
5997 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
5999 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6002 * optc-save-gen.awk: In cl_optimization_print, use correct condition
6003 for var_opt_string printing. In cl_optimization_print_diff, print
6004 (null) instead of invoking undefined behavior if one of the
6005 var_opt_string pointers is NULL and use && instead of first || in the
6006 guarding condition. For var_target_other options, handle const char *
6007 target variables similarly to const char * optimize node variables.
6009 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
6011 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
6012 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
6013 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
6014 Add autib1716 and pacib1716 initialisation.
6015 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
6016 for autib1716 and pacib1716.
6017 * config/aarch64/aarch64-protos.h (aarch64_key_type,
6018 aarch64_post_cfi_startproc): Define.
6019 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
6020 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
6021 aarch64_handle_pac_ret_protection): Set default sign key to A.
6022 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
6023 aarch64_expand_prologue): Add check for b-key.
6024 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
6025 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
6026 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
6027 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
6028 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
6029 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
6030 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6031 * config/aarch64/aarch64.md (do_return): Add check for b-key.
6032 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
6033 pauth_hint_num_a with pauth_hint_num.
6034 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
6035 pauth_hint_num_a with pauth_hint_num.
6036 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
6037 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
6038 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6039 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
6040 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
6041 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
6042 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
6043 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6044 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
6045 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
6046 UNSPEC_AUTIA1716 respectively.
6047 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
6048 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
6049 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
6050 * doc/invoke.texi (-mbranch-protection): Add b-key type.
6051 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
6052 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
6054 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6056 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
6057 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
6058 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
6059 explicit clause on combined parallel into implicit shared clause.
6060 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
6061 and firstprivate if the decl has one too from combined parallel to
6062 the worksharing construct.
6064 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
6065 Michael Meissner <meissner@linux.ibm.com>
6067 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
6069 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
6071 * rtl.h (LABEL_REF_P): New #define.
6073 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
6075 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
6077 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6079 * internal-fn.c: Marked mask_load_direct as vectorizable.
6080 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
6081 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
6082 combined even if masks different with allow_slp_p param.
6083 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
6084 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
6085 dissolve SLP-only vectorizable groups when SLP has been discarded.
6086 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
6087 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
6089 (vect_build_slp_tree_1): Fixed comment typo.
6090 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
6091 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
6093 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
6095 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
6097 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6099 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
6100 Remove obsolete use_thunk reference.
6101 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
6102 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6103 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
6104 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
6105 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6106 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6107 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6108 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
6109 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
6111 2019-05-28 Nathan Sidwell <nathan@acm.org>
6113 * tree.h (IDENTIFIER_ANON_P): New.
6114 (anon_aggrname_format, anon_aggname_p): Don't declare.
6115 (make_anon_name): Declare.
6116 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
6117 (hash_tree): Likewise.
6118 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
6119 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
6120 (anon_cnt, make_anon_name): New.
6122 2019-05-28 Martin Liska <mliska@suse.cz>
6125 * opts-global.c (decode_options): Print help for all
6126 help_option_arguments.
6127 * opts.c (print_help): Add new argument.
6128 (common_handle_option): Remember all values into
6129 help_option_arguments.
6130 * opts.h (print_help): Add new argument.
6132 2019-05-28 Martin Liska <mliska@suse.cz>
6135 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
6136 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
6137 (func_checker::compare_bb): Call compare_loops.
6139 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6141 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6142 on sections construct.
6143 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
6145 (lower_omp_sections): Handle lastprivate conditional.
6146 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
6147 lastprivate_conditional_map.
6148 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
6150 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
6151 critical, taskgroup and section regions when looking for a region
6152 with non-NULL lastprivate_conditional_map.
6154 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6156 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
6157 (*ix86_gen_sub3): Ditto.
6158 (*ix86_gen_sub3_carry): Ditto.
6159 (*ix86_gen_one_cmpl2): Ditto.
6160 (*ix86_gen_andsp): Ditto.
6161 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
6162 (gen_and2_insn): New static function.
6163 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
6164 Use gen_add3_insn instead of ix86_gen_add3.
6165 (ix86_expand_split_stack_prologue): Use gen_add2_insn
6166 instead of ix86_gen_add3.
6167 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
6168 Use gen_sub3_insn instead of ix86_gen_sub3.
6169 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
6170 instead of ix86_gen_add3.
6171 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
6172 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
6173 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
6174 * config/i386/i386-options.c (ix86_option_override_internal):
6175 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6176 ix86_gen_one_cmpl2 and ix86_gen_andsp.
6178 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
6180 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
6181 and DW_OP_GNU_const_index opcodes.
6183 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6185 * config/i386/i386.h (STACK_SIZE_MODE): Define.
6187 2019-05-27 Richard Biener <rguenther@suse.de>
6189 PR tree-optimization/90637
6190 * tree-ssa-sink.c (statement_sink_location): Honor the
6191 computed sink location for single-uses.
6193 2019-05-27 Richard Biener <rguenther@suse.de>
6196 * match.pd (vec_perm): Avoid clobbering op0 when not generating
6199 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6201 * config/i386/i386.md (@sub<mode>3_carry): Rename
6202 from sub<mode>3_carry.
6203 (@leave_<mode>): New expander.
6204 (*leave): Rename from leave.
6205 (*leave_rex64): Rename from leave_rex64.
6206 (@monitorx_<mode>): Rename from monitorx_<mode>.
6207 (@clzero_<mode>): Rename from clzero_<mode>.
6208 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
6209 from sse3_monitor_<mode>.
6210 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
6211 (*ix86_gen_leave): Ditto.
6212 (*ix86_gen_monitor): Ditto.
6213 (*ix86_gen_monitorx): Ditto.
6214 (*ix86_gen_clzero): Ditto.
6215 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
6216 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
6217 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
6218 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
6219 Use gen_sse3_monitor instead of ix86_gen_monitor.
6220 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
6221 instead of ix86_gen_monitorx.
6222 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
6223 instead of ix86_gen_clzero.
6224 * config/i386/i386-options.c (ix86_option_override_internal):
6225 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
6226 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
6228 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6230 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
6231 Rename from tls_global_dynamic_64_<mode>.
6232 (@tls_local_dynamic_base_64_<mode>): Rename from
6233 tls_local_dynamic_base_64_<mode>.
6234 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
6235 Remove indirect function.
6236 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
6237 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
6238 instead of ix86_gen_tls_global_dynamic_64.
6239 Use gen_tls_local_dynamic_base_64 instead of
6240 ix86_gen_tls_local_dynamic_base_64.
6241 * config/i386/i386-options.c (ix86_option_override_internal):
6242 Do not initialize ix86_gen_tls_global_dynamic_64 and
6243 ix86_gen_tls_local_dynamic_base_64.
6245 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6247 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
6248 Rename from pro_epilogue_adjust_stack_<mode>_add.
6249 (@pro_epilogue_adjust_stack_sub_<mode>)
6250 Rename from pro_epilogue_adjust_stack_<mode>_sub.
6251 (@allocate_stack_worker_probe_<mode>):
6252 Rename from allocate_stack_worker_probe_<mode>.
6253 (allocate_stack): Use gen_allocate_stack_worker_probe.
6254 (probe_stack): Use gen_probe_stack_1.
6255 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
6256 (@adjust_stack_and_probe_<mode>): Rename from
6257 adjust_stack_and_probe<mode>.
6258 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
6259 (stack_protect_set): Use gen_stack_protect_set_1.
6260 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
6261 (stack_protect_test): Use gen_stack_protect_test_1.
6262 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
6263 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
6264 Remove indirect function.
6265 (*ix86_gen_adjust_stack_and_probe): Ditto.
6266 (*ix86_gen_probe_stack_range): Ditto.
6267 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
6268 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
6269 (ix86_adjust_stack_and_probe_stack_clash): Use
6270 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
6271 (ix86_adjust_stack_and_probe): Ditto.
6272 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
6273 of ix86_gen_probe_stack_range.
6274 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
6275 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
6276 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
6277 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
6278 CODE_FOR_stack_protect_test_{si,di}.
6279 * config/i386/i386-options.c (ix86_option_override_internal):
6280 Do not initialize ix86_gen_allocate_stack_worker,
6281 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6283 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
6285 * doc/invoke.texi (Link Options): Many editorial changes around
6288 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6290 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6291 pre-Solaris 11 referene and most Studio compiler details.
6293 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
6296 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
6297 DImode to SImode in floating-point registers on 64-bit target.
6298 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
6299 register_operand in xmpyu patterns.
6301 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6303 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
6304 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
6305 OMP_CLAUSE__REDUCTEMP_.
6306 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6307 OMP_CLAUSE__CONDTEMP_.
6308 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
6309 * tree-pretty-print.c (dump_omp_clause): Likewise.
6310 * tree-nested.c (convert_nonlocal_omp_clauses,
6311 convert_local_omp_clauses): Likewise.
6312 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
6313 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
6314 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
6316 (gimplify_omp_for): Warn and disable conditional modifier from
6317 lastprivate on loop iterators.
6318 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
6320 * omp-general.c (omp_extract_for_data): Initialize it.
6321 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6323 (delete_omp_context): Delete it.
6324 (lower_lastprivate_conditional_clauses): New function.
6325 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
6326 handle lastprivate conditional clauses.
6327 (lower_reduction_clauses): Add CLIST argument, emit it into
6328 the critical section if any.
6329 (lower_omp_sections): Adjust lower_lastprivate_clauses and
6330 lower_reduction_clauses callers.
6331 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
6332 to lower_lastprivate_clauses.
6333 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
6334 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
6335 clist into a critical section if not emitted there already by
6336 lower_reduction_clauses.
6337 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
6339 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
6340 conditional variables.
6341 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
6343 (expand_omp_for_generic, expand_omp_for_static_nochunk,
6344 expand_omp_for_static_chunk): Handle lastprivate conditional.
6345 (expand_omp_for): Handle fd.lastprivate_conditional like
6348 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6350 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
6351 kernel does not exit cleanly.
6352 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
6354 2019-05-24 Jason Merrill <jason@redhat.com>
6357 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6359 2019-05-24 Richard Biener <rguenther@suse.de>
6362 * tree-loop-distribution.c (struct partition): Add location
6364 (partition_alloc): Initialize all fields.
6365 (generate_memset_builtin): Use the location recorded in the
6366 partition for the generated call.
6367 (generate_memcpy_builtin): Likewise.
6368 (classify_partition): Record the location of a single store
6369 as location for the partition.
6371 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6373 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6376 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
6379 * common/config/aarch64/aarch64-common.c
6380 (aarch64_rewrite_selected_cpu): Change local temporary variable
6381 type from unsigned long to uint64_t.
6382 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
6383 aarch64_get_extension_string_for_isa_flags): Change declaration to
6384 match new definition by replacing unsigned long with uint64_t.
6386 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6389 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
6390 gen_attr_type just once instead of 4-7 times. Formatting fixes.
6391 Handle stack_protect_test_<mode> codegen similarly to corresponding
6394 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
6396 * config/i386/darwin.h: Reject -mfentry*.
6397 * doc/sourcebuild.texi: Document mfentry target support.
6399 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6401 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
6402 Rename to rs6000_global_entry_point_prologue_needed_p. Return
6403 false for PC-relative functions.
6404 (rs6000_output_function_prologue): Change called function name to
6405 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
6406 name,1" for PC-relative functions.
6407 (rs6000_elf_declare_function_name): Change called function name to
6408 rs6000_global_entry_point_prologue_needed_p.
6410 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
6413 * config/i386/i386.c (gen_rtx_cost):
6414 Use ix86_tune_cost instead of ix86_cost.
6416 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6417 Michael Meissner <meissner@linux.ibm.com>
6418 Segher Boessenkool <segher@kernel.crashing.org>
6420 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6422 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
6423 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
6424 (rs6000_fndecl_pcrel_p): Likewise.
6425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
6426 error if -mpcrel is requested without -mcpu=future.
6427 (rs6000_opt_masks): Add entry for pcrel.
6428 (rs6000_fndecl_pcrel_p): New function.
6429 (rs6000_pcrel_p): Likewise.
6430 * config/rs6000/rs6000.opt (mpcrel): New option.
6431 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
6433 2019-05-23 Jan Hubicka <jh@suse.cz>
6434 Martin Liska <mliska@suse.cz>
6436 PR tree-optimization/90576
6437 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6439 (aliasing_component_refs_p): Fix three way size compare conditional;
6440 give up earlier in case we can not decide on equivalence.
6442 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6443 Michael Meissner <meissner@linux.ibm.com>
6444 Segher Boessenkool <segher@kernel.crashing.org>
6446 * config.gcc: Add future cpu.
6447 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
6448 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
6450 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
6451 (RS6000_CPU): New instantiation for future cpu.
6452 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6454 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
6455 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
6456 * config/rs6000/rs6000-tables.opt: Regenerate.
6457 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
6458 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
6459 (rs6000_machine_from_flags): Handle future cpu.
6460 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
6461 PROCESSOR_POWER9 for now.
6462 (rs6000_adjust_cost): Likewise.
6463 (rs6000_issue_rate): Likewise.
6464 (rs6000_register_move_cost): Likewise.
6465 (rs6000_opt_masks): Add entry for future.
6466 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
6467 (MASK_FUTURE): New #define.
6468 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
6469 * config/rs6000/rs6000.opt (mfuture): New target option.
6470 * doc/invoke.texi (mcpu): Add future cpu.
6472 2019-05-23 Martin Liska <mliska@suse.cz>
6475 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
6476 operation points to a temporary (pointed via tree_to_wide_ref)
6477 that is out of scope after the &.
6479 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
6482 * doc/extend.texi (Function Names): Add missing word.
6484 2019-05-23 Richard Biener <rguenther@suse.de>
6486 PR tree-optimization/88440
6487 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6489 * tree-loop-distribution.c (generate_memset_builtin): Fold the
6491 (generate_memcpy_builtin): Likewise.
6492 (distribute_loop): Pass in whether to only distribute patterns.
6493 (prepare_perfect_loop_nest): Also allow size optimization.
6494 (pass_loop_distribution::execute): When optimizing a loop
6495 nest for size allow pattern replacement.
6497 2019-05-23 Jakub Jelinek <jakub@redhat.com>
6500 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6503 2019-05-23 Martin Liska <mliska@suse.cz>
6506 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6507 expression similarly to gimplify_decl_expr.
6509 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6511 * cse.c (cse_dump_path): s/dump_file/f.
6513 2019-05-22 David Malcolm <dmalcolm@redhat.com>
6516 * diagnostic-format-json.cc: Include "selftest.h".
6517 (json_from_expanded_location): Only add "file" key for non-NULL
6519 (json_from_location_range): Don't add "start" and "finish"
6520 children if they are UNKNOWN_LOCATION.
6521 (selftest::test_unknown_location): New selftest.
6522 (selftest::test_bad_endpoints): New selftest.
6523 (selftest::diagnostic_format_json_cc_tests): New function.
6524 * json.cc (json::object::get): New function.
6525 (selftest::test_object_get): New selftest.
6526 (selftest::json_cc_tests): Call it.
6527 * json.h (json::object::get): New decl.
6528 * selftest-run-tests.c (selftest::run_tests): Call
6529 selftest::diagnostic_format_json_cc_tests.
6530 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
6533 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
6534 Andrew Stubbs <amd@codesourcery.com>
6536 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
6537 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
6538 (kernel): Rename to...
6539 (main_kernel): ... this.
6540 (load_image): Load _init_array and _fini_array kernels.
6541 (run): Add argument for kernel to run.
6542 (main): Run init_array_kernel before main_kernel, and
6543 fini_array_kernel after.
6544 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
6545 amdgpu_hsa_kernel attribute on functions.
6546 (gcn_disable_constructors): Delete.
6547 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
6548 * config/gcn/crt0.c (size_t): Define.
6549 (_init_array, _fini_array): New.
6550 (__preinit_array_start, __preinit_array_end,
6551 __init_array_start, __init_array_end,
6552 __fini_array_start, __fini_array_end): Declare weak references.
6554 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
6556 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
6558 2019-05-22 Jason Merrill <jason@redhat.com>
6560 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6562 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
6565 * config/i386/i386-options.c (ix86_init_machine_status): Set
6566 stack_frame_required to true.
6567 * config/i386/i386.c (ix86_get_frame_size): New function.
6568 (ix86_frame_pointer_required): Replace get_frame_size with
6569 ix86_get_frame_size.
6570 (ix86_compute_frame_layout): Likewise.
6571 (ix86_find_max_used_stack_alignment): Changed to void. Set
6572 stack_frame_required.
6573 (ix86_finalize_stack_frame_flags): Always call
6574 ix86_find_max_used_stack_alignment. Replace get_frame_size with
6575 ix86_get_frame_size.
6576 * config/i386/i386.h (machine_function): Add stack_frame_required.
6578 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
6580 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
6582 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
6584 * common/config/aarch64/aarch64-common.c
6585 (struct aarch64_option_extension, struct processor_name_to_arch,
6586 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
6587 aarch64_contains_opt,
6588 aarch64_get_extension_string_for_isa_flags): Change type of
6589 variables storing flags to uint64_t.
6590 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
6591 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
6592 * config/aarch64/aarch64.c (struct processor,
6593 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
6594 aarch64_validate_march, aarch64_override_options,
6595 aarch64_option_print, aarch64_handle_attr_isa_flags,
6596 aarch64_declare_function_name, aarch64_start_file): Make flag
6598 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
6599 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
6600 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
6601 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
6602 * config/aarch64/driver-aarch64.c
6603 (struct aarch64_arch_extension, struct aarch64_core_data,
6604 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
6605 flag variables uint64_t.
6606 * doc/invoke.texi: Add documentation for new arguments.
6608 2019-05-22 Richard Biener <rguenther@suse.de>
6610 * alias.c (ao_ref_from_mem): Move stack-slot sharing
6612 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
6614 2019-05-22 Martin Liska <mliska@suse.cz>
6617 * doc/extend.texi: Document the change.
6619 2019-05-22 Richard Biener <rguenther@suse.de>
6621 PR tree-optimization/90450
6622 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
6623 (mem_ref_hasher::equal): Check it.
6624 (mem_ref_alloc): Initialize it.
6625 (gather_mem_refs_stmt): Set it.
6627 2019-05-22 Richard Biener <rguenther@suse.de>
6629 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
6631 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
6634 2019-05-22 Alan Modra <amodra@gmail.com>
6636 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
6637 (ASM_CPU_SPEC): Conditionally add -many.
6638 * config/rs6000/rs6000.c (rs6000_machine): New static var.
6639 (rs6000_machine_from_flags, emit_asm_machine): New functions..
6640 (rs6000_file_start): ..extracted from here, and modified to
6642 (rs6000_output_function_prologue): Emit .machine as necessary.
6643 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
6645 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
6646 added by check_vect_support_and_set_flags.
6647 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
6648 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
6650 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
6653 * ira-lives.c (process_bb_node_lives): Consider defs
6654 for a call insn to be die before the call, not after.
6656 * function.c (assign_parm_setup_block): Raise alignment of
6657 stacked parameter only for STRICT_ALIGNMENT targets.
6659 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6661 * config/rs6000/constraints.md (define_register_constraint "wz"):
6663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6664 RS6000_CONSTRAINT_wz.
6665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6666 (rs6000_init_hard_regno_mode_ok): Adjust.
6667 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
6668 * doc/md.texi (Machine Constraints): Adjust.
6670 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6672 * config/rs6000/constraints.md (define_register_constraint "wl"):
6674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6675 RS6000_CONSTRAINT_wl.
6676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6677 (rs6000_init_hard_regno_mode_ok): Adjust.
6678 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
6679 * doc/md.texi (Machine Constraints): Adjust.
6681 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6683 * config/rs6000/constraints.md (define_register_constraint "wm"):
6685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6686 RS6000_CONSTRAINT_wm.
6687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6688 (rs6000_init_hard_regno_mode_ok): Adjust.
6689 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
6690 * doc/md.texi (Machine Constraints): Adjust.
6692 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6694 * config/rs6000/constraints.md (define_register_constraint "wk"):
6696 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6697 RS6000_CONSTRAINT_wk.
6698 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6699 (rs6000_init_hard_regno_mode_ok): Adjust.
6700 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
6701 * doc/md.texi (Machine Constraints): Adjust.
6703 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6705 * config/rs6000/constraints.md (define_register_constraint "wj"):
6707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6708 RS6000_CONSTRAINT_wj.
6709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6710 (rs6000_init_hard_regno_mode_ok): Adjust.
6711 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
6713 * config/rs6000/vsx.md: Ditto.
6714 * doc/md.texi (Machine Constraints): Adjust.
6716 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6718 * config/rs6000/constraints.md (define_register_constraint "wh"):
6720 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6721 RS6000_CONSTRAINT_wh.
6722 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6723 (rs6000_init_hard_regno_mode_ok): Adjust.
6724 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
6725 * doc/md.texi (Machine Constraints): Adjust.
6727 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6730 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6731 Avoid calling gen_lowpart with CONST operand.
6733 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
6735 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
6736 field template_last_to_copy.
6737 (ssa_create_duplicates): Set it, and use it. Attempt to
6738 preserve more debug stmts.
6740 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6742 * config/i386/sse.md (VF1_AVX2): New mode iterator.
6743 (signbit<mode>2): New expander
6745 2019-05-21 James Clarke <jrtc27@jrtc27.com>
6748 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
6749 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
6751 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6753 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
6754 %ebx and %ecx bafore calling cpuid with leaf 1 or
6755 non-constant leaf argument.
6757 2019-05-21 Alan Modra <amodra@gmail.com>
6760 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
6761 power9 direct move cost.
6762 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
6763 Correct comments and rename functions to suit parameters.
6765 2019-05-21 Richard Biener <rguenther@suse.de>
6768 * fold-const.c (fold_read_from_vector): New function.
6769 * fold-const.h (fold_read_from_vector): Declare.
6770 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
6771 single-element insert permutations. Canonicalize selector
6772 further and fix issue with last commit.
6774 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6776 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
6777 parameter with default value false to declaration.
6778 (split_edges_for_insertion): New inline function. Wrapper for
6779 split_critical_edges with for_edge_insertion_p = true.
6780 * tree-cfg.c (split_critical_edges): Don't split non-critical
6781 edges if for_edge_insertion_p is false. Fix whitespace.
6782 * tree-ssa-pre.c (pass_pre::execute): Call
6783 split_edges_for_insertion instead of split_critical_edges.
6784 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
6785 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
6786 (pass_data_sink_code): Update function name in the comment.
6788 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6790 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
6791 around is_value_included_in that knows how to handle BIT_AND_EXPR.
6792 (is_pred_expr_subset_of): Use the new function. Handle more cases where
6793 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
6796 2019-05-21 Martin Liska <mliska@suse.cz>
6798 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
6800 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
6801 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
6803 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6805 (rs6000_function_arg): Likewise.
6806 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
6807 (rs6000_expand_ternop_builtin): Use interval syntax.
6808 (get_element_number): Likewise.
6809 (altivec_expand_builtin): Likewise.
6810 (rs6000_get_function_versions_dispatcher): Quote target_clones.
6812 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6816 * function.h (struct function): Add calls_eh_return member.
6817 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
6818 gimplifying __builtin_eh_return call.
6819 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
6821 (expand_call_inline): Or in src_cfun->calls_eh_return into
6822 dst_cfun->calls_eh_return.
6823 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
6824 cfun->calls_eh_return.
6825 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
6826 * lto-streamer-out.c (output_struct_function_base): Write
6829 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
6831 PR rtl-optimization/43147
6832 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
6833 IX86_BUILTIN_SHUFPD.
6835 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
6837 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
6838 (refs_may_alias_p_1): ... here; update stats.
6839 (refs_may_alias_p): Do not update stats here.
6841 2019-05-20 Richard Biener <rguenther@suse.de>
6843 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
6844 doesn't produce pointers.
6845 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
6846 the first operand points to.
6848 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
6850 * tree-ssa-alias.c (compare_sizes): New function.
6851 (sompare_type_sizes): New function
6852 (aliasing_component_refs_p): Use it.
6853 (indirect_ref_may_alias_decl_p): Likewise.
6855 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6857 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
6859 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6861 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
6862 (LIBLSAN_EARLY_SPEC): Likewise.
6863 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
6865 2019-05-20 Martin Liska <mliska@suse.cz>
6867 * config/i386/i386.c (ix86_libc_has_fast_function):
6868 Add ATTRIBUTE_UNUSED for the argument.
6870 2019-05-20 Richard Biener <rguenther@suse.de>
6872 * gimple-match-head.c: Include vec-perm-indices.h.
6873 * generic-match-head.c: Likewise.
6874 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
6876 * fold-const.c (fold_vec_perm): Export.
6877 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
6878 (match.pd): ...here.
6880 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6882 * cfgloop.h (struct loop): Add simdlen member.
6883 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
6884 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
6885 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
6886 as new argument to autovectorize_vector_sizes target hook. If
6887 loop->simdlen, pick up vector size where the vectorization factor
6888 is equal to loop->simd, and if there is none, fall back to the first
6890 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
6892 * omp-low.c (omp_clause_aligned_alignment): Likewise.
6893 * omp-general.c (omp_max_vf): Likewise.
6894 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
6895 * tree-vect-slp.c (vect_slp_bb): Likewise.
6896 * target.def (autovectorize_vector_sizes): Add ALL argument and
6898 * doc/tm.texi: Adjust documentation.
6899 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
6900 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
6901 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
6903 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
6904 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
6905 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
6906 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
6907 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
6908 preferred vector size is not 512-bit or 256-bit, just put those
6909 unpreferred ones last.
6911 2019-05-20 Martin Liska <mliska@suse.cz>
6913 * targhooks.c (default_libc_has_fast_function): New function.
6914 * targhooks.h (default_libc_has_fast_function): Likewise.
6916 2019-05-20 Martin Liska <mliska@suse.cz>
6919 * builtins.c (expand_builtin_memory_copy_args): When having a
6920 target with fast mempcpy implementation do now use memcpy.
6921 * config/i386/i386.c (ix86_libc_has_fast_function): New.
6922 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
6923 * doc/tm.texi: Likewise.
6924 * doc/tm.texi.in: Likewise.
6926 * expr.c (emit_block_move_hints): Add 2 new arguments.
6927 * expr.h (emit_block_move_hints): Bail out when libcall
6928 to memcpy would be used.
6930 2019-05-20 Martin Liska <mliska@suse.cz>
6932 * profile-count.c: Add vertical spacing in order
6933 to separate functions.
6934 * profile-count.h: Likewise.
6936 2019-05-20 Martin Liska <mliska@suse.cz>
6938 * profile-count.h: Do not use full qualified
6940 * profile-count.c (profile_count::to_frequency): Likewise.
6942 2019-05-20 Martin Liska <mliska@suse.cz>
6944 * profile-count.h (enum profile_quality): Use capital letters
6945 for enum value names. Use the adjusted names.
6946 * profile-count.c: Use the adjusted names.
6948 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6950 * config/rs6000/constraints.md (define_register_constraint "wH"):
6952 (define_register_constraint "wI"): Delete.
6953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6954 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
6955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6956 (rs6000_init_hard_regno_mode_ok): Adjust.
6957 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
6958 resp. "d", or with "wa" as appropriate, all with "p8v".
6959 * config/rs6000/vsx.md: Ditto.
6960 * doc/md.texi (Machine Constraints): Adjust.
6962 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6964 * config/rs6000/constraints.md (define_register_constraint "wy"):
6966 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6967 RS6000_CONSTRAINT_wy.
6968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6969 (rs6000_init_hard_regno_mode_ok): Adjust.
6970 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
6971 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
6972 (define_mode_attr Fisa): New.
6973 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
6974 * doc/md.texi (Machine Constraints): Adjust.
6976 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6978 * config/rs6000/constraints.md (define_register_constraint "wu"):
6980 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6981 RS6000_CONSTRAINT_wu.
6982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6983 (rs6000_init_hard_regno_mode_ok): Adjust.
6984 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
6986 (define_mode_attr Fa): Delete.
6987 * config/rs6000/vsx.md: Ditto.
6988 * doc/md.texi (Machine Constraints): Adjust.
6990 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6992 * config/rs6000/constraints.md (define_register_constraint "wJ"):
6994 (define_register_constraint "wK"): Delete.
6995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6996 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
6997 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6998 (rs6000_init_hard_regno_mode_ok): Adjust.
6999 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
7000 Replace "wK" constraint by "wH" with "p9v".
7001 * config/rs6000/vsx.md: Ditto.
7002 * doc/md.texi (Machine Constraints): Adjust.
7004 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7006 * config/rs6000/constraints.md (define_register_constraint "wb"):
7008 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7009 RS6000_CONSTRAINT_wb.
7010 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7011 (rs6000_init_hard_regno_mode_ok): Adjust.
7012 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
7013 * config/rs6000/vsx.md: Ditto.
7014 * doc/md.texi (Machine Constraints): Adjust.
7016 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7018 * config/rs6000/constraints.md (define_register_constraint "wo"):
7020 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7021 RS6000_CONSTRAINT_wo.
7022 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7023 (rs6000_init_hard_regno_mode_ok): Adjust.
7024 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
7025 * config/rs6000/altivec.md: Ditto.
7026 * doc/md.texi (Machine Constraints): Adjust.
7028 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7030 * config/darwin-c.c (darwin_register_objc_includes): Do not
7031 prepend the sysroot when building gnu-runtime header search
7034 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7036 * config/darwin.c (darwin_file_end): Use switch_to_section ()
7037 instead of direct output of the asm.
7039 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7041 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
7042 argument to be type bool (was int before).
7043 (rs6000_emit_epilogue): Simplify some code. Declare some variables
7044 at first use. Use type bool for some variables. Fix a theoretical
7045 eh_return bug for svr4.
7047 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7049 * config/rs6000/rs6000.md (isa): New attribute.
7050 (enabled): New attribute.
7052 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
7054 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
7055 assemble_start_function and assemble_end_function.
7057 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7060 * omp-general.c (oacc_verify_routine_clauses): Change formal
7061 parameters. Add checking if already marked with an OpenACC
7062 'routine' directive. Adjust all users.
7065 * omp-general.c (oacc_build_routine_dims): Move some of its
7067 (oacc_verify_routine_clauses): ... this new function.
7068 * omp-general.h (oacc_verify_routine_clauses): New prototype.
7070 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7072 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
7073 formating of picbase labels to match other ports.
7075 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7077 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
7078 in the generated code.
7080 2019-05-16 Martin Sebor <msebor@redhat.com>
7082 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
7083 identifiers, keywords, operators, and types in diagnostics. Correct
7084 quoting, spelling, and sentence capitalization issues.
7085 (expand_builtin_atomic_is_lock_free): Same.
7086 (fold_builtin_next_arg): Same.
7087 * cfgexpand.c (expand_one_var): Same.
7088 (tree_conflicts_with_clobbers_p): Same.
7089 (expand_asm_stmt): Same.
7090 (verify_loop_structure): Same.
7091 * cgraphunit.c (process_function_and_variable_attributes): Same.
7092 * collect-utils.c (collect_execute): Same.
7093 * collect2.c (maybe_run_lto_and_relink): Same.
7094 (is_lto_object_file): Same.
7095 (scan_prog_file): Same.
7096 * convert.c (convert_to_real_1): Same.
7097 * dwarf2out.c (dwarf2out_begin_prologue): Same.
7098 * except.c (verify_eh_tree): Same.
7099 * gcc.c (execute): Same.
7100 (eval_spec_function): Same.
7101 (run_attempt): Same.
7102 (driver::set_up_specs): Same.
7103 (compare_debug_auxbase_opt_spec_function): Same.
7104 * gcov-tool.c (unlink_gcda_file): Same.
7107 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
7108 * gimplify.c (gimplify_asm_expr): Same.
7109 (gimplify_adjust_omp_clauses): Same.
7110 * hsa-gen.c (gen_hsa_addr_insns): Same.
7111 (gen_hsa_insns_for_load): Same.
7112 (gen_hsa_cmp_insn_from_gimple): Same.
7113 (gen_hsa_insns_for_operation_assignment): Same.
7114 (gen_get_level): Same.
7115 (gen_hsa_alloca): Same.
7116 (omp_simple_builtin::generate): Same.
7117 (gen_hsa_atomic_for_builtin): Same.
7118 (gen_hsa_insns_for_call): Same.
7119 * input.c (dump_location_info): Same.
7120 * ipa-devirt.c (compare_virtual_tables): Same.
7121 * ira.c (ira_setup_eliminable_regset): Same.
7122 * lra-assigns.c (lra_assign): Same.
7123 * lra-constraints.c (lra_constraints): Same.
7124 * lto-streamer-in.c (lto_input_mode_table): Same.
7125 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
7126 (merge_and_complain): Same.
7127 (compile_offload_image): Same.
7128 (compile_images_for_offload_targets): Same.
7129 (debug_objcopy): Same.
7132 * opts.c (print_specific_help): Same.
7133 (parse_no_sanitize_attribute): Same.
7135 (handle_param): Same.
7136 * plugin.c (add_new_plugin): Same.
7137 (parse_plugin_arg_opt): Same.
7138 (try_init_one_plugin): Same.
7139 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
7140 operators, and types in diagnostics. Correct quoting and spelling
7142 * read-rtl-function.c (parse_edge_flag_token): Same.
7143 (function_reader::parse_enum_value): Same.
7144 * reg-stack.c (check_asm_stack_operands): Same.
7145 * regcprop.c (validate_value_data): Same.
7146 * sched-rgn.c (make_pass_sched_fusion): Same.
7147 * stmt.c (check_unique_operand_names): Same.
7148 * targhooks.c (default_target_option_pragma_parse): Same.
7149 * tlink.c (recompile_files): Same.
7150 * toplev.c (process_options): Same.
7152 * trans-mem.c (diagnose_tm_1): Same.
7153 (ipa_tm_scan_irr_block): Same.
7154 (ipa_tm_diagnose_transaction): Same.
7155 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
7156 format a tree code name in a diagnostic.
7157 (verify_types_in_gimple_min_lval): Same.
7158 (verify_types_in_gimple_reference): Same.
7159 (verify_gimple_call): Same.
7160 (verify_gimple_assign_unary): Same.
7161 (verify_gimple_assign_binary): Same.
7162 (verify_gimple_assign_ternary): Same.
7163 (verify_gimple_assign_single): Same.
7164 (verify_gimple_switch): Same.
7165 (verify_gimple_label): Same.
7166 (verify_gimple_phi): Same.
7167 (verify_gimple_in_seq): Same.
7168 (verify_eh_throw_stmt_node): Same.
7169 (collect_subblocks): Same.
7170 (gimple_verify_flow_info): Same.
7171 (do_warn_unused_result): Same.
7172 * tree-inline.c (expand_call_inline): Same.
7173 * tree-into-ssa.c (update_ssa): Same.
7174 * tree.c (tree_int_cst_elt_check_failed): Same.
7175 (tree_vec_elt_check_failed): Same.
7176 (omp_clause_operand_check_failed): Same.
7177 (verify_type_variant): Same.
7178 (verify_type): Same.
7179 * value-prof.c (verify_histograms): Same.
7180 * varasm.c (assemble_start_function): Same.
7182 2019-05-16 Martin Sebor <msebor@redhat.com>
7184 * config/i386/i386-expand.c (get_element_number): Quote keywords
7185 and other internal names in diagnostics. Adjust other diagnostic
7186 formatting issues noted by -Wformat-diag.
7187 * config/i386/i386-features.c
7188 (ix86_mangle_function_version_assembler_name): Same.
7189 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
7190 * config/i386/i386.c (ix86_function_type_abi): Same.
7191 (ix86_function_ms_hook_prologue): Same.
7192 (classify_argument): Same.
7193 (ix86_expand_prologue): Same.
7194 (ix86_md_asm_adjust): Same.
7195 (ix86_memmodel_check): Same.
7197 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7199 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
7200 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
7203 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
7206 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
7207 intrinsics without SSE/SSE2/SSSE3.
7208 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
7210 (*mmx_uavgv8qi3): Likewise.
7212 2019-05-17 Richard Biener <rguenther@suse.de>
7214 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
7215 VEC_PERM_EXPR as __VEC_PERM with -gimple.
7217 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
7219 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
7220 vec_sldw insn pattern.
7222 2019-05-17 Richard Biener <rguenther@suse.de>
7224 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
7226 2019-05-17 Martin Liska <mliska@suse.cz>
7229 * toplev.c (output_stack_usage): With LTO and sanitizer it
7230 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
7231 has no file location.
7233 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7236 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
7237 sz0 is equal to sz1, instead return false in that case.
7239 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
7240 has non-constant expression, force sctx.lane and use two
7241 argument IFN_GOMP_SIMD_LANE instead of single argument.
7242 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
7243 two argument IFN_GOMP_SIMD_LANE without lhs.
7244 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
7246 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7248 (LOOP_REQUIRES_VERSIONING): Or in
7249 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
7250 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7252 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
7253 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
7254 from simd if clause if needed.
7256 2019-05-16 Richard Biener <rguenther@suse.de>
7258 * tree-affine.c (expr_to_aff_combination): New function split
7260 (tree_to_aff_combination): ... here.
7261 (aff_combination_expand): Avoid building a GENERIC tree.
7263 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
7265 * cgraphunit.c (cgraph_node::expand_thunk): Remove
7266 assemble_start_function and assemble_end_function calls.
7267 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
7268 assemble_start_function and assemble_end_function.
7269 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
7270 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
7271 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
7272 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
7273 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
7274 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
7275 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
7276 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
7277 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7278 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7279 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7280 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
7282 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7283 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
7284 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
7285 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
7286 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7287 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7288 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
7289 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
7290 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7291 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7292 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7293 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7294 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
7295 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
7297 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7298 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7299 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
7301 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
7303 * tree-ssa-alias.c (alias_stats): Add
7304 aliasing_component_refs_p_may_alias and
7305 aliasing_component_refs_p_no_alias.
7306 (dump_alias_stats): Print aliasing_component_refs_p stats.
7307 (aliasing_component_refs_p): Update stats.
7309 2019-05-16 Martin Liska <mliska@suse.cz>
7312 * multiple_target.c (expand_target_clones): Do not allow
7313 target_clones being used with a symbol that is an alias.
7315 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
7317 PR tree-optimization/90394
7318 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
7319 positives rather than ICE for cases where (code2 == NE_EXPR
7320 && code1 == BIT_AND_EXPR).
7322 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7325 * tree-core.h (struct tree_decl_common): Document
7326 decl_nonshareable_flag for PARM_DECLs.
7327 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
7328 * calls.c (expand_call): Don't try tail call if caller
7329 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
7330 passed on the stack and callee needs to pass any arguments on the
7332 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7333 else if instead of series of mutually exclusive ifs. Handle
7334 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
7335 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7337 * lto-streamer.h (LTO_major_version): Bump to 9.
7339 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
7341 PR tree-optimization/90106
7342 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
7343 new parameter as new internal function call, also move it to new
7345 (use_internal_fn): Pass internal function call to
7346 shrink_wrap_one_built_in_call_with_conds.
7348 2019-05-15 Jakub Jelinek <jakub@redhat.com>
7350 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7352 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7353 safelen_int and set loop->dont_vectorize.
7355 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7358 * config/i386/i386-builtin.def: Enable MMX intrinsics with
7360 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7362 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
7363 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
7364 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
7367 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7370 * config/i386/mmx.md (*vec_dupv2sf): Changed to
7371 define_insn_and_split to support SSE emulation.
7372 (*vec_extractv2sf_0): Likewise.
7373 (*vec_extractv2sf_1): Likewise.
7374 (*vec_extractv2si_0): Likewise.
7375 (*vec_extractv2si_1): Likewise.
7376 (*vec_extractv2si_zext_mem): Likewise.
7377 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
7378 (vec_extractv2sf_1 splitter): Likewise.
7379 (vec_extractv2sfsf): Likewise.
7380 (vec_setv2si): Likewise.
7381 (vec_extractv2si_1 splitter): Likewise.
7382 (vec_extractv2sisi): Likewise.
7383 (vec_setv4hi): Likewise.
7384 (vec_extractv4hihi): Likewise.
7385 (vec_setv8qi): Likewise.
7386 (vec_extractv8qiqi): Likewise.
7387 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
7388 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
7389 (vec_extractv2sisi): Likewise.
7390 (vec_extractv4hihi): Likewise.
7391 (vec_extractv8qiqi): Likewise.
7392 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
7393 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
7394 (vec_initv2sisi): Likewise.
7395 (vec_initv4hihi): Likewise.
7396 (vec_initv8qiqi): Likewise.
7397 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
7398 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
7399 (vec_setv4hi): Likewise.
7400 (vec_setv8qi): Likewise.
7402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7405 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
7406 TARGET_MMX_WITH_SSE.
7407 (MMXMODE:*mov<mode>_internal): Likewise.
7408 (MMXMODE:movmisalign<mode>): Likewise.
7410 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
7413 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
7414 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
7415 (sse2_cvtpd2pi): Ditto.
7416 (sse2_cvttpd2pi): Ditto.
7417 (*vec_concatv2sf_sse4_1): Ditto.
7418 (*vec_concatv2sf_sse): Ditto.
7419 (*vec_concatv2si_sse4_1): Ditto.
7420 (*vec_concatv2si): Ditto.
7421 (*vec_concatv4si_0): Ditto.
7422 (*vec_concatv2di_0): Ditto.
7424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7427 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7432 * config/i386/sse.md (ssse3_palignrdi): Changed to
7433 define_insn_and_split to support SSE emulation.
7435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7438 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7443 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7444 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7450 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7451 or TARGET_MMX_WITH_SSE.
7452 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7457 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7462 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7463 Changed to define_insn_and_split to support SSE emulation.
7465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7468 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7469 Changed to define_insn_and_split to support SSE emulation.
7471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7474 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7475 (*mmx_<emms>): This.
7476 (mmx_<emms>): New expander.
7478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7481 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7483 (*sse2_umulv1siv1di3): Add SSE2 emulation.
7485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7488 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7493 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7498 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7499 TARGET_MMX_WITH_SSE.
7500 (*mmx_uavgv4hi3): Add SSE emulation.
7502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7505 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7506 and TARGET_MMX_WITH_SSE.
7507 (*mmx_uavgv8qi3): Add SSE emulation.
7509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7512 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7513 maskmovdqu for __MMX_WITH_SSE__.
7515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7518 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
7519 TARGET_MMX and TARGET_MMX_WITH_SSE.
7520 (*mmx_umulv4hi3_highpart): Add SSE emulation.
7522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7525 * config/i386/mmx.md (mmx_pmovmskb): Changed to
7526 define_insn_and_split to support SSE emulation.
7528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7531 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
7532 and TARGET_MMX_WITH_SSE.
7533 (mmx_<code>v8qi3): Likewise.
7534 (smaxmin:<code>v4hi3): New.
7535 (umaxmin:<code>v8qi3): Likewise.
7536 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
7537 (umaxmin:*mmx_<code>v8qi3): Likewise.
7539 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7542 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
7543 TARGET_MMX_WITH_SSE.
7544 (*mmx_pinsrw): Add SSE emulation.
7546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7549 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
7551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7554 * config/i386/sse.md (sse_cvtpi2ps): Changed to
7555 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7561 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
7562 (sse_cvttps2pi): Likewise.
7564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7567 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
7568 TARGET_MMX_WITH_SSE.
7569 (mmx_pshufw_1): Add SSE emulation.
7570 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
7571 TARGET_MMX_WITH_SSE to support SSE emulation.
7573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7576 * config/i386/constraints.md (Yw): New constraint.
7577 * config/i386/mmx.md (*vec_dupv2si): Changed to
7578 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
7579 support SSE emulation.
7581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7584 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
7585 TARGET_MMX_WITH_SSE.
7586 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
7588 (mmx_gt<mode>3): Likewise.
7590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7593 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
7594 TARGET_MMX_WITH_SSE. Add SSE support.
7596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7599 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
7600 TARGET_MMX_WITH_SSE.
7601 (any_logic:<code><mode>3): New.
7602 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
7605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7608 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
7609 TARGET_MMX_WITH_SSE. Add SSE emulation.
7610 (mmx_<shift_insn><mode>3): Likewise.
7612 (<shift_insn><mode>3): Likewise.
7614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7617 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
7618 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
7620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7623 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
7624 TARGET_MMX_WITH_SSE.
7625 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
7628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7631 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
7632 TARGET_MMX_WITH_SSE.
7634 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
7637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7640 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
7641 (plusminus:mmx_<plusminus_insn><mode>3): Check
7642 TARGET_MMX_WITH_SSE.
7643 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
7644 (<plusminus_insn><mode>3): New.
7645 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
7646 (*mmx_<plusminus_insn><mode>3): Likewise.
7648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7651 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
7652 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
7654 * config/i386/mmx.m (mmx_punpckhbw): Changed to
7655 define_insn_and_split to support SSE emulation.
7656 (mmx_punpcklbw): Likewise.
7657 (mmx_punpckhwd): Likewise.
7658 (mmx_punpcklwd): Likewise.
7659 (mmx_punpckhdq): Likewise.
7660 (mmx_punpckldq): Likewise.
7662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7663 Uros Bizjak <ubizjak@gmail.com>
7666 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
7668 (ix86_split_mmx_pack): Likewise.
7669 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
7671 (ix86_split_mmx_pack): Likewise.
7672 * config/i386/i386.md (mmx_isa): New.
7673 (enabled): Also check mmx_isa.
7674 * config/i386/mmx.md (any_s_truncate): New code iterator.
7675 (s_trunsuffix): New code attr.
7676 (mmx_packsswb): Removed.
7677 (mmx_packssdw): Likewise.
7678 (mmx_packuswb): Likewise.
7679 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
7680 MMX packsswb/packuswb with SSE2.
7681 (mmx_packssdw): Likewise.
7682 * config/i386/predicates.md (register_mmxmem_operand): New.
7684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7687 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7688 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
7689 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
7690 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
7691 (ix86_vector_mode_supported_p): Likewise.
7692 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
7694 2019-05-15 Martin Liska <mliska@suse.cz>
7697 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7700 2019-05-15 Richard Biener <rguenther@suse.de>
7702 * tree-into-ssa.c (pass_build_ssa::execute): Run
7703 update_address_taken before going into SSA.
7705 2019-05-15 Richard Biener <rguenther@suse.de>
7707 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
7708 as __BIT_FIELD_REF with type with -gimple.
7710 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
7712 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
7713 semantically equivalent branches (left over after prior refactorings).
7715 2019-05-15 Richard Biener <rguenther@suse.de>
7717 PR tree-optimization/88828
7718 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
7721 2019-05-14 Richard Biener <rguenther@suse.de>
7723 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
7724 as __VIEW_CONVERT with -gimple.
7726 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
7729 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
7732 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7734 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
7735 define_split to become a define_insn_and_split.
7737 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7739 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
7741 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
7742 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
7743 (sibcall_epilogue): Adjust.
7746 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7748 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
7749 to unsupported ones.
7750 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
7751 * config.host: Likewise.
7752 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
7753 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
7754 __svr4__]: Remove "brand" fallback.
7755 [!KSTAT_DATA_STRING]: Remove.
7756 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
7758 (comdat_group): Likewise.
7759 (set_have_as_tls): Likewise.
7760 (gcc_cv_target_dl_iterate_phdr): Likewise.
7761 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
7762 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
7763 * configure: Regenerate.
7764 * doc/install.texi: Simplify Solaris target triplets.
7765 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
7766 (Specific, *-*-solaris2*): Document Solaris 10 removal.
7767 Remove Solaris 10 references.
7768 Remove obsolete Solaris bug reference.
7769 (Specific, sparc-sun-solaris2.10): Remove.
7771 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
7773 * config/i386/i386.md (any_div): New code iterator.
7774 (paired_mod): New code attribute.
7775 (sgnprefix): Handle DIV and UDIV RTXes.
7777 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
7778 and udivmod<mode>4 patterns using any_div code iterator.
7779 (divmod splitters): Macroize splitters using any_div code iterator.
7780 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
7781 (*udivmodsi4_pow2_zext_2): Ditto.
7782 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
7783 and *udivmod<mode>4_noext patterns using any_div code iterator.
7784 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
7785 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
7786 patterns using any_div code iterator.
7787 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
7788 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
7789 patterns using any_div code iterator.
7790 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
7791 udivmodhiqi3 patterns using any_extend code iterator.
7793 2019-05-14 Richard Biener <rguenther@suse.de>
7794 H.J. Lu <hongjiu.lu@intel.com>
7796 PR tree-optimization/88828
7797 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7798 permuting in a single non-constant element not extracted
7801 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7803 * internal-fn.def (SIGNBIT): New.
7804 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
7806 (signbitv4sf2): Likewise.
7808 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
7811 * config/mips/mips.c (mips_split_move): Skip forward SRC into
7812 next insn when the SRC reg is dead.
7814 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
7816 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
7817 (alloc_cand_and_find_basis): Ditto.
7818 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
7819 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
7820 (create_add_imm_cand, slsr_process_cast): Ditto.
7821 (slsr_process_copy, replace_mult_candidate): Ditto.
7822 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
7823 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
7824 (pass_strength_reduction::execute): Init the first NULL element.
7826 2019-05-13 Nathan Sidwell <nathan@acm.org>
7828 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
7829 (run_attempt): Reformat line break.
7831 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
7834 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
7835 data registers in sibcall epilogues.
7836 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7838 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
7841 * configure.ac (--enable-frame-pointer):
7842 Disable by default for cygwin and mingw.
7843 * configure: Regenerate.
7845 2019-05-13 Nathan Sidwell <nathan@acm.org>
7847 * dwarf2out.c (breakout_comdat_types): Move comment to correct
7849 (const_ok_for_output_1): Balance parens around #if/#else/#endif
7850 (gen_member_die): Move abstract origin check earlier. Only VARs
7851 can be static_inline_p. Simplify splicing control flow.
7853 2019-05-13 Richard Biener <rguenther@suse.de>
7855 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7857 (vect_build_slp_tree_1): Likewise.
7859 2019-05-13 Richard Biener <rguenther@suse.de>
7861 PR tree-optimization/90402
7862 * tree-if-conv.c (tree_if_conversion): Value number only
7863 the loop body by making the latch an exit of the region
7865 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
7867 (do_rpo_vn): Deal with multiple edges into the entry block
7868 that are not backedges inside the region by skipping PHIs
7871 2019-05-13 Richard Biener <rguenther@suse.de>
7873 PR tree-optimization/90316
7874 * tree-ssa-pre.c (insert_aux): Fold into ...
7875 (insert): ... this function. Use a RPO walk to reduce the
7876 number of required iterations.
7878 2019-05-13 Martin Liska <mliska@suse.cz>
7880 PR tree-optimization/90416
7881 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
7882 string instead of passing the second part as va_arg argument.
7884 2019-05-13 Martin Liska <mliska@suse.cz>
7886 PR gcov-profile/90380
7887 * gcov.c (handle_cycle): Do not support zero cycle count,
7888 it should not be possible.
7889 (path_contains_zero_cycle_arc): New function.
7890 (circuit): Ignore zero cycle arc counts.
7892 2019-05-13 Martin Liska <mliska@suse.cz>
7894 PR gcov-profile/90380
7895 * gcov.c (enum loop_type): Remove the enum and
7897 (handle_cycle): Assert that we should not reach
7899 (circuit): Use loop_found instead of a tri-state loop_type.
7900 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
7903 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
7906 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
7907 (ix86_output_indirect_branch_via_reg): Use output mechanism
7908 accounting for __USER_LABEL_PREFIX__.
7909 (ix86_output_indirect_branch_via_push): Likewise.
7910 (ix86_output_function_return): Likewise.
7911 (ix86_output_indirect_function_return): Likewise.
7913 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
7915 * doc/md.texi: Document use of code attributes in rtx patterns.
7916 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
7917 * read-rtl.c (find_code): Split out search loops into...
7918 (maybe_find_code): ...this new function.
7919 (check_code_iterator): Make the error message more informative.
7920 (check_code_attribute): New function.
7921 (rtx_reader::rtx_alloc_for_name): Likewise.
7922 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
7923 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
7924 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
7925 <max_opp> directly as an rtx code instead of via a match_operator.
7926 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
7927 (<su>abd<mode>_3): Update accordingly.
7929 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
7931 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
7932 is given, print the state of the EH "save world" computation for
7935 2019-05-11 Jakub Jelinek <jakub@redhat.com>
7938 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
7939 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7941 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
7943 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
7944 Use pinsrd for TARGET_SSE4_1.
7945 * config/i386/sse.md (movdi_to_sse): Ditto.
7947 2019-05-10 Richard Biener <rguenther@suse.de>
7949 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
7950 (do_rpo_vn): Initialize next_value_id.
7952 2019-05-10 Martin Liska <mliska@suse.cz>
7954 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
7957 2019-05-10 Jakub Jelinek <jakub@redhat.com>
7959 PR tree-optimization/90385
7960 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
7961 arguments of the exit phis.
7964 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
7965 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
7967 (copy_tree_body_r): Likewise.
7968 (copy_fn): Set id.do_not_fold to true.
7970 2019-05-10 Martin Liska <mliska@suse.cz>
7972 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
7973 Reapply changes from r269790.
7975 2019-05-10 Martin Liska <mliska@suse.cz>
7978 * doc/invoke.texi: New params.
7979 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
7980 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
7981 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7983 * tree-switch-conversion.h (struct jump_table_cluster):
7986 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
7988 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
7990 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
7992 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
7994 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
7996 PR rtl-optimization/88879
7997 * sel-sched.c (sel_target_adjust_priority): Remove assert.
7999 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
8002 * config/arm/arm.c (callee_saved_reg_p): Move before
8003 thumb_find_work_register.
8004 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
8005 thumb_find_work_register. Only call df_get_live_out once.
8006 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
8007 (thumb_find_work_register): Use
8008 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
8009 algorithms to locate a spare call clobbered reg.
8011 2019-05-09 Martin Liska <mliska@suse.cz>
8013 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
8014 and MAX_EXPR in GIMPLE FE format.
8016 2019-05-09 Martin Liska <mliska@suse.cz>
8018 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
8019 * gimple-pretty-print.c (dump_gimple_bb_header):
8021 (pp_cfg_jump): Dump edge probability.
8022 * profile-count.c (profile_quality_as_string): Simplify
8023 with a static array.
8024 (parse_profile_quality): New function.
8025 (profile_count::dump): Simplify with a static array.
8026 (profile_count::from_gcov_type): Add new argument.
8027 * profile-count.h (parse_profile_quality): Likewise.
8028 * predict.h (set_hot_bb_threshold): New.
8029 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8031 * predict.c (get_hot_bb_threshold): Set from the new param.
8032 (set_hot_bb_threshold): New.
8034 2019-05-09 Richard Biener <rguenther@suse.de>
8036 PR tree-optimization/90395
8037 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
8038 rewrite vector stores that throw internally.
8040 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
8042 * cif-code.def (CHKP): Remove.
8045 * configure.ac (--enable-frame-pointer): Disable by default for
8047 * configure: Regenerate.
8049 2019-05-09 Alan Modra <amodra@gmail.com>
8052 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
8053 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
8054 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
8055 cost for general <-> vsx when direct moves are available.
8056 Cost union classes at minimal cost for any reg in the class.
8057 Correct calculation for moves between vsx, float, and altivec.
8058 Don't return a low cost for moves between special regs. Don't
8059 use hard coded register numbers.
8060 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
8061 (rs6000_ira_change_pseudo_allocno_class): New function.
8062 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
8063 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
8065 (movsi_internal1): Don't disparage vector alternatives.
8066 (mov<mode>_internal): Likewise, excepting alternative that
8068 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
8069 we <- b alternative.
8071 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8074 PR tree-optimization/89060
8075 * tree-ssa-live.h (live_vars_map): New typedef.
8076 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
8077 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
8078 (struct compute_live_vars_data): New type.
8079 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
8080 live_vars_at_stmt, destroy_live_vars): New functions.
8081 * tree-tailcall.c: Include tree-ssa-live.h.
8082 (live_vars, live_vars_vec): New global variables.
8083 (find_tail_calls): Perform variable life analysis before punting.
8084 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
8085 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
8087 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
8088 Perform variable life analysis to select variables that really need
8090 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
8091 instead set id->eh_landing_pad_dest and assert it is the same.
8092 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
8094 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
8095 Richard Earnshaw <rearnsha@arm.com>
8098 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
8100 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
8101 (thumb1_compute_save_core_reg_mask): Don't force a spare work
8102 register if both the epilogue and prologue can use call-clobbered
8104 (thumb1_unexpanded_epilogue): Use
8105 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
8106 picking temporaries for restoring high regs to match that of the
8107 prologue where possible.
8108 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
8109 the list of work registers. Detect if the return address is still live
8110 at the end of the prologue and avoid using it for a work register if so.
8111 If the return address is not live, add LR to the list of pushable regs
8112 after the first pass.
8114 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8116 PR tree-optimization/90078
8117 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
8118 (INFTY): Increase the value for infinite cost.
8119 (struct comp_cost): Promote type of members to int64_t.
8120 (infinite_cost): Don't set complexity in initialization.
8121 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
8122 overflows to infinite_cost.
8123 (adjust_setup_cost): Promote type of parameter and cost computation
8125 (struct ainc_cost_data, struct iv_ca): Promote type of member to
8127 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
8128 cost computation to int64_t.
8129 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
8130 int64_t's format specifier in dump.
8132 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8134 PR tree-optimization/90240
8135 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
8136 with respect to scaling factor pre-computed for each basic block.
8137 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
8138 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
8139 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
8140 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
8141 live range for array of loop's basic blocks. Cleanup aux field of
8142 loop's basic blocks.
8144 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8146 PR tree-optimization/90356
8147 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
8149 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
8151 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
8152 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
8153 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
8154 (ix86_handle_option): Handle -mavx512bf16.
8155 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
8157 * config/i386/avx512bf16vlintrin.h: New.
8158 * config/i386/avx512bf16intrin.h: New.
8159 * config/i386/cpuid.h (bit_AVX512BF16): New.
8160 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
8161 * config/i386/i386-builtin-types.def: Add new types.
8162 * config/i386/i386-builtin.def: Add new builtins.
8163 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8165 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
8166 (ix86_option_override_internal): Handle BF16.
8167 (ix86_valid_target_attribute_inner_p): Ditto.
8168 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
8169 * config/i386/i386-builtin.c (enum processor_features): Add
8171 (static const _isa_names_table isa_names_table): Ditto.
8172 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
8173 (PTA_AVX512BF16): Ditto.
8174 * config/i386/i386.opt: Add -mavx512bf16.
8175 * config/i386/immintrin.h: Include avx512bf16intrin.h
8176 and avx512bf16vlintrin.h.
8177 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
8178 avx512f_cvtneps2bf16_<mode><mask_name>,
8179 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
8180 * config/i386/subst.md (mask_half): Add new subst.
8181 * doc/invoke.texi: Document -mavx512bf16.
8183 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
8185 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
8187 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
8188 (rs6000_debug_legitimize_reload_address): Delete.
8189 (rs6000_legitimize_reload_address_ptr): Delete.
8190 (rs6000_option_override_internal): Adjust.
8191 (mem_operand_gpr): Adjust comment.
8192 (legitimate_lo_sum_address_p): Ditto.
8193 (rs6000_legitimize_reload_address): Delete.
8194 (rs6000_debug_legitimize_reload_address): Delete.
8195 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
8197 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
8200 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8201 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
8202 to compute vector element selector for both constant and variable
8205 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8207 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
8208 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
8209 ashrdi3_cvt using SWI48 mode iterator.
8211 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8213 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
8214 (aarch64_<su>abd<mode>_3): Likewise.
8215 (*aarch64_<su>abd<mode>_3): New define_insn.
8216 (<sur>sad<vsi2qi>): New define_expand.
8217 * config/aarch64/iterators.md: Added MAX_OPP attribute.
8218 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
8219 (build_vect_cond_expr): Likewise.
8221 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8223 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
8224 clobbers outside of accessible_reg_set.
8225 * config/i386/i386.c (ix86_conditional_register_usage):
8226 Disable register sets by clearing corresponding bits in
8227 accessible_reg_set. Do not set corresponding bits in fixed_regs,
8228 call_used_regs and don't clear corresponding reg_names array members.
8230 2019-05-07 Richard Biener <rguenther@suse.de>
8232 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8233 not specified still compute a comp_vectype for invariant
8236 2019-05-07 Richard Biener <rguenther@suse.de>
8238 PR tree-optimization/90316
8239 * tree-ssa-pre.c (translate_vuse_through_block): When
8240 same_valid is NULL do not bother to search for a virtual
8242 (phi_translate_1): When operands changed we cannot keep
8243 the same value-number so do not bother to ask whether
8244 that's possible from translate_vuse_through_block.
8246 2019-05-07 Martin Liska <mliska@suse.cz>
8248 * bitmap.c (bitmap_register): Come up with
8249 alloc_descriptor_max_uid and assign it for
8251 (register_overhead): Use get_descriptor as
8253 (release_overhead): New.
8254 (bitmap_elem_to_freelist): Call it.
8255 (bitmap_elt_clear_from): Likewise.
8256 (bitmap_obstack_free): Likewise.
8257 (bitmap_move): Sensitively release memory.
8258 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
8259 (bitmap_initialize): Initialize alloc_descriptor to zero.
8260 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
8262 2019-05-07 Richard Biener <rguenther@suse.de>
8264 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
8265 we build a SLP node. Remove max_size and limiting.
8266 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
8268 2019-05-07 Richard Biener <rguenther@suse.de>
8270 PR tree-optimization/90316
8271 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8273 (walk_non_aliased_vuses): Take walking limit argument.
8274 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
8275 walking if it is reached instead of just counting.
8276 (get_continuation_for_phi): Likewise.
8277 (walk_non_aliased_vuses): Likewise, instead of leaving counter
8278 limiting to the callback.
8279 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
8280 (vn_reference_lookup_3): Likewise.
8281 (vn_reference_lookup_pieces): Likewise.
8282 (vn_reference_lookup): Likewise.
8283 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
8284 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
8285 (avail_exprs_stack::lookup_avail_expr): Likewise.
8287 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
8289 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
8290 for comparaible types in the second direction even if first one
8291 hits incomparable type.
8293 2019-05-07 Richard Biener <rguenther@suse.de>
8296 * lto-wrapper.c (debug_objcopy): Use the original filename
8297 including archive offset for the filename used for -save-temps.
8299 2019-05-07 Li Jia He <helijia@linux.ibm.com>
8301 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8304 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
8305 Hongtao Liu <hongtao.liu@intel.com>
8309 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8310 Modified, original implementation isn't correct.
8312 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8314 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
8315 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
8316 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
8317 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
8318 (FRAME_POINTER_REGNUM): Change numbering.
8319 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
8320 (alt_reg_names): Adjust.
8321 (rs6000_conditional_register_usage): Don't mark hard register 64 as
8323 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8324 (DWARF_FRAME_REGISTERS): Delete.
8325 (DWARF2_FRAME_REG_OUT): Fix whitespace.
8326 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8328 (REG_ALLOC_ORDER): Adjust.
8329 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
8330 (REG_CLASS_CONTENTS): Adjust.
8331 (RETURN_ADDR_RTX): Change comment.
8332 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
8334 (REGISTER_NAMES): Adjust.
8335 (ADDITIONAL_REGISTER_NAMES): Adjust.
8336 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8338 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8340 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8342 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8343 (DWARF_FRAME_REGISTERS): Adjust.
8344 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8346 (REG_ALLOC_ORDER): Adjust.
8347 (enum reg_class): Delete SPR_REGS.
8348 (REG_CLASS_NAMES): Delete SPR_REGS.
8349 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
8350 (REGISTER_NAMES): Adjust.
8351 (ADDITIONAL_REGISTER_NAMES): Adjust.
8352 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8353 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
8354 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
8355 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
8356 (htm_spr_regno): Delete.
8357 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
8359 (rs6000_dbx_register_number): Adjust.
8361 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8363 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8365 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8367 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8368 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8370 2019-05-06 Jakub Jelinek <jakub@redhat.com>
8372 PR tree-optimization/88709
8373 PR tree-optimization/90271
8374 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
8375 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
8376 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
8378 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
8379 of the store merging group is larger than
8380 PARAM_STORE_MERGING_MAX_SIZE parameter.
8381 (split_group): Add bzero_first argument. If set, always emit first
8382 the first store which must be = {} of the whole area and then for the
8383 rest of the stores consider all zero bytes as paddings.
8384 (imm_store_chain_info::output_merged_store): Check if first store
8385 is = {} of the whole area and if yes, determine which setting of
8386 bzero_first for split_group gives smaller number of stores. Adjust
8387 split_group callers.
8388 (lhs_valid_for_store_merging_p): Allow decls.
8389 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
8391 (pass_store_merging::process_store): Likewise.
8393 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
8396 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8397 handling of V1TImode.
8399 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
8402 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
8403 and enable_frame_pointer ...
8404 * configure.ac: ... here. Update help strings for
8405 --enable-frame-pointer.
8406 * configure: Regenerate.
8407 * config/i386/i386-options.c (ix86_option_override_internal): Remove
8408 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
8409 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
8410 (USE_X86_64_FRAME_POINTER): Ditto.
8412 2019-05-06 Martin Liska <mliska@suse.cz>
8414 * config.gcc: Append to target_gtfiles and fix indentation.
8416 2019-05-06 Richard Biener <rguenther@suse.de>
8418 PR tree-optimization/90358
8419 * tree-vect-stmts.c (get_group_load_store_type): Properly
8420 detect unused upper half of load.
8421 (vectorizable_load): Likewise.
8423 2019-05-06 Richard Biener <rguenther@suse.de>
8425 PR tree-optimization/88828
8426 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
8427 (simplify_vector_constructor): ...here. Handle constants in
8430 2019-05-06 Richard Biener <rguenther@suse.de>
8432 PR tree-optimization/90328
8433 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
8434 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
8435 is valid in the loop nest before using it.
8436 (initialize_data_dependence_relation): Adjust.
8437 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
8438 loop as loop-nest to dr_may_alias_p.
8440 2019-05-06 Richard Biener <rguenther@suse.de>
8442 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8444 2019-05-06 Richard Biener <rguenther@suse.de>
8446 PR tree-optimization/90316
8447 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
8448 compute target on demand.
8449 (get_continuation_for_phi): Remove code walking stmts to
8450 get to a target virtual operand which could end up being
8453 2019-05-06 Martin Liska <mliska@suse.cz>
8456 * config/i386/i386-options.c (ix86_option_override_internal): Error only
8457 when -mabi is selected to a non-default version.
8459 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
8460 Martin Liska <mliska@suse.cz>
8462 * Makefile.in: Add lto-dump.texi.
8463 * cgraph.h: Add new functions get_visibility_string and
8464 get_symtab_type_string.
8465 * doc/gcc.texi: Include lto-dump section.
8466 * doc/lto-dump.texi: New file.
8467 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
8468 (parse_dump_option): Factor out this function.
8469 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
8470 (parse_dump_option): Export the function.
8471 * symtab.c (symtab_node::get_visibility_string): New function.
8472 (symtab_node::get_symtab_type_string): Likewise.
8474 2019-05-06 Martin Liska <mliska@suse.cz>
8476 * config/i386/i386-builtins.c: New file.
8477 * config/i386/i386-builtins.h: New file.
8478 * config/i386/i386-expand.c: New file.
8479 * config/i386/i386-expand.h: New file.
8480 * config/i386/i386-features.c: New file.
8481 * config/i386/i386-features.h: New file.
8482 * config/i386/i386-options.c: New file.
8483 * config/i386/i386-options.h: New file.
8484 * config.gcc: Add new files into extra_objs and
8486 * config/i386/i386.c: Split content of the file
8487 into newly introduced files.
8488 * config/i386/i386.h: Declare common variables
8490 * config/i386/t-i386: Define dependencies for new files.
8492 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
8495 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
8496 Restrict 'all' variant to 32-bit configurations.
8497 (unaligned_loadhiu): Likewise.
8498 (unaligned_storehi): Likewise.
8499 (unaligned_storesi): Likewise.
8500 (unaligned_loadhis): Disable when compiling for thumb1.
8502 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
8504 PR tree-optimization/90269
8505 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8508 2019-05-03 Martin Liska <mliska@suse.cz>
8510 * hash-map.h: Add is_empty function.
8511 * hash-set.h: Likewise.
8512 * hash-table.h: Likewise.
8513 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
8514 elements () == 0 (and similar usages).
8515 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
8516 * gimplify.c (gimplify_bind_expr): Likewise.
8517 (gimplify_switch_expr): Likewise.
8518 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
8519 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
8520 * postreload-gcse.c (dump_hash_table): Likewise.
8521 (gcse_after_reload_main): Likewise.
8522 * predict.c (combine_predictions_for_bb): Likewise.
8523 * tree-parloops.c (reduction_phi): Likewise.
8524 (separate_decls_in_region): Likewise.
8525 (transform_to_exit_first_loop): Likewise.
8526 (gen_parallel_loop): Likewise.
8527 (gather_scalar_reductions): Likewise.
8528 (try_create_reduction_list): Likewise.
8529 * var-tracking.c (dump_vars): Likewise.
8530 (emit_notes_for_changes): Likewise.
8531 (vt_emit_notes): Likewise.
8533 2019-05-03 Richard Biener <rguenther@suse.de>
8535 PR tree-optimization/90316
8536 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
8539 2019-05-03 Richard Biener <rguenther@suse.de>
8541 * tree-vect-stmts.c (get_group_load_store_type): Avoid
8542 peeling for gaps by loading only lower halves of vectors
8544 (vectorizable_load): Likewise.
8546 2019-05-03 Richard Biener <rguenther@suse.de>
8549 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
8551 2019-05-03 Richard Biener <rguenther@suse.de>
8554 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
8555 Handle STRING_CST vs DECL or STRING_CST.
8557 2019-05-03 Richard Biener <rguenther@suse.de>
8559 PR tree-optimization/88963
8560 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
8561 vector loads feeding only BIT_FIELD_REFs to component
8562 loads. Rewrite stores fed by CONSTRUCTORs to component
8565 2019-05-03 Jakub Jelinek <jakub@redhat.com>
8567 * opts.h (finish_options): Remove lang_mask argument.
8568 (print_help, help_option_argument): Declare.
8569 * opts.c (print_help): Remove forward declaration, no longer static.
8570 (finish_options): Remove lang_mask argument, don't call print_help
8572 * opts-global.c (decode_options): Adjust finish_option caller, call
8575 PR tree-optimization/90303
8576 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
8577 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
8579 2019-05-03 Richard Biener <rguenther@suse.de>
8581 PR tree-optimization/89698
8582 * gimple-fold.c (canonicalize_constructor_val): Early out
8583 for constants, handle unfolded INTEGER_CSTs as they appear in
8584 C++ virtual table ctors.
8586 2019-05-03 Richard Biener <rguenther@suse.de>
8588 * passes.c (execute_function_todo): Remove dead code.
8590 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8592 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
8593 the internal register number, for any "real" register.
8595 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8597 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
8598 correct numbers for TFHAR, TFIAR, TEXASR.
8600 2019-05-02 Richard Biener <rguenther@suse.de>
8602 PR tree-optimization/89653
8603 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
8604 update-address-taken before the pass.
8605 * passes.def (pass_tree_loop_init): Put comment before it.
8607 2019-05-02 Richard Biener <rguenther@suse.de>
8609 PR tree-optimization/89509
8610 * tree-ssa-structalias.c (compute_dependence_clique): Look
8611 at the first subvar when determining whether it is restrict.
8613 2019-05-02 Richard Biener <rguenther@suse.de>
8615 PR tree-optimization/90273
8616 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
8617 useless debug stmts.
8619 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8621 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
8623 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
8625 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
8626 VEC_COND_EXPR be inserted to emulate a conditional internal function.
8627 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
8628 (vectorizable_reduction): Use the functions above to vectorize in a
8629 fully masked loop codes that don't have a conditional internal
8632 2019-05-02 Martin Liska <mliska@suse.cz>
8634 * cgraphclones.c: Call valid_attribute_p with 1 for
8636 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
8637 it's for target attribute.
8638 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
8639 Add new boolean argument.
8640 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8642 (ix86_valid_target_attribute_tree): Pass target_clone_attr
8643 to ix86_valid_target_attribute_inner_p.
8644 (ix86_valid_target_attribute_p): Pass flags argument to
8645 ix86_valid_target_attribute_inner_p.
8646 (get_builtin_code_for_version): Use 0 as it's target attribute.
8648 2019-05-02 Martin Liska <mliska@suse.cz>
8650 * gcc.c (process_command): Add dummy file only
8652 * opts-global.c (decode_options): Pass lang_mask.
8653 * opts.c (print_help): New function.
8654 (finish_options): Print --help if help_option_argument
8656 (common_handle_option): Factor out content of OPT__help_
8658 * opts.h (finish_options): Add new argument.
8660 2019-05-02 Martin Liska <mliska@suse.cz>
8663 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
8664 With -minline-all-stringops use inline expansion using 4B loop.
8665 * doc/invoke.texi: Document the change of
8666 -minline-all-stringops.
8668 2019-05-01 Jeff Law <law@redhat.com>
8670 PR tree-optimization/88797
8671 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
8672 PHI feeds a conditional on the RHS of an assignment.
8674 2019-04-30 Andrew Waterman <andrew@sifive.com>
8675 Jim Wilson <jimw@sifive.com>
8677 * config/riscv/constraints.md (L): New.
8678 * config/riscv/predicates.md (lui_operand): New.
8679 (sfb_alu_operand): New.
8680 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
8681 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
8682 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
8683 * config/riscv/risc.md (type): Add sfb_alu.
8684 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
8685 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
8686 (branch_zero<mode>): Delete.
8688 (mov<GPR:mode><X:mode>cc): Likewise.
8689 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
8691 2019-04-30 Nathan Sidwell <nathan@acm.org>
8693 * tree.h (MARK_TS_EXP): New.
8695 2019-04-30 Martin Liska <mliska@suse.cz>
8697 * opts.c (enable_warning_as_error): Provide hints
8698 for unknown options.
8700 2019-04-30 Martin Liska <mliska@suse.cz>
8703 * doc/invoke.texi: Add missing dash for gas-locview-support
8704 and gno-as-locview-support.
8706 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8709 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
8710 whitespace at the start of target attribute string.
8712 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8715 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8716 Define __ARM_FEATURE_ATOMICS.
8718 2019-04-30 Martin Liska <mliska@suse.cz>
8720 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
8721 into built_in_function enum. Remove code for endp == 2 and
8722 use BUILT_IN_* constants.
8723 (gimple_fold_builtin): Call the function with fcode.
8725 2019-04-30 Martin Liska <mliska@suse.cz>
8727 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
8728 DECL_FUNCTION_CODE into ix86_builtins enum before
8729 the switch statement.
8731 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8733 PR tree-optimization/89475
8734 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
8737 2019-04-30 Martin Liska <mliska@suse.cz>
8739 PR translation/90274
8740 * opts.c (print_filtered_help): Wrap string in _(...).
8742 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
8744 PR tree-optimization/90240
8746 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
8748 PR tree-optimization/90078
8749 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8750 checks for infinite_cost overflow.
8752 2019-04-29 Jeff Law <law@redhat.com>
8754 * passes.def: Move -Wrestrict pass after copy propagation.
8756 2019-04-29 Maya Rashish <coypu@sdf.org>
8758 * config.gcc (default_gnu_indirect_function): Default to yes
8759 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
8760 sparc*-*-netbsd*, x86_64-*-netbsd*.
8762 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
8764 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
8765 where cond2 is NE_EXPR.
8766 (is_value_included_in): Update comment.
8768 2019-04-29 Richard Biener <rguenther@suse.de>
8770 PR tree-optimization/90278
8771 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
8772 EH on comparison simplification.
8774 2019-04-29 Jason Merrill <jason@redhat.com>
8776 PR c++/82081 - tail call optimization breaks noexcept
8777 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
8778 nothrow function to a might-throw function into a tail call.
8780 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
8782 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
8783 (DDR_INNER_LOOP): Likewise.
8784 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
8785 (initialize_data_dependence_relation): Likewise.
8786 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
8788 2019-04-29 Jakub Jelinek <jakub@redhat.com>
8790 PR rtl-optimization/90257
8791 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
8795 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
8799 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
8802 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8805 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8807 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8809 2019-04-29 Richard Biener <rguenther@suse.de>
8811 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
8814 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
8816 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
8817 varasm.h, and netbsd-protos.h.
8819 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
8822 * config/i386/i386-protos.h (ix86_data_alignment): Change
8823 the second argument type to unsigned int.
8824 * config/i386/i386.c (ix86_data_alignment): Change "align"
8825 argument type to unsigned int.
8827 2019-04-27 Martin Liska <mliska@suse.cz>
8830 * opt-suggestions.c (option_proposer::build_option_suggestions):
8831 When get_valid_option_values returns empty values, add the
8832 misspelling candidate.
8834 2019-04-26 Jim Wilson <jimw@sifive.com>
8836 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
8838 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
8839 Pass orig_mode to riscv_build_integer.
8840 (riscv_split_integer): Pass mode to riscv_move_integer.
8841 (riscv_legitimize_const_move): Likewise.
8842 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
8843 promoted_mode. Replace force_reg call with code to load constant into
8844 promoted reg and then subreg it for the store.
8845 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
8848 2018-04-26 Eugene Sharygin <eush@ispras.ru>
8850 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
8853 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
8855 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
8856 commentary about the encoding of precision.
8858 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
8860 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
8861 * config/i386/t-freebsd64: New file.
8862 * config.gcc: Add the t-freebsd64 for multilib support.
8864 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
8866 * doc/extend.texi (vector_size): Add missing comma after @xref.
8868 2019-04-25 Jakub Jelinek <jakub@redhat.com>
8870 * BASE-VER: Set to 10.0.0.
8872 2019-04-25 Richard Biener <rguenther@suse.de>
8875 * gimplify.c (gimplify_expr): Avoid turning a lvalue
8876 VIEW_CONVERT_EXPR into one operating on an rvalue.
8878 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
8881 * config/i386/i386.c (feature_priority): Moved to file scope.
8882 (processor_features): Likewise.
8883 (processor_model): Likewise.
8884 (_arch_names_table): Likewise.
8885 (arch_names_table): Likewise.
8886 (_feature_list): Removed.
8887 (feature_list): Likewise.
8888 (_isa_names_table): Moved to file scope. Add priority.
8889 (isa_names_table): Likewise.
8890 (get_builtin_code_for_version): Replace feature_list with
8891 isa_names_table. Update error message for P_ZERO priority.
8893 2019-04-25 Richard Biener <rguenther@suse.de>
8895 * tree-pass.h (make_pass_phi_only_cprop): Remove.
8896 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
8898 2019-04-24 Jeff Law <law@redhat.com>
8900 PR tree-optimization/90037
8901 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
8902 * passes.def: Replace all instance of phi-only cprop with the
8903 lattice propagator. Move propagation pass from after erroneous
8904 path isolation to before erroneous path isolation.
8905 * tree-ssa-phionlycprop.c: Remove.
8907 2019-04-24 Richard Biener <rguenther@suse.de>
8910 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
8911 by size and BITS_PER_UNIT on poly-wide-ints.
8913 2019-04-25 Richard Biener <rguenther@suse.de>
8916 * match.pd: Add pattern to simplify view-conversion of an
8919 2019-04-24 Clement Chigot <clement.chigot@atos.net>
8921 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
8922 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
8923 for Go on 32 bit AIX.
8924 * config/rs6000/aix72.h: Likewise.
8926 2019-04-24 Jakub Jelinek <jakub@redhat.com>
8929 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
8930 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
8932 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
8935 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
8936 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
8937 for restored hard frame pointer.
8938 (s390_sched_dependencies_evaluation): Implement new target hook.
8939 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
8941 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
8943 * config/arc/arc-options.def: Fix typos and spelling mistakes.
8944 * config/arc/arc.c (arc_init): Cleanup warning message.
8945 (arc_override_options): Likewise.
8947 2019-04-24 Jakub Jelinek <jakub@redhat.com>
8950 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
8951 a register if both if_true and if_false are MEMs.
8953 PR tree-optimization/90208
8954 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
8955 after labels of new_bb, not before them.
8957 PR tree-optimization/90211
8958 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
8959 which are not SSA_NAMEs.
8961 2018-04-23 Sudakshina Das <sudi.das@arm.com>
8963 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
8965 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
8967 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
8969 PR rtl-optimization/87979
8970 * modulo-sched.c (sms_schedule): Start ii value "mii" should
8973 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
8975 PR rtl-optimization/84032
8976 * modulo-sched.c (ps_insn_find_column): Change condition so that
8977 branch will always be the last insn in a row inside partial
8980 2019-04-23 Richard Biener <rguenther@suse.de>
8983 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
8984 dest_single_pred_p argument.
8985 (remove_forwarder_block): Adjust.
8986 (remove_forwarder_block_with_phi): Likewise.
8988 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8989 Bernd Edlinger <bernd.edlinger@hotmail.de>
8990 Jakub Jelinek <jakub@redhat.com>
8993 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
8994 if used with general-regs-only.
8995 (arm_conditional_register_usage): Don't add non-general regs if
8997 (arm_valid_target_attribute_rec): Handle general-regs-only.
8998 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
9000 (TARGET_HARD_FLOAT_SUB): Define.
9001 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
9002 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
9003 (TARGET_REALLY_IWMMXT2): Likewise.
9004 * config/arm/arm.opt: Add -mgeneral-regs-only.
9005 * doc/extend.texi: Document ARM general-regs-only target.
9006 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
9008 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9010 PR tree-optimization/90078
9011 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9012 checks for infinite_cost overflow.
9014 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9016 PR tree-optimization/90021
9017 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
9018 and check univariate against it.
9019 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
9020 * tree-data-ref.c (add_other_self_distances): Pass new argument.
9022 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
9026 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
9029 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9032 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9034 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9036 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
9038 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
9039 names using operand format, rather than hard-wired.
9040 (speculation_barrier): Likewise.
9042 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
9044 PR tree-optimization/88055
9045 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
9046 (gen_one_condition): Use it if !HONOR_NANS.
9048 2019-04-19 Jakub Jelinek <jakub@redhat.com>
9051 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
9052 assign_temp instead of gen_reg_rtx.
9054 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
9056 PR translation/90118
9057 * config/aarch64/aarch64.c (aarch64_override_options_internal):
9058 Add missing space before %<.
9060 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
9062 PR rtl-optimization/87871
9063 * ira-lives.c (make_object_dead): Don't add conflicts to
9064 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
9066 2019-04-18 Martin Sebor <msebor@redhat.com>
9069 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
9070 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
9071 assuming type size fits in SHWI.
9073 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
9076 * ipa-inline.c (flatten_function): New parameter UPDATE.
9077 (ipa_inline, early_inliner): Use it.
9079 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9081 * fold-const.c (int_const_binop): Return early on failure.
9083 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9086 * combine.c (force_int_to_mode): Cast the argument rather than
9087 the result of known_alignment.
9088 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
9090 2019-04-18 Richard Biener <rguenther@suse.de>
9093 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
9095 (remove_forwarder_block): ... here.
9096 (remove_forwarder_block_with_phi): Also move debug stmts here.
9098 2019-04-18 Jakub Jelinek <jakub@redhat.com>
9100 PR translation/79183
9101 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
9102 inform where appropriate.
9104 2019-04-18 Richard Biener <rguenther@suse.de>
9106 * tree.c (get_qualified_type): Put found type variants at the
9107 head of the variant list.
9109 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9111 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
9113 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
9116 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
9117 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
9118 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
9119 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
9120 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
9122 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
9124 * ira-conflicts.c (print_allocno_conflicts): Always print something,
9125 even for allocno's with no conflicts.
9126 (print_conflicts): Print an extra newline.
9128 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9130 * auto-inc-dec.c (attempt_change): Set the alignment of the
9131 temporary memory to that of the original.
9133 2019-04-17 Joao Moreira <jmoreira@suse.de>
9135 * targhooks.c (default_print_patchable_function_entry): Emit
9136 __patchable_function_entries section with writable flags to allow
9137 relocation resolution.
9139 2019-04-17 Jonny Grant <jg@jguk.org>
9141 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
9143 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9146 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
9149 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
9151 * config/arc/arc.c (arc_init): Format diagnostic string.
9152 (arc_override_options): Likewise.
9153 (check_if_valid_regno_const): Likewise.
9154 (arc_reorg): Likewise.
9156 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9159 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
9161 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
9163 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
9164 (*movdi_update1): Use Pmode.
9165 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
9166 (movdi_<mode>_update_stack): Rename to ...
9167 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
9169 (*movsi_update1): Use Pmode.
9170 (*movsi_update2): Use Pmode.
9171 (movsi_update): Rename to ...
9172 (movsi_<mode>_update): ... this. Use Pmode.
9173 (movsi_update_stack): Fix condition.
9174 (*movhi_update1): Use Pmode. Fix argument to
9175 avoiding_indexed_address_p.
9176 (*movhi_update2): Ditto.
9177 (*movhi_update3): Ditto.
9178 (*movhi_update4): Ditto.
9179 (*movqi_update1): Ditto.
9180 (*movqi_update2): Ditto.
9181 (*movqi_update3): Ditto.
9182 (*movsf_update1, *movdf_update1): Merge, rename to...
9183 (*mov<mode>_update1): This. Use Pmode. Fix argument to
9184 avoiding_indexed_address_p. Add "size" attribute.
9185 (*movsf_update2, *movdf_update2): Merge, rename to...
9186 (*mov<mode>_update2): This. Ditto.
9187 (*movsf_update3): Use Pmode. Fix argument to
9188 avoiding_indexed_address_p.
9189 (*movsf_update4): Ditto.
9190 (allocate_stack): Simplify condition. Adjust pattern names.
9192 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9195 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
9196 whitespace at the start of target attribute string.
9198 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
9201 * config/rs6000/power9.md: Add store forwarding bypass.
9203 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
9206 * valtrack.c (dead_debug_insert_temp): Reset debug references
9207 to the return value of a call being removed.
9209 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9211 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
9212 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
9213 implement target hook.
9214 (arc_memory_move_cost): New function.
9215 (TARGET_REGISTER_MOVE_COST): Define.
9216 (TARGET_MEMORY_MOVE_COST): Likewise.
9217 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
9218 (MEMORY_MOVE_COST): Likewise.
9220 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9222 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
9223 (sibcall_value_insn): Likewise.
9224 * config/arc/constraints.md (Rs5): Remove.
9226 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9228 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
9229 for last two fake registers.
9230 (arc_conditional_register_usage): Make sure fake frame and arg
9231 pointer regs are in general regs class.
9232 (FRAME_POINTER_MASK): Remove.
9233 (RETURN_ADDR_MASK): Remove.
9234 (arc_must_save_register): Use hard frame regnum.
9235 (frame_restore_reg): Use hard_frame_pointer_rtx.
9236 (arc_save_callee_saves): Likewise.
9237 (arc_restore_callee_saves): Likewise.
9238 (arc_save_callee_enter): Likewise.
9239 (arc_restore_callee_leave): Likewise.
9240 (arc_save_callee_milli): Likewise.
9241 (arc_eh_return_address_location): Likewise.
9242 (arc_check_multi): Use hard frame regnum.
9243 (arc_can_eliminate): Likewise.
9244 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
9245 for register allocator.
9246 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
9247 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
9248 (FRAME_POINTER_REGNUM): Change it to a fake register.
9249 (HARD_FRAME_POINTER_REGNUM): Defined.
9250 (ARG_POINTER_REGNUM): Change it to a new fake register.
9251 (ELIMINABLE_REGS): Update.
9252 (REGISTER_NAMES): Update names.
9253 * config/arc/arc.md (LP_START): Remove.
9255 (shift_si3_loop): Update pattern.
9257 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9259 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
9260 to avoid delay slot scheduling.
9261 (arc_must_save_register): Don't save SP.
9262 * config/arc/arc.md (stack_tie): Remove.
9263 (UNSPEC_ARC_STKTIE): Likewise.
9265 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
9266 Shiva Chen <shiva0217@gmail.com>
9268 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9269 code gen with large shift amount.
9271 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
9273 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9276 2019-04-16 Jakub Jelinek <jakub@redhat.com>
9279 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
9280 print -m64/-mx32/-m32 if it is true.
9281 (ix86_debug_options, ix86_function_specific_print): Pass true as
9282 ADD_ABI_P to ix86_target_string.
9283 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
9284 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
9285 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
9287 PR rtl-optimization/90082
9288 * dce.c (can_delete_call): New function.
9289 (deletable_insn_p, mark_insn): Use it.
9291 PR tree-optimization/90090
9292 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9294 (is_division_by_square): Likewise. Formatting fix.
9296 2019-04-16 Richard Biener <rguenther@suse.de>
9298 PR tree-optimization/56049
9299 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
9300 equality check if alias-set zero will prevail.
9302 2019-04-15 Jeff Law <law@redhat.com>
9304 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9305 size and alignment as unsigned.
9307 2019-04-15 Richard Biener <rguenther@suse.de>
9310 * tree-loop-distribution.c (destroy_loop): Preserve correct
9313 2019-04-15 Richard Biener <rguenther@suse.de>
9315 PR tree-optimization/90071
9316 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9317 abnormal operands from def stmts.
9319 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
9321 PR rtl-optimization/89794
9322 * combine.c (count_auto_inc): New function.
9323 (try_combine): Count how many auto_inc expressions there were in the
9324 original instructions. Ensure we have the same number in the new
9325 instructions. Remove the code that tried to ensure auto_inc side
9326 effects on i1 and i0 are not lost.
9328 2019-04-15 Richard Biener <rguenther@suse.de>
9331 * tree.h (auto_var_p): Declare.
9332 * tree.c (auto_var_p): New function, split out from ...
9333 (auto_var_in_fn_p): ... here.
9334 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
9336 (new_var_info): Initialize it.
9337 (set_uids_in_ptset): Also set the shadow variable uid if required.
9338 (ipa_pta_execute): Postprocess points-to solutions assigning
9339 shadow variable uids for locals that may reach their containing
9340 function recursively.
9341 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
9342 assert but instead check whether the points-to solution is
9345 2019-04-15 Martin Jambor <mjambor@suse.cz>
9348 * cgraph.c (clone_of_p): Loop over clone chain for each step in
9351 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9353 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9355 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9356 Kito Cheng <kito.cheng@gmail.com>
9357 Shiva Chen <shiva0217@gmail.com>
9359 * config/nds32/nds32-md-auxiliary.c
9360 (nds32_legitimize_pic_address): Use new PIC pattern.
9361 (nds32_legitimize_tls_address): Use new TLS pattern.
9362 (nds32_output_symrel): New.
9363 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
9364 (nds32_alloc_relax_group_id): Ditto.
9365 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
9366 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
9368 (nds32_group_tls_insn): Ditto.
9369 (nds32_group_float_insns): Ditto.
9370 * config/nds32/nds32.md (tls_le): New.
9373 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
9375 * configure: Add nds32 target for dwarf2 debug_line checking.
9376 * configure.ac: Regenerated.
9378 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
9381 * ipa-devirt.c (skip_in_fields_list_p): New.
9382 (odr_types_equivalent_p): Use it.
9384 2019-04-13 Jakub Jelinek <jakub@redhat.com>
9387 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9388 instead of strncmp when checking for thumb and arm. Formatting fixes.
9390 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
9392 * doc/install.texi: Document --with-target-system-zlib.
9394 2019-04-12 Martin Sebor <msebor@redhat.com>
9400 * targhooks.c (default_vector_alignment): Avoid assuming
9401 argument fits in SHWI.
9402 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9404 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9406 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9408 PR rtl-optimization/89965
9409 * dce.c: Include rtl-iter.h.
9410 (struct check_argument_load_data): New type.
9411 (check_argument_load): New function.
9412 (find_call_stack_args): Check for loads from stack slots still tracked
9413 in sp_bytes and punt if any is found.
9415 * config/mips/loongson-mmiintrin.h: Fix up #error message.
9417 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
9419 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9420 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9422 2019-04-12 Martin Liska <mliska@suse.cz>
9425 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9427 (separate_attrs): Handle multiple 'default's.
9428 (expand_target_clones): Rework error handling code.
9430 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
9433 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
9434 mode of vector rather than mode of destination for move instruction.
9435 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
9436 Use QI inner mode with V16QI vector mode.
9438 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9441 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9442 "invalid %%t operand" in output_operand_lossage message.
9444 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
9446 * config/s390/predicates.md (permute_pattern_operand): New
9448 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
9449 operand for the permute pattern.
9450 ("*vec_perm<mode>"): New insn definition.
9451 ("bswap<mode>"): Generate the permute pattern operand in the
9452 expander and perform the operand reloads for pre arch13 level
9454 ("*bswap<mode>_emu"): Rename to ...
9455 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
9456 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
9457 Add the USE operand for the permute pattern.
9458 ("*vec_set_bswap_vec<mode>"): Likewise.
9460 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9463 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
9464 and gcc_unreachable if it fails, just call tree_to_uhwi which
9465 verifies that too. Test TREE_CHAIN instead of list_length > 1.
9466 Start warning message with a lower-case letter. Formatting fixes.
9468 PR rtl-optimization/90026
9469 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
9470 successors, look for BARRIERs inside of the whole BB_FOOTER chain
9471 rather than just at the start of it. If e->src BB_FOOTER is not NULL
9472 in cfglayout mode, use emit_barrier_after_bb.
9474 2018-04-11 Steve Ellcey <sellcey@marvell.com>
9476 PR rtl-optimization/87763
9477 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9480 2019-04-11 Tom de Vries <tdevries@suse.de>
9482 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9483 max macro using statement expression.
9485 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
9487 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
9488 * xcoffout.c (xcoff_private_rodata_section_name): Define.
9489 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
9490 read_only_private_data_section using xcoff_private_rodata_section_name.
9491 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
9493 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
9496 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9498 2019-04-11 Jakub Jelinek <jakub@redhat.com>
9500 PR rtl-optimization/89965
9501 * dce.c (sp_based_mem_offset): New function.
9502 (find_call_stack_args): Use sp_based_mem_offset.
9504 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
9506 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9508 2019-04-11 Richard Biener <rguenther@suse.de>
9510 PR tree-optimization/90020
9511 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
9512 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
9513 * tree-ssa-pre.c (compute_avail): Use it to not put
9514 possibly trapping references after a call that might not
9515 return into EXP_GEN.
9516 * gcse.c (compute_hash_table_work): Do not elide
9517 marking a block containing a call if the call might not
9520 2019-04-11 Richard Biener <rguenther@suse.de>
9522 PR tree-optimization/90018
9523 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9524 Test both SLP and interleaving variants.
9526 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
9528 * config/s390/8561.md: New file.
9529 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9530 Add arch13 cpu model.
9531 * config/s390/s390-opts.h (enum processor_type): Likewise.
9532 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
9533 (s390_get_unit_mask): Likewise.
9534 (s390_is_fpd): Likewise.
9535 (s390_is_fxd): Likewise.
9536 * config/s390/s390.h (s390_tune_attr): Likewise.
9537 * config/s390/s390.md: Include arch13 pipeline description.
9538 * config/s390/s390.opt: Add arch13.
9540 2018-04-10 Steve Ellcey <sellcey@marvell.com>
9542 PR rtl-optimization/87763
9543 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
9545 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
9547 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
9549 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
9550 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
9551 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
9552 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
9554 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
9556 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
9557 "Although" in -fipa-icf documentation.
9559 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
9560 of using multiple -g options.
9562 2019-04-10 Martin Liska <mliska@suse.cz>
9564 PR gcov-profile/89959
9565 * doc/gcov.texi: Make documentation of -x option
9568 2019-04-10 Richard Biener <rguenther@suse.de>
9570 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
9572 (DR_GROUP_SAME_DR_STMT): Remove.
9573 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
9574 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
9575 replace with assert.
9576 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
9577 (vect_record_grouped_load_vectors): Remove unreachable code.
9579 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
9582 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
9583 obsolete reference to N.
9585 2019-04-10 Jakub Jelinek <jakub@redhat.com>
9588 * expr.c (store_expr): Set properly size on the MEM passed to
9592 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
9593 with strlen in between hostsz-3 and hostsz-1 inclusive when no
9594 translation is needed, and when translation is needed, only append
9595 ... if the string length is hostsz or more bytes long. Avoid using
9598 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
9601 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
9602 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
9604 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
9605 differences directly.
9606 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
9608 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9610 PR translation/90011
9611 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9613 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
9615 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
9616 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
9617 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
9618 trailing space from -gsplit-dwarf diagnostics.
9620 PR tree-optimization/89998
9621 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
9622 instead of integer_type_node if possible, don't add ranges if return
9623 type is not compatible with int.
9624 * gimple-fold.c (gimple_fold_builtin_sprintf,
9625 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
9628 2019-04-09 Martin Liska <mliska@suse.cz>
9630 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
9631 * doc/install.texi: Document the new config.
9633 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
9635 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
9636 use gimple_expr_type for load and store calls. Skip over the
9637 condition argument in a conditional internal function.
9638 Protect use of TREE_INT_CST_LOW.
9640 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9643 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
9644 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
9645 trailing period from it too.
9647 2019-04-08 wu yuan <wuyuan5@huawei.com>
9649 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
9650 * config/aarch64/aarch64.md : Add "tsv110.md"
9651 * config/aarch64/tsv110.md: New file.
9653 2019-04-08 Richard Biener <rguenther@suse.de>
9655 PR tree-optimization/90006
9656 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9659 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
9662 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
9664 (fma_root_node): Likewise.
9665 (func_fma_steering): Likewise.
9667 2019-04-08 Jakub Jelinek <jakub@redhat.com>
9669 PR rtl-optimization/89865
9670 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
9672 PR rtl-optimization/89865
9673 * config/i386/i386.md
9674 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
9675 numbers not to clash with the additional operands[4].
9676 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
9677 with extra register copy in the middle.
9679 2019-04-08 Martin Liska <mliska@suse.cz>
9681 PR gcov-profile/89961
9682 * doc/gcov.texi: Document data_file.
9683 * gcov.c (generate_results): Add data_info into JSON output.
9685 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
9687 PR tree-optimization/89725
9688 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
9689 loop's chrec as invariant symbol.
9690 * tree-chrec.h (chrec_contains_symbols): New parameter.
9691 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
9692 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
9693 function of loops not in DDR's loop_nest.
9694 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
9696 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
9699 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
9702 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
9705 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9706 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
9708 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
9710 * sched-deps.c (sched_macro_fuse_insns): Check return value of
9711 targetm.fixed_condition_code_regs.
9713 2019-04-05 Richard Biener <rguenther@suse.de>
9717 * tree-cfgcleanup.c (remove_forwarder_block): Always move
9718 debug bind stmts but reset them if they are not valid at the
9721 2019-04-05 Martin Liska <mliska@suse.cz>
9723 PR translation/89936
9724 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
9725 order to wrap keywords or arguments.
9726 * collect2.c (main): Likewise.
9727 (scan_prog_file): Likewise.
9728 (scan_libraries): Likewise.
9729 * common/config/riscv/riscv-common.c
9730 (riscv_subset_list::parsing_subset_version): Likewise.
9731 (riscv_subset_list::parse_std_ext): Likewise.
9732 * config/aarch64/aarch64.c (aarch64_override_options_internal):
9734 * config/arm/arm.c (arm_option_override): Likewise.
9735 * config/cris/cris.c (cris_print_operand): Likewise.
9736 * config/darwin-c.c (darwin_pragma_options): Likewise.
9737 (darwin_pragma_unused): Likewise.
9738 (darwin_pragma_ms_struct): Likewise.
9739 * config/ft32/ft32.c (ft32_print_operand): Likewise.
9740 * config/i386/i386.c (print_reg): Likewise.
9741 (ix86_print_operand): Likewise.
9742 * config/i386/xm-djgpp.h: Likewise.
9743 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
9744 * config/m32c/m32c.c (m32c_option_override): Likewise.
9745 * config/msp430/msp430.c (msp430_option_override): Likewise.
9746 * config/nds32/nds32.c (nds32_option_override): Likewise.
9747 * config/nvptx/mkoffload.c (main): Likewise.
9748 * config/rx/rx.c (rx_print_operand): Likewise.
9749 (valid_psw_flag): Likewise.
9750 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
9751 (vms_pragma_nomember_alignment): Likewise.
9752 (vms_pragma_extern_model): Likewise.
9753 * lto-wrapper.c (compile_offload_image): Likewise.
9754 * omp-offload.c (oacc_parse_default_dims): Likewise.
9755 * symtab.c (symtab_node::verify_base): Likewise.
9756 * tlink.c (recompile_files): Likewise.
9757 (start_tweaking): Likewise.
9758 * tree-profile.c (parse_profile_filter): Likewise.
9760 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
9762 PR tree-optimization/89956
9763 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
9764 multiple negates of the same value.
9766 2019-04-04 Martin Sebor <msebor@redhat.com>
9770 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
9771 have the same precision since the function crashes otherwise.
9772 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
9773 has non-zero arguments.
9775 2019-04-04 Martin Sebor <msebor@redhat.com>
9778 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
9779 out if the number of arguments is less than expected.
9781 2019-04-04 Jeff Law <law@redhat.com>
9783 PR rtl-optimization/89399
9784 * ree.c (combine_set_extension): Use single_set rather than
9785 digging into PATTERN for items on the candidate list.
9786 (combine_reaching_defs): Likewise.
9788 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
9790 PR rtl-optimization/46590
9791 * loop-invariant.c (find_defs): Move df_remove_problem and
9792 df_process_deferred_rescans to move_invariants.
9793 Move df_live_add_problem and df_live_set_all_dirty calls
9795 (move_invariants): Likewise.
9796 (move_loop_invariants): Likewise, making the df_live calls
9797 conditional on -O. Remove the problem again if we added it
9800 2019-04-03 qing zhao <qing.zhao@oracle.com>
9802 PR tree-optimization/89730
9803 * ipa-inline.c (can_inline_edge_p): Delete the checking for
9804 -flive-patching=inline-only-static.
9805 (can_inline_edge_by_limits_p): Add the checking for
9806 -flive-patching=inline-only-static and grant always_inline
9807 even when -flive-patching=inline-only-static is specified.
9809 2019-04-03 Jeff Law <law@redhat.com>
9811 PR rtl-optimization/81025
9812 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
9814 2019-04-03 Richard Biener <rguenther@suse.de>
9816 PR tree-optimization/84101
9817 * tree-vect-stmts.c: Include explow.h for hard_function_value,
9818 regs.h for hard_regno_nregs.
9819 (cfun_returns): New helper.
9820 (vect_model_store_cost): When vectorizing a store to a decl
9821 we return and the function ABI returns in a multi-reg location
9822 account for the possible spilling that will happen.
9824 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
9826 * config/s390/s390.c (s390_legitimate_address_p): Reject long
9827 displacement addresses for vector mode operands.
9829 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
9831 * config/arc/arc.c (GMASK_LEN): Define.
9832 (arc_restore_callee_saves): Restore first blink when
9835 2019-04-03 Sudakshina Das <sudi.das@arm.com>
9837 * doc/extend.texi: Add deprecated comment on sign-return-address
9838 function attribute and add mbranch-protection.
9839 * doc/invoke.texi: Add bti to the options for mbranch-protection.
9841 2019-04-03 Richard Biener <rguenther@suse.de>
9844 * lto-wrapper.c (run_gcc): Avoid implicit rules making
9845 the all target phony.
9847 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
9851 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
9852 Return false for variable DImode shifts.
9853 (dimode_scalar_chain::compute_convert_gain): Do not handle
9854 register count operand in variable DImode shifts.
9855 (dimode_scalar_chain::make_vector_copies): Remove support to copy
9856 count argument of a variable shift instruction to a vector register.
9857 (dimode_scalar_chain::convert_reg): Remove support to convert
9858 count argument of a variable shift instruction.
9860 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
9862 PR rtl-optimization/84206
9863 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
9864 iterating over loop headers.
9866 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
9868 PR rtl-optimization/85876
9869 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
9870 beyond the original fence.
9872 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
9874 * config.gcc: Mark spu* targets as deprecated/obsolete.
9876 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9878 * config/s390/s390-builtin-types.def: New builtin function type
9879 definitions. Remove unused types.
9880 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
9881 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
9882 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
9883 overloaded builtins.
9884 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
9885 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
9886 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
9887 (vec_double, vec_signed, vec_unsigned): Define to use the new
9888 overloaded builtins.
9889 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
9892 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9894 * config/s390/s390-builtin-types.def: New builtin function type
9896 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
9897 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
9898 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
9899 (s390_vstrszh, s390_vstrszf): New low-level builtins.
9900 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
9901 constant definitions.
9902 * config/s390/vecintrin.h (vec_search_string_cc)
9903 (vec_search_string_until_zero_cc): New builtin name definitions.
9904 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
9906 ("vec_vstrs<mode>"): New insn definition.
9908 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9910 * config/s390/s390-builtin-types.def: Add new builtin function
9912 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
9913 New overloaded builtins.
9914 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
9916 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
9917 (UNSPEC_VEC_SLDBYTE): ... this.
9918 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
9919 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
9921 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
9922 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
9923 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
9925 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9927 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
9928 New insn definition.
9929 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
9930 * config/s390/vector.md (V_HW_HSD): ... here.
9932 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9934 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
9935 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
9936 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
9937 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
9938 New insn definitions.
9940 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9942 * config/s390/s390-builtin-types.def: Add new builtin function type.
9943 * config/s390/s390-builtins.def: Add overloaded builtin
9944 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
9945 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
9946 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
9947 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
9948 ("eltswap<mode>"): New expander.
9949 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
9952 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9954 * config/s390/s390-builtin-types.def: Add new builtin function types.
9955 * config/s390/s390-builtins.def: Add overloaded builtin
9956 s390_vec_revb. Add low-level builtins for vlbr and vstbr
9958 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
9959 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
9960 ("bswap<mode>"): New expander.
9961 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
9963 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9965 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
9966 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
9967 vector builtin version number in __VEC__.
9969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9971 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
9973 (SFSI): New mode attribute.
9974 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
9975 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
9977 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
9978 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
9979 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
9980 ("floatsi<mode>2"): Add wcefb instruction.
9982 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9984 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
9985 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
9987 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
9988 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
9989 support 32 bit fp-int conversions. Rename to ...
9990 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9991 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9992 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
9993 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
9996 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
9998 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
9999 if-then-else constructs if we can use the select instruction.
10000 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
10002 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10004 * config/s390/s390.md ("*popcountdi_arch13_cc")
10005 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
10007 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
10008 Append _z196 to make it ...
10009 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
10010 ("popcounthi2_z196"): ... this.
10011 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
10012 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
10014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10016 * config/s390/s390.c (s390_canonicalize_comparison): Convert
10017 certain compares for arch13 in order to make use of the condition
10018 code result produced by the new instructions.
10019 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
10020 nxrk, and nxgrk instruction patterns.
10021 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
10022 (inv_no): Add new code iterator together with some attributes.
10023 ("*andc_split_<mode>"): Disable splitter for arch13.
10024 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
10025 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
10026 ("*<ANDOR:bitops_name>c<GPR:mode>")
10027 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
10028 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
10029 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
10030 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
10032 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10034 * common/config/s390/s390-common.c (processor_flags_table): New
10036 * config.gcc: Support arch13 with the --with-arch= configure flag.
10037 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10038 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
10039 * config/s390/s390.c (s390_get_sched_attrmask)
10040 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
10041 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
10042 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
10043 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
10044 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
10046 * config/s390/s390.opt: Support arch13 as processor type in
10047 command line options.
10049 2019-04-02 Martin Liska <mliska@suse.cz>
10051 PR translation/89912
10052 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
10053 Fix param description of graphite-max-arrays-per-scop.
10055 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
10057 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
10058 (ASAN_CC1_SPEC): Use it in 64-bit mode.
10059 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
10061 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10063 PR rtl-optimization/85412
10064 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
10065 sel_sched_region_1, not after.
10067 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10069 PR rtl-optimization/86928
10070 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
10071 compute_live if necessary.
10072 (sel_redirect_edge_and_branch): Likewise.
10074 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
10076 PR rtl-optimization/89865
10077 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
10078 register if it is a part of small class.
10080 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10082 PR rtl-optimization/87273
10083 * sel-sched-ir.c (merge_fences): Remove assert.
10085 2019-04-01 Richard Biener <rguenther@suse.de>
10087 PR tree-optimization/46590
10088 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
10089 (dom_walker::m_reachability): Add in place of...
10090 (dom_walker::m_skip_unreachable_blocks): ...this.
10091 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
10092 Move complex initialization ...
10093 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
10094 lazily and initialize edge flags on each invocation.
10095 (dom_walker::bb_reachable): Use m_reachability.
10097 2019-04-01 Martin Liska <mliska@suse.cz>
10100 * opt-suggestions.c (option_proposer::build_option_suggestions):
10101 Add variant without any argument in order to provide better
10104 2019-04-01 Richard Biener <rguenther@suse.de>
10107 * gimple.c: Include langhooks.h.
10108 (gimple_get_alias_set): Treat enumeral types as the underlying
10111 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10112 Eric Botcazou <ebotcazou@adacore.com>
10114 PR rtl-optimization/89862
10115 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
10116 that operates on the full registers for WORD_REGISTER_OPERATIONS
10119 2019-03-29 Jim Wilson <jimw@sifive.com>
10121 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
10122 Clear MASK_RVC and then set if C subset supported.
10124 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10127 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
10128 non-addressable complit into its initializer if it is volatile.
10130 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
10132 * opts-common.c (integral_argument): Set errno properly in one case.
10134 2019-03-29 Martin Liska <mliska@suse.cz>
10136 * doc/invoke.texi: Remove -Wchkp from documentation.
10138 2019-03-29 Martin Liska <mliska@suse.cz>
10140 * dbgcnt.c (print_limit_reach): New function.
10143 2019-03-29 Martin Liska <mliska@suse.cz>
10145 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
10146 (dbg_cnt_process_opt): Parse first tokens aas
10147 dbg_cnt_process_single_pair is also using strtok.
10149 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10151 PR rtl-optimization/87485
10152 * function.c (expand_function_end): Move stack_protect_epilogue
10153 before loading of return value into hard register(s).
10155 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10157 PR middle-end/89621
10158 * tree-inline.h (struct copy_body_data): Add
10159 dont_remap_vla_if_no_change flag.
10160 * tree-inline.c (remap_type_3, remap_type_2): New functions.
10161 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
10162 and remap_type_2 returns false.
10163 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
10164 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
10165 only from where it is copied to nested contexts.
10167 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10170 * config/i386/i386.md (RMW operation with LEA peephole):
10171 Use LEAMODE mode attribute instead of SWI mode iterator for
10174 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10177 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10178 Also process XEXP (src, 0) of a shift insn.
10180 2019-03-28 David Malcolm <dmalcolm@redhat.com>
10182 PR middle-end/89725
10183 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
10184 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
10186 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10188 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
10190 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
10191 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
10192 immediately after first one with df_analyze in between, but rather
10193 process all bbs, queueing ones that need second pass in a worklist,
10194 df_analyze, process queued debug insn changes and if second pass is
10195 needed, process bbs from worklist, df_analyze, process queued debug
10198 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
10199 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
10200 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
10202 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
10205 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
10208 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
10211 * config/i386/i386.c (ix86_function_value_1): Call the newly added
10212 function for 32-bit MS_ABI.
10213 (function_value_ms_32): New function.
10215 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
10217 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
10218 (movdi): Call gen_movdi_symbol_save_scc.
10219 (gen_movdi_symbol_save_scc): New insn and split.
10221 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
10223 PR rtl-optimization/89313
10224 * function.c (matching_constraint_num): New static function.
10225 (match_asm_constraints_1): Use it. Fixup white space and comment.
10226 Don't replace inputs with non-matching constraints which conflict
10227 with early clobber outputs.
10229 2019-03-27 Jeff Law <law@redhat.com>
10232 PR rtl-optimization/87761
10233 PR rtl-optimization/89826
10234 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10236 (pass_cprop_hardreg::execute): Call df_analyze after adding the
10237 note problem to get REG_DEAD/REG_UNUSED notes updated.
10239 2019-03-27 Richard Biener <rguenther@suse.de>
10241 PR tree-optimization/89463
10242 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
10243 queue edges to remove.
10244 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
10245 dead stmts. Delay edge removal until PHIs are removed to
10246 make debug-stmt creation not confused by seemingly degenerate
10249 2019-03-27 Alan Modra <amodra@gmail.com>
10251 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10253 * config/rs6000/darwin.h: Likewise.
10254 * config/rs6000/rs6000.c: Likewise.
10256 2019-03-27 Alan Modra <amodra@gmail.com>
10258 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10259 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
10261 2019-03-26 Andrew Waterman <andrew@sifive.com>
10262 Jim Wilson <jimw@sifive.com>
10264 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
10265 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
10266 (generic_idivdi, generic_fmul_single, generic_fmul_double)
10267 (generic_fdiv, generic_fsqrt): Add check for generic tune.
10268 (generic_alu): Add auipc to type list.
10269 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
10270 (riscv_microarchitecture): Declare.
10271 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
10272 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
10274 (riscv_microarchitecture): New.
10275 (sifive_7_tune_info): New.
10276 (riscv_cpu_info_table): Add microarchitecture value for rocket and
10277 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
10279 (riscv_store_data_bypass_p): New.
10280 (riscv_option_override): Set riscv_microarchitecture from
10281 cpu->microarchitecture.
10282 * config/riscv/riscv.md: Include sifive-7.md.
10285 (auipc<mode>): Change type to auipc.
10286 (restore_stack_nonlocal): New.
10287 * config/riscv/sifive-7.md: New.
10288 * doc/invoke.texi (RISC-V Options): Update mtune docs.
10290 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
10293 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10294 Also process XEXP (src, 0) of a shift insn.
10296 2019-03-26 Richard Biener <rguenther@suse.de>
10298 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
10299 (copy_debug_stmt): Likewise.
10300 (expand_call_inline): Likewise.
10301 (copy_bb): Avoid redundant lookup & set of gimple_block.
10302 * gimple-low.c (lower_gimple_return): Likewise.
10303 (lower_builtin_setjmp): Likewise.
10305 2019-03-26 Jakub Jelinek <jakub@redhat.com>
10307 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
10308 is constant 0, turn into static const data member initialized to false.
10309 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
10310 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
10312 2019-03-26 Jason Merrill <jason@redhat.com>
10313 Jakub Jelinek <jakub@redhat.com>
10315 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10317 (mem_alloc_description::release_object_overhead): Fix comment typos.
10318 * hash-table.h (hash_table::~hash_table): Call
10319 release_instance_overhead only if m_entries is non-NULL, otherwise
10320 call unregister_descriptor.
10322 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
10324 PR tree-optimization/81740
10325 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10326 In case of outer loop vectorization, check for backward dependence
10327 at the inner loop if outer loop dependence is reversed.
10329 2019-03-26 Alan Modra <amodra@gmail.com>
10331 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10332 rs6000_vector_mem init. Correct wI and wJ comment.
10334 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
10336 PR rtl-optimization/88347
10337 PR rtl-optimization/88423
10338 * sched-deps.c (sched_analyze_insn): Take into account that for
10339 tablejumps the barrier appears after a label and a jump_table_data.
10341 2019-03-25 Martin Sebor <msebor@redhat.com>
10344 * c-common.c (check_user_alignment): Rename local. Correct maximum
10345 alignment in diagnostic. Avoid assuming argument fits in SHWI,
10346 convert it to UHWI when it fits.
10348 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
10351 * dwarf2out.c (premark_used_variables): New function.
10352 (prune_unused_types_walk): Do not mark not premarked external
10354 (prune_unused_types): Call premark_used_variables.
10356 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
10358 PR rtl-optimization/89676
10359 * lra-constraints.c (curr_insn_transform): Do match reload for
10360 early clobbers when the match was successful only for different
10363 2019-03-25 Martin Sebor <msebor@redhat.com>
10365 * doc/extend.texi (Common Type Attributes): Document vector_size.
10366 (Common Variable Attributes): Mention size constraint. Correct
10368 (Vector Extensions): Use @dfn when defining bas type. Clarify
10369 base type and size constraints.
10371 2019-03-25 Richard Biener <rguenther@suse.de>
10373 PR tree-optimization/89789
10374 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
10375 changes from non-undefined back to undefined.
10377 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
10379 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
10380 heap string and a gc string, but since this variable is unknown to
10381 ggc the gc string might get reused and corrupted. Fixed by always
10382 using a heap string.
10384 2019-03-25 Richard Biener <rguenther@suse.de>
10386 PR tree-optimization/89779
10387 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
10388 to remove IV defs, delay actual removal.
10389 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
10390 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
10391 very end, properly also reset loop control IV information.
10393 2019-03-25 Richard Biener <rguenther@suse.de>
10395 PR tree-optimization/89802
10396 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10397 move EH data to folded stmt.
10399 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10401 * config/s390/s390-builtin-types.def: Remove few unused types and
10402 fix sort order for others.
10404 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10406 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10407 expected and found types with -mdebug during builtin matching.
10409 2019-03-25 Richard Biener <rguenther@suse.de>
10411 PR middle-end/89790
10412 * fold-const.c (operand_equal_p): Revert last change with
10415 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
10417 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
10418 notes for the result of the __tls_get_addr calls.
10419 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
10421 2019-03-24 Jeff Law <law@redhat.com>
10423 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10425 PR rtl-optimization/87761
10426 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
10427 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
10429 (pass_cprop_hardreg::execute): Add df note problem and defer insn
10430 rescans. Reprocess blocks as needed, calling df_analyze before
10431 reprocessing. Always call df_analyze before fixing up debug bind
10434 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
10436 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10439 2019-03-22 Andrew Pinski <apinski@marvell.com>
10441 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10442 attrribute for uxtw.
10444 2019-03-26 Jeff Law <law@redhat.com>
10446 PR rtl-optimization/87761
10447 * config/mips/mips-protos.h (mips_split_move): Add new argument.
10448 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
10449 (mips_split_move): Accept new INSN argument. Try to forward SRC
10450 into the next instruction.
10451 (mips_split_move_insn): Pass INSN through to mips_split_move.
10453 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
10455 PR rtl-optimization/89676
10456 * lra-constraints.c (curr_insn_transform): Do match reload for
10457 early clobbers even if the match was successful.
10459 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10462 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10464 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
10466 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10468 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10470 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
10471 <avx512>_fmsub_<mode>_mask3<round_name>,
10472 <avx512>_fnmadd_<mode>_mask3<round_name>,
10473 <avx512>_fnmsub_<mode>_mask3<round_name>,
10474 avx512f_vmfmadd_<mode>_mask3<round_name>,
10475 avx512f_vmfmsub_<mode>_mask3<round_name>,
10476 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
10477 instead of register_operand and %v instead of v for match_operand 1.
10478 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
10479 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
10480 <round_nimm_predicate> instead of register_operand and %v instead of v
10481 for match_operand 1.
10483 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
10484 <avx512>_fmadd_<mode>_mask3<round_name>,
10485 <avx512>_fmsub_<mode>_mask<round_name>,
10486 <avx512>_fmsub_<mode>_mask3<round_name>,
10487 <avx512>_fnmadd_<mode>_mask<round_name>,
10488 <avx512>_fnmadd_<mode>_mask3<round_name>,
10489 <avx512>_fnmsub_<mode>_mask<round_name>,
10490 <avx512>_fnmsub_<mode>_mask3<round_name>,
10491 <avx512>_fmaddsub_<mode>_mask<round_name>,
10492 <avx512>_fmaddsub_<mode>_mask3<round_name>,
10493 <avx512>_fmsubadd_<mode>_mask<round_name>,
10494 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
10495 <round_nimm_predicate> instead of nonimmediate_operand.
10496 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
10497 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
10498 Use register_operand instead of <round_nimm_predicate> for the
10499 operand that needs to match output.
10500 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
10501 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
10502 Likewise. Formatting fixes.
10505 * config/i386/i386.c (enum ix86_builtins): Remove
10506 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
10507 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
10508 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
10509 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
10510 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
10511 __builtin_ia32_vfmsubss3_mask3): New builtins.
10512 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
10513 avx512f_vmfmadd_<mode>_mask3<round_name>,
10514 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
10515 *avx512f_vmfmsub_<mode>_mask<round_name>,
10516 avx512f_vmfmsub_<mode>_mask3<round_name>,
10517 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
10518 *avx512f_vmfnmadd_<mode>_mask<round_name>,
10519 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
10520 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
10521 *avx512f_vmfnmsub_<mode>_mask<round_name>,
10522 avx512f_vmfnmsub_<mode>_mask3<round_name>,
10523 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
10524 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
10525 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
10526 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
10527 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
10528 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
10529 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
10530 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
10531 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
10532 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
10533 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
10534 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
10535 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
10536 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
10537 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
10538 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
10539 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
10540 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
10541 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
10542 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
10543 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
10544 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
10546 2019-03-21 Martin Sebor <msebor@redhat.com>
10548 PR tree-optimization/89350
10549 * builtins.c (compute_objsize): Also ignore offsets whose upper
10551 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
10552 (builtin_memref::builtin_memref): Initialize new member.
10553 Allow EXPR to be null.
10554 (builtin_memref::extend_offset_range): Replace local with a member.
10555 Avoid assuming pointer offsets are unsigned.
10556 (builtin_memref::set_base_and_offset): Determine base object
10557 before computing offset range.
10558 (builtin_access::builtin_access): Handle memset.
10559 (builtin_access::generic_overlap): Replace local with a member.
10560 (builtin_access::strcat_overlap): Same.
10561 (builtin_access::overlap): Same.
10562 (maybe_diag_overlap): Same.
10563 (maybe_diag_access_bounds): Same.
10564 (wrestrict_dom_walker::check_call): Handle memset.
10565 (check_bounds_or_overlap): Same.
10567 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
10568 Jakub Jelinek <jakub@redhat.com>
10571 * tree.c (fld_type_variant, fld_incomplete_type_of,
10572 fld_process_array_type): Call fld->pset.add and don't call
10573 add_tree_to_fld_list if it returns true.
10574 (free_lang_data_in_type): Similarly with self-recursive call. Purge
10575 non-marked types from TYPE_NEXT_VARIANT list.
10576 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
10578 2019-03-21 Jakub Jelinek <jakub@redhat.com>
10580 * hash-table.h (hash_table): Add Lazy template parameter defaulted
10581 to false, if true, don't alloc_entries during construction, but defer
10582 it to the first method that needs m_entries allocated.
10583 (hash_table::hash_table, hash_table::~hash_table,
10584 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
10585 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
10586 hash_table::clear_slot, hash_table::traverse_noresize,
10587 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
10588 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
10590 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
10591 NO_INSERT instead of find_with_hash.
10592 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
10593 hash_set::m_table): Add Lazy to template params of hash_table.
10594 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
10595 * attribs.c (test_attribute_exclusions): Likewise.
10596 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
10597 hash_set. Add tests for hash_set with Lazy = true.
10599 2019-03-21 Richard Biener <rguenther@suse.de>
10601 PR tree-optimization/89779
10602 * tree.c (tree_nop_conversion): Consolidate and fix defensive
10603 checks with respect to released SSA names now having error_mark_node
10605 * fold-const.c (operand_equal_p): Likewise.
10607 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
10610 * config/s390/s390.c (global_not_special_regno_p): Move to make it
10612 (s390_optimize_register_info): Use global_not_special_regno_p to
10613 check for global regs.
10615 2019-03-20 Jakub Jelinek <jakub@redhat.com>
10618 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
10619 update this_alternative nor this_alternative_set.
10621 2019-03-19 Jim Wilson <jimw@sifive.com>
10624 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
10625 align, size, offset. Use them to handle a BLKmode reference. Update
10627 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
10629 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10631 PR rtl-optimization/89768
10632 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
10633 instead of GEN_INT.
10634 (unroll_loop_runtime_iterations): Likewise.
10636 2019-03-19 Martin Sebor <msebor@redhat.com>
10638 PR tree-optimization/89644
10639 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
10640 rather than endptr as an indicator of nul-termination.
10642 PR tree-optimization/89644
10643 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
10644 arrays in determining sequence sizes in strncpy and stpncpy.
10646 2019-03-19 Martin Liska <mliska@suse.cz>
10648 PR middle-end/89737
10649 * predict.c (combine_predictions_for_bb): Empty likely_edges and
10650 unlikely_edges if there's an edge that belongs to both these sets.
10652 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
10655 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
10656 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
10657 go via a stack temporary.
10659 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10662 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
10663 instead of gen_rtx_SUBREG.
10664 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
10666 2019-03-19 Richard Biener <rguenther@suse.de>
10669 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
10671 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
10675 * tree.c (free_lang_data_in_decl): Do not free context of C++
10678 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10681 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
10682 subs for the first alternative except when operands[3] is 1.
10685 * gimplify.c (gimplify_asm_expr): For output argument with
10686 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
10689 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
10691 PR rtl-optimization/89753
10692 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
10693 explicit unrolling factor even more robust.
10695 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10698 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
10699 compensation use x2 += 1 instead of x2 -= -1 and when honoring
10700 signed zeros, do another copysign after the compensation.
10702 2019-03-18 Martin Sebor <msebor@redhat.com>
10704 PR tree-optimization/89720
10705 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
10706 more conservatively, the same as anti-range.
10708 2019-03-18 Richard Biener <rguenther@suse.de>
10710 PR middle-end/88945
10711 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
10712 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
10713 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
10714 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
10716 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
10718 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
10719 Extend queue to 1024 entries.
10720 Add "consumed" field.
10721 (gomp_print_output): Remove print_index parameter.
10722 Add final parameter.
10723 Change limit to unsigned.
10724 Use consumed field to implement circular buffer.
10725 Detect interrupted print in final pass.
10726 Flush output at the end.
10727 (run): Update gomp_print_output usage.
10728 (main): Initialize kernargs->output_data.consumed.
10730 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
10732 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
10733 calculation of the minimum number of scalar iterations for
10734 fully-predicated loops.
10736 2019-03-18 Martin Jambor <mjambor@suse.cz>
10738 PR tree-optimization/89546
10739 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
10740 any propagation to its children took place.
10742 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
10745 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
10746 parameter, and make use of it.
10747 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
10749 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10751 * config/arc/arc.opt (mcode-density-frame): Get the inital value
10752 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
10753 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10754 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10755 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
10756 match what the ops is doing.
10757 (push_multi_fp_blink): Likewise.
10758 * config/arc/arc.c (arc_override_options): Enable enter/leave when
10759 compiling for size and elf target.
10760 (arc_save_callee_enter): Adjust note to match what enter/leave
10763 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10765 * config/arc/arc.md (tst_movb): Fix constraint.
10767 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10769 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10771 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10773 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
10774 * config/arc/arc.c (arc_conditional_register_usage): Remove all
10775 reg_alloc_order references.
10776 (size_alloc_order): Define.
10777 (arc_adjust_reg_alloc_order): New function.
10778 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
10780 (ADJUST_REG_ALLOC_ORDER): Define.
10781 (HONOR_REG_ALLOC_ORDER): Likewise.
10783 2019-03-18 Richard Biener <rguenther@suse.de>
10786 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
10787 loads and stores a bit more.
10789 2019-03-18 Richard Biener <rguenther@suse.de>
10792 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
10793 load pessimization to stores as well.
10795 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
10797 PR middle-end/86979
10798 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
10799 successor, use NULL as its av set.
10801 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
10803 PR rtl-optimization/89721
10804 * lra-constraints (invariant_p): Return false if side_effects_p holds.
10806 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
10809 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10810 When handling vec_extract, use modular arithmetic to allow
10811 constant selectors greater than vector length.
10812 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
10813 V1TImode vectors to have constant selector values greater than 0.
10814 Use modular arithmetic to compute vector index.
10815 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
10816 index for in-memory vectors. Correct code generation for
10817 in-register vectors.
10818 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
10821 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
10825 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
10828 2019-03-15 Jakub Jelinek <jakub@redhat.com>
10831 * tree.c (inchash::add_expr): Strip any location wrappers.
10832 * fold-const.c (operand_equal_p): Move stripping of location wrapper
10833 after hash verification.
10836 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
10837 SIGN_EXTEND and ZERO_EXTEND.
10839 2019-03-14 Jason Merrill <jason@redhat.com>
10840 Jakub Jelinek <jakub@redhat.com>
10842 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
10843 than if is_empty (*slot).
10844 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
10845 existing elt and for elt removal.
10846 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
10847 of already removed elt.
10849 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
10852 * config/i386/i386.c (remove_partial_avx_dependency): Handle
10853 REG_EH_REGION note.
10855 2019-03-14 Martin Liska <mliska@suse.cz>
10858 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
10860 2019-03-14 Richard Biener <rguenther@suse.de>
10863 * config/i386/i386.c (make_resolver_func): Properly set
10864 DECL_CONTEXT on the RESULT_DECL.
10865 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
10867 2019-03-14 Richard Biener <rguenther@suse.de>
10869 * gimple-pretty-print.c: Include cfgloop.h.
10870 (dump_gimple_phi): Adjust.
10871 (dump_gimple_bb_header): Dump loop header for GIMPLE.
10872 (pp_cfg_jump): Adjust.
10873 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
10874 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
10875 (lower_phi_internal_fn): Remove.
10876 (verify_gimple_call): Remove IFN_PHI special-casing.
10877 (dump_function_to_file): Dump IL state.
10878 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
10879 done to deal with PHI nodes being present in non-SSA state.
10881 2019-03-14 Jakub Jelinek <jakub@redhat.com>
10884 * multiple_target.c (create_dispatcher_calls): Change
10885 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
10886 In the node->iterate_referring loop, push *ref rather than ref, call
10887 ref->remove_reference () and always pass 0 to iterate_referring.
10889 PR rtl-optimization/89679
10890 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
10891 would contain a paradoxical SUBREG.
10893 2019-03-14 Richard Biener <rguenther@suse.de>
10895 PR tree-optimization/89710
10896 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
10899 2019-03-14 Martin Liska <mliska@suse.cz>
10901 * coverage.c (coverage_begin_function): Stream also
10903 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
10904 documentation about function declaration location.
10905 * gcov-dump.c (tag_function): Print whole range
10906 of function declaration.
10907 * gcov.c (struct function_info): Add end_column field.
10908 (function_info::function_info): Initialize it.
10909 (output_json_intermediate_file): Output {start,end}_column
10911 (read_graph_file): Read end_column.
10913 2019-03-14 Richard Biener <rguenther@suse.de>
10915 PR middle-end/89698
10916 * fold-const.c (operand_equal_p): For INDIRECT_REF check
10917 that the access types are similar.
10919 2019-03-14 Jakub Jelinek <jakub@redhat.com>
10921 PR tree-optimization/89703
10922 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
10923 aren't compatible also with builtin_decl_explicit. Check pure
10924 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
10925 and BUILT_IN_STPNCPY{,_CHK}.
10927 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
10930 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
10931 addr32 prefix to VSIB address for X32.
10932 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
10934 (*avx512pf_gatherpf<mode>df_mask): Likewise.
10935 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
10936 (*avx512pf_scatterpf<mode>df_mask): Likewise.
10937 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
10938 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
10939 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
10940 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
10941 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
10942 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
10943 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
10944 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
10945 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
10946 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
10947 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
10948 (*avx512f_scatterdi<mode>): Likewise.
10950 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
10953 * lra-constraints.c (inherit_in_ebb): Update
10954 potential_reload_hard_regs along with live_hard_regs.
10956 2019-03-13 Jakub Jelinek <jakub@redhat.com>
10959 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
10961 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
10963 2019-03-13 Martin Sebor <msebor@redhat.com>
10965 PR tree-optimization/89662
10966 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
10969 2019-03-13 Richard Biener <rguenther@suse.de>
10971 PR middle-end/89677
10972 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
10973 throw FP expressions at tree-affine.
10975 2019-03-14 Richard Biener <rguenther@suse.de>
10977 * tree-pretty-print.c (dump_generic_node): For -gimple properly
10978 dump negative integer constants using _Literal (type) -num.
10980 2019-03-13 Jakub Jelinek <jakub@redhat.com>
10982 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
10983 nonlocal_value member.
10985 PR middle-end/88588
10986 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
10987 (ipa_simd_modify_function_body): Handle PHIs.
10989 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
10991 * config/s390/s390.c (s390_option_override_internal): Use more
10992 aggressive inlining parameters.
10994 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
10996 * config/s390/3906.md: New file.
10997 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
10998 (LONGRUNNING_THRESHOLD): Remove.
10999 (MAX_SCHED_MIX_SCORE): Decrease.
11000 (MAX_SCHED_MIX_DISTANCE): Decrease.
11001 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
11002 (struct s390_sched_state): New struct to hold scheduling state.
11003 (S390_SCHED_STATE_NORMAL): Remove.
11004 (S390_SCHED_STATE_CRACKED): Remove.
11005 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
11006 (s390_get_sched_attrmask): Use new attribute.
11007 (s390_get_unit_mask): Use new units.
11008 (s390_is_fpd): New function.
11009 (s390_is_fxd): New function.
11010 (s390_is_longrunning): New function.
11011 (s390_sched_score): Use new functions.
11012 (s390_sched_reorder): Likewise.
11013 (s390_sched_variable_issue): Rework and use new functions.
11014 (s390_sched_init): Use new functions.
11015 * config/s390/s390.h (s390_tune_attr): Add z14.
11016 * config/s390/s390.md: Add z14.
11018 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11020 * config/s390/2964.md: Update pipeline description.
11021 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
11022 (LONGRUNNING_THRESHOLD): Remove.
11023 (LATENCY_FACTOR): Remove.
11024 (s390_get_unit_mask): Add unit.
11025 (s390_sched_score): Use fxd/fpd.
11026 (s390_sched_variable_issue): Use fxd/fpd.
11028 2019-03-12 Martin Liska <mliska@suse.cz>
11030 * config/i386/i386.c: Reword an error message.
11032 2019-03-12 Martin Jambor <mjambor@suse.cz>
11034 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
11035 terminate with newline.
11037 2019-03-12 Jakub Jelinek <jakub@redhat.com>
11040 * config/s390/s390.md (tabort): Use %wd instead of
11041 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
11042 letters and periods.
11043 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
11044 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
11047 PR middle-end/89663
11048 * builtins.c (expand_builtin_int_roundingfn,
11049 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
11050 gcc_unreachable if validate_arglist fails.
11052 2019-03-12 Richard Biener <rguenther@suse.de>
11054 PR tree-optimization/89664
11055 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
11056 free the occurance tree after the early out.
11058 2019-03-11 Jakub Jelinek <jakub@redhat.com>
11060 PR middle-end/89655
11062 * vr-values.c (vr_values::update_value_range): If
11063 old_vr->varying_p (), don't update it, make new_vr also VARYING
11066 2019-03-11 Martin Liska <mliska@suse.cz>
11068 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11069 Fix double string quoting.
11071 2019-03-11 Martin Liska <mliska@suse.cz>
11073 * collect-utils.c (collect_wait): Wrap apostrophes
11074 in gcc internal format with %'.
11075 * collect2.c (main): Likewise.
11076 (scan_prog_file): Likewise.
11077 (scan_libraries): Likewise.
11078 * config/i386/i386.c (ix86_expand_call): Likewise.
11079 (ix86_handle_interrupt_attribute): Likewise.
11080 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
11081 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
11082 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
11083 * lto-wrapper.c (find_crtoffloadtable): Likewise.
11084 * symtab.c (symtab_node::verify_base): Likewise.
11085 * tree-cfg.c (verify_gimple_label): Likewise.
11086 * tree.c (verify_type_variant): Likewise.
11088 2019-03-11 Martin Liska <mliska@suse.cz>
11090 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
11091 in a string format message and fix GNU coding style.
11092 (expand_builtin_set_thread_pointer): Likewise.
11093 * common/config/aarch64/aarch64-common.c
11094 (aarch64_rewrite_selected_cpu): Likewise.
11095 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
11096 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
11097 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
11098 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
11099 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
11100 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
11101 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
11102 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
11103 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
11104 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
11106 * common/config/riscv/riscv-common.c
11107 (riscv_subset_list::parsing_subset_version): Likewise.
11108 (riscv_subset_list::parse_std_ext): Likewise.
11109 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11110 (riscv_subset_list::parse): Likewise.
11111 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
11112 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
11113 (aarch64_override_options_internal): Likewise.
11114 (aarch64_validate_mcpu): Likewise.
11115 (aarch64_validate_march): Likewise.
11116 (aarch64_validate_mtune): Likewise.
11117 (aarch64_override_options): Likewise.
11118 * config/alpha/alpha.c (alpha_option_override): Likewise.
11119 * config/arc/arc.c (arc_init): Likewise.
11120 (parse_mrgf_banked_regs_option): Likewise.
11121 (arc_override_options): Likewise.
11122 (arc_expand_builtin_aligned): Likewise.
11123 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
11124 (arm_expand_builtin): Likewise.
11125 * config/arm/arm.c (arm_option_check_internal): Likewise.
11126 (arm_configure_build_target): Likewise.
11127 (arm_option_override): Likewise.
11128 (arm_options_perform_arch_sanity_checks): Likewise.
11129 (arm_handle_cmse_nonsecure_entry): Likewise.
11130 (arm_handle_cmse_nonsecure_call): Likewise.
11131 (arm_tls_referenced_p): Likewise.
11132 (thumb1_expand_prologue): Likewise.
11133 * config/avr/avr.c (avr_option_override): Likewise.
11134 * config/bfin/bfin.c (bfin_option_override): Likewise.
11135 * config/c6x/c6x.c (c6x_option_override): Likewise.
11136 * config/cr16/cr16.c (cr16_override_options): Likewise.
11137 * config/cris/cris.c (cris_option_override): Likewise.
11138 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
11139 * config/darwin-c.c (macosx_version_as_macro): Likewise.
11140 * config/darwin.c (darwin_override_options): Likewise.
11141 * config/frv/frv.c (frv_expand_builtin): Likewise.
11142 * config/h8300/h8300.c (h8300_option_override): Likewise.
11143 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
11144 (ix86_option_override_internal): Likewise.
11145 (warn_once_call_ms2sysv_xlogues): Likewise.
11146 (ix86_expand_prologue): Likewise.
11147 (split_stack_prologue_scratch_regno): Likewise.
11148 (ix86_warn_parameter_passing_abi): Likewise.
11149 * config/ia64/ia64.c (fix_range): Likewise.
11150 * config/m68k/m68k.c (m68k_option_override): Likewise.
11151 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
11152 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
11153 (mips_set_compression_mode): Likewise.
11154 * config/mmix/mmix.c (mmix_option_override): Likewise.
11155 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
11156 * config/msp430/msp430.c (msp430_option_override): Likewise.
11157 * config/nds32/nds32.c (nds32_option_override): Likewise.
11158 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
11159 (nios2_option_override): Likewise.
11160 (nios2_expand_custom_builtin): Likewise.
11161 * config/nvptx/mkoffload.c (main): Likewise.
11162 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
11163 * config/pa/pa.c (fix_range): Likewise.
11164 (pa_option_override): Likewise.
11165 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
11166 (riscv_option_override): Likewise.
11167 * config/rl78/rl78.c (rl78_option_override): Likewise.
11168 * config/rs6000/aix61.h: Likewise.
11169 * config/rs6000/aix71.h: Likewise.
11170 * config/rs6000/aix72.h: Likewise.
11171 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
11172 * config/rs6000/freebsd64.h: Likewise.
11173 * config/rs6000/linux64.h: Likewise.
11174 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
11175 (rs6000_expand_zeroop_builtin): Likewise.
11176 (rs6000_expand_mtfsb_builtin): Likewise.
11177 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
11178 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
11179 (rs6000_invalid_builtin): Likewise.
11180 (rs6000_expand_split_stack_prologue): Likewise.
11181 * config/rs6000/rtems.h: Likewise.
11182 * config/rx/rx.c (valid_psw_flag): Likewise.
11183 (rx_expand_builtin): Likewise.
11184 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
11185 * config/s390/s390.c (s390_expand_builtin): Likewise.
11186 (s390_function_profiler): Likewise.
11187 (s390_option_override_internal): Likewise.
11188 (s390_option_override): Likewise.
11189 * config/sh/sh.c (sh_option_override): Likewise.
11190 (sh_builtin_saveregs): Likewise.
11191 (sh_fix_range): Likewise.
11192 * config/sh/vxworks.h: Likewise.
11193 * config/sparc/sparc.c (sparc_option_override): Likewise.
11194 * config/spu/spu.c (spu_option_override): Likewise.
11195 (fix_range): Likewise.
11196 * config/visium/visium.c (visium_option_override): Likewise.
11197 (visium_handle_interrupt_attr): Likewise.
11198 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
11199 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
11200 (dbg_cnt_process_opt): Likewise.
11201 * dwarf2out.c (output_dwarf_version): Likewise.
11202 * except.c (expand_eh_return): Likewise.
11203 * gcc.c (defined): Likewise.
11204 (driver_handle_option): Likewise.
11205 (process_command): Likewise.
11206 (compare_files): Likewise.
11207 (driver::prepare_infiles): Likewise.
11208 (driver::do_spec_on_infiles): Likewise.
11209 (driver::maybe_run_linker): Likewise.
11210 * omp-offload.c (oacc_parse_default_dims): Likewise.
11211 * opts-global.c (handle_common_deferred_options): Likewise.
11212 * opts.c (parse_sanitizer_options): Likewise.
11213 (common_handle_option): Likewise.
11214 (enable_warning_as_error): Likewise.
11215 * passes.c (enable_disable_pass): Likewise.
11216 * plugin.c (parse_plugin_arg_opt): Likewise.
11217 (default_plugin_dir_name): Likewise.
11218 * targhooks.c (default_expand_builtin_saveregs): Likewise.
11219 (default_pch_valid_p): Likewise.
11220 * toplev.c (init_asm_output): Likewise.
11221 (process_options): Likewise.
11222 (toplev::run_self_tests): Likewise.
11223 * tree-cfg.c (verify_gimple_call): Likewise.
11224 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
11225 (tree_inlinable_function_p): Likewise.
11226 * var-tracking.c (vt_find_locations): Likewise.
11228 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
11230 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11231 only on the else branch.
11233 2019-03-11 Martin Liska <mliska@suse.cz>
11235 * gcov.c (output_intermediate_json_line): Print function
11237 (output_json_intermediate_file): Add new argument.
11238 * doc/gcov.texi: Document the change.
11240 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
11242 PR rtl-optimization/89588
11243 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11244 explicit unrolling factor more robust.
11246 2019-03-11 Richard Biener <rguenther@suse.de>
11248 PR tree-optimization/89649
11249 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
11250 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
11251 on the prolog and epilog loops.
11252 (vect_loop_versioning): Return copy of loop.
11253 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
11254 on the non-vectorized version of the loop.
11256 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
11259 * config/i386/sse.md (*vec_extractv2di_0_sse):
11260 Add (=r,x) alternative and corresponding splitter.
11262 2019-03-10 Martin Jambor <mjambor@suse.cz>
11264 PR tree-optimization/85762
11265 PR tree-optimization/87008
11266 PR tree-optimization/85459
11267 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
11268 it points to if there is a type changing MEM_REF. Adjust all callers.
11269 (build_accesses_from_assign): Disable total scalarization if
11270 contains_vce_or_bfcref_p returns true through the new parameter, for
11273 2019-03-09 Jakub Jelinek <jakub@redhat.com>
11276 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
11277 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
11280 * common.opt (fdiagnostics-show-labels,
11281 fdiagnostics-show-line-numbers, fdiagnostics-format=,
11282 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
11283 gas-locview-support, ginline-points, ginternal-reset-location-views):
11284 Terminate description text with a dot.
11285 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
11286 * config/mcore/mcore.opt (m210, m340): Likewise.
11287 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
11288 mnops=): Start description text with a capital letter.
11289 * config/arc/arc.opt (msize-level=): Likewise.
11290 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
11291 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
11292 mnewlib): Likewise.
11293 * config/ft32/ft32.opt (msim): Likewise.
11294 (mft32b, mcompress): Likewise. Terminate description text with a dot.
11295 (mnodiv, mnopm): Terminate description text with a dot.
11296 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
11298 * config/i386/i386.opt (prefer_vector_width, instrument_return):
11300 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11303 PR rtl-optimization/89634
11304 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
11305 are modified in BB_END (e->src) instruction.
11307 2019-03-08 David Malcolm <dmalcolm@redhat.com>
11310 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11311 messages more amenable to translation, and improve wording.
11313 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
11315 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11316 ud- and du-chains between phases.
11318 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
11321 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11322 instead of POLY_INT_CST.
11324 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
11326 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11329 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
11334 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11335 (_mm_storeu_si64): Ditto.
11337 2019-03-08 Martin Liska <mliska@suse.cz>
11340 * config/i386/i386.c (ix86_option_override_internal): Disable
11341 jump tables when retpolines are used.
11343 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
11346 * ipa-split.c (execute_split_functions): Do not split
11347 'noinline' or 'section' function.
11349 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11352 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
11353 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
11354 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
11357 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11358 from diagnostics. Formatting fixes.
11361 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11362 warn_odr diagnostics.
11365 * lra-constraints.c (process_alt_operands): Avoid one space before
11366 " at the end of line and another after " on another line in a string
11368 * attribs.c (handle_dll_attribute): Likewise.
11369 * config/avr/avr-devices.c (avr_texinfo): Likewise.
11371 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11372 warning_at or inform messages in G_() if there is no ?:.
11374 PR tree-optimization/89550
11375 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
11376 returned true. Formatting fixes.
11377 (expand_builtin_strnlen): Formatting fixes.
11378 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
11379 if warning_at returned true.
11380 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
11382 2019-03-08 Richard Biener <rguenther@suse.de>
11384 PR middle-end/89578
11385 * cfgloop.h (struct loop): Add owned_clique field.
11386 * cfgloopmanip.c (copy_loop_info): Copy it.
11387 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
11389 * tree-inline.c (copy_loops): Remap owned_clique.
11390 * lto-streamer-in.c (input_cfg): Stream owned_clique.
11391 * lto-streamer-out.c (output_cfg): Likewise.
11393 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11396 * config/darwin.c: Include intl.h.
11397 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
11398 composing the message out of two separate parts.
11400 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11403 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
11404 doesn't start with a capital letter and doesn't end with a dot.
11405 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
11406 with a capital letter.
11407 (ix86_mangle_function_version_assembler_name): Likewise.
11408 (ix86_generate_version_dispatcher_body): Likewise.
11409 (fold_builtin_cpu): Likewise.
11410 (get_builtin_code_for_version): Likewise. Remove extraneous space.
11411 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
11412 translators, wrap full type name in %qs.
11414 PR translation/79999
11415 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
11416 depend clause with source (or sink) modifier.
11417 * omp-expand.c (expand_omp_ordered_sink): Likewise.
11420 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
11421 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
11422 (avx512f_load<mode>_mask): New define_expand.
11423 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
11424 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
11425 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
11426 __builtin_ia32_movess_mask): New builtins.
11427 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
11428 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
11429 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
11430 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
11432 2019-03-07 Martin Jambor <mjambor@suse.cz>
11435 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11436 for extern inline functions.
11438 2019-03-07 Martin Jambor <mjambor@suse.cz>
11441 * cgraph.h (cgraph_node): New inline method former_thunk_p.
11442 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
11443 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
11444 have multiple callees. At the end check if declarations match as
11445 opposed to cgraph_nodes.
11447 2019-03-07 Martin Liska <mliska@suse.cz>
11449 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
11450 which is equivalent to searching for this in clones chain.
11451 * symtab.c (symtab_node::verify_base): Similarly compare ASM
11452 names with a neighbour and special case first node in a chain.
11454 2019-01-25 Jason Merrill <jason@redhat.com>
11456 PR c++/80916 - spurious "static but not defined" warning.
11457 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
11458 for an internal symbol with DECL_EXTERNAL.
11460 2019-04-07 Richard Biener <rguenther@suse.de>
11462 PR middle-end/89618
11463 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11464 * tree-inline.c (copy_loops): Simplify.
11466 2019-03-07 Martin Liska <mliska@suse.cz>
11468 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11470 2019-03-07 Richard Biener <rguenther@suse.de>
11472 PR tree-optimization/89595
11473 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
11474 stmt iterator as reference, take boolean output parameter to
11475 indicate whether the stmt was removed and thus the iterator
11477 (dom_opt_dom_walker::before_dom_children): Re-iterate over
11478 stmts created by folding.
11480 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11483 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11486 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
11488 PR rtl-optimization/88845
11489 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11491 * lra.c (remove_scratches_1): New function.
11492 (remove_scratches): Use it.
11493 (lra_emit_move): Likewise.
11495 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
11497 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
11498 unaligned_access variable.
11499 * config/arc/arc.c (arc_override_options): Set unaligned access
11500 default on for HS CPUs.
11501 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
11503 2019-03-06 Martin Liska <mliska@suse.cz>
11505 PR gcov-profile/89577
11506 * doc/gcov.texi: Prefer to use --coverage.
11507 * doc/sourcebuild.texi: Likewise.
11509 2019-03-02 Jason Merrill <jason@redhat.com>
11511 PR c++/86485 - -Wmaybe-unused with empty class ?:
11512 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11514 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11517 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
11520 PR middle-end/89590
11521 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
11522 exactly one argument.
11524 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11525 Richard Sandiford <richard.sandiford@arm.com>
11527 PR tree-optimization/89570
11528 * match.pd (vec_cond into cond_op simplification): Don't use
11529 get_conditional_internal_fn, use as_internal_fn (cond_op).
11531 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
11534 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
11535 to decide when to split off a non-zero offset from a symbol.
11536 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
11537 in function symbols.
11539 2019-03-05 Richard Biener <rguenther@suse.de>
11541 PR tree-optimization/89594
11542 * tree-if-conv.c (pass_if_conversion::execute): Handle
11543 case where .LOOP_VECTORIZED_FUNCTION was removed.
11545 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11548 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
11549 instead alloca it only when needed with the needed size.
11551 PR tree-optimization/89570
11552 * match.pd (vec_cond into cond_op simplification): Guard with
11553 vectorized_internal_fn_supported_p test and #if GIMPLE.
11555 PR tree-optimization/89566
11556 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
11557 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
11558 Punt if get_user_idx_format succeeds, but idx_format argument is
11559 not provided or doesn't have pointer type, or if idx_args is above
11560 number of provided arguments.
11562 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
11564 PR tree-optimization/89437
11565 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
11567 2019-03-04 Richard Biener <rguenther@suse.de>
11569 PR middle-end/89572
11570 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
11573 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
11575 PR tree-optimization/89487
11576 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
11577 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
11578 (distribute_loop): Don't do runtime alias check if there is non-
11579 addressable data reference.
11580 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
11581 is a register variable.
11583 2019-03-02 Jakub Jelinek <jakub@redhat.com>
11586 * config/arm/arm.md (cmpsi2_addneg): Use
11587 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
11588 If operands[2] is 0 or INT_MIN, force use of subs.
11589 (*compare_scc splitter): Use gen_int_mode.
11590 (*negscc): Likewise.
11591 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
11593 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
11594 Monk Chiang <sh.chiang04@gmail.com>
11596 * common/config/riscv/riscv-common.c: Include sstream.
11597 (riscv_subset_list::to_string): New.
11598 (riscv_arch_str): Likewise.
11599 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
11600 * config.in: Regen.
11601 * config/riscv/riscv-protos.h (riscv_arch_str): New.
11602 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
11603 (riscv_emit_attribute): New.
11604 (riscv_file_start): Emit attribute if needed.
11605 (riscv_option_override): Init riscv_emit_attribute_p.
11606 * config/riscv/riscv.opt (mriscv-attribute): New option.
11607 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
11608 * configure: Regen.
11609 * doc/install.texi: Document --with-riscv-attribute.
11610 * doc/invoke.texi: Document -mriscv-attribute.
11612 * common/config/riscv/riscv-common.c:
11613 Include config/riscv/riscv-protos.h.
11614 (INCLUDE_STRING): Defined.
11615 (RISCV_DONT_CARE_VERSION): Defined.
11616 (riscv_subset_t): Declare.
11617 (riscv_subset_t::riscv_subset_t): New.
11618 (riscv_subset_list): Declare.
11619 (riscv_subset_list::riscv_subset_list): New.
11620 (riscv_subset_list::~riscv_subset_list): Likewise.
11621 (riscv_subset_list::parsing_subset_version): Likewise.
11622 (riscv_subset_list::parse_std_ext): Likewise.
11623 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11624 (riscv_subset_list::add): Likewise.
11625 (riscv_subset_list::lookup): Likewise.
11626 (riscv_subset_list::xlen): Likewise.
11627 (riscv_subset_list::parse): Likewise.
11628 (riscv_supported_std_ext): Likewise.
11629 (current_subset_list): Likewise.
11630 (riscv_parse_arch_string): Using riscv_subset_list::parse to
11633 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
11635 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11636 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
11637 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
11639 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
11641 PR rtl-optimization/85899
11642 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
11643 fallthru edges leading to the exit block.
11645 2019-03-01 Tamar Christina <tamar.christina@arm.com>
11648 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
11649 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
11651 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
11653 PR tree-optimization/89535
11654 * tree-vect-stmts.c (vectorizable_call): Record the vector types
11655 for each operand. Calculate the fallback choice for mask operands
11656 and pass it to vect_get_vec_def_for_operand.
11658 2019-03-01 Richard Biener <rguenther@suse.de>
11660 PR middle-end/89541
11661 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
11662 get virtual operands.
11663 (get_expr_operands): Handle CONST_DECL like other decls.
11665 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11667 PR middle-end/89503
11668 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
11669 on DECL_P and EXPR_P.
11671 2019-03-01 Richard Biener <rguenther@suse.de>
11673 PR middle-end/89497
11674 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
11675 argument, defaulted to zero.
11676 * passes.c (execute_function_todo): Pass down SSA update flags
11677 to cleanup_tree_cfg.
11678 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
11679 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
11681 (cleanup_tree_cfg): Get and pass down SSA update flags.
11683 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11686 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
11687 early_lto_debug argument.
11689 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
11691 PR tree-optimization/89536
11692 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
11693 only whether bit #0 of the value is 0 instead of the entire value.
11695 2019-02-28 Marek Polacek <polacek@redhat.com>
11697 PR c++/87068 - missing diagnostic with fallthrough statement.
11698 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
11699 at the end of a seq, save its location to walk_stmt_info.
11700 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
11703 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
11706 * tree.c (find_atomic_core_type): Move ahead in file.
11707 (check_base_type): Correctly compare alignments of atomic types.
11709 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
11712 * config/i386/i386.c (get_builtin_code_for_version): Identify
11713 Westmere from PCLMUL, instead of AES.
11715 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11718 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
11719 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
11722 2019-02-28 Tamar Christina <tamar.christina@arm.com>
11725 * config/aarch64/aarch64-option-extensions.def: Document it.
11726 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
11729 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11732 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
11733 builtins if they don't have a single scalar floating point argument.
11736 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11738 PR rtl-optimization/89490
11739 * varasm.c (get_block_for_section): Bail out for mergeable sections.
11740 (default_use_anchors_for_symbol_p, output_object_block): Assert the
11741 block section is not mergeable.
11743 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11746 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
11747 old define_insn to ...
11748 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
11749 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
11750 Rename old define_insn to ...
11751 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
11752 (thumb2_casesi_internal_pic): New define_expand. Rename old
11754 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
11755 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
11756 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
11758 2019-02-27 Richard Biener <rguenther@suse.de>
11761 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
11763 2019-02-27 Richard Biener <rguenther@suse.de>
11765 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
11768 2019-02-27 Richard Biener <rguenther@suse.de>
11771 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
11772 parameter, prefix section name with .gnu.debuglto_ if true.
11773 (dwarf2out_finish): Pass false to output_comdat_type_unit.
11774 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
11776 2019-02-27 Richard Biener <rguenther@suse.de>
11779 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
11780 rather than on use_debug_types, doing what output_die does.
11781 (value_format): Likewise.
11783 2019-02-27 Martin Jambor <mjambor@suse.cz>
11784 Martin Sebor <msebor@redhat.com>
11786 * doc/invoke.texi (Warning Options): Reword description of
11787 -Wno-absolute-value.
11789 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11791 PR tree-optimization/89280
11792 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
11793 builtin_setjmp_setup_bb): New functions.
11794 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
11795 When visiting __builtin_setjmp_setup block, queue in special
11796 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
11797 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
11798 from visited after the loop if they don't have any visited successor
11801 2018-02-26 Steve Ellcey <sellcey@marvell.com>
11803 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
11805 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
11807 2019-02-26 Jakub Jelinek <jakub@redhat.com>
11810 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
11811 with types other than sizetype/ssizetype.
11813 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
11815 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
11816 (enum sparc_processor_type): ...this.
11817 (enum sparc_code_model_type): New enumeration type.
11818 (enum sparc_memory_model_type): Tweak comments.
11819 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
11821 (mcmodel): Use sparc_code_model enumeration and variable.
11822 (sparc_code_model): New enumeration.
11823 (mdebug): Add Undocumented marker.
11824 * config/sparc/sparc.h (enum cmodel): Delete.
11825 (sparc_cmodel): Likewise.
11826 (TARGET_CM_MEDLOW): Adjust to above renaming.
11827 (TARGET_CM_MEDMID): Likewise.
11828 (TARGET_CM_MEDANY): Likewise.
11829 (TARGET_CM_EMBMEDANY): Likewise.
11830 * config/sparc/sparc.c (sparc_cmodel): Delete.
11831 (sparc_option_override): Remove string/value mapping support for the
11832 code model. Move code and memory model support to after the handling
11833 of target flags. Do private machine setup last.
11834 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
11835 (sparc_legitimize_reload_address): Likewise.
11836 (sparc_output_mi_thunk): Likewise.
11837 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
11839 2019-02-26 Jakub Jelinek <jakub@redhat.com>
11841 PR tree-optimization/89500
11842 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
11843 (handle_builtin_strlen): Remove noncst_bound variable. Always
11844 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
11845 cst if the first cst bytes starting at x are known to be non-zero,
11846 even if the string is not zero terminated. Don't try to modify
11847 *si for strnlen. Update strlen_to_stridx only for strlen or if
11848 we can prove strnlen returns the same value as strlen would.
11850 2019-02-26 Martin Liska <mliska@suse.cz>
11852 * alloc-pool.h (struct pool_usage): Remove extra
11854 * bitmap.h (struct bitmap_usage): Likewise.
11855 * ggc-common.c (struct ggc_usage): Likewise.
11856 * mem-stats.h (struct mem_usage): Likewise.
11857 (mem_alloc_description::dump): Print dash lines
11858 here and repeat header at the end of a table report.
11859 It's then more readable.
11860 * tree-phinodes.c (phinodes_print_statistics): Make
11861 horizontal alignment.
11862 * tree-ssanames.c (ssanames_print_statistics): Likewise.
11863 * vec.c (struct vec_usage): Remove extra print_dash_line.
11864 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
11866 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
11868 * doc/extend.texi (__builtin_object_size):
11869 Use @pxref instead of @xref inside parenthesis.
11870 (__builtin_has_attribute): Add missing comma after @xref.
11871 (__builtin_object_size): Ditto.
11872 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
11873 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
11876 2019-02-26 Jeff Law <law@redhat.com>
11878 PR rtl-optimization/87761
11879 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
11880 detect obviously dead insns and delete them.
11882 2019-02-26 Richard Biener <rguenther@suse.de>
11884 PR tree-optimization/89505
11885 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
11886 to handle restrict pointed-to vars with multiple subvars
11889 2019-02-26 Richard Biener <rguenther@suse.de>
11891 PR tree-optimization/89489
11892 * tree-parloops.c (create_loop_fn): Copy over last_clique.
11894 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
11896 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
11897 and move around comment.
11898 <BIT_AND_EXPR>: Likewise.
11899 <BIT_NOT_EXPR>: Add specific handling for boolean types.
11901 2019-02-26 Jakub Jelinek <jakub@redhat.com>
11904 * config/i386/i386.c (remove_partial_avx_dependency): Call
11905 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
11906 after changing possibly many instructions to use that pseudo. Fix up
11907 insertion of v4sf_const0 setter at the start of bb.
11909 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
11912 * doc/extend.texi (Variadic Pointer Args): New section.
11914 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
11915 Martin Sebor <msebor@gmail.com>
11917 * common.opt (Wattribute-alias): Likewise.
11918 * doc/invoke.texi (Option Summary): List general form of
11919 -Wattribute-alias=. List positive form of -Wmissing-attributes.
11920 (-Wmissing-attributes): Invert entry, rewrite and correct default.
11921 Add cross-references.
11922 (-Wattribute-alias): Rewrite and correct default. Mention
11923 considered attributes (same as for -Wmissing-attributes).
11925 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
11927 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
11928 (_mm_cvtpd_ps): Likewise.
11929 (_mm_cvttpd_epi32): Likewise.
11932 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
11933 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
11936 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
11938 2019-02-25 Tamar Christina <tamar.christina@arm.com>
11941 * common/config/aarch64/aarch64-common.c
11942 (struct aarch64_option_extension): Add is_synthetic.
11943 (all_extensions): Use it.
11944 (TARGET_OPTION_INIT_STRUCT): Define hook.
11945 (struct gcc_targetm_common): Moved to end.
11946 (all_extensions_by_on): New.
11947 (opt_ext_cmp, typedef opt_ext): New.
11948 (aarch64_option_init_struct): New.
11949 (aarch64_contains_opt): New.
11950 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
11951 * config/aarch64/aarch64-option-extensions.def
11952 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
11953 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
11954 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
11955 Set is_synthetic to false.
11956 (crypto): Set is_synthetic to true.
11957 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
11960 2019-02-25 Tamar Christina <tamar.christina@arm.com>
11962 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11963 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
11964 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11965 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
11966 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
11967 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
11968 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
11969 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
11971 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
11972 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11973 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
11974 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
11975 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
11976 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
11977 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
11978 vfmlsl_laneq_high_f16): ... To this.
11979 * config/arm/neon.md: Update comments.
11981 2019-02-25 Tamar Christina <tamar.christina@arm.com>
11983 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11984 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
11985 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11986 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
11987 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
11988 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
11989 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
11990 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
11992 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
11993 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11994 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
11995 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
11996 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
11997 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
11998 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
11999 vfmlslq_laneq_high_f16): ... To this.
12001 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
12003 PR rtl-optimization/86096
12004 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
12005 comparing mw_order values.
12007 2019-02-25 Jakub Jelinek <jakub@redhat.com>
12010 * config/arm/arm.md (*subsi3_carryin_const): Use
12011 arm_neg_immediate_operand predicate instead of
12012 arm_not_immediate_operand, "L" constraint instead of "K" and
12013 print it using %n2 instead of %B2.
12014 (*subsi3_carryin_const0): New define_insn.
12015 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
12016 instead of arm_not_operand and "I" constraint instead of "K" and
12017 print it using %n3 instead of %B2. Instead of using match_dup 2 add
12018 another match_operand and in the condition check that it is negation
12020 (*subsi3_carryin_compare_const0): New define_ins.
12021 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
12022 *subsi3_carryin_const.
12023 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
12024 split into *subsi3_carryin_compare_const0 if the highpart is zero.
12027 * config/arm.vfp.md (*negdf2_vfp): Use
12028 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
12029 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
12031 2019-02-24 Jakub Jelinek <jakub@redhat.com>
12033 PR rtl-optimization/89445
12034 * simplify-rtx.c (simplify_ternary_operation): Don't use
12035 simplify_merge_mask on operands that may trap.
12036 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
12037 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
12038 second operand is CONST_VECTOR, check if any element could be zero.
12039 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
12040 their operands can trap.
12042 2019-02-23 Martin Sebor <msebor@redhat.com>
12044 * gimple-ssa-sprintf.c (target_strtol): Rename...
12045 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
12046 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
12047 check for range error.
12049 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
12052 * opts-common.c (prune_options): Also prune joined switches
12053 with Negative and RejectNegative.
12054 * config/i386/i386.opt (march=): Add Negative(march=).
12055 (mtune=): Add Negative(mtune=).
12056 * doc/options.texi: Document Negative used together with Joined
12057 and RejectNegative.
12059 2019-02-22 Martin Sebor <msebor@redhat.com>
12061 * doc/extend.texi (Other Builtins): Add
12062 __builtin_is_constant_evaluated.
12064 2019-02-22 Richard Biener <rguenther@suse.de>
12066 PR tree-optimization/87609
12067 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
12069 2019-02-22 Jeff Law <law@redhat.com>
12071 PR rtl-optimization/87761
12072 * config/mips/mips.md: Add new combiner pattern to recognize
12073 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
12075 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
12078 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
12079 destination register in peepholes generating patterns for ADDS/SUBS.
12080 (add<mode>3_compare0,
12081 *addsi3_compare0_uxtw, add<mode>3_compareC,
12082 add<mode>3_compareV_imm, add<mode>3_compareV,
12083 *adds_<optab><ALLX:mode>_<GPI:mode>,
12084 *subs_<optab><ALLX:mode>_<GPI:mode>,
12085 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
12086 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
12087 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
12088 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
12089 sub<mode>3_compare1): Allow stack pointer for source register.
12090 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
12092 2019-02-22 Martin Sebor <msebor@redhat.com>
12094 PR tree-optimization/88993
12095 PR tree-optimization/88853
12096 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
12098 (sprintf_dom_walker::call_info::is_string_func): New helper.
12099 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
12100 for formatted string functions.
12101 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
12103 2019-02-22 Martin Sebor <msebor@redhat.com>
12106 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
12107 unreachable subexpressions.
12109 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
12110 Hongtao Liu <hongtao.liu@intel.com>
12111 Sunil K Pandey <sunil.k.pandey@intel.com>
12114 * config/i386/i386-passes.def: Add
12115 pass_remove_partial_avx_dependency.
12116 * config/i386/i386-protos.h
12117 (make_pass_remove_partial_avx_dependency): New.
12118 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
12120 (pass_data_remove_partial_avx_dependency): New.
12121 (pass_remove_partial_avx_dependency): Likewise.
12122 (make_pass_remove_partial_avx_dependency): Likewise.
12123 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
12124 (*extendsfdf2): Add avx_partial_xmm_update.
12125 (truncdfsf2): Likewise.
12126 (*float<SWI48:mode><MODEF:mode>2): Likewise.
12127 (SF/DF conversion splitters): Disabled for TARGET_AVX.
12129 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
12131 PR middle-end/85598
12132 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
12135 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
12138 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
12139 (PTA_SKYLAKE): Add PTA_AES.
12140 (PTA_GOLDMONT): Likewise.
12142 2019-02-22 Sudakshina Das <sudi.das@arm.com>
12144 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
12145 instruction if enabled.
12146 (aarch64_override_options): Remove reference to return address key.
12148 2019-02-22 Richard Biener <rguenther@suse.de>
12150 PR tree-optimization/89440
12151 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12152 not necessary assert.
12154 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
12157 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
12158 (oacc_replace_fn_attrib_attr): ... this new function.
12159 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
12160 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
12162 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12164 * config/arm/arm-cpus.in (ares): Rename to...
12165 (neoverse-n1): ... This. Add ares as alias.
12166 * config/arm/arm-tables.opt: Regenerate.
12167 * config/arm/arm-tune.md: Likewise.
12168 * doc/invoke.txt (ARM Options): Document neoverse-n1.
12170 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12172 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
12173 * config/aarch64/aarch64-tune.md: Regenerate.
12174 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
12176 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12178 * config/aarch64/aarch64.c (ares_tunings): Rename to...
12179 (neoversen1_tunings): ... This.
12180 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
12181 (neoverse-n1): New CPU.
12182 * config/aarch64/aarch64-tune.md: Regenerate.
12183 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
12185 2019-02-22 Richard Biener <rguenther@suse.de>
12187 PR middle-end/87609
12188 * cfghooks.h (dependence_hash): New typedef.
12189 (struct copy_bb_data): New type.
12190 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
12191 (duplicate_block): Likewise.
12192 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
12193 (copy_bbs): Create and pass down copy_bb_data.
12194 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
12195 (rtl_duplicate_bb): Likewise.
12196 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
12197 remap dependence info.
12199 2019-02-22 Richard Biener <rguenther@suse.de>
12201 PR tree-optimization/87609
12202 * tree-core.h (tree_base): Document special clique values.
12203 * tree-inline.c (remap_dependence_clique): Do not use the
12204 special clique value of one.
12205 (maybe_set_dependence_info): Use clique one.
12206 (clear_dependence_clique): New callback.
12207 (compute_dependence_clique): Clear clique one from all refs
12208 before assigning it (again).
12210 2019-02-21 Martin Sebor <msebor@redhat.com>
12212 * doc/extend.texi (__clear_cache): Correct signature.
12214 2019-02-21 Ian Lance Taylor <iant@golang.org>
12217 * varasm.c (decode_addr_const): Call lookup_constant_def rather
12218 than output_constant_def.
12219 (add_constant_to_table): New static function.
12220 (output_constant_def): Call add_constant_to_table.
12221 (tree_output_constant_def): Likewise.
12223 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12226 * builtins.c (fold_builtin_arith_overflow): If first two args are
12227 INTEGER_CSTs, set intres and ovfres to constants rather than calls
12230 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
12233 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12234 error for -mindirect-branch/-mfunction-return with incompatible
12237 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12240 * constraints.md (q): Remove.
12241 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12244 2019-02-21 Martin Jambor <mjambor@suse.cz>
12247 * omp-general.c (omp_extract_for_data): Removed a duplicate call
12248 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
12249 (omp_adjust_for_condition): ...here. Added necessary parameters.
12250 * omp-general.h (omp_adjust_for_condition): Updated declaration.
12251 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
12252 proper values to new parameters of omp_adjust_for_condition.
12254 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12256 PR middle-end/89412
12257 * expr.c (expand_assignment): If result is a MEM, use change_address
12258 instead of simplify_gen_subreg.
12260 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12261 David Malcolm <dmalcolm@redhat.com>
12263 PR middle-end/89091
12264 * fold-const.c (decode_field_reference): Return NULL_TREE if
12265 lang_hooks.types.type_for_size returns NULL. Check it before
12266 overwriting *exp_. Use return NULL_TREE instead of return 0.
12268 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12270 PR middle-end/88074
12271 PR middle-end/89415
12272 * toplev.c (do_compile): Double the emin/emax exponents to workaround
12275 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
12278 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12279 TARGET_SSE in addition to TARGET_SSE_MATH.
12281 (ix86_excess_precision): Ditto.
12282 (ix86_float_exceptions_rounding_supported_p): Ditto.
12283 (use_rsqrt_p): Ditto.
12284 * config/i386/sse.md (rsqrt<mode>2): Ditto.
12286 2019-02-20 David Malcolm <dmalcolm@redhat.com>
12289 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
12290 linenum_arith_t when determining if two adjacent line spans are
12291 close enough to merge.
12292 (diagnostic_show_locus): Use linenum_arith_t when iterating over
12293 lines within each line_span.
12295 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
12298 * lra-constraints.c(uses_hard_regs_p): Fix handling of
12299 paradoxical SUBREGS.
12301 2019-02-20 Li Jia He <helijia@linux.ibm.com>
12304 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
12305 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
12306 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
12309 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
12311 * config/gcn/gcn.c (print_operand): Fix typo.
12313 2019-02-19 Richard Biener <rguenther@suse.de>
12315 PR middle-end/88074
12316 * toplev.c (do_compile): Initialize mpfr's exponent range
12317 based on available float modes.
12319 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
12321 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12322 as long as the epilogue isn't completed.
12324 2019-02-18 Martin Sebor <msebor@redhat.com>
12326 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12327 __has_cpp_attribute, and __has_include.
12329 2019-02-18 Martin Sebor <msebor@redhat.com>
12331 * doc/invoke.texi (-Wreturn-type): Correct and expand.
12333 2019-02-18 Martin Sebor <msebor@redhat.com>
12335 PR middle-end/89294
12336 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12338 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12340 2019-02-18 Richard Biener <rguenther@suse.de>
12342 PR tree-optimization/89296
12343 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
12344 of no-warning flag to cases that might emit the bogus warning.
12346 2019-02-18 Jakub Jelinek <jakub@redhat.com>
12349 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12351 * config/arm/vfp.md (*movdi_vfp): Likewise.
12352 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
12353 "q" constraint for operands[0].
12356 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
12357 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
12358 pattern in a temporary buffer.
12359 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
12360 than 64-operands[2].
12363 * config/s390/s390.c (s390_indirect_branch_attrvalue,
12364 s390_indirect_branch_settings): Define unconditionally.
12365 (s390_set_current_function): Likewise, but guard the whole body except
12366 the s390_indirect_branch_settings call with
12367 #if S390_USE_TARGET_ATTRIBUTE.
12368 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
12370 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
12371 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
12372 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
12373 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
12374 HOST_WIDE_INT_1U instead of 1ULL.
12375 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
12376 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
12377 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
12378 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
12380 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12383 2019-02-18 Martin Jambor <mjambor@suse.cz>
12385 PR tree-optimization/89209
12386 * tree-sra.c (create_access_replacement): New optional parameter
12387 reg_tree. Use it as a type if non-NULL and access type is not of
12389 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
12390 to create_access_replacement.
12391 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
12392 Check lacc is non-NULL before attempting to re-create it on the RHS.
12394 2019-02-18 Martin Liska <mliska@suse.cz>
12397 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12399 (symbol_table::free_edge): Recycle m_summary_id.
12400 * cgraph.h (get_summary_id): New.
12401 (symbol_table::release_symbol): Set m_summary_id to -1
12403 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
12404 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
12405 function_summary to fast_function_summary.
12406 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
12407 * ipa-pure-const.c (class funct_state_summary_t):
12408 Switch from function_summary to fast_function_summary.
12409 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
12410 (class ipa_ref_opt_summary_t): Switch from function_summary
12411 to fast_function_summary.
12412 * symbol-summary.h (class function_summary_base): New class
12413 that is created from base of former function_summary.
12414 (function_summary_base::unregister_hooks): New.
12415 (class function_summary): Inherit from function_summary_base.
12416 (class call_summary_base): New class
12417 that is created from base of former call_summary.
12418 (class call_summary): Inherit from call_summary_base.
12419 (struct is_same): New.
12420 (class fast_function_summary): New summary class.
12421 (class fast_call_summary): New summary class.
12422 * vec.h (vec_safe_grow_cleared): New function.
12424 2019-02-18 Martin Liska <mliska@suse.cz>
12426 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
12427 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
12428 * doc/tm.texi: Document new target hook.
12429 * doc/tm.texi.in: Likewise.
12430 * target.def: Add new target macro.
12431 * gcc.c (find_fortran_preinclude_file): Do not search multilib
12434 2019-02-17 Alan Modra <amodra@gmail.com>
12437 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
12438 output reg on add insn.
12439 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
12441 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12444 * config/i386/sse.md (ssedoublemode): Remove V4HI.
12445 (PMULHRSW): Likewise.
12446 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12448 (ssse3_pmulhrswv4hi3): New expander.
12450 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12452 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12453 MMX. Add isa attribute.
12455 2019-02-16 Jakub Jelinek <jakub@redhat.com>
12457 PR rtl-optimization/66152
12458 * builtins.h (c_readstr): Declare.
12459 * builtins.c (c_readstr): Remove forward declaration. Add
12460 null_terminated_p argument, if false, read all bytes from the
12461 string instead of stopping after '\0'.
12462 * expr.c (string_cst_read_str): New function.
12463 (store_expr): Use string_cst_read_str instead of
12464 builtin_strncpy_read_str. Try to store by pieces the whole
12465 exp_len first, and only if that fails, split it up into
12466 store by pieces followed by clear_storage. Formatting fix.
12468 * config/i386/i386.md (*movqi_internal): Remove static from
12469 buf variable. Use output_asm_insn (buf, operands); return "";
12470 instead of return buf;.
12471 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
12472 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
12473 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
12475 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12477 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
12478 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
12479 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
12480 (CC1_SPEC): Likewise.
12481 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
12483 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12485 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12486 the base address on 64-bit strict-alignment platforms.
12488 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
12490 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12492 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12494 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12496 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
12498 PR rtl-optimization/88308
12499 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12500 on copied instruction.
12502 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12504 * final.c (insn_current_reference_address): Replace test on JUMP_P
12505 with test on jump_to_label_p.
12506 * config/visium/visium-passes.def: New file.
12507 * config/visium/t-visium (PASSES_EXTRA): Define.
12508 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
12509 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
12510 (TRAMPOLINE_ALIGNMENT): Define.
12511 * config/visium/visium.c (visium_option_override): Do not register
12512 the machine-specific reorg pass here.
12513 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
12515 (output_branch): Adjust threshold for long branch instruction.
12516 * config/visium/visium.md (cpu): Move around.
12517 (length): Adjust for the GR6.
12519 2019-02-15 Richard Biener <rguenther@suse.de>
12520 Jakub Jelinek <jakub@redhat.com>
12522 PR tree-optimization/89278
12523 * tree-loop-distribution.c: Include tree-eh.h.
12524 (generate_memset_builtin, generate_memcpy_builtin): Call
12525 rewrite_to_non_trapping_overflow on builtin->size before passing it
12526 to force_gimple_operand_gsi.
12528 2019-02-15 Jakub Jelinek <jakub@redhat.com>
12531 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
12533 * opth-gen.awk: Likewise.
12535 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12537 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
12538 Enable MMX, SSE and SSE2 by default.
12539 * config/i386/i386.c (ix86_option_override_internal): Do not
12540 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
12542 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12544 PR rtl-optimization/89354
12545 * combine.c (make_extraction): Punt if extraction_mode is narrower
12548 2019-02-14 Maya Rashish <coypu@sdf.org>
12550 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
12551 * config/netbsd-d.c: New file.
12552 * config/t-netbsd: Add netbsd-d.o
12554 2018-02-14 Steve Ellcey <sellcey@marvell.com>
12556 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
12557 affects_type_identity to true for aarch64_vector_pcs.
12558 (aarch64_comp_type_attributes): New function.
12559 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
12561 2019-02-14 Tamar Christina <tamar.christina@arm.com>
12564 * config/arm/iterators.md (ANY64): Add V4HF.
12566 2019-02-14 Martin Liska <mliska@suse.cz>
12568 PR rtl-optimization/89242
12569 * dce.c (delete_unmarked_insns): Call free_dominance_info we
12570 process a transformation.
12572 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12574 PR tree-optimization/89314
12575 * fold-const.c (fold_binary_loc): Cast strlen argument to
12576 const char * before dereferencing it. Formatting fixes.
12578 PR middle-end/89284
12579 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
12581 2019-02-13 Ian Lance Taylor <iant@golang.org>
12583 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
12584 and set current index for other optimizations.
12586 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
12588 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
12589 nonimmediate_operand as operand 2 predicate.
12590 (vec_set<VF2_512_256:mode>_0): Ditto.
12591 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
12592 (*vec_concatv2si): Remove alternative 2.
12593 (*vec_concatv4si_0): Use vm constraint for alternative 0.
12594 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
12595 (vec_concatv2di): Split alternatives 4,5,6 to ...
12596 (*vec_concatv2di_0) ... new pattern.
12598 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
12601 * config/arm/arm.c (ldm_stm_operation_p) Set
12602 addr_reg_in_reglist correctly for first register.
12603 (load_multiple_sequence): Remove dead base check.
12604 (gen_ldm_seq): Correctly set write_back for Thumb-1.
12606 2019-02-13 Tamar Christina <tamar.christina@arm.com>
12609 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
12610 Expose as @aarch64_pred_mov.
12611 * config/aarch64/aarch64.c (aarch64_classify_address):
12612 Use expand_insn which legitimizes operands.
12614 2019-02-13 Martin Liska <mliska@suse.cz>
12616 * builtins.h (expand_builtin_with_bounds): Remove declaration.
12617 * calls.c (struct arg_data): Remove special_slot, pointer_arg
12618 and pointer_offset fields.
12619 (initialize_argument_information): Remove usage of dead
12621 * cgraph.h (struct cgraph_thunk_info): Remove
12622 add_pointer_bounds_args.
12623 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
12625 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
12627 * config/i386/i386.c (ix86_function_arg_advance): Remove
12629 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
12630 (def_builtin): Remove usage of dead
12632 (ix86_add_new_builtins): Likewise.
12633 * ipa-fnsummary.c (compute_fn_summary): Likewise.
12634 * ipa-icf.c (sem_function::equals_wpa): Likewise.
12635 (sem_function::init): Likewise.
12636 (sem_variable::merge): Likewise.
12637 * ipa-visibility.c (function_and_variable_visibility): Likewise.
12638 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
12639 * lto-cgraph.c (lto_output_node): Likewise.
12640 (lto_output_varpool_node): Likewise.
12641 (input_node): Likewise.
12642 (input_varpool_node): Likewise.
12643 * lto-streamer-out.c (lto_output): Likewise.
12644 * tree-inline.c (expand_call_inline): Remove usage of
12646 * tree-inline.h (struct copy_body_data): Likewise.
12647 * varpool.c (varpool_node::dump): Likewise.
12649 2019-02-13 Jakub Jelinek <jakub@redhat.com>
12651 PR middle-end/89303
12652 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
12653 into pt->vars_contains_escaped_heap instead of setting
12654 pt->vars_contains_escaped_heap to it.
12656 PR middle-end/89281
12657 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
12658 INTVAL (size), compare it to GET_MODE_MASK instead of
12659 1 << GET_MODE_BITSIZE.
12662 * config/i386/predicates.md (x86_64_immediate_operand): Allow
12663 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
12666 2019-02-13 Martin Liska <mliska@suse.cz>
12669 * cfgrtl.c (remove_barriers_from_footer): New function.
12670 (try_redirect_by_replacing_jump): Use it.
12671 (cfg_layout_redirect_edge_and_branch): Likewise.
12673 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
12675 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
12676 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
12677 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
12678 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
12679 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
12680 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
12682 * config/rs6000/rs6000.c (builtin_function_type)
12683 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
12684 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
12685 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
12686 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
12687 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
12689 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
12691 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
12692 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
12694 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
12697 * config/i386/i386.md (*movoi_internal_avx): Revert revision
12698 268678 and revision 268657.
12699 (*movti_internal): Likewise.
12701 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
12704 * config/s390/s390.c (s390_decompose_address): Update comment.
12705 (s390_check_qrst_address): Reject invalid address forms after
12708 2019-02-12 Martin Liska <mliska@suse.cz>
12711 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
12712 we need default values of funct_state for a function that
12715 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
12717 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
12718 the object to pick the size of stores on strict-alignment platforms.
12720 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
12721 (*movdi_insn_sp32): Likewise.
12722 (*movdi_insn_sp64): Likewise.
12724 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
12727 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
12728 types that needs constructiong.
12729 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
12731 2019-02-12 Richard Biener <rguenther@suse.de>
12733 PR tree-optimization/89253
12734 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
12735 duplicate the loop.
12737 2019-02-11 David Malcolm <dmalcolm@redhat.com>
12740 * input.c (selftest::test_line_offset_overflow): New selftest.
12741 (selftest::input_c_tests): Call it.
12743 2019-02-11 Martin Sebor <msebor@redhat.com>
12745 PR tree-optimization/88771
12746 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
12747 when -Wstringop-overflow is set.
12748 (builtin_memref::builtin_memref): Adjust excessive upper bound
12749 only when lower bound is not excessive.
12750 (maybe_diag_overlap): Detect and diagnose excessive bounds via
12751 -Wstringop-ovefflow.
12752 (maybe_diag_offset_bounds): Rename...
12753 (maybe_diag_access_bounds): ...to this.
12754 (check_bounds_or_overlap): Adjust for name change above.
12756 2019-02-11 Martin Sebor <msebor@redhat.com>
12759 * builtins.c (max_object_size): Move from here...
12760 * builtins.h (max_object_size): ...and here...
12761 * tree.c (max_object_size): ...to here...
12762 * tree.h (max_object_size): ...and here.
12764 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
12766 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
12767 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
12768 for correct semantics.
12770 2019-02-11 Alan Modra <amodra@gmail.com>
12772 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
12773 -mlongcall and -mpltseq.
12774 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
12775 (RS/6000 and PowerPC Options <-mpltseq>): Document.
12776 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
12777 * config/rs6000/sysv4.opt (mpltseq): New option.
12778 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
12779 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
12780 support is lacking. Don't allow -mpltseq with -mbss-plt.
12781 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
12782 -mpltseq given for ELFv1.
12783 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
12784 Only use UNSPEC_PLTSEQ for inline PLT calls.
12785 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
12786 use UNSPEC_PLTSEQ for inline PLT calls.
12787 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
12788 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
12789 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
12790 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
12791 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
12792 (pltseq_mtctr_<mode>): Likewise.
12794 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12796 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
12798 * configure: Regenerate.
12800 2019-02-11 Jakub Jelinek <jakub@redhat.com>
12803 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
12806 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
12808 * function.c (assign_parm_setup_block): Use the stored
12809 size, not the passed size, when allocating stack-space,
12810 also for a parameter with alignment larger than
12811 MAX_SUPPORTED_STACK_ALIGNMENT.
12813 2019-02-11 Martin Liska <mliska@suse.cz>
12816 * ipa-cp.c (build_toporder_info): Remove usage of a param.
12817 * ipa-inline.c (inline_small_functions): Likewise.
12818 * ipa-pure-const.c (propagate_pure_const): Likewise.
12819 (propagate_nothrow): Likewise.
12820 * ipa-reference.c (propagate): Likewise.
12821 * ipa-utils.c (struct searchc_env): Remove unused field.
12822 (searchc): Always search across AVAIL_INTERPOSABLE.
12823 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
12824 the only called IPA pure const can properly not propagate
12825 across interposable boundary.
12826 * ipa-utils.h (ipa_reduced_postorder): Remove param.
12828 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
12830 * config/nds32/nds32.md (call_internal, call_value_internal,
12831 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
12833 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
12835 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
12838 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
12840 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
12843 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
12845 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
12847 2019-02-10 Jakub Jelinek <jakub@redhat.com>
12849 PR tree-optimization/89268
12850 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
12851 if preds is non-NULL.
12853 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
12856 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
12859 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
12861 * config/nds32/nds32.md (trap): New pattern.
12863 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
12865 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
12868 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
12870 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
12873 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
12875 * ipa-visibility.c (localize_node): Also do not localize
12876 LDPR_PREVAILING_DEF_IRONLY_EXP.
12878 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
12881 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
12882 instead of type_with_linkage.
12884 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
12887 * params.def (uninlined-function-insns, uninlined-function-time,
12888 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
12889 bound so we don't get overflows.
12891 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
12893 * config/rs6000/rs6000-string.c (expand_compare_loop,
12894 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
12897 2019-02-09 Jakub Jelinek <jakub@redhat.com>
12899 PR middle-end/89246
12900 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12901 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
12902 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
12904 2019-02-09 Alan Modra <amodra@gmail.com>
12907 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
12908 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
12911 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
12913 PR middle-end/88560
12914 * lra-constraints.c (process_alt_operands): Don't increase reject
12915 for memory when offset memory is required.
12917 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
12919 * config/s390/vector.md: Implement vector copysign.
12921 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
12923 * expr.c (expand_constructor): Correct indentations.
12925 2019-02-08 Richard Biener <rguenther@suse.de>
12927 PR tree-optimization/89247
12928 * tree-if-conv.c: Include tree-cfgcleanup.h.
12929 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
12930 (tree_if_conversion): Pass through predicate vector.
12931 (pass_if_conversion::execute): Do CFG cleanup and SSA update
12932 inline, see if any if-converted loops we refrece in
12933 LOOP_VECTORIZED calls vanished and fixup.
12934 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
12936 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
12938 * config/s390/constraints.md (jdd): New constraint.
12940 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
12943 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
12944 upper 16 vector registers without TARGET_AVX512VL.
12945 (*movti_internal): Likewise.
12947 2019-02-08 Jakub Jelinek <jakub@redhat.com>
12949 PR rtl-optimization/89234
12950 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
12951 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
12952 (copy_reg_eh_region_note_backward): Likewise.
12954 2019-02-08 Richard Biener <rguenther@suse.de>
12956 PR middle-end/89223
12957 * tree-data-ref.c (initialize_matrix_A): Fail if constant
12958 doesn't fit in HWI.
12959 (analyze_subscript_affine_affine): Handle failure from
12960 initialize_matrix_A.
12962 2019-02-08 Jakub Jelinek <jakub@redhat.com>
12964 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
12967 2019-02-07 David Malcolm <dmalcolm@redhat.com>
12969 PR tree-optimization/86637
12970 PR tree-optimization/89235
12971 * tree-vect-loop.c (optimize_mask_stores): Add an
12972 auto_purge_vect_location sentinel to ensure that vect_location is
12974 * tree-vectorizer.c
12975 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
12976 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
12977 to ensure that vect_location is purged on exit.
12978 (pass_slp_vectorize::execute): Likewise, replacing the manual
12980 * tree-vectorizer.h (class auto_purge_vect_location): New class.
12982 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12984 * config/aarch64/iterators.md (max_opp): New code_attr.
12985 (USMAX): New code iterator.
12986 * config/aarch64/predicates.md (aarch64_smin): New predicate.
12987 (aarch64_smax): Likewise.
12988 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
12989 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
12992 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
12995 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
12996 for TARGET_AVX512VL.
12997 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
12999 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
13001 * config/s390/s390-builtin-types.def: Add new types.
13002 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
13003 (s390_vec_xlw4): Make the memory operand into a const pointer.
13004 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
13006 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
13007 a new vector type with the alignment of the scalar memory operand.
13009 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
13010 Jakub Jelinek <jakub@redhat.com>
13013 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
13014 arm_count_ldrdstrd_insns): New declarations.
13015 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
13017 (valid_operands_ldrd_strd): New function.
13018 (arm_count_ldrdstrd_insns): New function.
13019 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
13020 sets instead of single DImode set and define new insns to match this.
13022 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13024 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
13025 Make it a C initializer.
13027 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13030 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
13032 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13034 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
13035 Use neon_dot<q> for type.
13036 (neon_<sup>dot_lane<vsi2qi>): Likewise.
13038 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13040 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
13041 Use neon_dot<q> for type.
13042 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
13043 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
13045 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
13047 PR rtl-optimization/89225
13048 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
13051 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
13053 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
13054 after restoring registers saved to allocate the frame on Windows.
13056 2019-02-06 Richard Biener <rguenther@suse.de>
13058 PR tree-optimization/89182
13059 * graphite.h (cached_scalar_evolution_in_region): Declare.
13060 * graphite.c (struct seir_cache_key): New.
13061 (struct sese_scev_hash): Likewise.
13062 (seir_cache): New global.
13063 (cached_scalar_evolution_in_region): New function.
13064 (graphite_transform_loops): Allocate and release seir_cache.
13065 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
13066 cached_scalar_evolution_in_region.
13067 * graphite-scop-detection.c (scop_detection::can_represent_loop):
13069 (scop_detection::graphite_can_represent_expr: Use
13070 cached_scalar_evolution_in_region.
13071 (scop_detection::stmt_simple_for_scop_p): Likewise.
13072 (find_params_in_bb): Likewise.
13073 (gather_bbs::before_dom_children): Likewise.
13074 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
13075 (add_loop_constraints): Likewise.
13077 2019-02-06 Jakub Jelinek <jakub@redhat.com>
13079 PR middle-end/89210
13080 * fold-const-call.c (fold_const_vec_convert): Pass true as last
13081 operand to new_unary_operation only if both element types are integral
13082 and it isn't a widening conversion. Return NULL_TREE if
13083 new_unary_operation failed.
13085 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
13088 * config/s390/s390.md: Remove load and test FP splitter.
13090 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13093 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
13094 expand_compare_loop, expand_block_compare_gpr,
13095 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
13096 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
13097 #include "profile-count.h" and "predict.h" for types and functions
13098 needed to work with REG_BR_PROB notes.
13100 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13103 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
13104 for the long branch case.
13106 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13109 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
13110 can throw, non-call exceptions are enabled and we can't delete
13111 dead exceptions or alter cfg. Set must_clean if
13112 delete_insn_and_edges returns true, don't set it blindly for calls.
13113 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
13115 PR rtl-optimization/89195
13116 * combine.c (make_extraction): For MEMs, don't extract bytes outside
13117 of the original MEM.
13119 2019-02-05 Martin Liska <mliska@suse.cz>
13121 PR gcov-profile/89000
13122 * gcov.c (function_summary): Remove argument.
13123 (file_summary): New function.
13124 (print_usage): Replace tabs with spaces.
13125 (generate_results): Use new function file_summary.
13127 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13130 * optabs.c (prepare_cmp_insn): Pass x and y to
13131 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
13133 2019-02-05 Richard Biener <rguenther@suse.de>
13135 PR middle-end/89150
13136 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
13137 (struct bitmap_element): Drop chain_prev so we properly recurse on
13138 the prev member, supporting tree views.
13139 (struct bitmap_head): GTY skip the obstack member.
13141 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
13144 * doc/extend.texi (Vector Extensions): Add an example of using vector
13145 types together with x86 intrinsics.
13147 2019-02-04 Alan Modra <amodra@gmail.com>
13149 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
13150 str[] size to 160, and comment.
13152 2019-02-04 Alan Modra <amodra@gmail.com>
13154 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
13155 (rs6000_pltseq_template): Guard output of TLS markers with
13156 TARGET_TLS_MARKERS.
13157 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
13158 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
13159 to use inline PLT sequences.
13160 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13161 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13162 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
13164 2019-02-04 Martin Liska <mliska@suse.cz>
13167 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
13168 out when ipa_fn_summaries does not contain entry for callee.
13170 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
13172 * config/sparc/sparc.h: Remove superfluous blank lines.
13173 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
13174 (got_register_rtx): ...this.
13175 (sparc_got): Adjust to above renaming.
13176 (sparc_tls_got): Likewise.
13177 (sparc_delegitimize_address): Likewise.
13178 (sparc_output_mi_thunk): Likewise.
13179 (sparc_init_pic_reg): Likewise.
13180 (save_local_or_in_reg_p): Fix test on the GOT register.
13181 (USE_HIDDEN_LINKONCE): Move around.
13182 (get_pc_thunk_name): Likewise.
13183 (gen_load_pcrel_sym): Likewise.
13184 (load_got_register): Likewise.
13186 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
13188 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
13189 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
13191 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13193 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
13194 into consideration.
13196 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13198 * config.gcc (with_nds32_lib, glibc):
13199 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
13200 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
13201 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
13203 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
13206 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
13207 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
13208 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
13209 (*rcpsf2_sse): Ditto.
13210 (*rsqrtsf2_sse): Ditto.
13211 (sse4_1_round<mode<2): Ditto.
13213 2019-02-03 Richard Biener <rguenther@suse.de>
13216 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
13219 2019-02-02 Jakub Jelinek <jakub@redhat.com>
13221 PR middle-end/87887
13222 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13223 Punt with warning on aggregate return or argument types. Ignore
13224 type/mode checking for uniform arguments.
13226 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
13228 * combine.c (try_combine): Do not print "Can't combine" messages unless
13229 printing failed combination attempts.
13231 2019-02-01 Martin Jambor <mjambor@suse.cz>
13234 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13235 segment and global segment variables before making them static.
13237 2019-02-01 Martin Jambor <mjambor@suse.cz>
13239 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13240 missed optimization dump with dump_enabled_p.
13242 2019-02-01 Richard Biener <rguenther@suse.de>
13244 PR middle-end/88597
13245 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
13246 the instantiate cache.
13247 (instantiate_scev_binary): Elide second operand procesing
13248 if equal to the first.
13249 * tree-chrec.c (chrec_contains_symbols): Add visited set.
13250 (chrec_contains_undetermined): Likewise.
13251 (tree_contains_chrecs): Likewise.
13253 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
13255 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13257 2019-02-01 Jakub Jelinek <jakub@redhat.com>
13259 PR tree-optimization/89143
13260 * wide-int-range.h (wide_int_range_absu): Declare.
13261 * wide-int-range.cc (wide_int_range_absu): New function.
13262 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
13264 PR tree-optimization/88107
13265 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
13266 instead of assertion that eh_region_outermost is non-NULL, if it
13267 is NULL, set *ALL to true and return NULL.
13268 (move_sese_region_to_fn): Adjust caller, if all is set, call
13269 duplicate_eh_regions with NULL region.
13271 2019-02-01 Richard Biener <rguenth@suse.de>
13273 PR rtl-optimization/88593
13274 * mode-switching.c (optimize_mode_switching): Free dominators before
13275 calling cleanup_cfg.
13277 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
13279 PR tree-optimization/88932
13280 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13282 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13284 PR middle-end/89137
13285 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13286 bogus clang warning.
13288 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
13291 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
13292 alternative to avoid partial SSE register stall for TARGET_AVX.
13293 (truncdfsf2): Ditto.
13294 (sse4_1_round<mode>2): Ditto.
13296 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
13298 PR tree-optimization/89008
13299 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13300 process anything of the form X * 0.
13302 2019-01-31 Richard Biener <rguenther@suse.de>
13304 PR tree-optimization/89135
13305 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13306 with abnormal preds.
13308 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13311 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13312 always_inline callees into no_sanitize_address callers.
13314 2019-01-31 Richard Biener <rguenther@suse.de>
13316 PR rtl-optimization/89115
13317 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13319 2019-01-30 Martin Sebor <msebor@redhat.com>
13322 * doc/extend.texi (cast to a union): Correct and expand.
13324 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
13326 PR rtl-optimization/87246
13327 * lra-constraints.c (simplify_operand_subreg): Reload memory
13328 in subreg if the address became invalid.
13330 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
13333 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13334 Disable for little-endian.
13336 2019-01-30 Richard Biener <rguenther@suse.de>
13338 PR rtl-optimization/89115
13339 * opts.c (default_options_optimization): Reduce
13340 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
13341 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
13344 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
13346 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
13347 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
13348 type of vector element when vec_extract is implemented by direct
13351 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
13353 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13355 2019-01-30 Richard Biener <rguenther@suse.de>
13357 PR tree-optimization/89111
13358 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13359 canonicalization to appropriately sized access types.
13361 2019-01-30 Jakub Jelinek <jakub@redhat.com>
13364 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
13365 for arguments to functions that are TU-local and shouldn't be
13366 referenced by assembly.
13368 2019-01-30 Ulrich Drepper <drepper@redhat.com>
13370 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13373 2019-01-29 Martin Sebor <msebor@redhat.com>
13376 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13378 2019-01-29 Jakub Jelinek <jakub@redhat.com>
13382 * omp-simd-clone.c (simd_clone_clauses_extract)
13383 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13384 OMP_CLAUSE_ALIGNED_ALIGNMENT.
13386 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
13388 * config.gcc: Force .init_array for ARC.
13390 2019-01-29 Richard Biener <rguenther@suse.de>
13393 * dwarf2out.c (collect_skeleton_dies): New helper.
13394 (copy_decls_for_unworthy_types): Call it.
13395 (build_abbrev_table): Assert we do not try to replace
13396 DW_AT_signature refs with local refs.
13398 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13400 PR middle-end/89002
13401 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
13402 for lastprivate/linear IV, push gimplify context around gimplify_assign
13403 and, if it needed any temporaries, pop it into a gimple bind around the
13406 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13408 * common.opt (-Wattribute-alias): Remove "no-" from name.
13409 Make -Wattribute-alias command line option and
13410 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
13412 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13415 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13416 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13418 (bmi2): Add missing @opindex.
13419 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
13420 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
13421 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
13422 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
13423 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
13424 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
13425 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
13426 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
13427 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
13428 xsavec, xsaveopt and xsaves options.
13430 2019-01-28 Richard Biener <rguenther@suse.de>
13433 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13436 2019-01-28 Richard Biener <rguenther@suse.de>
13438 PR tree-optimization/88739
13439 * tree-cfg.c (verify_types_in_gimple_reference): Verify
13440 BIT_FIELD_REFs only are applied to mode-precision operands
13441 when they are integral.
13442 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
13443 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
13444 BIT_FIELD_REFs of non-mode-precision integral operands.
13446 2019-01-27 Jakub Jelinek <jakub@redhat.com>
13449 * config/i386/sse.md
13450 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
13451 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
13452 first constants in pairs are multiples of 2. Formatting fixes.
13453 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
13454 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
13455 first constants in each quadruple are multiples of 4. Formatting fixes.
13457 2019-01-26 Martin Jambor <mjambor@suse.cz>
13460 * tree-inline.c: Include tree-cfgcleanup.h.
13461 (delete_unreachable_blocks_update_callgraph): Move...
13462 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
13463 ...here, make externally visible, make second argument bool, adjust
13465 * tree-cfgcleanup.c: Include cgraph.h.
13466 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13468 * ipa-prop.c: Include tree-cfgcleanup.h.
13469 (ipcp_transform_function): Call
13470 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13472 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
13474 PR rtl-optimization/88846
13475 * ira.c (process_set_for_memref_referenced_p): New.
13476 (memref_referenced_p): Add new param. Use
13477 process_set_for_memref_referenced_p. Add new switch cases.
13478 (memref_used_between_p): Pass new arg to memref_referenced_p.
13480 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
13483 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
13484 argument ABI_BREAK. Set to true if the calculated alignment has
13485 changed in gcc-9. Check bit-fields for their base type alignment.
13486 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
13487 (aarch64_function_arg_boundary): Likewise.
13488 (aarch64_gimplify_va_arg_expr): Likewise.
13490 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13492 PR middle-end/89037
13493 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13494 instead of accessing TREE_INT_CST_ELT directly.
13496 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
13498 * doc/sourcebuild.texi (Environment attributes): Add fenv and
13499 fenv_exceptions description.
13501 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
13503 PR rtl-optimization/87763
13504 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13505 Allow SUBREG when matching CC_NZmode compare.
13507 2019-01-25 Richard Biener <rguenther@suse.de>
13509 PR tree-optimization/89049
13510 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13511 Look at the pattern stmt to determine if the stmt is vectorized.
13513 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13515 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
13516 (pred_mov<mode>): Handle all-register forms using both a new
13517 alternative and a split.
13519 2019-01-25 Richard Biener <rguenther@suse.de>
13521 PR tree-optimization/86865
13522 * graphite-scop-detection.c (scop_detection::can_represent_loop):
13523 Reject non-do-while loops.
13525 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
13527 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
13528 * config/rs6000/constraints.md (Q constraint): Use REG_P.
13529 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
13530 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13531 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
13532 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13533 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
13534 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
13535 vlogical_operand, gpc_reg_operand, int_reg_operand,
13536 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
13537 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
13538 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
13539 (save_world_operation, restore_world_operation, lmw_operation,
13540 stmw_operation): Use MEM_P and REG_P.
13541 (tie_operand): Use MEM_P.
13542 (vrsave_operation, crsave_operation): Use REG_P.
13543 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
13544 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
13545 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
13546 (call_operand): Use HARD_REGISTER_P.
13547 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
13549 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
13550 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
13551 quad_aligned_load_p, replace_swapped_aligned_store,
13552 recombine_lvx_pattern, replace_swapped_aligned_load,
13553 recombine_stvx_pattern): Use MEM_P.
13554 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
13555 Use MEM_P and SYMBOL_REF_P.
13556 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
13557 (insn_is_swappable_p): Use REG_P and MEM_P.
13558 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
13559 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
13561 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
13562 Use CONST_DOUBLE_P.
13563 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
13565 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
13566 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
13567 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
13568 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
13570 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13571 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
13572 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
13573 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
13574 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
13575 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
13576 rs6000_split_logical_di): Use CONST_INT_P.
13577 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
13578 REG_P and SYMBOL_REF_P.
13579 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
13580 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
13581 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
13582 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
13583 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
13584 (small_data_operand, print_operand_address): Use CONST_INT_P and
13586 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
13587 (rs6000_init_hard_regno_mode_ok, direct_move_p):
13588 Use HARD_REGISTER_NUM_P.
13589 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
13590 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
13591 SUBREG_P and SYMBOL_REF_P.
13592 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
13593 and HARD_REGISTER_NUM_P.
13594 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
13596 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
13597 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
13599 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
13600 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
13601 find_addr_reg): Use REG_P.
13602 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
13603 (rs6000_emit_le_vsx_move): Use SUBREG_P.
13604 (offsettable_ok_by_alignment, constant_pool_expr_p,
13605 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
13606 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
13607 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
13608 rs6000_assemble_integer, create_TOC_reference,
13609 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
13610 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
13611 (rs6000_split_vec_extract_var): Use reg_or_subregno.
13612 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13613 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13614 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13615 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13616 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
13617 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
13618 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
13619 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
13620 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
13621 and cbranch<mode>4): Use CONST_INT_P.
13622 (multiple define_splits): Use REG_P and SUBREG_P.
13623 (define_expands call, call_value): Use MEM_P.
13624 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
13625 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
13626 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
13627 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
13628 and HARD_REGISTER_NUM_P.
13629 (multiple define_splits): Use HARD_REGISTER_NUM_P.
13631 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
13633 PR rtl-optimization/88948
13634 * rtl.h (prepare_copy_insn): New prototype.
13635 * gcse.c (prepare_copy_insn): New function, split out from
13636 process_insert_insn.
13637 (process_insert_insn): Use prepare_copy_insn.
13638 * store-motion.c (replace_store_insn): Use prepare_copy_insn
13639 instead of gen_move_insn.
13641 2019-01-24 Jakub Jelinek <jakub@redhat.com>
13644 * config/i386/i386.c (ix86_pic_register_p): Return true for
13645 UNSPEC_SET_GOT too.
13647 PR tree-optimization/88964
13648 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
13649 punt if HONOR_SNANS (chrec).
13651 PR middle-end/89015
13652 * tree-nested.c (convert_nonlocal_reference_stmt,
13653 convert_local_reference_stmt, convert_tramp_reference_stmt,
13654 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
13655 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
13656 or GIMPLE_OMP_TASK.
13658 PR tree-optimization/89027
13659 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
13660 for "omp simd array" variables.
13662 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
13665 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
13666 force the alignment of m_val.
13668 2019-01-24 Richard Biener <rguenther@suse.de>
13671 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
13672 When in "legacy" debug mode make sure to reset self-origins.
13674 2019-01-24 Martin Liska <mliska@suse.cz>
13676 PR gcov-profile/88994
13677 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
13678 result will be always smaller or equal to the original.
13679 * gcov.c (mangle_name): Fix else branch where we should
13680 also copy to PTR and shift the pointer.
13682 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
13684 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
13685 * vr-values.c (find_case_label_ranges): Fix a comment typo.
13687 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
13689 * common/config/i386/i386-common.c
13690 (OPTION_MASK_ISA_ENQCMD_SET,
13691 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
13692 (ix86_handle_option): Handle -menqcmd.
13693 * config.gcc (enqcmdintrin.h): New header file.
13694 * config/i386/cpuid.h (bit_ENQCMD): New bit.
13695 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
13697 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
13699 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
13700 __builtin_ia32_enqcmds): New builtins.
13701 * config/i386/i386-c.c (__ENQCMD__): New macro.
13702 * config/i386/i386-option.c (ix86_target_string): Add
13704 (ix86_valid_target_attribute_inner_p): Likewise.
13705 * config/i386/i386-expand.c
13706 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
13707 IX86_BUILTIN_ENQCMDS.
13708 * config/i386/i386.h (TARGET_ENQCMD): New.
13709 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
13710 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
13711 (movdir64b_<mode>): Parameterize to enable share expansion code
13712 with ENQCMD in function ix86_expand_builtin.
13713 * config/i386/i386.opt: Add -menqcmd.
13714 * config/i386/immintrin.h: Include enqcmdintrin.h.
13715 * config/i386/enqcmdintrin.h: New intrinsic file.
13716 * doc/invoke.texi: Add -menqcmd.
13718 2019-01-23 Bin Cheng <bin.cheng@arm.com>
13719 Steve Ellcey <sellcey@marvell.com>
13722 * recog.c (address_operand): Return false on wrong mode for address.
13723 (constrain_operands): Check for mode with 'p' constraint.
13725 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
13728 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
13729 Disparage MMX alternative.
13730 (sse2_cvtpd2pi): Ditto.
13731 (sse2_cvttpd2pi): Ditto.
13733 2019-01-23 David Malcolm <dmalcolm@redhat.com>
13736 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
13737 use-after-free of the result of
13738 aarch64_get_extension_string_for_isa_flags.
13740 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13743 * doc/extend.texi: Document break and continue behavior in
13744 statement expressions.
13746 2019-01-23 Richard Biener <rguenther@suse.de>
13748 PR tree-optimization/89008
13749 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
13750 not leave another stray operand.
13752 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13754 * BASE-VER: Bump to 9.0.1.
13756 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
13758 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
13759 thunk that returns by reference, use the type of the return object
13760 of the thunk instead of that of the alias to build the dereference.
13762 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
13764 * config/arc/atomic.md: Add operand to DMB instruction.
13766 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13768 PR tree-optimization/88964
13769 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
13770 build_zero_cst instead of build_int_cst. Return false for loop
13771 invariants which honor signed zeros.
13773 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
13775 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
13777 2019-01-22 Jakub Jelinek <jakub@redhat.com>
13780 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
13781 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
13782 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
13784 PR middle-end/88968
13785 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
13786 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
13789 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
13790 Disable for little endian.
13792 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
13795 * config/arm/arm.c (arm_needs_double_word_align): Check
13796 DECL_BIT_FIELD_TYPE.
13798 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
13799 H.J. Lu <hongjiu.lu@intel.com>
13802 * config/i386/i386-builtin.def: Add mask2 to all builtin
13803 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
13805 * config/i386/i386.c (BDESC): Add mask2 to the definition.
13806 (BDESC_FIRST): Likewise.
13807 (define_builtin): Add an argument for mask2. Updated to handle
13808 both ix86_isa_flags and ix86_isa_flags2.
13809 (define_builtin_const): Likewise.
13810 (define_builtin_pure): Likewise.
13811 (define_builtin2): Deleted.
13812 (define_builtin_const2): Likewise.
13813 (builtin_description): Add a member, mask2.
13814 (bdesc_*): Add mask2 to builtin initializations.
13815 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
13816 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
13818 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
13820 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
13823 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
13826 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
13829 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
13830 alignment is dominated by a bitfield with 64-bit aligned base type.
13831 (arm_function_arg): Emit a warning if the alignment has changed since
13832 earlier GCC releases.
13833 (arm_function_arg_boundary): Likewise.
13834 (arm_setup_incoming_varargs): Likewise.
13836 2019-01-22 Richard Biener <rguenther@suse.de>
13838 PR tree-optimization/88862
13839 * graphite-scop-detection.c
13840 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
13842 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
13844 * doc/extend.tex (AMD GCN Function Attributes): New section.
13845 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
13846 * doc/invoke.texi (AMD GCN Options): New section.
13847 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
13849 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
13851 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
13852 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
13854 2019-01-22 Jakub Jelinek <jakub@redhat.com>
13856 PR tree-optimization/88044
13857 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
13858 is false in the first iteration, but !every_iteration, return false
13859 instead of true with niter->niter zero.
13861 PR rtl-optimization/88904
13862 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
13863 any nonequal registers before processing BB_END (b).
13866 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
13868 (expand_binop_directly, expand_doubleword_clz,
13869 expand_doubleword_popcount, expand_ctz, expand_ffs,
13870 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
13872 PR rtl-optimization/49429
13874 PR rtl-optimization/86334
13876 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
13877 addressable from here...
13878 (emit_block_op_via_libcall): ... to here.
13880 2019-01-22 Richard Biener <rguenther@suse.de>
13882 * tree-vect-loop.c (vect_analyze_loop_operations): Use
13883 auto_vec for cost vector to fix memleak.
13884 (vectorize_fold_left_reduction): Properly gather SLP defs.
13885 (vectorizable_comparison): Do not swap operands to properly
13888 2019-01-22 Alan Modra <amodra@gmail.com>
13891 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
13892 stays a reg. Allow a const_int.
13893 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
13894 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
13895 (IS_NOMARK_TLSGETADDR): Define.
13896 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
13897 (rs6000_output_tlsargs): New function.
13898 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
13899 __tls_get_addr call takes an arg.
13900 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
13901 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
13903 (call_value_nonlocal_sysv): ..or here, delete split.
13904 (tls_gdld_nomark): Delete.
13905 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
13906 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
13907 (call_value_nonlocal_sysv): Likewise.
13908 (call_value_nonlocal_sysv_secure): Likewise.
13909 (call_value_nonlocal_aix): Likewise.
13910 (call_value_indirect_aix): Likewise.
13911 (call_value_indirect_elfv2): Likewise.
13912 (call_value_local32, call_value_local64): Disable for no-mark tls.
13913 (call_value_local_aix): Likewise.
13915 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
13918 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
13919 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
13921 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
13923 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
13924 string contents as hash_map keys.
13926 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13929 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
13930 for rvalue context. Handle rvalues correctly. Use min_align_of_type
13931 instead of TYPE_ALIGN.
13932 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
13933 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
13934 pointer from TYPE_STUB_DECL.
13936 2019-01-21 Richard Biener <rguenther@suse.de>
13938 PR tree-optimization/88934
13939 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
13940 at the possibly non-constant operand.
13941 (vect_get_constant_vectors): Adjust.
13943 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
13946 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
13947 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
13948 instead of _X86INTRIN_H_INCLUDED.
13949 * onfig/i386/clwbintrin.h: Likewise.
13950 * config/i386/pkuintrin.h: Likewise.
13951 * config/i386/prfchwintrin.h: Likewise.
13952 * config/i386/rdseedintrin.h: Likewise.
13953 * config/i386/wbnoinvdintrin.h: Likewise.
13954 * config/i386/xsavecintrin.h: Likewise.
13955 * config/i386/xsavesintrin.h: Likewise.
13956 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
13957 * config/i386/xsaveintrin.h: Likewise.
13958 * config/i386/xsaveoptintrin.h: Likewise.
13959 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
13960 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
13961 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
13962 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
13963 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
13964 * config/i386/immintrin.h: Here.
13966 2019-01-20 Martin Jambor <mjambor@suse.cz>
13969 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
13970 with aa_walk_budget.
13971 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
13972 aa_walk_budget_p parameter.
13973 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
13974 walk. Updated all callers.
13975 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
13976 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
13978 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
13979 parameter info. Extract info from fbi. Pass fbi to recursive calls
13980 and to unmodified_parm.
13981 (phi_result_unknown_predicate): New parameter fbi, removed parameter
13982 info, updated call to will_be_nonconstant_expr_predicate.
13983 (param_change_prob): New parameter fbi, limit AA walking.
13984 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
13985 calls to various above functions.
13986 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
13987 parameter. Use it to limit AA walking.
13988 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
13989 fbi, limit AA walk.
13990 (detect_type_change): New parameter fbi, pass it on to
13991 detect_type_change_from_memory_writes.
13992 (detect_type_change_ssa): Likewise.
13993 (aa_overwalked): Removed.
13994 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
13995 accordingly, adjust to the neew AA limiting scheme.
13996 (parm_ref_data_preserved_p): Likewise.
13997 (ipa_compute_jump_functions_for_edge): Adjust call to
13999 (ipa_analyze_call_uses): Likewise.
14000 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
14001 (ipa_analyze_node): Initialize aa_walk_budget.
14002 (ipcp_transform_function): Likewise.
14003 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
14004 to get_dynamic_type.
14006 2019-01-19 Jakub Jelinek <jakub@redhat.com>
14008 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
14009 outside of #if CHECKING_P code.
14011 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
14013 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
14014 New function, split out from...
14015 (loop_versioning::analyze_stride): ...here.
14016 (loop_versioning::find_per_loop_multiplication): Use gassign.
14017 (loop_versioning::analyze_term_using_scevs): Return a success code.
14018 (loop_versioning::analyze_arbitrary_term): New function.
14019 (loop_versioning::analyze_address_fragment): Use
14020 analyze_arbitrary_term if all else fails.
14022 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
14025 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
14028 2019-01-18 Richard Biener <rguenther@suse.de>
14030 PR tree-optimization/88903
14031 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
14032 scalar stmts a SLP shift amount is composed of when detecting
14035 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
14038 * config/arm/arm-cpus.in (mp): New feature.
14039 (sec): New feature.
14040 (fgroup ARMv7ve): Add mp and sec features.
14041 (arch armv7-a): Add options to allow mp and sec extensions.
14042 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
14043 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
14044 extenstions to the base architecture.
14045 (cpu cortex-a8): Add sec extension to the base architecture.
14046 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
14047 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
14048 variants down to the base v7-a varaint.
14049 * config/arm/t-multilib (v7_a_arch_variants): New variable.
14050 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
14051 of permitted extensions for -march=armv7-a and for
14052 -mcpu=generic-armv7-a.
14054 2019-01-18 Martin Liska <mliska@suse.cz>
14056 * params.def: Fix comment.
14057 * tree-profile.c (gimple_init_gcov_profiler): Bump function
14059 (gimple_gen_ic_func_profiler): Likewise.
14061 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14063 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
14064 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
14065 and put in error checks for stack protector guard options.
14066 (aarch64_stack_protect_guard): New.
14067 (TARGET_STACK_PROTECT_GUARD): Define.
14068 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
14069 (reg_stack_protect_address<mode>): New.
14070 (stack_protect_set): Adjust for SSP_GLOBAL.
14071 (stack_protect_test): Likewise.
14072 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
14073 (-mstack-protector-guard): Likewise.
14074 (-mstack-protector-guard-offset): Likewise.
14076 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14078 PR tree-optimization/86214
14079 * tree-inline.h (struct copy_body_data): Add
14080 add_clobbers_to_eh_landing_pads member.
14081 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
14082 (copy_edges_for_bb): Call it if EH edge destination is <
14083 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
14084 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
14085 if flag_stack_reuse != SR_NONE and clear it afterwards.
14087 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
14090 * doc/install.texi (with-multilib-list): Document for aarch64.
14092 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14095 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
14096 (("..."))) with ("...").
14098 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14100 * doc/extend.texi (Built-in Functions for Memory Model Aware
14101 Atomic Operations): Document atomic fetch and nand.
14103 2019-01-18 Martin Liska <mliska@suse.cz>
14104 Richard Biener <rguenther@suse.de>
14106 PR middle-end/88587
14107 * cgraph.h (create_version_clone_with_body): Add new argument
14109 * cgraphclones.c (cgraph_node::create_version_clone): Add
14110 DECL_ATTRIBUTES to a newly created decl. And call
14111 valid_attribute_p so that proper cl_target_optimization_node
14112 is set for the newly created declaration.
14113 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
14115 (expand_target_clones): Do not call valid_attribute_p, it must
14117 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
14120 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14123 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
14124 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
14125 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
14127 2019-01-17 Martin Sebor <msebor@redhat.com>
14129 PR middle-end/88273
14130 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
14131 Handle anti-ranges the same as no range at all.
14133 2018-01-17 Steve Ellcey <sellcey@cavium.com>
14135 * config/aarch64/aarch64.c (cgraph.h): New include.
14136 (intl.h): New include.
14137 (supported_simd_type): New function.
14138 (currently_supported_simd_type): Ditto.
14139 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
14140 (aarch64_simd_clone_adjust): Ditto.
14141 (aarch64_simd_clone_usable): Ditto.
14142 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
14143 (TARGET_SIMD_CLONE_ADJUST): Ditto.
14144 (TARGET_SIMD_CLONE_USABLE): Ditto.
14145 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
14146 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
14149 2019-01-17 Martin Sebor <msebor@redhat.com>
14151 PR tree-optimization/88800
14152 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
14153 NO_WARNING bit here. Avoid folding out-of-bounds calls.
14154 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
14155 redundant argument. Add new argument and issue diagnostics under
14156 its control. Detect out-of-bounds access even with warnings
14158 (check_bounds_or_overlap): Change return type. Add argument.
14159 (wrestrict_dom_walker::check_call): Adjust.
14160 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
14161 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
14162 check_bounds_or_overlap's return value.
14163 (handle_builtin_stxncpy): Same.
14164 (handle_builtin_strcat): Same.
14166 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14167 Kwok Cheung Yeung <kcy@codesourcery.com>
14168 Julian Brown <julian@codesourcery.com>
14169 Tom de Vries <tom@codesourcery.com>
14171 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
14173 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14175 * doc/sourcebuild.texi: Document dg-require-effective-target
14176 llvm_binutils and offload_gcn.
14178 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14179 Kwok Cheung Yeung <kcy@codesourcery.com>
14180 Julian Brown <julian@codesourcery.com>
14181 Tom de Vries <tom@codesourcery.com>
14183 * doc/sourcebuild.texi: Document dg-required-effective-target
14186 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14187 Kwok Cheung Yeung <kcy@codesourcery.com>
14188 Julian Brown <julian@codesourcery.com>
14189 Tom de Vries <tom@codesourcery.com>
14190 Jan Hubicka <hubicka@ucw.cz>
14191 Martin Jambor <mjambor@suse.cz>
14193 * config.gcc: Add amdgcn*-*-amdhsa configuration.
14194 * configure.ac: Check for dlopen.
14195 * configure: Regenerate.
14197 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14198 Kwok Cheung Yeung <kcy@codesourcery.com>
14199 Julian Brown <julian@codesourcery.com>
14200 Tom de Vries <tom@codesourcery.com>
14201 Jan Hubicka <hubicka@ucw.cz>
14202 Martin Jambor <mjambor@suse.cz>
14204 * common/config/gcn/gcn-common.c: New file.
14205 * config/gcn/driver-gcn.c: New file.
14206 * config/gcn/gcn-builtins.def: New file.
14207 * config/gcn/gcn-hsa.h: New file.
14208 * config/gcn/gcn-modes.def: New file.
14209 * config/gcn/gcn-opts.h: New file.
14210 * config/gcn/gcn-passes.def: New file.
14211 * config/gcn/gcn-protos.h: New file.
14212 * config/gcn/gcn-run.c: New file.
14213 * config/gcn/gcn-tree.c: New file.
14214 * config/gcn/gcn.c: New file.
14215 * config/gcn/gcn.h: New file.
14216 * config/gcn/gcn.opt: New file.
14217 * config/gcn/t-gcn-hsa: New file.
14219 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14220 Kwok Cheung Yeung <kcy@codesourcery.com>
14221 Julian Brown <julian@codesourcery.com>
14222 Tom de Vries <tom@codesourcery.com>
14223 Jan Hubicka <hubicka@ucw.cz>
14224 Martin Jambor <mjambor@suse.cz>
14226 * config/gcn/constraints.md: New file.
14227 * config/gcn/gcn-valu.md: New file.
14228 * config/gcn/gcn.md: New file.
14229 * config/gcn/predicates.md: New file.
14231 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
14233 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
14234 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
14235 (stmt_uses_0_or_null_in_undefined_way): Likewise.
14236 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
14238 2019-01-17 Tamar Christina <tamar.christina@arm.com>
14241 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
14242 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
14243 it and document registers.
14245 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14247 * config/aarch64/aarch64.c (ares_tunings): Define.
14248 * config/aarch64/aarch64-cores.def (ares): Use the above.
14250 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14254 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
14256 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
14257 (_mm512_fixupimm_round_pd): Update parameters and builtin.
14258 (_mm512_maskz_fixupimm_round_pd): Ditto.
14259 (_mm512_fixupimm_round_ps): Ditto.
14260 (_mm512_maskz_fixupimm_round_ps): Ditto.
14261 (_mm_fixupimm_round_sd): Ditto.
14262 (_mm_maskz_fixupimm_round_sd): Ditto.
14263 (_mm_fixupimm_round_ss): Ditto.
14264 (_mm_maskz_fixupimm_round_ss): Ditto.
14265 (_mm512_fixupimm_pd): Ditto.
14266 (_mm512_maskz_fixupimm_pd): Ditto.
14267 (_mm512_fixupimm_ps): Ditto.
14268 (_mm512_maskz_fixupimm_ps): Ditto.
14269 (_mm_fixupimm_sd): Ditto.
14270 (_mm_maskz_fixupimm_sd): Ditto.
14271 (_mm_fixupimm_ss): Ditto.
14272 (_mm_maskz_fixupimm_ss): Ditto.
14273 (_mm512_mask_fixupimm_round_pd): Update builtin.
14274 (_mm512_mask_fixupimm_round_ps): Ditto.
14275 (_mm_mask_fixupimm_round_sd): Ditto.
14276 (_mm_mask_fixupimm_round_ss): Ditto.
14277 (_mm512_mask_fixupimm_pd): Ditto.
14278 (_mm512_mask_fixupimm_ps): Ditto.
14279 (_mm_mask_fixupimm_sd): Ditto.
14280 (_mm_mask_fixupimm_ss): Ditto.
14281 * config/i386/avx512vlintrin.h:
14282 (_mm256_fixupimm_pd): Update parameters and builtin.
14283 (_mm256_maskz_fixupimm_pd): Ditto.
14284 (_mm256_fixupimm_ps): Ditto.
14285 (_mm256_maskz_fixupimm_ps): Ditto.
14286 (_mm_fixupimm_pd): Ditto.
14287 (_mm_maskz_fixupimm_pd): Ditto.
14288 (_mm_fixupimm_ps): Ditto.
14289 (_mm_maskz_fixupimm_ps): Ditto.
14290 (_mm256_mask_fixupimm_pd): Update builtin.
14291 (_mm256_mask_fixupimm_ps): Ditto.
14292 (_mm_mask_fixupimm_pd): Ditto.
14293 (_mm_mask_fixupimm_ps): Ditto.
14294 * config/i386/i386-builtin-types.def: Add new types and remove
14296 * config/i386/i386-builtin.def: Update builtin definitions.
14297 * config/i386/i386.c: Handle new builtin types and remove useless ones.
14298 * config/i386/sse.md: Update VFIXUPIMM* patterns.
14299 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14300 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14301 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
14302 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14303 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14304 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
14305 * config/i386/subst.md:
14306 (round_saeonly_sd_mask_operand4): Add new subst_attr.
14307 (round_saeonly_sd_mask_op4): Ditto.
14308 (round_saeonly_expand_operand5): Ditto.
14309 (round_saeonly_expand): Update.
14311 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14315 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
14317 * config/i386/sse.md: Combine VFIXUPIMM* patterns
14318 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14319 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14320 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
14321 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14322 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14323 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
14325 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14329 2018-12-15 Jakub Jelinek <jakub@redhat.com>
14332 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
14333 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
14334 instead of UNSPEC_FIXUPIMM.
14336 2019-01-17 Richard Biener <rguenther@suse.de>
14339 * dwarf2out.c (want_pubnames): Never generate pubnames sections
14340 and friends for the LTO part of debug info.
14342 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14344 PR tree-optimization/86214
14345 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14348 PR rtl-optimization/88870
14349 * dce.c (deletable_insn_p): Never delete const/pure calls that can
14350 throw if we can't alter the cfg or delete dead exceptions.
14351 (mark_insn): Don't call find_call_stack_args for such calls.
14353 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
14355 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
14356 prototypes for vec_st.
14357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
14358 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
14359 mainly on signed/unsigned long long and double.
14361 2019-01-16 David Malcolm <dmalcolm@redhat.com>
14364 * combine.c (delete_noop_moves): Convert to "bool" return,
14365 returning true if any edges are eliminated.
14366 (combine_instructions): Also return true if delete_noop_moves
14369 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14371 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
14372 correct max nunits for endian swap.
14373 (aarch64_expand_fcmla_builtin): Correct subreg code.
14374 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14375 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
14378 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
14380 * config/alpha/alpha.c (alpha_gimplify_va_arg):
14381 Handle split indirect COMPLEX_TYPE arguments.
14383 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
14386 * config/aarch64/aarch64-modes.def: Add comment about how the carry
14387 bit is set by add and compare.
14388 (CC_ADC): New CC_MODE.
14389 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
14390 to cache the code and mode of X. Adjust the shape of a CC_Cmode
14391 comparison. Add detection for CC_ADCmode.
14392 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
14394 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
14395 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
14396 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
14397 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
14398 to eliminate the need for zero-extending the operands.
14399 (add<mode>3_compareC_imm): Delete. Merge into ...
14400 (add<mode>3_compareC): ... this. Restructure the comparison to
14401 eliminate the need for zero-extending the operands.
14402 (add<mode>3_carryin): Use LTU for the overflow detection.
14403 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
14404 Reexpress comparison for overflow.
14405 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
14406 (add<mode>3_carryinC): Likewise.
14407 (add<mode>3_carryinV): Use LTU for carry between partials.
14408 * config/aarch64/predicates.md (aarch64_carry_operation): Update
14409 handling of CC_Cmode and add CC_ADCmode.
14410 (aarch64_borrow_operation): Likewise.
14412 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14414 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
14415 Remove patternmode.
14416 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
14417 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14418 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
14419 Remove endianness conversion.
14421 2019-01-16 Martin Liska <mliska@suse.cz>
14423 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14425 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14427 * gcc.c (add_sysrooted_hdrs_prefix): New function.
14428 (path_prefix_reset): Move up in the source file.
14429 (find_fortran_preinclude_file): Make complex search for the
14430 fortran header files.
14432 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
14434 * godump.c (go_output_typedef): When outputting a typedef, refer
14435 to the underlying type by its name and not its structure.
14437 2019-01-15 David Malcolm <dmalcolm@redhat.com>
14440 * tree.c (build_function_type): Assert that arg_types is not
14443 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
14445 PR inline-asm/52813
14446 * doc/extend.texi: Document that listing the stack pointer in the
14447 clobber list of an asm is a deprecated feature.
14448 * common.opt (Wdeprecated): Moved from c-family/c.opt.
14449 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
14450 warning instead of an error for clobbers of the stack pointer.
14451 Add a note explaining why.
14453 2019-01-15 Richard Biener <rguenther@suse.de>
14456 * dwarf2out.c (gen_member_die): Do not generate inheritance
14459 2019-01-15 Richard Biener <rguenther@suse.de>
14461 PR tree-optimization/88855
14462 * tree-if-conv.c (combine_blocks): Collect
14463 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14465 2019-01-15 Tom de Vries <tdevries@suse.de>
14468 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14469 lhs == NULL_TREE for gang-level reduction.
14471 2019-01-15 Richard Biener <rguenther@suse.de>
14472 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14475 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
14476 return true if SSA_NAME is already marked in visited bitmap.
14477 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
14479 2019-01-15 Jakub Jelinek <jakub@redhat.com>
14481 PR tree-optimization/88775
14482 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
14483 equal == 0 equality pointer comparisons some more if compared in
14484 integral types and either one points to an automatic var and the
14485 other to a global, or we can prove at least one points to the middle
14486 or both point to start or both point to end.
14488 2019-01-14 Andi Kleen <ak@linux.intel.com>
14490 * Makefile.in: Lower autofdo sampling rate by 10x.
14491 * Makefile.tpl: Dito.
14493 2019-01-14 Tom Honermann <tom@honermann.net>
14495 * defaults.h: Define CHAR8_TYPE.
14497 2019-01-14 Martin Sebor <msebor@redhat.com>
14500 * doc/extend.texi (Darwin Format Checks): Clarify.
14502 2019-01-14 Richard Biener <rguenther@suse.de>
14504 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14505 whether we are in (simplify ...) or (match ...) context.
14507 2019-01-14 Jakub Jelinek <jakub@redhat.com>
14509 PR rtl-optimization/88796
14510 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
14511 * cfgexpand.c (stack_protect_prologue): Initialize
14512 crtl->stack_protect_guard_decl.
14513 * function.c (stack_protect_epilogue): Use it instead of calling
14514 targetm.stack_protect_guard again.
14515 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
14516 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
14517 crtl->stack_protect_guard_decl.
14518 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
14519 on the returned MEM_EXPR.
14521 2019-01-12 Tom de Vries <tdevries@suse.de>
14523 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
14524 vector length using -fopenacc-dim.
14526 2019-01-12 Tom de Vries <tdevries@suse.de>
14528 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
14529 lengths into account.
14531 2019-01-12 Svante Signell <svante.signell@gmail.com>
14533 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
14534 (TARGET_CAN_SPLIT_STACK): Define.
14535 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
14537 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
14539 * params.def (inline-unit-growth): Set to 40.
14541 2019-01-12 Jakub Jelinek <jakub@redhat.com>
14543 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
14545 2019-01-12 Tom de Vries <tdevries@suse.de>
14547 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
14548 region calling vector-partitionable routine, set default_vector_length
14551 2019-01-12 Tom de Vries <tdevries@suse.de>
14553 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
14554 variable default_vector_length.
14556 2019-01-12 Tom de Vries <tdevries@suse.de>
14558 PR middle-end/88703
14559 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
14560 from oacc_default_dims, as oacc_validate_dims would do it, and apply
14563 2019-01-12 Tom de Vries <tdevries@suse.de>
14565 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
14566 (nvptx_goacc_validate_dims): Add used parameter.
14567 * doc/tm.texi: Regenerate.
14568 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
14569 argument to call to targetm.goacc.validate_dims.
14570 (default_goacc_validate_dims): Add used
14572 * target.def (validate_dims): Add used parameter in DEFHOOK.
14573 * targhooks.h (default_goacc_validate_dims): Add used parameter.
14575 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14577 PR middle-end/85956
14579 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
14581 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
14582 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
14583 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
14584 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
14586 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
14588 PR rtl-optimization/87305
14590 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
14591 for little endian pseudos used as paradoxical subreg.
14593 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14595 PR tree-optimization/88693
14596 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
14597 for STRING_CSTs that don't contain any NUL characters in the first
14598 TREE_STRING_LENGTH bytes.
14600 2019-01-11 Alan Modra <amodra@gmail.com>
14604 * genattrtab.c (min_fn): Don't translate values.
14605 (min_attr_value): Return INT_MAX when the value can't be calculated.
14606 Return minimum among any values that can be calculated.
14607 (max_attr_value): Adjust.
14609 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14611 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
14613 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14615 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14616 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
14617 (aarch64_return_call_with_max_clobbers): New function.
14618 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
14619 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
14621 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
14622 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
14623 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
14624 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
14625 * cselib.c (cselib_process_insn): Add argument to
14626 targetm.hard_regno_call_part_clobbered call.
14627 * ira-conflicts.c (ira_build_conflicts): Ditto.
14628 * ira-costs.c (ira_tune_allocno_costs): Ditto.
14629 * lra-constraints.c (inherit_reload_reg): Ditto.
14630 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
14631 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
14632 argument. Call targetm.return_call_with_max_clobbers.
14633 Add argument to targetm.hard_regno_call_part_clobbered call.
14634 (calls_have_same_clobbers_p): New function.
14635 (process_bb_lives): Add call_insn and last_call_insn variables.
14636 Pass call_insn to check_pseudos_live_through_calls.
14637 Modify if stmt to check targetm.return_call_with_max_clobbers.
14638 Update setting of flush variable.
14639 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
14641 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
14642 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
14643 targetm.hard_regno_call_part_clobbered call.
14644 * reginfo.c (choose_hard_reg_mode): Ditto.
14645 * regrename.c (check_new_reg_p): Ditto.
14646 * reload.c (find_equiv_reg): Ditto.
14647 * reload1.c (emit_reload_insns): Ditto.
14648 * sched-deps.c (deps_analyze_insn): Ditto.
14649 * sel-sched.c (init_regs_for_mode): Ditto.
14650 (mark_unavailable_hard_regs): Ditto.
14651 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
14652 * target.def (hard_regno_call_part_clobbered): Add insn argument.
14653 (return_call_with_max_clobbers): New target function.
14654 * doc/tm.texi: Regenerate.
14655 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
14656 * hooks.c (hook_bool_uint_mode_false): Change to
14657 hook_bool_insn_uint_mode_false.
14658 * hooks.h (hook_bool_uint_mode_false): Ditto.
14660 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14662 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14663 (aarch64_remove_extra_call_preserved_regs): New function.
14664 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
14665 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
14666 * doc/tm.texi: Regenerate.
14667 * final.c (get_call_reg_set_usage): Call new hook.
14668 * target.def (remove_extra_call_preserved_regs): New hook.
14669 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
14670 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
14672 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14675 * passes.c (finish_optimization_passes): Call print_combine_total_stats
14676 inside of pass_combine_1 dump rather than pass_profile_1.
14678 2019-01-11 Tom de Vries <tdevries@suse.de>
14680 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
14681 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
14682 (PTX_NUM_PER_WORKER_BARRIERS): Define.
14683 (nvptx_apply_dim_limits): Prevent vector_length 64 and
14686 2019-01-11 Tom de Vries <tdevries@suse.de>
14688 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
14690 2019-01-11 Jan Beulich <jbeulich@suse.com>
14692 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
14693 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
14694 sse2_cvtsi2sd): Add {l}.
14695 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
14698 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14701 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
14703 (*float<floatunssuffix>v2div2sf2): New define_insn.
14704 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
14705 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
14706 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
14707 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
14708 match_operands with "const0_operand" "C".
14710 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14712 * config/aarch64/aarch64-builtins.c
14713 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
14714 (aarch64_init_simd_builtins): ...Here
14716 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
14718 PR rtl-optimization/87305
14720 (setup_live_pseudos_and_spill_after_risky_transforms): Check
14721 allocation for big endian pseudos used as paradoxical subregs and
14722 spill them if it is wrong.
14723 * lra-constraints.c (lra_constraints): Add a comment.
14725 2019-01-10 Richard Biener <rguenther@suse.de>
14727 PR tree-optimization/88792
14728 * tree-ssa-pre.c (get_representative_for): Do not return a
14731 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14733 PR middle-end/84877
14735 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
14736 (assign_parm_setup_block): Do the argument slot realignment here
14739 2019-01-10 Stefan Agner <stefan@agner.ch>
14742 * config/arm/arm.c (arm_option_override_internal): Force
14743 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
14745 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14748 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
14751 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14753 * config/arm/arm-builtins.c
14754 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
14755 (MAC_LANE_PAIR_QUALIFIERS): New.
14756 (arm_expand_builtin_args): Use it.
14757 (arm_expand_builtin_1): Likewise.
14758 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
14759 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
14760 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
14761 * config/arm/arm_neon.h:
14762 (vcadd_rot90_f16): New.
14763 (vcaddq_rot90_f16): New.
14764 (vcadd_rot270_f16): New.
14765 (vcaddq_rot270_f16): New.
14768 (vcmla_lane_f16): New.
14769 (vcmla_laneq_f16): New.
14770 (vcmlaq_lane_f16): New.
14771 (vcmlaq_laneq_f16): New.
14772 (vcmla_rot90_f16): New.
14773 (vcmlaq_rot90_f16): New.
14774 (vcmla_rot90_lane_f16): New.
14775 (vcmla_rot90_laneq_f16): New.
14776 (vcmlaq_rot90_lane_f16): New.
14777 (vcmlaq_rot90_laneq_f16): New.
14778 (vcmla_rot180_f16): New.
14779 (vcmlaq_rot180_f16): New.
14780 (vcmla_rot180_lane_f16): New.
14781 (vcmla_rot180_laneq_f16): New.
14782 (vcmlaq_rot180_lane_f16): New.
14783 (vcmlaq_rot180_laneq_f16): New.
14784 (vcmla_rot270_f16): New.
14785 (vcmlaq_rot270_f16): New.
14786 (vcmla_rot270_lane_f16): New.
14787 (vcmla_rot270_laneq_f16): New.
14788 (vcmlaq_rot270_lane_f16): New.
14789 (vcmlaq_rot270_laneq_f16): New.
14790 (vcadd_rot90_f32): New.
14791 (vcaddq_rot90_f32): New.
14792 (vcadd_rot270_f32): New.
14793 (vcaddq_rot270_f32): New.
14796 (vcmla_lane_f32): New.
14797 (vcmla_laneq_f32): New.
14798 (vcmlaq_lane_f32): New.
14799 (vcmlaq_laneq_f32): New.
14800 (vcmla_rot90_f32): New.
14801 (vcmlaq_rot90_f32): New.
14802 (vcmla_rot90_lane_f32): New.
14803 (vcmla_rot90_laneq_f32): New.
14804 (vcmlaq_rot90_lane_f32): New.
14805 (vcmlaq_rot90_laneq_f32): New.
14806 (vcmla_rot180_f32): New.
14807 (vcmlaq_rot180_f32): New.
14808 (vcmla_rot180_lane_f32): New.
14809 (vcmla_rot180_laneq_f32): New.
14810 (vcmlaq_rot180_lane_f32): New.
14811 (vcmlaq_rot180_laneq_f32): New.
14812 (vcmla_rot270_f32): New.
14813 (vcmlaq_rot270_f32): New.
14814 (vcmla_rot270_lane_f32): New.
14815 (vcmla_rot270_laneq_f32): New.
14816 (vcmlaq_rot270_lane_f32): New.
14817 (vcmlaq_rot270_laneq_f32): New.
14818 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
14819 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
14820 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
14821 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
14822 vcmlaq_lane270): New.
14823 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14824 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
14825 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
14826 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
14827 (arm_option_reconfigure_globals): Use them.
14828 * config/arm/iterators.md (VDF, VQ_HSF): New.
14829 (VCADD, VCMLA): New.
14830 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
14831 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
14833 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
14834 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
14836 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14838 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14839 Add qualifier_lane_pair_index.
14840 (emit-rtl.h): Include.
14841 (TYPES_QUADOP_LANE_PAIR): New.
14842 (aarch64_simd_expand_args): Use it.
14843 (aarch64_simd_expand_builtin): Likewise.
14844 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
14846 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
14847 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
14848 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
14849 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
14850 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
14851 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
14852 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
14853 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
14854 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
14855 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
14856 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
14857 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
14858 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
14859 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14860 Add __ARM_FEATURE_COMPLEX.
14861 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
14862 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
14863 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
14864 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
14865 fcmlaq_lane270): New.
14866 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14867 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
14868 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
14869 * config/aarch64/arm_neon.h:
14870 (vcadd_rot90_f16): New.
14871 (vcaddq_rot90_f16): New.
14872 (vcadd_rot270_f16): New.
14873 (vcaddq_rot270_f16): New.
14876 (vcmla_lane_f16): New.
14877 (vcmla_laneq_f16): New.
14878 (vcmlaq_lane_f16): New.
14879 (vcmlaq_rot90_lane_f16): New.
14880 (vcmla_rot90_laneq_f16): New.
14881 (vcmla_rot90_lane_f16): New.
14882 (vcmlaq_rot90_f16): New.
14883 (vcmla_rot90_f16): New.
14884 (vcmlaq_laneq_f16): New.
14885 (vcmla_rot180_laneq_f16): New.
14886 (vcmla_rot180_lane_f16): New.
14887 (vcmlaq_rot180_f16): New.
14888 (vcmla_rot180_f16): New.
14889 (vcmlaq_rot90_laneq_f16): New.
14890 (vcmlaq_rot270_laneq_f16): New.
14891 (vcmlaq_rot270_lane_f16): New.
14892 (vcmla_rot270_laneq_f16): New.
14893 (vcmlaq_rot270_f16): New.
14894 (vcmla_rot270_f16): New.
14895 (vcmlaq_rot180_laneq_f16): New.
14896 (vcmlaq_rot180_lane_f16): New.
14897 (vcmla_rot270_lane_f16): New.
14898 (vcadd_rot90_f32): New.
14899 (vcaddq_rot90_f32): New.
14900 (vcaddq_rot90_f64): New.
14901 (vcadd_rot270_f32): New.
14902 (vcaddq_rot270_f32): New.
14903 (vcaddq_rot270_f64): New.
14907 (vcmla_lane_f32): New.
14908 (vcmla_laneq_f32): New.
14909 (vcmlaq_lane_f32): New.
14910 (vcmlaq_laneq_f32): New.
14911 (vcmla_rot90_f32): New.
14912 (vcmlaq_rot90_f32): New.
14913 (vcmlaq_rot90_f64): New.
14914 (vcmla_rot90_lane_f32): New.
14915 (vcmla_rot90_laneq_f32): New.
14916 (vcmlaq_rot90_lane_f32): New.
14917 (vcmlaq_rot90_laneq_f32): New.
14918 (vcmla_rot180_f32): New.
14919 (vcmlaq_rot180_f32): New.
14920 (vcmlaq_rot180_f64): New.
14921 (vcmla_rot180_lane_f32): New.
14922 (vcmla_rot180_laneq_f32): New.
14923 (vcmlaq_rot180_lane_f32): New.
14924 (vcmlaq_rot180_laneq_f32): New.
14925 (vcmla_rot270_f32): New.
14926 (vcmlaq_rot270_f32): New.
14927 (vcmlaq_rot270_f64): New.
14928 (vcmla_rot270_lane_f32): New.
14929 (vcmla_rot270_laneq_f32): New.
14930 (vcmlaq_rot270_lane_f32): New.
14931 (vcmlaq_rot270_laneq_f32): New.
14932 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
14933 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
14934 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
14935 (FCADD, FCMLA): New.
14937 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
14939 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
14943 * config/pa/pa.c: Change "can not" to "cannot".
14944 * gimple-ssa-evrp-analyze.c: Likewise.
14945 * ipa-icf.c: Likewise.
14946 * ipa-polymorphic-call.c: Likewise.
14947 * ipa-pure-const.c: Likewise.
14948 * lra-constraints.c: Likewise.
14949 * lra-remat.c: Likewise.
14950 * reload1.c: Likewise.
14951 * reorg.c: Likewise.
14952 * tree-ssa-uninit.c: Likewise.
14954 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
14958 * Makefile.in: Mechanically replace "can not" with "cannot".
14959 * alias.c: Likewise.
14960 * builtins.c: Likewise.
14961 * calls.c: Likewise.
14962 * cgraph.c: Likewise.
14963 * cgraph.h: Likewise.
14964 * cgraphclones.c: Likewise.
14965 * cgraphunit.c: Likewise.
14966 * combine-stack-adj.c: Likewise.
14967 * combine.c: Likewise.
14968 * common/config/i386/i386-common.c: Likewise.
14969 * config/aarch64/aarch64.c: Likewise.
14970 * config/alpha/sync.md: Likewise.
14971 * config/arc/arc.c: Likewise.
14972 * config/arc/predicates.md: Likewise.
14973 * config/arm/arm-c.c: Likewise.
14974 * config/arm/arm.c: Likewise.
14975 * config/arm/arm.h: Likewise.
14976 * config/arm/arm.md: Likewise.
14977 * config/arm/cortex-r4f.md: Likewise.
14978 * config/csky/csky.c: Likewise.
14979 * config/csky/csky.h: Likewise.
14980 * config/darwin-f.c: Likewise.
14981 * config/epiphany/epiphany.md: Likewise.
14982 * config/i386/i386.c: Likewise.
14983 * config/i386/sol2.h: Likewise.
14984 * config/m68k/m68k.c: Likewise.
14985 * config/mcore/mcore.h: Likewise.
14986 * config/microblaze/microblaze.md: Likewise.
14987 * config/mips/20kc.md: Likewise.
14988 * config/mips/sb1.md: Likewise.
14989 * config/nds32/nds32.c: Likewise.
14990 * config/nds32/predicates.md: Likewise.
14991 * config/pa/pa.c: Likewise.
14992 * config/rs6000/e300c2c3.md: Likewise.
14993 * config/rs6000/rs6000.c: Likewise.
14994 * config/s390/s390.h: Likewise.
14995 * config/sh/sh.c: Likewise.
14996 * config/sh/sh.md: Likewise.
14997 * config/spu/vmx2spu.h: Likewise.
14998 * cprop.c: Likewise.
14999 * dbxout.c: Likewise.
15000 * df-scan.c: Likewise.
15001 * doc/cfg.texi: Likewise.
15002 * doc/extend.texi: Likewise.
15003 * doc/fragments.texi: Likewise.
15004 * doc/gty.texi: Likewise.
15005 * doc/invoke.texi: Likewise.
15006 * doc/lto.texi: Likewise.
15007 * doc/md.texi: Likewise.
15008 * doc/objc.texi: Likewise.
15009 * doc/rtl.texi: Likewise.
15010 * doc/tm.texi: Likewise.
15012 * emit-rtl.c: Likewise.
15013 * emit-rtl.h: Likewise.
15014 * except.c: Likewise.
15015 * expmed.c: Likewise.
15016 * expr.c: Likewise.
15017 * fold-const.c: Likewise.
15018 * genautomata.c: Likewise.
15019 * gimple-fold.c: Likewise.
15020 * hard-reg-set.h: Likewise.
15021 * ifcvt.c: Likewise.
15022 * ipa-comdats.c: Likewise.
15023 * ipa-cp.c: Likewise.
15024 * ipa-devirt.c: Likewise.
15025 * ipa-fnsummary.c: Likewise.
15026 * ipa-icf.c: Likewise.
15027 * ipa-inline-transform.c: Likewise.
15028 * ipa-inline.c: Likewise.
15029 * ipa-polymorphic-call.c: Likewise.
15030 * ipa-profile.c: Likewise.
15031 * ipa-prop.c: Likewise.
15032 * ipa-pure-const.c: Likewise.
15033 * ipa-reference.c: Likewise.
15034 * ipa-split.c: Likewise.
15035 * ipa-visibility.c: Likewise.
15037 * ira-build.c: Likewise.
15038 * ira-color.c: Likewise.
15039 * ira-conflicts.c: Likewise.
15040 * ira-costs.c: Likewise.
15041 * ira-int.h: Likewise.
15042 * ira-lives.c: Likewise.
15045 * loop-invariant.c: Likewise.
15046 * loop-unroll.c: Likewise.
15047 * lower-subreg.c: Likewise.
15048 * lra-assigns.c: Likewise.
15049 * lra-constraints.c: Likewise.
15050 * lra-eliminations.c: Likewise.
15051 * lra-lives.c: Likewise.
15052 * lra-remat.c: Likewise.
15053 * lra-spills.c: Likewise.
15055 * lto-cgraph.c: Likewise.
15056 * lto-streamer-out.c: Likewise.
15057 * postreload-gcse.c: Likewise.
15058 * predict.c: Likewise.
15059 * profile-count.h: Likewise.
15060 * profile.c: Likewise.
15061 * recog.c: Likewise.
15063 * reload.c: Likewise.
15064 * reload1.c: Likewise.
15065 * reorg.c: Likewise.
15066 * resource.c: Likewise.
15067 * rtl.def: Likewise.
15069 * rtlanal.c: Likewise.
15070 * sched-deps.c: Likewise.
15071 * sched-ebb.c: Likewise.
15072 * sched-rgn.c: Likewise.
15073 * sel-sched-ir.c: Likewise.
15074 * sel-sched.c: Likewise.
15075 * shrink-wrap.c: Likewise.
15076 * simplify-rtx.c: Likewise.
15077 * symtab.c: Likewise.
15078 * target.def: Likewise.
15079 * toplev.c: Likewise.
15080 * tree-call-cdce.c: Likewise.
15081 * tree-cfg.c: Likewise.
15082 * tree-complex.c: Likewise.
15083 * tree-core.h: Likewise.
15084 * tree-eh.c: Likewise.
15085 * tree-inline.c: Likewise.
15086 * tree-loop-distribution.c: Likewise.
15087 * tree-nrv.c: Likewise.
15088 * tree-profile.c: Likewise.
15089 * tree-sra.c: Likewise.
15090 * tree-ssa-alias.c: Likewise.
15091 * tree-ssa-dce.c: Likewise.
15092 * tree-ssa-dom.c: Likewise.
15093 * tree-ssa-forwprop.c: Likewise.
15094 * tree-ssa-loop-im.c: Likewise.
15095 * tree-ssa-loop-ivcanon.c: Likewise.
15096 * tree-ssa-loop-ivopts.c: Likewise.
15097 * tree-ssa-loop-niter.c: Likewise.
15098 * tree-ssa-phionlycprop.c: Likewise.
15099 * tree-ssa-phiopt.c: Likewise.
15100 * tree-ssa-propagate.c: Likewise.
15101 * tree-ssa-threadedge.c: Likewise.
15102 * tree-ssa-threadupdate.c: Likewise.
15103 * tree-ssa-uninit.c: Likewise.
15104 * tree-ssanames.c: Likewise.
15105 * tree-streamer-out.c: Likewise.
15106 * tree.c: Likewise.
15107 * tree.h: Likewise.
15108 * vr-values.c: Likewise.
15110 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
15112 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
15113 (ix86_split_xorsign): Ditto.
15114 * config/i386/i386.c (ix86_expand_xorsign): New function.
15115 (ix86_split_xorsign): Ditto.
15116 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
15117 (xorsign<mode>3): New expander.
15118 (xorsign<mode>3_1): New insn_and_split pattern.
15119 * config/i386/sse.md (xorsign<mode>3): New expander.
15121 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15123 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
15124 (*tablejump_sp64): Likewise.
15125 (*tablejump<P:mode>): ...this.
15126 (*call_address_sp32): Merge into...
15127 (*call_address_sp64): Likewise.
15128 (*call_address<P:mode>): ...this.
15129 (*call_symbolic_sp32): Merge into...
15130 (*call_symbolic_sp64): Likewise.
15131 (*call_symbolic<P:mode>): ...this.
15132 (call_value): Remove constraint and add predicate.
15133 (*call_value_address_sp32): Merge into...
15134 (*call_value_address_sp64): Likewise.
15135 (*call_value_address<P:mode>): ...this.
15136 (*call_value_symbolic_sp32): Merge into...
15137 (*call_value_symbolic_sp64): Likewise.
15138 (*call_value_symbolic<P:mode>): ...this.
15139 (*sibcall_symbolic_sp32): Merge into...
15140 (*sibcall_symbolic_sp64): Likewise.
15141 (*sibcall_symbolic<P:mode>): ...this.
15142 (sibcall_value): Remove constraint and add predicate.
15143 (*sibcall_value_symbolic_sp32): Merge into...
15144 (*sibcall_value_symbolic_sp64): Likewise.
15145 (*sibcall_value_symbolic<P:mode>): ...this.
15146 (window_save): Minor tweak.
15147 (*branch_sp32): Merge into...
15148 (*branch_sp64): Likewise.
15149 (*branch<P:mode>): ...this.
15151 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15152 James Clarke <jrtc27@jrtc27.com>
15155 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
15156 consistently in TLS address generation and adjust code to the renaming
15157 of patterns. Mark calls to __tls_get_addr as const.
15158 * config/sparc/sparc.md (tgd_hi22): Turn into...
15159 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
15160 (tgd_lo10): Turn into...
15161 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
15162 (tgd_add32): Merge into...
15163 (tgd_add64): Likewise.
15164 (tgd_add<P:mode>): ...this and use Pmode throughout.
15165 (tldm_hi22): Turn into...
15166 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
15167 (tldm_lo10): Turn into...
15168 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
15169 (tldm_add32): Merge into...
15170 (tldm_add64): Likewise.
15171 (tldm_add<P:mode>): ...this and use Pmode throughout.
15172 (tldm_call32): Merge into...
15173 (tldm_call64): Likewise.
15174 (tldm_call<P:mode>): ...this and use Pmode throughout.
15175 (tldo_hix22): Turn into...
15176 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
15177 (tldo_lox10): Turn into...
15178 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
15179 (tldo_add32): Merge into...
15180 (tldo_add64): Likewise.
15181 (tldo_add<P:mode>): ...this and use Pmode throughout.
15182 (tie_hi22): Turn into...
15183 (tie_hi22<P:mode>): ...this and use Pmode throughout.
15184 (tie_lo10): Turn into...
15185 (tie_lo10<P:mode>): ...this and use Pmode throughout.
15186 (tie_ld64): Use DImode throughout.
15187 (tie_add32): Merge into...
15188 (tie_add64): Likewise.
15189 (tie_add<P:mode>): ...this and use Pmode throughout.
15190 (tle_hix22_sp32): Merge into...
15191 (tle_hix22_sp64): Likewise.
15192 (tle_hix22<P:mode>): ...this and use Pmode throughout.
15193 (tle_lox22_sp32): Merge into...
15194 (tle_lox22_sp64): Likewise.
15195 (tle_lox22<P:mode>): ...this and use Pmode throughout.
15196 (*tldo_ldub_sp32): Merge into...
15197 (*tldo_ldub_sp64): Likewise.
15198 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
15199 (*tldo_ldub1_sp32): Merge into...
15200 (*tldo_ldub1_sp64): Likewise.
15201 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
15202 (*tldo_ldub2_sp32): Merge into...
15203 (*tldo_ldub2_sp64): Likewise.
15204 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
15205 (*tldo_ldsb1_sp32): Merge into...
15206 (*tldo_ldsb1_sp64): Likewise.
15207 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
15208 (*tldo_ldsb2_sp32): Merge into...
15209 (*tldo_ldsb2_sp64): Likewise.
15210 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
15211 (*tldo_ldub3_sp64): Use DImode throughout.
15212 (*tldo_ldsb3_sp64): Likewise.
15213 (*tldo_lduh_sp32): Merge into...
15214 (*tldo_lduh_sp64): Likewise.
15215 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
15216 (*tldo_lduh1_sp32): Merge into...
15217 (*tldo_lduh1_sp64): Likewise.
15218 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
15219 (*tldo_ldsh1_sp32): Merge into...
15220 (*tldo_ldsh1_sp64): Likewise.
15221 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
15222 (*tldo_lduh2_sp64): Use DImode throughout.
15223 (*tldo_ldsh2_sp64): Likewise.
15224 (*tldo_lduw_sp32): Merge into...
15225 (*tldo_lduw_sp64): Likewise.
15226 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
15227 (*tldo_lduw1_sp64): Use DImode throughout.
15228 (*tldo_ldsw1_sp64): Likewise.
15229 (*tldo_ldx_sp64): Likewise.
15230 (*tldo_stb_sp32): Merge into...
15231 (*tldo_stb_sp64): Likewise.
15232 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
15233 (*tldo_sth_sp32): Merge into...
15234 (*tldo_sth_sp64): Likewise.
15235 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
15236 (*tldo_stw_sp32): Merge into...
15237 (*tldo_stw_sp64): Likewise.
15238 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
15239 (*tldo_stx_sp64): Use DImode throughout.
15241 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15243 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
15244 check configure option to set BTI and Return Address Signing.
15245 * configure.ac: Add --enable-standard-branch-protection and
15246 --disable-standard-branch-protection.
15247 * configure: Regenerated.
15248 * doc/install.texi: Document the same.
15250 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15251 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15253 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
15254 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
15255 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
15257 * config/aarch64/aarch64-bti-insert.c: New file.
15258 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15260 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15262 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
15263 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
15264 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
15265 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
15267 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15269 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
15270 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
15271 Disable bti for -mbranch-protection=none.
15272 (aarch64_handle_standard_branch_protection): Enable bti for
15273 -mbranch-protection=standard.
15274 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
15275 -mbranch-protection.
15276 (aarch64_bti_enabled): Check if bti is enabled.
15277 * config/aarch64/aarch64.opt: Declare target variable.
15278 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
15280 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15282 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
15283 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
15284 (aarch64_expand_epilogue): Likewise.
15285 (aarch64_output_mi_thunk): Likewise
15286 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
15287 TAILCALL_ADDR_REGS to x16 and x17.
15288 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
15290 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15292 * config/aarch64/aarch64-option-extensions.def: Define
15293 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
15294 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
15295 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
15296 (AARCH64_FL_PREDRES): New.
15297 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
15298 AARCH64_FL_PREDRES by default.
15299 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
15301 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15303 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15305 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
15306 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
15307 * doc/invoke.texi: Document ARMv8.5-A.
15309 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15311 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15312 (xorsign<mode>3): Likewise.
15314 2019-01-09 Jelinek <jakub@redhat.com>
15316 PR middle-end/88758
15317 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
15318 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
15320 PR rtl-optimization/88331
15321 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
15322 not currently_expanding_to_rtl.
15324 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15326 * doc/invoke.texi (-Os): Remove trailing spaces.
15327 (-finline-functions): Remove reference to -O2.
15329 2019-01-08 Jakub Jelinek <jakub@redhat.com>
15331 PR rtl-optimization/79593
15332 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15334 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15335 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
15337 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
15340 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15344 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15345 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15347 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
15350 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15351 ix86_avx_u128_mode_entry.
15353 2019-01-08 Martin Liska <mliska@suse.cz>
15355 PR tree-optimization/88753
15356 * tree-switch-conversion.c (switch_conversion::build_one_array):
15357 Come up with local variable constructor. Convert first to
15358 type of constructor values.
15360 2019-01-08 Richard Biener <rguenther@suse.de>
15362 PR tree-optimization/86554
15363 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
15364 rpo_avail): Move earlier.
15365 (visit_nary_op): When value-numbering to expressions
15366 with different overflow behavior make sure there's an
15367 available expression on the path.
15369 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
15371 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
15372 aarch64_parse_branch_protection,
15373 struct aarch64_branch_protect_type,
15374 aarch64_handle_no_branch_protection,
15375 aarch64_handle_standard_branch_protection,
15376 aarch64_validate_mbranch_protection,
15377 aarch64_handle_pac_ret_protection,
15378 aarch64_handle_attr_branch_protection,
15379 accepted_branch_protection_string,
15380 aarch64_pac_ret_subtypes,
15381 aarch64_branch_protect_types,
15382 aarch64_handle_pac_ret_leaf): Define.
15383 (aarch64_override_options_after_change_1, aarch64_override_options):
15384 Add check for accepted_branch_protection_string.
15385 (aarch64_option_save): Save accepted_branch_protection_string.
15386 (aarch64_option_restore): Save accepted_branch_protection_string.
15387 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
15388 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
15389 msign-return-address.
15390 * doc/invoke.texi: Add mbranch-protection.
15392 2019-01-08 Alan Modra <amodra@gmail.com>
15395 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
15396 Delete "unknownp" parameter. Adjust callers. Handle
15397 CONST_INT, PLUS, MINUS, and MULT.
15398 (attr_value_aligned): Renamed from or_attr_value.
15399 (min_attr_value): Return INT_MIN for unhandled rtl case..
15400 (min_fn): ..and translate to INT_MAX here.
15401 (write_length_unit_log): Modify to cope without "unknown".
15402 (write_attr_value): Handle IF_THEN_ELSE.
15404 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15406 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15407 optimization for masked stores.
15409 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15411 PR middle-end/88567
15412 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
15413 output vector directly to duplicate_and_interleave instead of
15414 going through a temporary. Postpone insertion of ctor_seq to
15415 the end of the loop.
15417 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
15420 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15421 unsigned_p. Handle signed and unsigned overflow correction as
15423 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15425 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15427 (add<mode>3_compareV_imm): Make this callable for expanding.
15428 (subv<GPI:mode>4): Use register_operand for operand 1. Use
15429 aarch64_plus_operand for operand 2.
15430 (subv<GPI:mode>_insn): New insn pattern.
15431 (subv<GPI:mode>_imm): Likewise.
15432 (negv<GPI:mode>3): New expand pattern.
15433 (negv<GPI:mode>_insn): New insn pattern.
15434 (negv<GPI:mode>_cmp_only): Likewise.
15435 (cmpv<GPI:mode>_insn): Likewise.
15436 (subvti4): Use register_operand for operand 1. Update call to
15437 aarch64_expand_subvti.
15438 (usubvti4): Likewise.
15439 (negvti3): New expand pattern.
15440 (negdi_carryout): New insn pattern.
15441 (negvdi_carryinV): New insn pattern.
15442 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
15443 version the named version.
15444 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
15446 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15448 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15450 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
15451 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
15452 (sub<mode>3_carryinCV): Delete.
15453 (sub<GPI:mode>3_carryinV): New expand pattern.
15454 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
15456 2019-01-07 Richard Biener <rguenther@suse.de>
15458 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15459 of tree_operand_hash.
15461 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15463 PR tree-optimization/88598
15464 * tree.h (single_nonzero_element): Declare.
15465 * tree.c (single_nonzero_element): New function.
15466 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
15467 if I is the only nonzero element of CST.
15469 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15471 PR tree-optimization/88598
15472 * tree.h (initializer_each_zero_or_onep): Declare.
15473 * tree.c (initializer_each_zero_or_onep): New function.
15474 (signed_or_unsigned_type_for): Handle float types too.
15475 (unsigned_type_for, signed_type_for): Update comments accordingly.
15476 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
15477 x & { 0 or -1, 0 or -1, ... }.
15479 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
15481 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15482 with x86_64-pc-linux-gnu.
15484 2019-01-07 Tom de Vries <tdevries@suse.de>
15487 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15489 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15492 2019-01-07 Jakub Jelinek <jakub@redhat.com>
15494 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
15495 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
15496 TARGET_AVX512F as condition.
15499 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
15500 const_not_ok_for_debug_p target hook.
15501 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
15502 on UNSPEC and subexpressions thereof if all subexpressions of the
15503 UNSPEC are CONSTANT_P.
15505 PR tree-optimization/88676
15506 * tree-ssa-phiopt.c (two_value_replacement): New function.
15507 (tree_ssa_phiopt_worker): Call it.
15510 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15511 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15514 * tree-vect-generic.c: Include insn-config.h and recog.h.
15515 (expand_vector_piecewise): Add defaulted ret_type argument,
15516 if non-NULL, use that in preference to type for the result type.
15517 (expand_vector_parallel): Formatting fix.
15518 (do_vec_conversion, do_vec_narrowing_conversion,
15519 expand_vector_conversion): New functions.
15520 (expand_vector_operations_1): Call expand_vector_conversion
15521 for VEC_CONVERT ifn calls.
15522 * internal-fn.def (VEC_CONVERT): New internal function.
15523 * internal-fn.c (expand_VEC_CONVERT): New function.
15524 * fold-const-call.c (fold_const_vec_convert): New function.
15525 (fold_const_call): Use it for CFN_VEC_CONVERT.
15526 * doc/extend.texi (__builtin_convertvector): Document.
15528 2019-01-07 Tom de Vries <tdevries@suse.de>
15530 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
15531 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
15532 vector_red_partition, vector_red_sym): New global variables.
15533 (nvptx_option_override): Initialize vector_red_sym.
15534 (nvptx_declare_function_name): Restore red_partition register.
15535 (nvptx_file_end): Emit code to declare the vector reduction variables.
15536 (nvptx_output_red_partition): New function.
15537 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
15538 large vector reductions.
15539 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
15540 (nvptx_init_builtins): Add VECTOR_ADDR.
15541 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
15542 Handle nvptx_expand_shared_addr.
15543 (nvptx_get_shared_red_addr): Add vector argument and handle large
15545 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
15547 (nvptx_goacc_reduction_init): Likewise.
15548 (nvptx_goacc_reduction_fini): Likewise.
15549 (nvptx_goacc_reduction_teardown): Likewise.
15550 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
15551 init,fini,teardown}.
15552 (nvptx_init_axis_predicate): Initialize vector_red_partition.
15553 (nvptx_set_current_function): Init vector_red_partition.
15554 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
15555 (nvptx_red_partition): New insn.
15556 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
15558 2019-01-07 Tom de Vries <tdevries@suse.de>
15561 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
15564 2019-01-07 Tom de Vries <tdevries@suse.de>
15566 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
15567 (nvptx_option_override): Init oacc_bcast_partition.
15568 (nvptx_init_oacc_workers): New function.
15569 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
15570 (nvptx_needs_shared_bcast): New function.
15571 (nvptx_find_par): Generalize to enable vectors to use shared-memory
15572 to propagate state.
15573 (nvptx_shared_propagate): Initialize vector bcast partition and
15574 synchronization state.
15575 (nvptx_single): Generalize to enable vectors to use shared-memory
15576 to propagate state.
15577 (nvptx_process_pars): Likewise.
15578 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
15579 * config/nvptx/nvptx.h (struct machine_function): Add
15580 bcast_partition and sync_bar members.
15582 2019-01-07 Tom de Vries <tdevries@suse.de>
15584 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
15585 (nvptx_apply_dim_limits): New function.
15586 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
15589 2019-01-07 Tom de Vries <tdevries@suse.de>
15591 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
15592 as late as possible.
15594 2019-01-07 Tom de Vries <tdevries@suse.de>
15596 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
15597 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
15598 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
15599 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
15600 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
15602 2019-01-07 Tom de Vries <tdevries@suse.de>
15604 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
15606 2019-01-07 Tom de Vries <tdevries@suse.de>
15608 * omp-offload.c (oacc_get_min_dim): New function.
15609 * omp-offload.h (oacc_get_min_dim): Declare.
15611 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
15614 * config/i386/i386.c (function_value_ms_64): Return small sturct in
15615 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
15617 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15621 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
15623 * ipa-inline.c (edge_badness): Use inlined_time instead of
15624 inline_summaries->get.
15626 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15628 * opts.c (enable_fdo_optimizations): Enable
15629 version-loops-for-strides, loop-interchange, unrol-and-jam
15630 and tree-loop-distribution.
15631 * invoke.texi: Document newly enabled options.
15633 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15635 * doc/invoke.texi (max-inline-insns-small): New parameters.
15636 * ipa-inline.c (want_early_inline_function_p): simplify.
15637 (want_inline_small_function_p): Fix pasto from previous patch;
15638 use max-inline-insns-small bound.
15639 * params.def (max-inline-insns-small): New param.
15640 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
15641 variables correctly.
15643 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15645 * doc/invoke.texi: Document max-inline-insns-size,
15646 uninlined-function-insns, uninlined-function-time,
15647 uninlined-thunk-insns and uninlined-thunk-time.
15648 * params.def: Add max-inline-insns-size,
15649 uninlined-function-insns, uninlined-function-time,
15650 uninlined-thunk-insns and uninlined-thunk-time.
15651 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
15653 * ipa-inline.c (can_inline_edge_by_limits_p,
15654 want_inline_small_function_p): Use new parameters.
15656 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15658 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
15660 2019-01-05 Jakub Jelinek <jakub@redhat.com>
15662 PR middle-end/82564
15664 * expr.c (expand_assignment): For calls returning VLA structures
15665 if to_rtx is not a MEM, force it into a stack temporary.
15668 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
15669 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
15670 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
15671 subexpressions of both operands.
15672 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
15673 subrtxes are CONSTANT_P.
15674 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
15675 2018-11-09 changes.
15677 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
15679 * params.def (hot-bb-count-ws-permille): Set to 990.
15681 2019-01-04 Martin Sebor <msebor@redhat.com>
15684 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
15687 2019-01-04 Martin Sebor <msebor@redhat.com>
15690 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
15692 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15694 * gdbinit.in: Turn off pagination for the skip commands, restore
15695 it to previous state afterwards.
15697 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15700 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
15701 of GET_MODE (opN) as modes of the libcall arguments.
15703 2019-01-04 Jan Beulich <jbeulich@suse.com>
15705 * config/i386/sse.md
15706 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
15707 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
15708 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15709 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15710 avx512f_vmcmp<mode>3<round_saeonly_name>,
15711 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
15712 avx512f_maskcmp<mode>3,
15713 <avx512>_cvt<ssemodesuffix>2mask<mode>,
15714 <avx512>_cvt<ssemodesuffix>2mask<mode>,
15715 *<avx512>_cvtmask2<ssemodesuffix><mode>,
15716 *<avx512>_cvtmask2<ssemodesuffix><mode>,
15717 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15718 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15719 <avx512>_gt<mode>3<mask_scalar_merge_name>,
15720 <avx512>_gt<mode>3<mask_scalar_merge_name>,
15721 <avx512>_testm<mode>3<mask_scalar_merge_name>,
15722 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
15723 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
15724 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
15725 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
15726 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
15727 avx512cd_maskb_vec_dup<mode>,
15728 avx512cd_maskw_vec_dup<mode>,
15729 avx512dq_fpclass<mode><mask_scalar_merge_name>,
15730 avx512dq_vmfpclass<mode>,
15731 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
15734 2019-01-03 Martin Sebor <msebor@redhat.com>
15736 PR tree-optimization/88659
15737 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
15739 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15741 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
15742 unaligned vsx and avoid lxvd2x/stxvd2x.
15743 (gen_lvx_v4si_move): New function.
15745 2019-01-03 Tom de Vries <tdevries@suse.de>
15747 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
15748 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
15750 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
15752 2019-01-03 Tom de Vries <tdevries@suse.de>
15754 * config/nvptx/nvptx.c (struct offload_attrs): New.
15755 (populate_offload_attrs): New function. Factor mask extraction out of
15756 nvptx_reorg. Add extraction of dimensions.
15757 (nvptx_reorg): Use populate_offload_attrs.
15759 2019-01-03 Tom de Vries <tdevries@suse.de>
15761 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
15762 cases for oacc_min_dims_p and routine_p. Add asserts for
15763 oacc_default_dims_p and offload_region_p.
15765 2019-01-03 Tom de Vries <tdevries@suse.de>
15767 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
15768 factored out of ...
15769 (nvptx_goacc_validate_dims): ... here.
15771 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15773 PR tree-optimization/85574
15774 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
15776 (struct ssa_equip_hash_traits): Declare.
15777 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
15779 2019-01-03 Jakub Jelinek <jakub@redhat.com>
15782 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
15783 change it to qualified_type.
15785 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15787 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
15788 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
15790 2019-01-02 Martin Sebor <msebor@redhat.com>
15791 Jeff Law <law@redhat.com>
15793 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
15794 (get_range_strlen_tree): Update appropriately.
15796 * gimple-fold.h (get_range_strlen): Drop unused last argument.
15798 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
15799 rather than set_range_info.
15800 * tree-ssa-strlen.c (set_strlen_range): Extracted from
15801 maybe_set_strlen_range. Handle potentially boundary crossing
15802 cases more conservatively.
15803 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
15804 Call set_strlen_range.
15805 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
15807 PR middle-end/88663
15808 * gimple-fold.c (get_range_strlen): Update prototype to no longer
15809 need the flexp argument.
15810 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
15811 from calls to get_range_strlen. Update comments. Just update
15812 VAL for an unterminated const char array and let the reset of the
15813 code handle it normally. No longer try to set *flexp. Adjust
15815 (get_range_strlen): Update for the new get_range_strlen API.
15816 (get_maxval_strlen): Similarly.
15817 (gimple_fold_builtin_strlen): Handle update meaning of return value
15818 from get_range_strlen.
15819 * gimple-ssa-sprintf.c (get_string_length): Update for the new
15820 get_range_strlen API.
15822 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
15825 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
15826 false at WPA time when body was removed.
15828 2019-01-02 Martin Liska <mliska@suse.cz>
15830 PR tree-optimization/88650
15831 * predict.c (set_even_probabilities): Calculate probability
15832 remainer only when really used.
15834 2019-01-02 Richard Biener <rguenther@suse.de>
15836 PR middle-end/88651
15837 * tree-data-ref.c (analyze_subscript_affine_affine): Use
15838 widest_ints when mangling max_stmt_execution results.
15840 2019-01-02 Richard Biener <rguenther@suse.de>
15842 PR tree-optimization/88621
15843 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
15844 bitfields when canoncalizing.
15846 2019-01-02 Richard Biener <rguenther@suse.de>
15849 * config/i386/x86-tune-costs.h (intel_cost): Adjust
15850 cost of cheap SSE instruction.
15852 2019-01-02 Richard Biener <rguenther@suse.de>
15855 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
15856 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
15858 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
15859 set after UIDs before splitting them.
15861 2019-01-01 Martin Sebor <msebor@redhat.com>
15862 Jeff Law <law@redhat.com>
15864 * gimple-fold.c (get_range_strlen_tree): Record if the computed
15865 length is optimistic. If it is, then arrange to compute the
15866 conservative length as well.
15868 * gimple-fold.h (get_range_strlen): Update prototype.
15869 * builtins.c (check_access): Update call to get_range_strlen to use
15870 c_strlen_data pointer. Change various variable accesses to instead
15871 pull data from the c_strlen_data structure.
15872 (check_strncat_sizes, expand_builtin_strncat): Likewise.
15873 * calls.c (maybe_warn_nonstring_arg): Likewise.
15874 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
15875 minimum length if maximum lengh is unknown.
15876 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
15877 that used c_strlen, it's no longer needed. Restructure slightly.
15878 (format_string): Set unlikely range appropriately.
15879 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
15881 (get_range_strlen): Accept c_strlen_data pointer for external
15882 call sites as well. Pass through to call to internal get_range_strlen.
15883 Adjust minlen, maxlen and maxbound as needed.
15884 (get_maxval_strlen): Update comments.
15885 (gimple_fold_builtin_strlen): Update call to get_range_strlen
15886 to use c_strlen_data pointer. Change variable accesses to instead
15887 use c_strlen_data data members.
15889 * gimple-fold.c (get_range_strlen): Update prototype.
15890 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
15891 local variables. Use pdata to return information to caller.
15892 Update calls to get_range_strlen. Update pdata->maxbound.
15893 (get_range_strlen -- static version): Similarly.
15894 (get_range_strlen -- extern version): Update for internal
15895 get_range_strlen API change. Convert to external data format.
15896 (get_maxval_strlen): Similarly.
15898 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
15900 * coverage.c (get_coverage_counts): Use current_function_decl.
15901 * profile.c (read_thunk_profile): New function.
15902 (branch_prob): Add THUNK parameter.
15903 * tree-profile.c (tree_profiling): Handle thunks.
15904 * value-prof.c (init_node_map): Handle thunks.
15905 * value-prof.h (branch_prob): Upate prototype.
15906 (read_thunk_profile): Declare.
15908 2019-01-01 Jakub Jelinek <jakub@redhat.com>
15910 Update copyright years.
15912 * gcc.c (process_command): Update copyright notice dates.
15913 * gcov-dump.c (print_version): Ditto.
15914 * gcov.c (print_version): Ditto.
15915 * gcov-tool.c (print_version): Ditto.
15916 * gengtype.c (create_file): Ditto.
15917 * doc/cpp.texi: Bump @copying's copyright year.
15918 * doc/cppinternals.texi: Ditto.
15919 * doc/gcc.texi: Ditto.
15920 * doc/gccint.texi: Ditto.
15921 * doc/gcov.texi: Ditto.
15922 * doc/install.texi: Ditto.
15923 * doc/invoke.texi: Ditto.
15925 Copyright (C) 2019 Free Software Foundation, Inc.
15927 Copying and distribution of this file, with or without modification,
15928 are permitted in any medium without royalty provided the copyright
15929 notice and this notice are preserved.